Changeset 260

Show
Ignore:
Timestamp:
03/04/08 15:21:23 (7 months ago)
Author:
glenn
Message:

Finished hoe configuration.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/frozen_gems/trunk/generators/frozen_gems/frozen_gems_generator.rb

    r258 r260  
    88       
    99      m.preinitialize <<-EOFRAG 
    10 # Before plugins get loaded, activate FrozenGems private gem repository 
     10# Before plugins get loaded, activate FrozenGems private gem library 
    1111require 'rubygems' 
    1212require File.join(File.dirname(__FILE__), 'gems') 
  • plugins/frozen_gems/trunk/Rakefile

    r258 r260  
    77require 'generators/frozen_gems/frozen_gems_generator.rb' 
    88 
    9 Hoe.new('FrozenGemsGenerator', FrozenGemsGenerator::VERSION) do |p| 
     9Hoe.new('frozen_gems_generator', FrozenGemsGenerator::VERSION) do |p| 
    1010  p.rubyforge_name = 'thinkrelevance' 
    1111  p.author = 'Glenn Vanderburg' 
     
    1616  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n") 
    1717  p.extra_deps = %w{rails} 
     18  p.spec_extras = { 
     19    :require_paths => ['generators/frozen_gems'], 
     20    :has_rdoc => false 
     21  } 
    1822end 
    1923 
  • plugins/frozen_gems/trunk/README.txt

    r256 r260  
    1 = FrozenGemsGenerator 
     1= frozen_gems_generator 
    22 
    33* http://opensource.thinkrelevance.com/wiki/FrozenGemsGenerator 
     
    55== DESCRIPTION: 
    66 
    7 The FrozenGems plugin gives your Rails application its own private gem 
    8 library, in vendor/gems, and a script/gem command for managing that 
    9 library. 
     7The frozen_gems generator gives your Rails application its own 
     8private gem library, in vendor/gems, and a script/gem command for 
     9managing that library. 
    1010 
    1111To enable, run 
     
    1313    script/generate frozen_gems 
    1414 
    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 still  
    17 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.) 
     15Scripts and tasks that load environment.rb will have access to the 
     16application's gem library.  Gems in the system-wide gem library are 
     17still accessible to your app, but gems in the private library will 
     18be found first.  (One consequence of this is that 'script/gem list' 
     19will show all of the gems installed in both libraries.) 
    2020 
    2121== FEATURES/PROBLEMS: 
     
    3030== SYNOPSIS: 
    3131 
    32 To manage your app's gems, use the script/gem command (which is just a 
    33 wrapper for the standard gem command and uses the same syntax).  For 
    34 example: 
     32To manage your app's gems, use the script/gem command (which is 
     33just a wrapper for the standard gem command and uses the same 
     34syntax).  For example: 
    3535 
    3636    $ script/gem install xml-simple 
     
    3939        Successfully installed xml-simple-1.0.11 
    4040 
    41 Gems are installed without RDoc and ri documentation; other than that, the  
    42 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.)   
     41Gems are installed without RDoc and ri documentation; other than 
     42that, the behavior should be the same as the standard gem command. 
     43(Due to a bug in some versions of RubyGems, the first attempted 
     44installation may fail; subsequent attempts should succeed.) 
    4545 
    4646== REQUIREMENTS: 
    4747 
    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, you 
    50 can copy the contents of config/preinitializer.rb into config/environment.rb, 
    51 just prior to the call to Rails::Initializer.run. 
     48FrozenGems assumes Rails 2.0 or greater, due to its dependency on 
     49preinitializer.rb.  If you're using an earlier version of Rails, 
     50you can copy the contents of config/preinitializer.rb into 
     51config/environment.rb, just prior to the call to Rails::Initializer.run. 
    5252 
    5353== INSTALL: 
  • plugins/frozen_gems/trunk/test/test_frozen_gems_generator.rb

    r258 r260  
    11require 'test/unit' 
    22 
    3 class FrozenGemsTest < Test::Unit::TestCase 
     3class TestFrozenGemsGenerator < Test::Unit::TestCase 
    44  # Replace this with your real tests. 
    5   def test_this_plugin 
     5  def test_this_generator 
    66    flunk 
    77  end