omarzina / substruct

Automatically exported from code.google.com/p/substruct
0 stars 0 forks source link

config.gem should be utilized from Rails 2.1 #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Rails 2.1.0 allows you to specify gems that are packed / required by the
application.

Attempted to do a quick pass and add this, but after adding the following
to environment.rb...

  config.gem('RedCloth')
  config.gem('fastercsv')
  config.gem('mime-types')
  config.gem('mini_magick')
  config.gem('ezcrypto')

...I encountered some problems with 'mime-types', even though it was
installed. Rails didn't seem to think it was.

This standard facility should be used to require gems so users can just
type "rake gems:install" before the bootstrap process.

Original issue reported on code.google.com by subim...@gmail.com on 18 Aug 2008 at 5:47

GoogleCodeExporter commented 9 years ago
Seth, seems like you needs to specify a lib parameter to it require a file with 
a
name different that the gem itself.

  config.gem('RedCloth')
  config.gem('fastercsv')
  config.gem('mime-types', :lib => 'mime/types')
  config.gem('mini_magick')
  config.gem('ezcrypto')

Original comment by edmundo...@gmail.com on 23 Aug 2008 at 10:40

GoogleCodeExporter commented 9 years ago
should I do a patch for this?

Original comment by rogerpack2005 on 8 Nov 2008 at 4:33

GoogleCodeExporter commented 9 years ago
Be my guest! :)

Original comment by subim...@gmail.com on 10 Nov 2008 at 4:41

GoogleCodeExporter commented 9 years ago
using config.gem currently errs with the current version of engines [go 
figure].  
This adds a custom way to do it, though.

Original comment by rogerpack2005 on 13 Dec 2008 at 1:55

Attachments:

GoogleCodeExporter commented 9 years ago
looks like I missed mysql in that list

Original comment by rogerdp...@gmail.com on 16 Jan 2009 at 8:14

GoogleCodeExporter commented 9 years ago
we could unpack several gems to vendor\gems, as well

Original comment by rogerpack2005 on 29 Jan 2009 at 2:17

GoogleCodeExporter commented 9 years ago
Here's a patch with unpacked gems [except RedCloth] in the vendor\gems 
directory.  
rake test does something weird for me, so I'm unable to test it.

Original comment by rogerpack2005 on 29 Jan 2009 at 2:42

Attachments:

GoogleCodeExporter commented 9 years ago
and here's a change to allow them to be used for rake tasks, as well

Original comment by rogerpack2005 on 29 Jan 2009 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
allow the same to work with mime-types, as well.  My bad.

Original comment by rogerpack2005 on 29 Jan 2009 at 2:56

Attachments:

GoogleCodeExporter commented 9 years ago
note that I'm not sure if this patch allows the "pre installed" gems to [yet] 
work 
with just rake tasks.

Original comment by rogerpack2005 on 21 Feb 2009 at 5:17

GoogleCodeExporter commented 9 years ago
I think vendoring gems is long past due. It will cut down on the installation 
process and clear up that whole mess. Not sure these patches cleanly apply but 
I'll look into it.

Original comment by subim...@gmail.com on 26 Aug 2010 at 5:40

GoogleCodeExporter commented 9 years ago
Done with r269

Original comment by subim...@gmail.com on 26 Aug 2010 at 6:59