ore 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.md +22 -0
 - data/README.md +11 -11
 - data/data/ore/templates/base/{_gemfile.erb → _gemfile_development.erb} +0 -0
 - data/data/ore/templates/base/gemspec.yml.erb +2 -2
 - data/data/ore/templates/bundler/Gemfile.erb +9 -1
 - data/data/ore/templates/jeweler_tasks/{_gemfile.erb → _gemfile_development.erb} +0 -0
 - data/data/ore/templates/jeweler_tasks/template.yml +1 -1
 - data/data/ore/templates/ore_tasks/{_gemfile.erb → _gemfile_development.erb} +0 -0
 - data/data/ore/templates/ore_tasks/template.yml +3 -0
 - data/data/ore/templates/rdoc/.document +4 -0
 - data/data/ore/templates/rdoc/_gitignore.erb +1 -0
 - data/data/ore/templates/rdoc/_tasks.erb +1 -2
 - data/data/ore/templates/rdoc/template.yml +5 -0
 - data/data/ore/templates/rspec/{_gemfile.erb → _gemfile_development.erb} +0 -0
 - data/data/ore/templates/test_unit/_tasks.erb +6 -0
 - data/data/ore/templates/test_unit/template.yml +2 -0
 - data/data/ore/templates/test_unit/test/test_[name].rb.erb +8 -1
 - data/data/ore/templates/{base → yard}/.document +0 -0
 - data/data/ore/templates/yard/{_gemfile.erb → _gemfile_development.erb} +0 -0
 - data/data/ore/templates/yard/_tasks.erb +1 -0
 - data/gemspec.yml +3 -3
 - data/lib/ore/generator.rb +56 -15
 - data/lib/ore/template/helpers.rb +19 -2
 - data/spec/generator_spec.rb +108 -0
 - data/spec/helpers/generator.rb +24 -7
 - metadata +16 -11
 
    
        data/ChangeLog.md
    CHANGED
    
    | 
         @@ -1,3 +1,25 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ### 0.7.2 / 2011-02-26
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            * Require ore-core ~> 0.1, >= 0.1.4.
         
     | 
| 
      
 4 
     | 
    
         
            +
            * Added {Ore::Generator.template?}.
         
     | 
