ore 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,13 @@
1
+ ### 0.9.1 / 2012-05-20
2
+
3
+ * Require thor ~> 0.14.
4
+
5
+ #### Templates
6
+
7
+ * Use the newer `RDoc::Task` in the [rdoc] template.
8
+ * Require rdoc ~> 3.0.
9
+ * Simplify the `.rvmrc` file in the [rvmrc] template.
10
+
1
11
  ### 0.9.0 / 2012-04-28
2
12
 
3
13
  * Removed the ore-core dependency.
data/README.md CHANGED
@@ -76,7 +76,7 @@ Additional templates can also be installed from Git:
76
76
 
77
77
  ## Requirements
78
78
 
79
- * [thor](http://github.com/wycats/thor) ~> 0.14.3
79
+ * [thor](http://github.com/wycats/thor) ~> 0.14
80
80
 
81
81
  ## Install
82
82
 
@@ -96,6 +96,11 @@ Generate a new project using previously installed templates:
96
96
 
97
97
  $ mine my_project --bundler --rspec --yard --templates mini_test
98
98
 
99
+ Set your github username, so `mine` can generate GitHub project URLs:
100
+
101
+ $ git config github.user foobar
102
+ $ mine my_project
103
+
99
104
  Install a custom template:
100
105
 
101
106
  $ ore install git://github.com/ruby-ore/mini_test.git
@@ -1,5 +1,19 @@
1
+ <%- if bundler? -%>
1
2
  require 'rdoc/task'
2
- Rake::RDocTask.new do |rdoc|
3
+ RDoc::Task.new do |rdoc|
3
4
  rdoc.title = <%= @name.dump %>
4
5
  end
6
+ <%- else -%>
7
+ begin
8
+ gem 'rdoc', '<%= @development_dependencies['rdoc'] %>'
9
+ require 'rdoc/task'
10
+
11
+ RDoc::Task.new do |rdoc|
12
+ rdoc.title = <%= @name.dump %>
13
+ end
14
+ rescue LoadError => e
15
+ warn e.message
16
+ warn "Run `gem install rdoc` to install 'rdoc/task'."
17
+ end
18
+ <%- end -%>
5
19
  task :doc => :rdoc
@@ -6,3 +6,6 @@ ignore:
6
6
 
7
7
  variables:
8
8
  markup: :rdoc
9
+
10
+ development_dependencies:
11
+ rdoc: ~> 3.0
@@ -14,5 +14,5 @@ rescue LoadError => e
14
14
  end
15
15
  <%- end -%>
16
16
 
17
- task :test => :spec
17
+ task :test => :spec
18
18
  task :default => :spec
@@ -1,46 +1 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="<%= if defined?(::RUBY_ENGINE)
8
- if RUBY_ENGINE == 'ruby'
9
- RUBY_VERSION
10
- else
11
- RUBY_ENGINE
12
- end
13
- else
14
- RUBY_VERSION
15
- end -%>@<%= @name -%>"
16
-
17
- #
18
- # First we attempt to load the desired environment directly from the environment
19
- # file, this is very fast and efficicent compared to running through the entire
20
- # CLI and selector. If you want feedback on which environment was used then
21
- # insert the word 'use' after --create as this triggers verbose mode.
22
- #
23
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
24
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
25
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
- else
27
- # If the environment file has not yet been created, use the RVM CLI to select.
28
- rvm --create "$environment_id"
29
- fi
30
- <%- if bundler? -%>
31
-
32
- #
33
- # If you use bundler and would like to run bundle each time you enter the
34
- # directory you can uncomment the following code.
35
- #
36
-
37
- # Ensure that Bundler is installed, install it if it is not.
38
- if ! command -v bundle ; then
39
- printf "The rubygem 'bundler' is not installed, installing it now.\n"
40
- gem install bundler
41
- fi
42
-
43
- # Bundle while reducing excess noise.
44
- printf "Bundling your gems this may take a few minutes on a fresh clone.\n"
45
- bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
46
- <%- end -%>
1
+ rvm use --create @<%= @name %>
@@ -1,5 +1,5 @@
1
1
  name: ore
2
- version: 0.9.0
2
+ version: 0.9.1
3
3
  summary: Mine beautiful RubyGems from Ore
4
4
  description:
5
5
  Ore is a flexible Ruby project generator. Unlike other Ruby project
@@ -27,7 +27,7 @@ post_install_message: |
27
27
  **************************************************************************
28
28
 
29
29
  dependencies:
30
- thor: ~> 0.14.3
30
+ thor: ~> 0.14
31
31
 
32
32
  development_dependencies:
33
33
  rubygems-tasks: ~> 0.2
@@ -246,6 +246,10 @@ describe Generator do
246
246
  @generator.disabled_templates.should include(:yard)
247
247
  end
248
248
 
249
+ it "should add 'rdoc' as a development dependency" do
250
+ @gemspec.should have_development_dependency('rdoc')
251
+ end
252
+
249
253
  it "should set @markup to :rdoc" do
250
254
  @generator.instance_variable_get('@markup').should == :rdoc
251
255
  end
@@ -296,6 +300,10 @@ describe Generator do
296
300
  @path.should have_file('.document')
297
301
  end
298
302
 
303
+ it "should add 'yard' as a development dependency" do
304
+ @gemspec.should have_development_dependency('yard')
305
+ end
306
+
299
307
  context ".document" do
300
308
  it "should not include 'lib/**/*.rb'" do
301
309
  document.should_not include('lib/**/*.rb')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-28 00:00:00.000000000 Z
12
+ date: 2012-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.14.3
21
+ version: '0.14'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.3
29
+ version: '0.14'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rubygems-tasks
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 1.8.23
199
+ rubygems_version: 1.8.24
200
200
  signing_key:
201
201
  specification_version: 3
202
202
  summary: Mine beautiful RubyGems from Ore