google-code-export / ruby-activeldap

Automatically exported from code.google.com/p/ruby-activeldap
Other
1 stars 1 forks source link

undefined method `map' for nil:NilClass #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am getting an error when trying to unpack the gem.

What steps will reproduce the problem?
1. config.gem 'activeldap', :lib => "active_ldap" (environment.rb file)
2. sudo rake gems:install
3. rake gems:unpack
3. Result:
rake gems:unpack
(in /Users/david/github/bloomfire-app)
rake aborted!
undefined method `map' for nil:NilClass

(See full trace by running task with --trace)

------------------------------------------------------------------
Full Trace:
------------------------------------------------------------------
rake gems:unpack --trace
(in /Users/david/github/bloomfire-app)
** Invoke gems:unpack (first_time)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `map' for nil:NilClass
/Library/Ruby/Site/1.8/rubygems.rb:223:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:249:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:248:in `each'
/Library/Ruby/Site/1.8/rubygems.rb:248:in `activate'
/Library/Ruby/Site/1.8/rubygems.rb:1082:in `gem'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/rails/gem_
dependency.rb:73:in
`add_load_paths'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/initialize
r.rb:301:in
`add_gem_load_paths'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/initialize
r.rb:301:in
`each'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/initialize
r.rb:301:in
`add_gem_load_paths'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/initialize
r.rb:132:in
`process'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/initialize
r.rb:113:in
`send'
/Users/david/github/bloomfire-app/config/../vendor/rails/railties/lib/initialize
r.rb:113:in
`run'
/Users/david/github/bloomfire-app/config/environment.rb:10
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/david/github/bloomfire-app/vendor/rails/activesupport/lib/active_support/
dependencies.rb:156:in
`require'
/Users/david/github/bloomfire-app/vendor/rails/activesupport/lib/active_support/
dependencies.rb:521:in
`new_constants_in'
/Users/david/github/bloomfire-app/vendor/rails/activesupport/lib/active_support/
dependencies.rb:156:in
`require'
/Users/david/github/bloomfire-app/vendor/rails/railties/lib/tasks/misc.rake:4
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.
rb:242:in
`synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/david/github/bloomfire-app/vendor/rails/railties/lib/tasks/gems.rake:17
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.
rb:242:in
`synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.
rb:242:in
`synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.
rb:242:in
`synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by smc...@gmail.com on 27 May 2010 at 12:25

GoogleCodeExporter commented 9 years ago
Please show the file:
/Users/david/github/bloomfire-app/config/environment.rb

Original comment by kou...@gmail.com on 30 May 2010 at 9:34

GoogleCodeExporter commented 9 years ago
# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
PROJECT_NAME = "Project 327"

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  # -- all .rb files in that directory are automatically loaded.

  # Add additional load paths for your own custom dirs
  config.load_paths += %W( 
    #{Rails.root}/app/components 
    #{Rails.root}/app/warehouse 
    #{Rails.root}/app/warehouse/reports 
    #{Rails.root}/app/api
  )

  ## Gems ##
  config.gem 'compass'
  config.gem 'haml', :lib => 'haml', :version => '>=2.2.0'
  config.gem "rack"
  config.gem 'mbleigh-subdomain-fu', :source => "http://gems.github.com", :lib =>
"subdomain-fu"
  config.gem "password_generator", :version => "0.0.3"
  config.gem "mime-types", :lib => "mime/types"
  config.gem "aws-s3", :lib => "aws/s3"
  config.gem "flix_cloud-gem", :lib => "flix_cloud"
  config.gem 'sevenwire-http_client', :lib => 'http_client', :source =>
'http://gems.github.com'
  config.gem 'crack'
  config.gem "xml-simple", :lib => "xmlsimple"
  # config.gem "mbleigh-acts-as-taggable-on", :source => "http://gems.github.com",
:lib => "acts-as-taggable-on"
  config.gem "acts-as-taggable-on"
  config.gem "mislav-will_paginate", :lib => "will_paginate", :version => ">=2.3"
  config.gem "mysql"
  config.gem "compass-colors"
  config.gem "fancy-buttons"
  config.gem "rscribd", :version => "1.0.4"
  config.gem "constructor", :version => "1.0.4"
  config.gem "rack-cookie-monster", :lib => "rack/cookie_monster"
  config.gem "multipart-post", :lib => "net/http/post/multipart"
  config.gem 'jackdempsey-acts_as_commentable', :lib => 'acts_as_commentable'
  config.gem "net-ssh", :lib => "net/ssh"
  config.gem "net-sftp", :lib => "net/sftp"
  config.gem "RedCloth"
  config.gem "googlecharts"
  config.gem "delayed_job"
  config.gem "activemerchant", :lib => "active_merchant"
  config.gem "daemons"
  config.gem 'hoptoad_notifier'
  config.gem 'net-ldap'
  config.gem 'activeldap', :lib => "active_ldap", :version => "1.2.0"

  #config.gem "ffmpeg-ruby", :lib => "ffmpeg"

  ##Diagnoses Gems##
  config.gem 'bullet'

  # Only load the plugins named here, in the order given (default is alphabetical).
  # :all can be used as a placeholder for all plugins not explicitly named
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]

  # Skip frameworks you're not going to use. To use Rails without a database,
  # you must remove the Active Record framework.
  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

  # Activate observers that should always be running
  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer

  # Set Time.zone default to the specified zone and make Active Record auto-convert
to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'Eastern Time (US & Canada)'

  # The default locale is :en and all translations from config/locales/*.rb,yml are
auto loaded.
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  # config.i18n.default_locale = :de

  require 'site_configuration'
  require 'object'

  SiteConfiguration.environment = RAILS_ENV
end

Original comment by smc...@gmail.com on 31 May 2010 at 11:56

GoogleCodeExporter commented 9 years ago
We did go back a version to resolve the problem.

Original comment by smc...@gmail.com on 31 May 2010 at 11:57

GoogleCodeExporter commented 9 years ago
What about to change like the following:
  config.gem 'activeldap', :lib => "active_ldap", :version => "1.2.1"

Original comment by kou...@gmail.com on 6 Jun 2010 at 5:59