bundler

Rails failing and strange bundle installations

蓝咒 提交于 2020-01-05 07:53:05
问题 There's one thing that I can't figure out. When I try to run rails it says something like: Could not find sprockets-2.1.2 in any of the sources Run `bundle install` to install missing gems. By the way sprockets-2.1.2 is installed. (I've run bundle install successfully) But as far as I understand when I run rails the global bin is being run and so my local gems installed by bundler are not accessible by it. Can I solve this somehow without having to manually install a lot of gems like: gem

Why does bundler think it needs a specific version when the gemspec specifies a pessimistic constraint?

本小妞迷上赌 提交于 2020-01-05 07:46:22
问题 My gemspec clearly requires active_support ~> 3.0 , but bundler is failing to bundle install saying that my gem requires active_support = 3.0 . WTF bundler? Can anyone explain this? $ gem install code_filter Successfully installed activesupport-3.0.0 Successfully installed active_support-3.0.0 Successfully installed code_filter-0.1.1 $ gem dependency code_filter Gem code_filter-0.1.1 active_support (~> 3.0, runtime) $ bundle Fetching gem metadata from http://rubygems.org/....... Fetching gem

Warning: the lockfile is being updated to Bundler 2, after which you will be unable to return to Bundler 1

烈酒焚心 提交于 2020-01-05 07:12:10
问题 I put some new gems in my Gemfile and ran bundle install . The installation went successfully, but at the end I got this warning: Warning: the lockfile is being updated to Bundler 2, after which you will be unable to return to Bundler 1. What does this mean - I mean it obviously states that the lockfile is being updated to Bundler2 and I wont be able to return to Bundler 1, and yet, should I be concerned about this? Is there any danger of non-compatibility after this? Why is it updated

handlebar precompile version error in Ember rc5

二次信任 提交于 2020-01-04 05:25:12
问题 I'm upgrading to Ember rc5 from rc3, but I'm getting the following error: Uncaught Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 1.0.0-rc.4) or downgrade your runtime to an older version (== 1.0.0-rc.3) Here are the relevant lines in my gemfile, taken straight from the ember-rails README (except pulling the gem from git... it gives the same error whether I include that or not) gem 'ember-rails', git

Grunt/Bundler wont use specified sass version

≡放荡痞女 提交于 2020-01-03 16:36:05
问题 We have a project with Grunt and Bundler setup. All of these installed without issue. Gemfile.lock generated, proper gems pulled down, and grunt files created with npm. We start our watch on the project and it bombs on sass compile because it's using the wrong version of sass and not the one specified in the gemfile. This is on windows by the way... Gemfile source 'https://rubygems.org' gem 'sass', '~> 3.2' gem 'compass', '~> 0.12' gem 'susy', '~> 1.0' Gemfile.lock GEM remote: https:/

In Bundler, how can I override a dependency's version requirements for its own dependencies?

谁说胖子不能爱 提交于 2020-01-03 08:59:09
问题 I have a couple of needs in my application for which working on edge Rails (3.1) would help me complete my task faster. The problem is that one of the gems I depend on doesn't yet officially support Rails 3.1, and it has a "~> 3.0.0" railties dependency, which creates a dependency conflict and bundler can't resolve my dependencies. Can I override that requirement in my app's Gemfile somehow, or is my only workaround to fork my dependency? 回答1: Sadly, branching it is the only way to unravel

Could not find RubyGem bundler

风流意气都作罢 提交于 2020-01-03 08:56:23
问题 I've cloned diaspora for github, git://github.com/diaspora/diaspora.git I tried to install it. An error generated when I use bundle install. $ bundle install /usr/local/lib/site_ruby/1.8/rubygems.rb:812:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:223:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:1146:in `gem' from /usr/bin/bundle:18 I'm using rails 3 and ruby 1.8 on ubuntu 11.04. How to fix it?

Bundler errors in environment with Rails 3.1 gem installed

一曲冷凌霜 提交于 2020-01-03 03:03:31
问题 I've got Rails 3.0.10 and 3.1 installed because I am trying to use both for two different projects. In my Rails 3.0.10 project, I have the following at the top of my Gemfile: gem 'rails', '3.0.10' However, after running bundle install; bundle exec rails --version , I'm getting the following: /Users/bradley/.rbenv/versions/ree-1.8.7-2011.03/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:31:in `setup': You have already activated activesupport 3.1.1, but your Gemfile requires

Rails error: `rescue in <top (required)>': uninitialized constant Bundler (NameError)

亡梦爱人 提交于 2020-01-02 12:02:33
问题 Earlier today I updated gems on my system with: gem update It updated few gems but after that I can't start my rails server, I get this error: /Users/gugguson/rubys/my_rails_app/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Bundler (NameError) from /Users/gugguson/rubys/my_rails_app/config/boot.rb:5:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from script/rails:5:in `

Rails error: `rescue in <top (required)>': uninitialized constant Bundler (NameError)

不想你离开。 提交于 2020-01-02 12:00:14
问题 Earlier today I updated gems on my system with: gem update It updated few gems but after that I can't start my rails server, I get this error: /Users/gugguson/rubys/my_rails_app/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Bundler (NameError) from /Users/gugguson/rubys/my_rails_app/config/boot.rb:5:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from script/rails:5:in `