Changeset 260
- Timestamp:
- 03/04/08 15:21:23 (7 months ago)
- Files:
-
- plugins/frozen_gems/trunk/generators/frozen_gems/frozen_gems_generator.rb (modified) (1 diff)
- plugins/frozen_gems/trunk/Manifest.txt (added)
- plugins/frozen_gems/trunk/Rakefile (modified) (2 diffs)
- plugins/frozen_gems/trunk/README.txt (modified) (5 diffs)
- plugins/frozen_gems/trunk/test/test_frozen_gems_generator.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/frozen_gems/trunk/generators/frozen_gems/frozen_gems_generator.rb
r258 r260 8 8 9 9 m.preinitialize <<-EOFRAG 10 # Before plugins get loaded, activate FrozenGems private gem repository10 # Before plugins get loaded, activate FrozenGems private gem library 11 11 require 'rubygems' 12 12 require File.join(File.dirname(__FILE__), 'gems') plugins/frozen_gems/trunk/Rakefile
r258 r260 7 7 require 'generators/frozen_gems/frozen_gems_generator.rb' 8 8 9 Hoe.new(' FrozenGemsGenerator', FrozenGemsGenerator::VERSION) do |p|9 Hoe.new('frozen_gems_generator', FrozenGemsGenerator::VERSION) do |p| 10 10 p.rubyforge_name = 'thinkrelevance' 11 11 p.author = 'Glenn Vanderburg' … … 16 16 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n") 17 17 p.extra_deps = %w{rails} 18 p.spec_extras = { 19 :require_paths => ['generators/frozen_gems'], 20 :has_rdoc => false 21 } 18 22 end 19 23 plugins/frozen_gems/trunk/README.txt
r256 r260 1 = FrozenGemsGenerator1 = frozen_gems_generator 2 2 3 3 * http://opensource.thinkrelevance.com/wiki/FrozenGemsGenerator … … 5 5 == DESCRIPTION: 6 6 7 The FrozenGems plugin gives your Rails application its own private gem8 library, in vendor/gems, and a script/gem command for managing that 9 library.7 The frozen_gems generator gives your Rails application its own 8 private gem library, in vendor/gems, and a script/gem command for 9 managing that library. 10 10 11 11 To enable, run … … 13 13 script/generate frozen_gems 14 14 15 Scripts and tasks that load environment.rb will have access to the 16 application's gem library. Gems in the system-wide gem library are still17 accessible to your app, but gems in the private library will be found 18 first. (One consequence of this is that 'script/gem list' will show all 19 of the gems installed in both libraries.)15 Scripts and tasks that load environment.rb will have access to the 16 application's gem library. Gems in the system-wide gem library are 17 still accessible to your app, but gems in the private library will 18 be found first. (One consequence of this is that 'script/gem list' 19 will show all of the gems installed in both libraries.) 20 20 21 21 == FEATURES/PROBLEMS: … … 30 30 == SYNOPSIS: 31 31 32 To manage your app's gems, use the script/gem command (which is just a33 wrapper for the standard gem command and uses the same syntax). For 34 example:32 To manage your app's gems, use the script/gem command (which is 33 just a wrapper for the standard gem command and uses the same 34 syntax). For example: 35 35 36 36 $ script/gem install xml-simple … … 39 39 Successfully installed xml-simple-1.0.11 40 40 41 Gems are installed without RDoc and ri documentation; other than that, the42 behavior should be the same as the standard gem command. (Due to a bug 43 in some versions of RubyGems, the first attempted installation may fail; 44 subsequent attempts should succeed.) 41 Gems are installed without RDoc and ri documentation; other than 42 that, the behavior should be the same as the standard gem command. 43 (Due to a bug in some versions of RubyGems, the first attempted 44 installation may fail; subsequent attempts should succeed.) 45 45 46 46 == REQUIREMENTS: 47 47 48 FrozenGems assumes Rails 2.0 or greater, due to its dependency on 49 preinitializer.rb. If you're using an earlier version of Rails, you50 can copy the contents of config/preinitializer.rb into config/environment.rb, 51 just prior to the call to Rails::Initializer.run.48 FrozenGems assumes Rails 2.0 or greater, due to its dependency on 49 preinitializer.rb. If you're using an earlier version of Rails, 50 you can copy the contents of config/preinitializer.rb into 51 config/environment.rb, just prior to the call to Rails::Initializer.run. 52 52 53 53 == INSTALL: plugins/frozen_gems/trunk/test/test_frozen_gems_generator.rb
r258 r260 1 1 require 'test/unit' 2 2 3 class FrozenGemsTest< Test::Unit::TestCase3 class TestFrozenGemsGenerator < Test::Unit::TestCase 4 4 # Replace this with your real tests. 5 def test_this_ plugin5 def test_this_generator 6 6 flunk 7 7 end
