similar to: Should a Gem's dependencies be listed in the parent app's Gemfile?

Displaying 20 results from an estimated 2000 matches similar to: "Should a Gem's dependencies be listed in the parent app's Gemfile?"

2009 Dec 09
1
How to namespace custom generators?
I have a few custom generators within ~/.rails/generators. This works fine and they all show up under "User" as they should when I run script/generate. I would like to be able to have multiple Dirs. under ~/.rails/ generators so I can better organize things and have unique repos for each. If I do something like ~/.rails/generators/cms_generators/gen_1 and
2010 Aug 12
2
rails 3- Could not find generator session.
Hello, I am trying to use Authlogic in Rails 3. when I run " rails g session admin_session" to create the session, I get- ====================== "Could not find generator session." ====================== I''m using Rail 3 RC and working off the Rail3 Branch now ====================== GemFile: gem ''authlogic'', :git =>
2011 Feb 12
10
GemFile error + General Help?
Hello, I''m a complete beginner in Ruby on Rails, so excuse me if this is a ridiculous question. Just to bare in mind, I''m using Mac OSX (Snow Leopard), Rails 3, and sqlite3 as a database. I''ve checked, and everything is up to date (Rails, Ruby, Gems). I am simply creating a test application, and I understand the way to run that is by running the ''rails
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of searching ive managed to get a little bit of Authlogic working. I''m able to register a user, login & logout. Now, I would like to add more features, get more of authlogic working. I''m using Railscast EP 160 as my reference. Portions of the code found on the tutorial throw errors: Eg: <!--
2011 Dec 17
7
How does bundler know whether Gemfile has changed?
I am trying to understand how bundler works. Looking at the manual [1] it says "If a Gemfile.lock does exist, and you have not updated your Gemfile(5), bundler will fetch all remote sources, but use the dependencies specified in the Gemfile.lock instead of resolving dependencies." The question is how does it know whether Gemfile has been updated? I expected to find something in
2010 Aug 30
1
in a rails3 - rspec then require 'authlogic/test_case' and now I broke stuff?
I''m a newb here and probably shouldn''t be using Rails3 yet to start with, but for some reason I was feeling adventurous. I''m also learning to use rspec along the way and things ''were'' working out with my ''rake spec'' until I tried to follow some examples for test Authlogic with rspec. I ''think'' what started the
2013 May 18
3
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
I''m careful to create separate gemsets for each project, so when I run bundle install, it only installs gems for that gemset. This way gems dont creep into the wrong projects. Now I just pulled a project from github. I made sure I was in the correct gemset, and then I run bundle install and it works fine. but then when I use rake to create the database "rake db:create". I get
2011 Dec 10
0
platforms in gemfile
Have any of you used a line like this in your gem file? gem ''therubyracer'', :platforms => :ruby I used it and it isn''t behaving the way the docs said it should. People on SO are giving me workarounds but I''m trying to figure out if the docs are wrong or I''m reading them wrong. More details:
2011 Apr 21
1
GEMFile gem 'mysql2' and mysql version is 4.1.2
Hi all I have a Gemfile with this value gem ''mysql2'' but when I run this command ''$ bundle install'' on my host they said that "The command "bundle install --local" seems to be returning mysql2 dependency error now. Unfortunately mysql2 gem requires mysql 5.1+ ( refer: https://github.com/brianmario/mysql2/issues/109 ) whereas the server mysql
2012 Feb 17
4
Gemfile location
When i am create new project "rails new newProject", ruby create rails files and next automaticly launch bundle install and setup standart gems: C:\Sites>rails new demo create README.rdoc . . . create vendor/plugins/.git run bundle install . . . Where is standart gemfile location? Or how change standart set of gems? --
2011 Sep 02
4
You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3.
Hi, guys, I got the below error message when i typed this command in terminal "rackup config.ru" , the file config.ru is rails ''s configuration file. You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using bundle exec. (Gem::LoadError) So, how should i do , thanks a lot. -- You received this message because you are subscribed to the
2011 Feb 20
2
Problem with mysql2 gem and Debian
Hi Guys, I''m having an issue with deploying my application and the mysql2 gem. I am developing on Windows 7 with Ruby 1.9.2 and Rails 3.0.3. On my local machine in development environment the application runs just fine. But when I want to deploy it on our production server I get an error message from passenger. "Please install the mysql2 adapter: `gem install activerecord-mysql2-
2010 Dec 20
0
Server won't start on using authlogic-oauth2
I have included oauth2 and authlogic-oauth2 in the gemfile as I want to use them and am trying to start the server. It doesn''t start and gives me the error /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails.rb:44:in `configuration'': undefined method `config'' for nil:NilClass (NoMethodError) from
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not having i18n installed. Either bundler should be installing i18n along with activesupport or docs need to be updated. quick repro: https://github.com/softwaregravy/repro_active_support_i18n bundle exec irb require ''active_support/all'' detailed steps and error: 1) add to Gemfile require
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not having i18n installed. Either bundler should be installing i18n along with activesupport or docs need to be updated. quick repro: https://github.com/softwaregravy/repro_active_support_i18n bundle exec irb require ''active_support/all'' detailed steps and error: 1) add to Gemfile require
2010 May 06
5
Bundler for Rails 3 Engine
Hello All, My google-fu did not find this answer : How do I configure a Rails-3 Engine so that the engine''s Gemfile is integrated with the parent-Rails-app''s bundle? Thanks Peter Fitzgibbons (847) 859-9550 Email: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org IM GTalk: peter.fitzgibbons IM AOL: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- You
2010 Aug 08
0
Bad gemspec for rspec-core
I receive this message when bundling using this example project: http://github.com/francois/rental_agency/tree/1ea252624e161ddc305a719d505a633d8d464e49 The included Gemfile references HEAD of rspec-core, and the gemspec there has this issue: Using rspec-core (2.0.0.beta.19) from git://github.com/rspec/rspec-core.git (at master) rspec-core at /Users/francois/.rvm/gems/ruby-1.9.2-rc2/bundler/gems/
2012 Apr 30
0
data file path in a gem
I am trying to access a data list from inside a gem code, how should I set the file path .. here is my gem file structure : >> my_extension --- my_extension.gemspec --- Gemfile --- Gemfile.lock >> lib >> my_extension --- code_a.rb --- code_b.rb --- code_c.rb ---
2012 Nov 18
3
remarkable activerecord association RSpec
i''m using gem Remarkable activerecord for association. i''ve installed remarkable and remarkable activerecrod both gem. i''ve added both gem in my Gemfile. i''ve added "remarkable_activerecord" as required in spec_helper.rb. describe Authentication do FactoryGirl.build(:authentication).should belong_to(:user)
2014 Apr 14
0
Foundation & Authlogic
Seems I can get either Foundation or Authlogic to work but not both - After bundle install when I do a rails g foundation:install I get the following: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.1.0/lib/acti ve_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable o r method `inheritable_attributes' for ActiveRecord::Base:Class (NameError)