At my dev box it doesn''t listen to the group parameter either. Just to
let
you know that it isn''t just your box – maybe something in Rails 3?
2010/2/13 Steve Rowley <srowley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> I''m using SQLite on my dev box and MySQL in production.
I''m also
> running an old mysql adapter gem in production that worked around
> problems with the MySQL adapter and Ruby 1.9.1. That gem was hosted on
> github and hasn''t been moved anywhere, so it''s only
available locally
> on my production machine.
>
> No problem, I think, I''ll just set up my Gemfile with:
>
> group :production do
> gem "hectoregm-mysql-ruby", "2.8.1"
> end
>
> Works fine in production, but back in development, I get this error:
>
> /usr/local/lib/ruby/gems/1.9.1/gems/bundler-0.9.3/lib/bundler/
> resolver.rb:163:in `resolve'': Could not find gem
''hectoregm-mysql-ruby
> (>= 0, runtime)'' in any of the sources. (Bundler::GemNotFound)
>
> Doesn''t shock me that Bundler can''t find this gem, but
why is it
> looking for it? I''m in development.
>
> I realize there are a dozen ways to work around this, but I''m more
> interested in understanding what specifying an environment in Bundler
> does. My first guess was that it should, say, specify which gems are
> required in which environment, which would mean the absence of a gem
> required only in production would not throw an exception when you try
> to launch your app in development. But now it looks like I''m
wrong. Or
> am I just doing something wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.