bundler

libv8 (3.11.8.17) bundle install error on Mac

北城以北 提交于 2019-12-20 11:37:10
问题 I upgraded ruby to 1.9.3, and now I can't get my server to start. When I run bundle install, it says An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling. When I try to install that gem, it says ERROR: Error installing libv8: ERROR: Failed to build gem native extension. /Users/Erica/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.1

Rails 3 app server startup time is long

牧云@^-^@ 提交于 2019-12-20 10:27:36
问题 UPDATE 2 This is a known bug/feature with the way Ruby 1.9.2 loads files. http://twitter.com/#!/rails/status/72801149769621504 update: This started out as a question, but after working on this for a bit I think it might not be fixable. I figured I would post this in case anyone else is seeing the same thing and is wondering what is going on inside rails and bundler. Is anyone else seeing long load times in their Rails 3 apps? I placed timers in environment.rb, application.rb, boot.rb and

Metasploit induction of bundle and rake [closed]

淺唱寂寞╮ 提交于 2019-12-20 06:29:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm really starting to have a headache. This makes the hours I try to settle my problem without success ... So I go to this directory : cd /opt/metasploit/apps/pro/msf3/tools. Ans ./pattern_create.rb 20 and unfortunately : Could not find rake-10.0.4 in any of the sources Run

How to use 'debugger' and 'pry' when developing a gem? (Ruby)

筅森魡賤 提交于 2019-12-20 05:28:16
问题 I'm developing a gem, and my Gemfile looks like this: source :rubygems gemspec group :development, :test do gem "pry" gem "debugger" gem "rake" end However, I don't want people to have to install pry and debugger when running tests, but I also want to be able to require them in my tests (because I'm running tests prefixed with bundle exec , and I cannot get it them in my load path if they're not in the Gemfile). How do I achieve this? Also, when to put gems that I use for development in the

Gem install wrong number of arguments (given 1, expected 0)

最后都变了- 提交于 2019-12-20 01:11:25
问题 When I run bundle , I get the following: The `bundle' command exists in these Ruby versions: 2.1.8 2.4.2 jruby-9.1.15.0 My project uses Ruby-2.5.1, so I'm trying to update my bundler using gem install bundler , but I get the following error: ERROR: While executing gem ... (ArgumentError) wrong number of arguments (given 1, expected 0) Using --backtrace /Users/spencerbailey/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:47:in `require' /Users/spencerbailey/

Heroku does not accept push even though I have sqlite in development block

霸气de小男生 提交于 2019-12-19 05:11:56
问题 I have the following lines in my Gemfile : gem 'rails', '3.1.1' group :production do gem 'pg' end group :development, :test do gem 'sqlite3' end I also ran bundle install to have my Gemfile.lock updated. When I push to heroku I still get the following error: ! ! Failed to install gems via Bundler. ! ! Detected sqlite3 gem which is not supported on Heroku. ! http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development ! ! Heroku push rejected, failed to compile Ruby/rails app What

Bundle install failing when deploying a Rails 3 app to Dreamhost with Capistrano

心已入冬 提交于 2019-12-19 04:08:16
问题 I am trying to deploy a locally working Rails 3 app to Dreamhost with Capistrano. When I run 'cap deploy -v' in my local app root I get so far before it chokes on 'bundle install'. The following is the end of the error message: ** transaction: start ** [abunchofletters.co.uk :: out] my_username@abunchofletters.co.uk's password: Password: ** [abunchofletters.co.uk :: out] ** [abunchofletters.co.uk :: out] HEAD is now at 62f9cdb Initial deploy to Dreamhost ** [out :: abunchofletters.co.uk] sh:

Updating from Rails 4.0 to 4.1 gives sass-rails railties version conflicts

跟風遠走 提交于 2019-12-19 03:27:08
问题 I'm trying to update my Rails 4.0 app to 4.1. The app uses sass-rails , and when I try to update it using bundle update rails I get the following error: Bundler could not find compatible versions for gem "railties": In Gemfile: rails (= 4.1) ruby depends on railties (= 4.1.0) ruby sass-rails (~> 4.0) ruby depends on railties (4.1.1) Any idea how to work around it or fix it? 回答1: From comments, update to: gem 'rails', '~> 4.1.1' 回答2: The latest version of sass rails solves this issue: gem

rails s or bundle exec rails s

自作多情 提交于 2019-12-19 02:28:28
问题 In rails 3 does rails s invoke bundler so that you don't need to do bundle exec rails s or is bundle exec required to run rails s in your apps Gemfile environment? Update It's understood that bundle exec should be used before rake tasks because of different rake versions. See http://railsapps.github.com/installing-rails-3-1.html for more details. This question is about rails scripts, like: rails s rails server rails c rails console ^Should bundle exec be used before these rails scripts, or is

Gem/Bundler load error: can't activate…already activated

蹲街弑〆低调 提交于 2019-12-18 22:16:07
问题 I ran bundle update to update my gems. now I get this when I try to start up the local, development server. Anyone know how to fix? hostname:myapp username$ rails s /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate i18n (~> 0.4.1, runtime) for ["mail-2.2.10", "actionmailer-3.0.3", "rails-3.0.3"], already activated i18n-0.5.0 for ["activemodel-3.0.3", "actionpack-3.0.3", "rails-3.0.3"] (Gem::LoadError) from /Users/username/.rvm/rubies/ruby-1