bundler

Deploying Rails app to Heroku after previously taking Gemfile.lock out of repository

百般思念 提交于 2019-12-24 11:32:33
问题 I'm working through the Rails 3.2 edition of Ruby on Rails Tutorial, and am right near the end of Chapter 5. Although it accepted my code a few days ago, Heroku no longer wants to take it when I push. It complains that it needs a Gemfile.lock, which I can understand -- but I am supplying one already. A few days ago I did remove Gemfile.lock from the repository, since I started this project on Windows and ran into Bundler hell due to that. At that time, I added Gemfile.lock's name to

Custom Gem execution fails with NoMethodError

自闭症网瘾萝莉.ら 提交于 2019-12-24 11:27:44
问题 I've written my first gem (ruby noob alert!). To deploy it into my local gem directory I ran: bundle install bundle exec rake install At this point I try to run my gem from the command line. I get a cryptic error: my_gem Gem File Location: C:/ruby193/lib/ruby/gems/1.9.1/gems/my_gem-0.0.1/Gemfile fatal: Not a git repository (or any of the parent directories): .git getting Gem.bin_path() C:/ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/rubygems_integration.rb:305:in `block in

Rails Installing libxml2 on Windows

两盒软妹~` 提交于 2019-12-24 10:47:54
问题 When I run bundle install , I get the following error: Using activeresource (3.0.3) Installing libxml-ruby (1.1.4) with native extensions C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/installer.rb:529:in `build_extensions': ERROR: Failed to build gem native extension. ( Gem::Installer::ExtensionBuildError) C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe extconf.rb checking for socket() in -lsocket... no checking for gethostbyname() in -lnsl... no checking for atan() in -lm... yes

Installing gem json 2.2.0 failed - windows

烂漫一生 提交于 2019-12-24 10:24:07
问题 I got an error trying to install gem json 2.2.0 to my project, so I look for many sites and tutorials but nothing help me with windows. Please see the problem below: Fetching json 2.2.0 Installing json 2.2.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.2.0/ext/json/ext/generator C:/Ruby24-x64/bin/ruby.exe -I C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0 -r ./siteconf20190412-3460-119pn5l.rb

switched from rbenv from rvm and now not able to rails s. can't activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError)

≡放荡痞女 提交于 2019-12-24 07:01:04
问题 FIRST ERROR: `check_version_conflict': can't activate bundler-1.12.5, already activated bundler-1.13.0.rc.1 (Gem::LoadError) TURNED INTO THIS ERROR: /Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3.rb:6:in `require': dlopen(/Users/phillipjones/workspace/messengerApp/vendor/bundle/gems/sqlite3-1.3.11/lib/sqlite3/sqlite3_native.bundle, 9): Library not loaded: /Users/phillipjones/.rvm/rubies/ruby-2.3.1/lib/libruby.2.3.0.dylib (LoadError) Referenced from:

Environment variable in Gemfile

杀马特。学长 韩版系。学妹 提交于 2019-12-24 05:03:34
问题 I'm having trouble using an environment variable in my Gemfile. I'm trying to load a gem from a private Github repository with an API key: auth = ENV['SECRET_GIT'] gem 'foobar', git: "https://#{auth}:x-oauth-basic@github.com/Foo/Bar.git" But if I puts my ENV['SECRET_GIT'] variable, there's nothing in it. I though you could do it this way because of these (especially the first one): - https://devcenter.heroku.com/articles/bundler-configuration#gem-source-username-and-password - https:/

Passenger misses development gem in production environment

老子叫甜甜 提交于 2019-12-24 03:00:12
问题 I've got a strange behaviour on my production server: I deploy my Rails 3 application via Capistrano to the production server. The Capistrano script restarts passenger at the end of deployment. When I open the application I see a passenger error message: Could not find autotest-fsevent-0.2.4 in any of the sources (Bundler::GemNotFound) Of course autotest-fsevent is not installed in my production environment (and even can't be installed on Ubuntu...) The environment is set in apache's

Cannot call bundle by jruby-complete-1.7.21.jar

喜夏-厌秋 提交于 2019-12-24 02:57:14
问题 I've read http://spin.atomicobject.com/2013/04/24/bundler-jruby-complete/ and installed faraday, rspec and bundler gems with commands like: export GEM_HOME=/var/lib/tomcat6/shared/gems export GEM_PATH=/var/lib/tomcat6/shared/gems java -jar jruby-complete-1.7.21.jar -S gem install bundler And I see these gems in the list provided by java -jar jruby-complete-1.7.21.jar -S gem list I also can require files from these gems in inline jruby script, called through JSR223 from Activiti BPM, which is

Why does 'rspec spec' run faster and use less resources than 'bundle exec spec'

旧城冷巷雨未停 提交于 2019-12-24 02:13:51
问题 Below are 3 random runs using time rspec spec vs time bundle exec spec on a fairly simple rails 3 app. Not using bundler is consistently faster AND it uses a lot less resources, 6% vs 17% cpu. I'm sure it has something to do with bundler handling the dependencies but I'd like to understand this problem better. I try to practice TDD so of course I run my tests many times throughout the day. If using bundle exec is going to "cost" me in terms of speed and resources then I'm tempted to find a

Bundler: installing a specific .gem file

一曲冷凌霜 提交于 2019-12-24 01:47:28
问题 Is there a way to tell Bundler to install a particular .gem file I have lying around? I have a compiled version of ParseTree that I must use (damn you, Windows!), but didn't want to expand the gem file in order to add a :path => '...' attribute to the 'gem' requirement. 回答1: You could also package your gems with bundle package , which puts all of your gems in the vendor/cache directory of your project. If needed, overwrite ParseTree with your precompiled gem in in that directory. Then, when