| 
      
 5 
     | 
    
         
            +
            * Added {Ore::Generator#enabled_templates}.
         
     | 
| 
      
 6 
     | 
    
         
            +
            * Added {Ore::Generator#disabled_templates}.
         
     | 
| 
      
 7 
     | 
    
         
            +
            * Added {Ore::Generator#templates}.
         
     | 
| 
      
 8 
     | 
    
         
            +
            * Added {Ore::Generator#generated_dirs}.
         
     | 
| 
      
 9 
     | 
    
         
            +
            * Added {Ore::Generator#generated_files}.
         
     | 
| 
      
 10 
     | 
    
         
            +
            * Allow {Ore::Template::Helpers#includes} to yield output.
         
     | 
| 
      
 11 
     | 
    
         
            +
            * Allow the `bundler` template to load `gemfile_prelude`, `gemfile` and
         
     | 
| 
      
 12 
     | 
    
         
            +
              `gemfile_development` includes.
         
     | 
| 
      
 13 
     | 
    
         
            +
            * Allow `--rdoc` to disable `--yard`.
         
     | 
| 
      
 14 
     | 
    
         
            +
            * Set `@markup` to `:rdoc` in the `rdoc` template.
         
     | 
| 
      
 15 
     | 
    
         
            +
            * Added separate `.document` files for the `rdoc` and `yard` templates.
         
     | 
| 
      
 16 
     | 
    
         
            +
            * Added the `doc` alias-task to the `rdoc` and `yard` templates.
         
     | 
| 
      
 17 
     | 
    
         
            +
            * Added `html/` to the generated `.gitignore` file in the `rdoc` template.
         
     | 
| 
      
 18 
     | 
    
         
            +
            * Allow `--test-unit` to disable `--rspec`.
         
     | 
| 
      
 19 
     | 
    
         
            +
            * Fixed the `test_unit` template.
         
     | 
| 
      
 20 
     | 
    
         
            +
            * Added a `Rakefile` task to the `test_unit` template.
         
     | 
| 
      
 21 
     | 
    
         
            +
            * Define options for installed templates as well.
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
       1 
23 
     | 
    
         
             
            ### 0.7.1 / 2011-02-20
         
     | 
| 
       2 
24 
     | 
    
         | 
| 
       3 
25 
     | 
    
         
             
            * Added {Ore::Generator#generate_dir}.
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -43,19 +43,19 @@ the developer to keep all of the project information in a single YAML file. 
     | 
|
| 
       43 
43 
     | 
    
         | 
| 
       44 
44 
     | 
    
         
             
            ## Requirements
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
            * [ore-core](http://github.com/ruby-ore/ore-core) ~> 0.1, >= 0.1. 
     | 
| 
      
 46 
     | 
    
         
            +
            * [ore-core](http://github.com/ruby-ore/ore-core) ~> 0.1, >= 0.1.4
         
     | 
| 
       47 
47 
     | 
    
         
             
            * [thor](http://github.com/wycats/thor) ~> 0.14.3
         
     | 
| 
       48 
48 
     | 
    
         | 
| 
       49 
49 
     | 
    
         
             
            ## Install
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                $ gem install ore
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
       53 
     | 
    
         
            -
            ## Example gemspec.yml  
     | 
| 
      
 53 
     | 
    
         
            +
            ## Example gemspec.yml File
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
       55 
55 
     | 
    
         
             
            The `gemspec.yml` file used to build Ore:
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
       57 
57 
     | 
    
         
             
                name: ore
         
     | 
| 
       58 
     | 
    
         
            -
                version: 0.7. 
     | 
| 
      
 58 
     | 
    
         
            +
                version: 0.7.2
         
     | 
| 
       59 
59 
     | 
    
         
             
                summary: Mine raw RubyGems from YAML.
         
     | 
| 
       60 
60 
     | 
    
         
             
                description:
         
     | 
| 
       61 
61 
     | 
    
         
             
                  Ore is a simple RubyGem building solution. Ore handles the
         
     | 
| 
         @@ -72,7 +72,7 @@ The `gemspec.yml` file used to build Ore: 
     | 
|
| 
       72 
72 
     | 
    
         
             
                  **************************************************************************
         
     | 
| 
       73 
73 
     | 
    
         
             
                  Generate a new Ruby library:
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
                      $ mine my_library --rspec
         
     | 
| 
      
 75 
     | 
    
         
            +
                      $ mine my_library --rspec --yard
         
     | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
77 
     | 
    
         
             
                  Build the library:
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
         @@ -85,7 +85,7 @@ The `gemspec.yml` file used to build Ore: 
     | 
|
| 
       85 
85 
     | 
    
         
             
                  **************************************************************************
         
     | 
| 
       86 
86 
     | 
    
         | 
| 
       87 
87 
     | 
    
         
             
                dependencies:
         
     | 
| 
       88 
     | 
    
         
            -
                  ore-core: ~> 0.1, >= 0.1. 
     | 
| 
      
 88 
     | 
    
         
            +
                  ore-core: ~> 0.1, >= 0.1.4
         
     | 
| 
       89 
89 
     | 
    
         
             
                  thor: ~> 0.14.3
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
91 
     | 
    
         
             
                development_dependencies:
         
     | 
| 
         @@ -100,7 +100,7 @@ For a complete refrence to the `gemspec.yml` file, please see the 
     | 
|
| 
       100 
100 
     | 
    
         | 
| 
       101 
101 
     | 
    
         
             
            Install a custom template:
         
     | 
| 
       102 
102 
     | 
    
         | 
| 
       103 
     | 
    
         
            -
                $ ore install  
     | 
| 
      
 103 
     | 
    
         
            +
                $ ore install git://github.com/ruby-ore/mini_test.git
         
     | 
| 
       104 
104 
     | 
    
         | 
| 
       105 
105 
     | 
    
         
             
            List installed templates:
         
     | 
| 
       106 
106 
     | 
    
         | 
| 
         @@ -108,19 +108,19 @@ List installed templates: 
     | 
|
| 
       108 
108 
     | 
    
         | 
| 
       109 
109 
     | 
    
         
             
            Remove a previously installed template:
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
     | 
    
         
            -
                $ ore remove  
     | 
| 
      
 111 
     | 
    
         
            +
                $ ore remove mini_test
         
     | 
| 
       112 
112 
     | 
    
         | 
| 
       113 
113 
     | 
    
         
             
            Generate a new project:
         
     | 
| 
       114 
114 
     | 
    
         | 
| 
       115 
     | 
    
         
            -
                $ mine  
     | 
| 
      
 115 
     | 
    
         
            +
                $ mine my_project
         
     | 
| 
       116 
116 
     | 
    
         | 
| 
       117 
117 
     | 
    
         
             
            Generate a new customized project:
         
     | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
                $ mine  
     | 
| 
      
 119 
     | 
    
         
            +
                $ mine my_project --bundler --rspec --yard
         
     | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         
             
            Generate a new project using previously installed templates:
         
     | 
| 
       122 
122 
     | 
    
         | 
| 
       123 
     | 
    
         
            -
                $ mine  
     | 
| 
      
 123 
     | 
    
         
            +
                $ mine my_project --bundler --rspec --yard --template mini_test
         
     | 
| 
       124 
124 
     | 
    
         | 
| 
       125 
125 
     | 
    
         
             
            Add default generator options to `~/.ore/options.yml`:
         
     | 
| 
       126 
126 
     | 
    
         | 
| 
         @@ -132,7 +132,7 @@ Add default generator options to `~/.ore/options.yml`: 
     | 
|
| 
       132 
132 
     | 
    
         
             
                  - Alice
         
     | 
| 
       133 
133 
     | 
    
         
             
                email: alice@example.com
         
     | 
| 
       134 
134 
     | 
    
         | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
      
 135 
     | 
    
         
            +
            Build a `.gem` file in the `pkg/` directory of a project:
         
     | 
| 
       136 
136 
     | 
    
         | 
| 
       137 
137 
     | 
    
         
             
                $ ore gem
         
     | 
| 
       138 
138 
     | 
    
         | 
| 
         
            File without changes
         
     | 
| 
         @@ -18,9 +18,9 @@ email: <%= @email %> 
     | 
|
| 
       18 
18 
     | 
    
         
             
            homepage: <%= @homepage %>
         
     | 
| 
       19 
19 
     | 
    
         
             
            <%= includes :gemspec, '' -%>
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
            <%-  
     | 
| 
      
 21 
     | 
    
         
            +
            <%- includes(:dependencies,'') do |dependencies| -%>
         
     | 
| 
       22 
22 
     | 
    
         
             
            dependencies:
         
     | 
| 
       23 
     | 
    
         
            -
            <%= 
     | 
| 
      
 23 
     | 
    
         
            +
            <%=   dependencies %>
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
            <%- end -%>
         
     | 
| 
       26 
26 
     | 
    
         
             
            development_dependencies:
         
     | 
| 
         @@ -1,8 +1,16 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            source :rubygems
         
     | 
| 
      
 2 
     | 
    
         
            +
            <%- includes(:gemfile_prelude,'') do |prelude| -%>
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            <%= prelude %>
         
     | 
| 
      
 5 
     | 
    
         
            +
            <%- end -%>
         
     | 
| 
       2 
6 
     | 
    
         | 
| 
       3 
7 
     | 
    
         
             
            gemspec
         
     | 
| 
       4 
8 
     | 
    
         | 
| 
      
 9 
     | 
    
         
            +
            <%- includes(:gemfile,'') do |gemfile| -%>
         
     | 
| 
      
 10 
     | 
    
         
            +
            <%= gemfile %>
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            <%- end -%>
         
     | 
| 
       5 
13 
     | 
    
         
             
            group :development do
         
     | 
| 
       6 
14 
     | 
    
         
             
              gem 'rake',     '~> 0.8.7'
         
     | 
| 
       7 
     | 
    
         
            -
            <%= includes : 
     | 
| 
      
 15 
     | 
    
         
            +
            <%= includes :gemfile_development, '' -%>
         
     | 
| 
       8 
16 
     | 
    
         
             
            end
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            html/
         
     | 
| 
         
            File without changes
         
     | 
| 
         @@ -1,5 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'helper'
         
     | 
| 
       2 
2 
     | 
    
         
             
            require '<%= @namespace_path %>'
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
            class <%= @namespace %> < Test::Unit::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
            class Test<%= @namespace %> < Test::Unit::TestCase
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              def test_version
         
     | 
| 
      
 7 
     | 
    
         
            +
                version = <%= @namespace %>.const_get('VERSION')
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                assert(!version.empty?, 'should have a VERSION constant')
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       5 
12 
     | 
    
         
             
            end
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     | 
    
        data/gemspec.yml
    CHANGED
    
    | 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            name: ore
         
     | 
| 
       2 
     | 
    
         
            -
            version: 0.7. 
     | 
| 
      
 2 
     | 
    
         
            +
            version: 0.7.2
         
     | 
| 
       3 
3 
     | 
    
         
             
            summary: Mine raw RubyGems from YAML
         
     | 
| 
       4 
4 
     | 
    
         
             
            description:
         
     | 
| 
       5 
5 
     | 
    
         
             
              Ore is a simple RubyGem building solution. Ore handles the
         
     | 
| 
         @@ -16,7 +16,7 @@ post_install_message: | 
     | 
|
| 
       16 
16 
     | 
    
         
             
              **************************************************************************
         
     | 
| 
       17 
17 
     | 
    
         
             
              Generate a new Ruby library:
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
                  $ mine my_library --rspec
         
     | 
| 
      
 19 
     | 
    
         
            +
                  $ mine my_library --rspec --yard
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
              Build the library:
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
         @@ -29,7 +29,7 @@ post_install_message: | 
     | 
|
| 
       29 
29 
     | 
    
         
             
              **************************************************************************
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
            dependencies:
         
     | 
| 
       32 
     | 
    
         
            -
              ore-core: ~> 0.1, >= 0.1. 
     | 
| 
      
 32 
     | 
    
         
            +
              ore-core: ~> 0.1, >= 0.1.4
         
     | 
| 
       33 
33 
     | 
    
         
             
              thor: ~> 0.14.3
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
       35 
35 
     | 
    
         
             
            development_dependencies:
         
     | 
    
        data/lib/ore/generator.rb
    CHANGED
    
    | 
         @@ -23,6 +23,21 @@ module Ore 
     | 
|
| 
       23 
23 
     | 
    
         
             
                  @@templates ||= {}
         
     | 
| 
       24 
24 
     | 
    
         
             
                end
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
      
 26 
     | 
    
         
            +
                #
         
     | 
| 
      
 27 
     | 
    
         
            +
                # Determines whether a template was registered.
         
     | 
| 
      
 28 
     | 
    
         
            +
                #
         
     | 
| 
      
 29 
     | 
    
         
            +
                # @param [Symbol, String] name
         
     | 
| 
      
 30 
     | 
    
         
            +
                #   The name of the template.
         
     | 
| 
      
 31 
     | 
    
         
            +
                #
         
     | 
| 
      
 32 
     | 
    
         
            +
                # @return [Boolean]
         
     | 
| 
      
 33 
     | 
    
         
            +
                #   Specifies whether the template was registered.
         
     | 
| 
      
 34 
     | 
    
         
            +
                #
         
     | 
| 
      
 35 
     | 
    
         
            +
                # @since 0.7.2
         
     | 
| 
      
 36 
     | 
    
         
            +
                #
         
     | 
| 
      
 37 
     | 
    
         
            +
                def self.template?(name)
         
     | 
| 
      
 38 
     | 
    
         
            +
                  self.templates.has_key?(name.to_sym)
         
     | 
| 
      
 39 
     | 
    
         
            +
                end
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
       26 
41 
     | 
    
         
             
                #
         
     | 
| 
       27 
42 
     | 
    
         
             
                # Registers a template with the generator.
         
     | 
| 
       28 
43 
     | 
    
         
             
                #
         
     | 
| 
         @@ -84,6 +99,21 @@ module Ore 
     | 
|
| 
       84 
99 
     | 
    
         
             
                  class_option(name,options.merge(:default => defaults[name]))
         
     | 
| 
       85 
100 
     | 
    
         
             
                end
         
     | 
| 
       86 
101 
     | 
    
         | 
| 
      
 102 
     | 
    
         
            +
                # The enabled templates.
         
     | 
| 
      
 103 
     | 
    
         
            +
                attr_reader :enabled_templates
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
                # The disabled templates.
         
     | 
| 
      
 106 
     | 
    
         
            +
                attr_reader :disabled_templates
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
                # The loaded templates.
         
     | 
| 
      
 109 
     | 
    
         
            +
                attr_reader :templates
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
                # The generated directories.
         
     | 
| 
      
 112 
     | 
    
         
            +
                attr_reader :generated_dirs
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                # The generated files.
         
     | 
| 
      
 115 
     | 
    
         
            +
                attr_reader :generated_files
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
       87 
117 
     | 
    
         
             
                #
         
     | 
| 
       88 
118 
     | 
    
         
             
                # Generates a new project.
         
     | 
| 
       89 
119 
     | 
    
         
             
                #
         
     | 
| 
         @@ -115,19 +145,17 @@ module Ore 
     | 
|
| 
       115 
145 
     | 
    
         
             
                defaults.merge!(Config.default_options)
         
     | 
| 
       116 
146 
     | 
    
         | 
| 
       117 
147 
     | 
    
         
             
                # register builtin templates
         
     | 
| 
       118 
     | 
    
         
            -
                Config.builtin_templates  
     | 
| 
       119 
     | 
    
         
            -
             
     | 
| 
      
 148 
     | 
    
         
            +
                Config.builtin_templates { |path| register_template(path) }
         
     | 
| 
      
 149 
     | 
    
         
            +
                # register installed templates
         
     | 
| 
      
 150 
     | 
    
         
            +
                Config.installed_templates { |path| register_template(path) }
         
     | 
| 
       120 
151 
     | 
    
         | 
| 
      
 152 
     | 
    
         
            +
                # define options for all templates
         
     | 
| 
      
 153 
     | 
    
         
            +
                templates.each_key do |name|
         
     | 
| 
       121 
154 
     | 
    
         
             
                  # skip the `base` template
         
     | 
| 
       122 
155 
     | 
    
         
             
                  next if name == :base
         
     | 
| 
       123 
156 
     | 
    
         | 
| 
       124 
     | 
    
         
            -
                   
     | 
| 
       125 
     | 
    
         
            -
             
     | 
| 
       126 
     | 
    
         
            -
                end
         
     | 
| 
       127 
     | 
    
         
            -
             
     | 
| 
       128 
     | 
    
         
            -
                # register installed templates
         
     | 
| 
       129 
     | 
    
         
            -
                Config.installed_templates do |path|
         
     | 
| 
       130 
     | 
    
         
            -
                  register_template(path)
         
     | 
| 
      
 157 
     | 
    
         
            +
                  class_option name, :type => :boolean,
         
     | 
| 
      
 158 
     | 
    
         
            +
                                     :default => defaults.fetch(name,false)
         
     | 
| 
       131 
159 
     | 
    
         
             
                end
         
     | 
| 
       132 
160 
     | 
    
         | 
| 
       133 
161 
     | 
    
         
             
                # disable the Thor namespace
         
     | 
| 
         @@ -229,7 +257,7 @@ module Ore 
     | 
|
| 
       229 
257 
     | 
    
         | 
| 
       230 
258 
     | 
    
         
             
                  return false if @enabled_templates.include?(name)
         
     | 
| 
       231 
259 
     | 
    
         | 
| 
       232 
     | 
    
         
            -
                  unless (template_dir =  
     | 
| 
      
 260 
     | 
    
         
            +
                  unless (template_dir = self.class.templates[name])
         
     | 
| 
       233 
261 
     | 
    
         
             
                    say "Unknown template #{name}", :red
         
     | 
| 
       234 
262 
     | 
    
         
             
                    exit -1
         
     | 
| 
       235 
263 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -264,7 +292,9 @@ module Ore 
     | 
|
| 
       264 
292 
     | 
    
         
             
                def disable_template(name)
         
     | 
| 
       265 
293 
     | 
    
         
             
                  name = name.to_sym
         
     | 
| 
       266 
294 
     | 
    
         | 
| 
       267 
     | 
    
         
            -
                   
     | 
| 
      
 295 
     | 
    
         
            +
                  return false if @disabled_templates.include?(name)
         
     | 
| 
      
 296 
     | 
    
         
            +
             
     | 
| 
      
 297 
     | 
    
         
            +
                  unless (template_dir = self.class.templates[name])
         
     | 
| 
       268 
298 
     | 
    
         
             
                    say "Unknown template #{name}", :red
         
     | 
| 
       269 
299 
     | 
    
         
             
                    exit -1
         
     | 
| 
       270 
300 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -273,6 +303,7 @@ module Ore 
     | 
|
| 
       273 
303 
     | 
    
         | 
| 
       274 
304 
     | 
    
         
             
                  @templates.delete_if { |template| template.path == template_dir }
         
     | 
| 
       275 
305 
     | 
    
         
             
                  @enabled_templates.delete(name)
         
     | 
| 
      
 306 
     | 
    
         
            +
                  @disabled_templates << name
         
     | 
| 
       276 
307 
     | 
    
         
             
                  return true
         
     | 
| 
       277 
308 
     | 
    
         
             
                end
         
     | 
| 
       278 
309 
     | 
    
         | 
| 
         @@ -281,13 +312,23 @@ module Ore 
     | 
|
| 
       281 
312 
     | 
    
         
             
                #
         
     | 
| 
       282 
313 
     | 
    
         
             
                def enable_templates!
         
     | 
| 
       283 
314 
     | 
    
         
             
                  @templates = []
         
     | 
| 
       284 
     | 
    
         
            -
                  @enabled_templates = []
         
     | 
| 
      
 315 
     | 
    
         
            +
                  @enabled_templates = Set[]
         
     | 
| 
      
 316 
     | 
    
         
            +
                  @disabled_templates = Set[]
         
     | 
| 
       285 
317 
     | 
    
         | 
| 
       286 
318 
     | 
    
         
             
                  enable_template :base
         
     | 
| 
       287 
319 
     | 
    
         | 
| 
       288 
     | 
    
         
            -
                  # enable  
     | 
| 
       289 
     | 
    
         
            -
                  self.class. 
     | 
| 
       290 
     | 
    
         
            -
                     
     | 
| 
      
 320 
     | 
    
         
            +
                  # enable the default templates first
         
     | 
| 
      
 321 
     | 
    
         
            +
                  self.class.defaults.each_key do |name|
         
     | 
| 
      
 322 
     | 
    
         
            +
                    if (self.class.template?(name) && options[name])
         
     | 
| 
      
 323 
     | 
    
         
            +
                      enable_template(name)
         
     | 
| 
      
 324 
     | 
    
         
            +
                    end
         
     | 
| 
      
 325 
     | 
    
         
            +
                  end
         
     | 
| 
      
 326 
     | 
    
         
            +
             
     | 
| 
      
 327 
     | 
    
         
            +
                  # enable the templates specified by option
         
     | 
| 
      
 328 
     | 
    
         
            +
                  options.each do |name,value|
         
     | 
| 
      
 329 
     | 
    
         
            +
                    if (self.class.template?(name) && value)
         
     | 
| 
      
 330 
     | 
    
         
            +
                      enable_template(name)
         
     | 
| 
      
 331 
     | 
    
         
            +
                    end
         
     | 
| 
       291 
332 
     | 
    
         
             
                  end
         
     | 
| 
       292 
333 
     | 
    
         | 
| 
       293 
334 
     | 
    
         
             
                  # enable any additionally specified templates
         
     | 
    
        data/lib/ore/template/helpers.rb
    CHANGED
    
    | 
         @@ -12,8 +12,18 @@ module Ore 
     | 
|
| 
       12 
12 
     | 
    
         
             
                  # @param [Symbol] name
         
     | 
| 
       13 
13 
     | 
    
         
             
                  #   The name of the include.
         
     | 
| 
       14 
14 
     | 
    
         
             
                  #
         
     | 
| 
       15 
     | 
    
         
            -
                  # @ 
     | 
| 
      
 15 
     | 
    
         
            +
                  # @param [String] separator
         
     | 
| 
      
 16 
     | 
    
         
            +
                  #   The separator to join includes with.
         
     | 
| 
      
 17 
     | 
    
         
            +
                  #
         
     | 
| 
      
 18 
     | 
    
         
            +
                  # @yield [output]
         
     | 
| 
      
 19 
     | 
    
         
            +
                  #   If a block is given, it will be passed the rendered include files.
         
     | 
| 
      
 20 
     | 
    
         
            +
                  #
         
     | 
| 
      
 21 
     | 
    
         
            +
                  # @yieldparam [String] output
         
     | 
| 
      
 22 
     | 
    
         
            +
                  #   The combined result of the rendered include files.
         
     | 
| 
      
 23 
     | 
    
         
            +
                  #
         
     | 
| 
      
 24 
     | 
    
         
            +
                  # @return [String, nil]
         
     | 
| 
       16 
25 
     | 
    
         
             
                  #   The combined result of the rendered include files.
         
     | 
| 
      
 26 
     | 
    
         
            +
                  #   If no includes were found, `nil` will be returned.
         
     | 
| 
       17 
27 
     | 
    
         
             
                  #
         
     | 
| 
       18 
28 
     | 
    
         
             
                  def includes(name,separator=$/)
         
     | 
| 
       19 
29 
     | 
    
         
             
                    name = name.to_sym
         
     | 
| 
         @@ -34,7 +44,14 @@ module Ore 
     | 
|
| 
       34 
44 
     | 
    
         
             
                      end
         
     | 
| 
       35 
45 
     | 
    
         
             
                    end
         
     | 
| 
       36 
46 
     | 
    
         | 
| 
       37 
     | 
    
         
            -
                     
     | 
| 
      
 47 
     | 
    
         
            +
                    output = output_buffer.join(separator)
         
     | 
| 
      
 48 
     | 
    
         
            +
                    output = nil if output.empty?
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
                    if (block_given? && output)
         
     | 
| 
      
 51 
     | 
    
         
            +
                      output = yield(output)
         
     | 
| 
      
 52 
     | 
    
         
            +
                    end
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
                    return output
         
     | 
| 
       38 
55 
     | 
    
         
             
                  end
         
     | 
| 
       39 
56 
     | 
    
         | 
| 
       40 
57 
     | 
    
         
             
                  #
         
     | 
    
        data/spec/generator_spec.rb
    CHANGED
    
    | 
         @@ -157,6 +157,48 @@ describe Generator do 
     | 
|
| 
       157 
157 
     | 
    
         
             
                end
         
     | 
| 
       158 
158 
     | 
    
         
             
              end
         
     | 
| 
       159 
159 
     | 
    
         | 
| 
      
 160 
     | 
    
         
            +
              context "rdoc" do
         
     | 
| 
      
 161 
     | 
    
         
            +
                let(:name) { 'rdoc-project' }
         
     | 
| 
      
 162 
     | 
    
         
            +
             
     | 
| 
      
 163 
     | 
    
         
            +
                before(:all) do
         
     | 
| 
      
 164 
     | 
    
         
            +
                  generate!(name, :rdoc => true)
         
     | 
| 
      
 165 
     | 
    
         
            +
                end
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                it "should disable the yard template" do
         
     | 
| 
      
 168 
     | 
    
         
            +
                  @generator.disabled_templates.should include(:yard)
         
     | 
| 
      
 169 
     | 
    
         
            +
                end
         
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
                it "should set @markup to :rdoc" do
         
     | 
| 
      
 172 
     | 
    
         
            +
                  @generator.instance_variable_get('@markup').should == :rdoc
         
     | 
| 
      
 173 
     | 
    
         
            +
                end
         
     | 
| 
      
 174 
     | 
    
         
            +
             
     | 
| 
      
 175 
     | 
    
         
            +
                it "should add 'html/' to the .gitignore file" do
         
     | 
| 
      
 176 
     | 
    
         
            +
                  gitignore.should include('html/')
         
     | 
| 
      
 177 
     | 
    
         
            +
                end
         
     | 
| 
      
 178 
     | 
    
         
            +
             
     | 
| 
      
 179 
     | 
    
         
            +
                it "should add a '.document' file" do
         
     | 
| 
      
 180 
     | 
    
         
            +
                  @path.join('.document').should be_file
         
     | 
| 
      
 181 
     | 
    
         
            +
                end
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
                context ".document" do
         
     | 
| 
      
 184 
     | 
    
         
            +
                  it "should include 'lib/**/*.rb'" do
         
     | 
| 
      
 185 
     | 
    
         
            +
                    document.should include('lib/**/*.rb')
         
     | 
| 
      
 186 
     | 
    
         
            +
                  end
         
     | 
| 
      
 187 
     | 
    
         
            +
             
     | 
| 
      
 188 
     | 
    
         
            +
                  it "should include 'README.rdoc'" do
         
     | 
| 
      
 189 
     | 
    
         
            +
                    document.should include('README.rdoc')
         
     | 
| 
      
 190 
     | 
    
         
            +
                  end
         
     | 
| 
      
 191 
     | 
    
         
            +
             
     | 
| 
      
 192 
     | 
    
         
            +
                  it "should include 'ChangeLog.rdoc'" do
         
     | 
| 
      
 193 
     | 
    
         
            +
                    document.should include('ChangeLog.rdoc')
         
     | 
| 
      
 194 
     | 
    
         
            +
                  end
         
     | 
| 
      
 195 
     | 
    
         
            +
             
     | 
| 
      
 196 
     | 
    
         
            +
                  it "should include 'LICENSE.txt'" do
         
     | 
| 
      
 197 
     | 
    
         
            +
                    document.should include('LICENSE.txt')
         
     | 
| 
      
 198 
     | 
    
         
            +
                  end
         
     | 
| 
      
 199 
     | 
    
         
            +
                end
         
     | 
| 
      
 200 
     | 
    
         
            +
              end
         
     | 
| 
      
 201 
     | 
    
         
            +
             
     | 
| 
       160 
202 
     | 
    
         
             
              context "yard" do
         
     | 
| 
       161 
203 
     | 
    
         
             
                let(:name) { 'yard-project' }
         
     | 
| 
       162 
204 
     | 
    
         | 
| 
         @@ -164,6 +206,10 @@ describe Generator do 
     | 
|
| 
       164 
206 
     | 
    
         
             
                  generate!(name, :yard => true)
         
     | 
| 
       165 
207 
     | 
    
         
             
                end
         
     | 
| 
       166 
208 
     | 
    
         | 
| 
      
 209 
     | 
    
         
            +
                it "should disable the rdoc template" do
         
     | 
| 
      
 210 
     | 
    
         
            +
                  @generator.disabled_templates.should include(:rdoc)
         
     | 
| 
      
 211 
     | 
    
         
            +
                end
         
     | 
| 
      
 212 
     | 
    
         
            +
             
     | 
| 
       167 
213 
     | 
    
         
             
                it "should add a .yardopts file" do
         
     | 
| 
       168 
214 
     | 
    
         
             
                  @path.join('.yardopts').should be_file
         
     | 
| 
       169 
215 
     | 
    
         
             
                end
         
     | 
| 
         @@ -171,6 +217,32 @@ describe Generator do 
     | 
|
| 
       171 
217 
     | 
    
         
             
                it "should set 'has_yard' to 'true' in the gemspec.yml file" do
         
     | 
| 
       172 
218 
     | 
    
         
             
                  @gemspec['has_yard'].should == true
         
     | 
| 
       173 
219 
     | 
    
         
             
                end
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
                it "should add a '.document' file" do
         
     | 
| 
      
 222 
     | 
    
         
            +
                  @path.join('.document').should be_file
         
     | 
| 
      
 223 
     | 
    
         
            +
                end
         
     | 
| 
      
 224 
     | 
    
         
            +
             
     | 
| 
      
 225 
     | 
    
         
            +
                context ".document" do
         
     | 
| 
      
 226 
     | 
    
         
            +
                  it "should not include 'lib/**/*.rb'" do
         
     | 
| 
      
 227 
     | 
    
         
            +
                    document.should_not include('lib/**/*.rb')
         
     | 
| 
      
 228 
     | 
    
         
            +
                  end
         
     | 
| 
      
 229 
     | 
    
         
            +
             
     | 
| 
      
 230 
     | 
    
         
            +
                  it "should include a '-' separator for non-code files" do
         
     | 
| 
      
 231 
     | 
    
         
            +
                    document.should include('-')
         
     | 
| 
      
 232 
     | 
    
         
            +
                  end
         
     | 
| 
      
 233 
     | 
    
         
            +
             
     | 
| 
      
 234 
     | 
    
         
            +
                  it "should not include 'README.*'" do
         
     | 
| 
      
 235 
     | 
    
         
            +
                    document.grep(/^README\./).should be_empty
         
     | 
| 
      
 236 
     | 
    
         
            +
                  end
         
     | 
| 
      
 237 
     | 
    
         
            +
             
     | 
| 
      
 238 
     | 
    
         
            +
                  it "should include 'ChangeLog.*'" do
         
     | 
| 
      
 239 
     | 
    
         
            +
                    document.should include('ChangeLog.*')
         
     | 
| 
      
 240 
     | 
    
         
            +
                  end
         
     | 
| 
      
 241 
     | 
    
         
            +
             
     | 
| 
      
 242 
     | 
    
         
            +
                  it "should include 'LICENSE.txt'" do
         
     | 
| 
      
 243 
     | 
    
         
            +
                    document.should include('LICENSE.txt')
         
     | 
| 
      
 244 
     | 
    
         
            +
                  end
         
     | 
| 
      
 245 
     | 
    
         
            +
                end
         
     | 
| 
       174 
246 
     | 
    
         
             
              end
         
     | 
| 
       175 
247 
     | 
    
         | 
| 
       176 
248 
     | 
    
         
             
              context "yard with markdown" do
         
     | 
| 
         @@ -225,6 +297,30 @@ describe Generator do 
     | 
|
| 
       225 
297 
     | 
    
         
             
                end
         
     | 
| 
       226 
298 
     | 
    
         
             
              end
         
     | 
| 
       227 
299 
     | 
    
         | 
| 
      
 300 
     | 
    
         
            +
              context "test_unit" do
         
     | 
| 
      
 301 
     | 
    
         
            +
                let(:name) { 'test_unit_project' }
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
                before(:all) do
         
     | 
| 
      
 304 
     | 
    
         
            +
                  generate!(name, :test_unit => true)
         
     | 
| 
      
 305 
     | 
    
         
            +
                end
         
     | 
| 
      
 306 
     | 
    
         
            +
             
     | 
| 
      
 307 
     | 
    
         
            +
                it "should disable the rspec template" do
         
     | 
| 
      
 308 
     | 
    
         
            +
                  @generator.disabled_templates.should include(:rspec)
         
     | 
| 
      
 309 
     | 
    
         
            +
                end
         
     | 
| 
      
 310 
     | 
    
         
            +
             
     | 
| 
      
 311 
     | 
    
         
            +
                it "should create the test/ directory" do
         
     | 
| 
      
 312 
     | 
    
         
            +
                  @path.join('test').should be_directory
         
     | 
| 
      
 313 
     | 
    
         
            +
                end
         
     | 
| 
      
 314 
     | 
    
         
            +
             
     | 
| 
      
 315 
     | 
    
         
            +
                it "should create the test/helper.rb file" do
         
     | 
| 
      
 316 
     | 
    
         
            +
                  @path.join('test','helper.rb').should be_file
         
     | 
| 
      
 317 
     | 
    
         
            +
                end
         
     | 
| 
      
 318 
     | 
    
         
            +
             
     | 
| 
      
 319 
     | 
    
         
            +
                it "should add a single test_*.rb file" do
         
     | 
| 
      
 320 
     | 
    
         
            +
                  @path.join('test','test_test_unit_project.rb').should be_file
         
     | 
| 
      
 321 
     | 
    
         
            +
                end
         
     | 
| 
      
 322 
     | 
    
         
            +
              end
         
     | 
| 
      
 323 
     | 
    
         
            +
             
     | 
| 
       228 
324 
     | 
    
         
             
              context "rspec" do
         
     | 
| 
       229 
325 
     | 
    
         
             
                let(:name) { 'rspec_project' }
         
     | 
| 
       230 
326 
     | 
    
         | 
| 
         @@ -232,6 +328,10 @@ describe Generator do 
     | 
|
| 
       232 
328 
     | 
    
         
             
                  generate!(name, :rspec => true)
         
     | 
| 
       233 
329 
     | 
    
         
             
                end
         
     | 
| 
       234 
330 
     | 
    
         | 
| 
      
 331 
     | 
    
         
            +
                it "should disable the test_unit template" do
         
     | 
| 
      
 332 
     | 
    
         
            +
                  @generator.disabled_templates.should include(:test_unit)
         
     | 
| 
      
 333 
     | 
    
         
            +
                end
         
     | 
| 
      
 334 
     | 
    
         
            +
             
     | 
| 
       235 
335 
     | 
    
         
             
                it "should not create the test/ directory" do
         
     | 
| 
       236 
336 
     | 
    
         
             
                  @path.join('test').should_not be_directory
         
     | 
| 
       237 
337 
     | 
    
         
             
                end
         
     | 
| 
         @@ -276,6 +376,10 @@ describe Generator do 
     | 
|
| 
       276 
376 
     | 
    
         
             
                  generate!(name, :jeweler_tasks => true)
         
     | 
| 
       277 
377 
     | 
    
         
             
                end
         
     | 
| 
       278 
378 
     | 
    
         | 
| 
      
 379 
     | 
    
         
            +
                it "should disable the ore_tasks template" do
         
     | 
| 
      
 380 
     | 
    
         
            +
                  @generator.disabled_templates.should include(:ore_tasks)
         
     | 
| 
      
 381 
     | 
    
         
            +
                end
         
     | 
| 
      
 382 
     | 
    
         
            +
             
     | 
| 
       279 
383 
     | 
    
         
             
                it "should add 'jeweler' as a development dependency" do
         
     | 
| 
       280 
384 
     | 
    
         
             
                  @gemspec['development_dependencies'].should have_key('jeweler')
         
     | 
| 
       281 
385 
     | 
    
         
             
                end
         
     | 
| 
         @@ -300,6 +404,10 @@ describe Generator do 
     | 
|
| 
       300 
404 
     | 
    
         
             
                  generate!(name, :ore_tasks => true)
         
     | 
| 
       301 
405 
     | 
    
         
             
                end
         
     | 
| 
       302 
406 
     | 
    
         | 
| 
      
 407 
     | 
    
         
            +
                it "should disable the jeweler_tasks template" do
         
     | 
| 
      
 408 
     | 
    
         
            +
                  @generator.disabled_templates.should include(:jeweler_tasks)
         
     | 
| 
      
 409 
     | 
    
         
            +
                end
         
     | 
| 
      
 410 
     | 
    
         
            +
             
     | 
| 
       303 
411 
     | 
    
         
             
                it "should omit 'ore-core' as a development dependency" do
         
     | 
| 
       304 
412 
     | 
    
         
             
                  @gemspec['development_dependencies'].should_not have_key('ore-core')
         
     | 
| 
       305 
413 
     | 
    
         
             
                end
         
     | 
    
        data/spec/helpers/generator.rb
    CHANGED
    
    | 
         @@ -10,10 +10,11 @@ module Helpers 
     | 
|
| 
       10 
10 
     | 
    
         
             
                def generate!(path,options={})
         
     | 
| 
       11 
11 
     | 
    
         
             
                  path = File.join(ROOT,path)
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
                  Ore::Generator.new(
         
     | 
| 
      
 13 
     | 
    
         
            +
                  @generator = Ore::Generator.new(
         
     | 
| 
       14 
14 
     | 
    
         
             
                    [path],
         
     | 
| 
       15 
15 
     | 
    
         
             
                    options.merge(:quiet => true)
         
     | 
| 
       16 
     | 
    
         
            -
                  ) 
     | 
| 
      
 16 
     | 
    
         
            +
                  )
         
     | 
| 
      
 17 
     | 
    
         
            +
                  @generator.invoke_all
         
     | 
| 
       17 
18 
     | 
    
         | 
| 
       18 
19 
     | 
    
         
             
                  @path = Pathname.new(path)
         
     | 
| 
       19 
20 
     | 
    
         
             
                  @gemspec = YAML.load_file(@path.join('gemspec.yml'))
         
     | 
| 
         @@ -27,16 +28,32 @@ module Helpers 
     | 
|
| 
       27 
28 
     | 
    
         
             
                  @path.join('.yardopts').read
         
     | 
| 
       28 
29 
     | 
    
         
             
                end
         
     | 
| 
       29 
30 
     | 
    
         | 
| 
      
 31 
     | 
    
         
            +
                def document
         
     | 
| 
      
 32 
     | 
    
         
            +
                  unless @document
         
     | 
| 
      
 33 
     | 
    
         
            +
                    @document = []
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                    @path.join('.document').read.each_line do |line|
         
     | 
| 
      
 36 
     | 
    
         
            +
                      unless (line.empty? && line =~ /\s*\#/)
         
     | 
| 
      
 37 
     | 
    
         
            +
                        @document << line.strip
         
     | 
| 
      
 38 
     | 
    
         
            +
                      end
         
     | 
| 
      
 39 
     | 
    
         
            +
                    end
         
     | 
| 
      
 40 
     | 
    
         
            +
                  end
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
                  return @document
         
     | 
| 
      
 43 
     | 
    
         
            +
                end
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
       30 
45 
     | 
    
         
             
                def gitignore
         
     | 
| 
       31 
     | 
    
         
            -
                   
     | 
| 
      
 46 
     | 
    
         
            +
                  unless @gitignore
         
     | 
| 
      
 47 
     | 
    
         
            +
                    @gitignore = []
         
     | 
| 
       32 
48 
     | 
    
         | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
      
 49 
     | 
    
         
            +
                    @path.join('.gitignore').read.each_line do |line|
         
     | 
| 
      
 50 
     | 
    
         
            +
                      unless (line.empty? && line =~ /\s*\#/)
         
     | 
| 
      
 51 
     | 
    
         
            +
                        @gitignore << line.strip
         
     | 
| 
      
 52 
     | 
    
         
            +
                      end
         
     | 
| 
       36 
53 
     | 
    
         
             
                    end
         
     | 
| 
       37 
54 
     | 
    
         
             
                  end
         
     | 
| 
       38 
55 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
                  return  
     | 
| 
      
 56 
     | 
    
         
            +
                  return @gitignore
         
     | 
| 
       40 
57 
     | 
    
         
             
                end
         
     | 
| 
       41 
58 
     | 
    
         | 
| 
       42 
59 
     | 
    
         
             
                def cleanup!
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            name: ore
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
4 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       5 
     | 
    
         
            -
              version: 0.7. 
     | 
| 
      
 5 
     | 
    
         
            +
              version: 0.7.2
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors: 
         
     | 
| 
       8 
8 
     | 
    
         
             
            - Postmodern
         
     | 
| 
         @@ -10,7 +10,7 @@ autorequire: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
            date: 2011-02- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2011-02-26 00:00:00 -08:00
         
     | 
| 
       14 
14 
     | 
    
         
             
            default_executable: ore
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -24,7 +24,7 @@ dependencies: 
     | 
|
| 
       24 
24 
     | 
    
         
             
                    version: "0.1"
         
     | 
| 
       25 
25 
     | 
    
         
             
                - - ">="
         
     | 
| 
       26 
26 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       27 
     | 
    
         
            -
                    version: 0.1. 
     | 
| 
      
 27 
     | 
    
         
            +
                    version: 0.1.4
         
     | 
| 
       28 
28 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       29 
29 
     | 
    
         
             
              version_requirements: *id001
         
     | 
| 
       30 
30 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -94,7 +94,6 @@ files: 
     | 
|
| 
       94 
94 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       95 
95 
     | 
    
         
             
            - bin/mine
         
     | 
| 
       96 
96 
     | 
    
         
             
            - bin/ore
         
     | 
| 
       97 
     | 
    
         
            -
            - data/ore/templates/base/.document
         
     | 
| 
       98 
97 
     | 
    
         
             
            - data/ore/templates/base/.gitignore.erb
         
     | 
| 
       99 
98 
     | 
    
         
             
            - data/ore/templates/base/ChangeLog.md.erb
         
     | 
| 
       100 
99 
     | 
    
         
             
            - data/ore/templates/base/ChangeLog.rdoc.erb
         
     | 
| 
         @@ -105,7 +104,7 @@ files: 
     | 
|
| 
       105 
104 
     | 
    
         
             
            - data/ore/templates/base/README.tt.erb
         
     | 
| 
       106 
105 
     | 
    
         
             
            - data/ore/templates/base/Rakefile.erb
         
     | 
| 
       107 
106 
     | 
    
         
             
            - data/ore/templates/base/[name].gemspec.erb
         
     | 
| 
       108 
     | 
    
         
            -
            - data/ore/templates/base/ 
     | 
| 
      
 107 
     | 
    
         
            +
            - data/ore/templates/base/_gemfile_development.erb
         
     | 
| 
       109 
108 
     | 
    
         
             
            - data/ore/templates/base/gemspec.yml.erb
         
     | 
| 
       110 
109 
     | 
    
         
             
            - data/ore/templates/base/lib/[namespace_path].rb.erb
         
     | 
| 
       111 
110 
     | 
    
         
             
            - data/ore/templates/base/lib/[namespace_path]/version.rb.erb
         
     | 
| 
         @@ -118,27 +117,33 @@ files: 
     | 
|
| 
       118 
117 
     | 
    
         
             
            - data/ore/templates/bundler/template.yml
         
     | 
| 
       119 
118 
     | 
    
         
             
            - data/ore/templates/gem_test/.gemtest
         
     | 
| 
       120 
119 
     | 
    
         
             
            - data/ore/templates/jeweler_tasks/_development_dependencies.erb
         
     | 
| 
       121 
     | 
    
         
            -
            - data/ore/templates/jeweler_tasks/ 
     | 
| 
      
 120 
     | 
    
         
            +
            - data/ore/templates/jeweler_tasks/_gemfile_development.erb
         
     | 
| 
       122 
121 
     | 
    
         
             
            - data/ore/templates/jeweler_tasks/_tasks.erb
         
     | 
| 
       123 
122 
     | 
    
         
             
            - data/ore/templates/jeweler_tasks/template.yml
         
     | 
| 
       124 
123 
     | 
    
         
             
            - data/ore/templates/ore_tasks/_development_dependencies.erb
         
     | 
| 
       125 
     | 
    
         
            -
            - data/ore/templates/ore_tasks/ 
     | 
| 
      
 124 
     | 
    
         
            +
            - data/ore/templates/ore_tasks/_gemfile_development.erb
         
     | 
| 
       126 
125 
     | 
    
         
             
            - data/ore/templates/ore_tasks/_tasks.erb
         
     | 
| 
       127 
126 
     | 
    
         
             
            - data/ore/templates/ore_tasks/template.yml
         
     | 
| 
      
 127 
     | 
    
         
            +
            - data/ore/templates/rdoc/.document
         
     | 
| 
      
 128 
     | 
    
         
            +
            - data/ore/templates/rdoc/_gitignore.erb
         
     | 
| 
       128 
129 
     | 
    
         
             
            - data/ore/templates/rdoc/_tasks.erb
         
     | 
| 
      
 130 
     | 
    
         
            +
            - data/ore/templates/rdoc/template.yml
         
     | 
| 
       129 
131 
     | 
    
         
             
            - data/ore/templates/rspec/.rspec
         
     | 
| 
       130 
132 
     | 
    
         
             
            - data/ore/templates/rspec/_development_dependencies.erb
         
     | 
| 
       131 
     | 
    
         
            -
            - data/ore/templates/rspec/ 
     | 
| 
      
 133 
     | 
    
         
            +
            - data/ore/templates/rspec/_gemfile_development.erb
         
     | 
| 
       132 
134 
     | 
    
         
             
            - data/ore/templates/rspec/_tasks.erb
         
     | 
| 
       133 
135 
     | 
    
         
             
            - data/ore/templates/rspec/spec/[namespace_dir]_spec.rb.erb
         
     | 
| 
       134 
136 
     | 
    
         
             
            - data/ore/templates/rspec/spec/spec_helper.rb.erb
         
     | 
| 
       135 
137 
     | 
    
         
             
            - data/ore/templates/rspec/template.yml
         
     | 
| 
       136 
138 
     | 
    
         
             
            - data/ore/templates/rvmrc/.rvmrc.erb
         
     | 
| 
      
 139 
     | 
    
         
            +
            - data/ore/templates/test_unit/_tasks.erb
         
     | 
| 
      
 140 
     | 
    
         
            +
            - data/ore/templates/test_unit/template.yml
         
     | 
| 
       137 
141 
     | 
    
         
             
            - data/ore/templates/test_unit/test/helper.rb.erb
         
     | 
| 
       138 
142 
     | 
    
         
             
            - data/ore/templates/test_unit/test/test_[name].rb.erb
         
     | 
| 
      
 143 
     | 
    
         
            +
            - data/ore/templates/yard/.document
         
     | 
| 
       139 
144 
     | 
    
         
             
            - data/ore/templates/yard/.yardopts.erb
         
     | 
| 
       140 
145 
     | 
    
         
             
            - data/ore/templates/yard/_development_dependencies.erb
         
     | 
| 
       141 
     | 
    
         
            -
            - data/ore/templates/yard/ 
     | 
| 
      
 146 
     | 
    
         
            +
            - data/ore/templates/yard/_gemfile_development.erb
         
     | 
| 
       142 
147 
     | 
    
         
             
            - data/ore/templates/yard/_gemspec.erb
         
     | 
| 
       143 
148 
     | 
    
         
             
            - data/ore/templates/yard/_tasks.erb
         
     | 
| 
       144 
149 
     | 
    
         
             
            - data/ore/templates/yard/template.yml
         
     | 
| 
         @@ -157,7 +162,7 @@ files: 
     | 
|
| 
       157 
162 
     | 
    
         
             
            - spec/generator_spec.rb
         
     | 
| 
       158 
163 
     | 
    
         
             
            - spec/helpers/generator.rb
         
     | 
| 
       159 
164 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       160 
     | 
    
         
            -
            has_rdoc:  
     | 
| 
      
 165 
     | 
    
         
            +
            has_rdoc: yard
         
     | 
| 
       161 
166 
     | 
    
         
             
            homepage: http://github.com/ruby-ore/ore
         
     | 
| 
       162 
167 
     | 
    
         
             
            licenses: 
         
     | 
| 
       163 
168 
     | 
    
         
             
            - MIT
         
     | 
| 
         @@ -165,7 +170,7 @@ post_install_message: | 
     | 
|
| 
       165 
170 
     | 
    
         
             
              **************************************************************************
         
     | 
| 
       166 
171 
     | 
    
         
             
              Generate a new Ruby library:
         
     | 
| 
       167 
172 
     | 
    
         | 
| 
       168 
     | 
    
         
            -
                  $ mine my_library --rspec
         
     | 
| 
      
 173 
     | 
    
         
            +
                  $ mine my_library --rspec --yard
         
     | 
| 
       169 
174 
     | 
    
         | 
| 
       170 
175 
     | 
    
         
             
              Build the library:
         
     | 
| 
       171 
176 
     | 
    
         |