tapajos / highrise

Ruby wrapper around Highrise API.
MIT License
124 stars 77 forks source link

Unable to include highrise in a Rails project #67

Closed LandonSchropp closed 10 years ago

LandonSchropp commented 10 years ago

I'm attempting to use Highrise in a vanilla Rails 4.1 project. I've added gem "highrise" to my Gemfile and installed the gem with bundle install. Then I added the following to config/initializers/highrise.rb:

Highrise::Base.site = Figaro.env.highrise_site!
Highrise::Base.user = Figaro.env.highrise_authentication_token!
Highrise::Base.format = :xml

When I try to run spring rails s, I get the following error:

/Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/dependencies.rb
:247:in `require': cannot load such file -- highrise/subject_data (LoadError)
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/de
pendencies.rb:247:in `block in require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/de
pendencies.rb:232:in `load_dependency'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-4.1.0/lib/active_support/de
pendencies.rb:247:in `require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/highrise-3.2.0/lib/highrise.rb:23:in `<to
p (required)>'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:i
n `require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:i
n `block (2 levels) in require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:i
n `each'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:i
n `block in require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:i
n `each'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
        from /Users/landonschropp/Development/surf_receptionist/config/application.rb:7:in `<top (required)>'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/command
s_tasks.rb:79:in `require'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/command
s_tasks.rb:79:in `block in server'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/command
s_tasks.rb:76:in `tap'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/command
s_tasks.rb:76:in `server'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands/command
s_tasks.rb:40:in `run_command!'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-4.1.0/lib/rails/commands.rb:17:i
n `<top (required)>'
        from /Users/landonschropp/Development/surf_receptionist/bin/rails:8:in `require'
        from /Users/landonschropp/Development/surf_receptionist/bin/rails:8:in `<top (required)>'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/rails.rb:2
7:in `load'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/rails.rb:2
7:in `call'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/command.rb
:7:in `call'
 from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/spring-1.1.2/lib/spring/client.rb:26:in `run'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/spring-1.1.2/bin/spring:48:in `<top (required)>'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/bin/spring:23:in `load'
        from /Users/landonschropp/.rbenv/versions/2.0.0-p247/bin/spring:23:in `<main>'
lucasmartins commented 10 years ago

Sorry @LandonSchropp, there was a mishap on yesterday's release, I've yanked 3.2.0 and released 3.2.1 with the needed fix. I've tested it on Rails 4.1.1 and it works fine now.

Thanks for the report, please feedback if you have successfully fixed the problem.

LandonSchropp commented 10 years ago

That worked great. Thanks!— Sent from Mailbox

On Sun, May 11, 2014 at 9:59 AM, Lucas Neves Martins notifications@github.com wrote:

Closed #67.

Reply to this email directly or view it on GitHub: https://github.com/tapajos/highrise/issues/67#event-119907645

scarver2 commented 10 years ago

Thank you!