adelevie / parse-ruby-client

A simple Ruby client for the parse.com REST API
MIT License
415 stars 137 forks source link

Can't use github master version #204

Closed patwhitehead1 closed 8 years ago

patwhitehead1 commented 8 years ago

Trying to use the master version, running into this error:

/Users/Patrick/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- parse-ruby-client (LoadError) from /Users/Patrick/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from app.rb:1:in `

'

This is my Gemfile:

source 'https://rubygems.org' gem 'sinatra' gem 'parse-ruby-client', git: 'https://github.com/adelevie/parse-ruby-client.git'

Any idea what could be causing the problem?

rhymes commented 8 years ago

@patwhitehead1 what's in your app.rb at line 1?

xavdid commented 8 years ago

Additionally, what command are you using to run your code?

patwhitehead1 commented 8 years ago

This is all I have in app.rb:

require 'sinatra'
require 'parse-ruby-client'

get '/hi' do
  "Hello World!"
end

And I'm running it with ruby app.rb

patwhitehead1 commented 8 years ago

This seems to work when I run it with:

bundle exec ruby app.rb

rhymes commented 8 years ago

@patwhitehead1 yes, you need to execute with bundle. See http://bundler.io/v1.11/bundle_exec.html

This command executes the command, making all gems specified in the Gemfile(5) available to require in Ruby programs.