newgem 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Rakefile +3 -1
- data/features/development.feature +1 -1
- data/features/install_cucumber.feature +1 -1
- data/features/rubygem_tasks.feature +1 -1
- data/features/step_definitions/common_steps.rb +6 -1
- data/lib/newgem.rb +1 -1
- data/rubygems_generators/executable/templates/lib/app/cli.rb.erb +1 -1
- data/rubygems_generators/install_cucumber/templates/features/development.feature +1 -1
- data/rubygems_generators/install_cucumber/templates/features/step_definitions/common_steps.rb +5 -0
- data/rubygems_generators/install_cucumber/templates/features/support/env.rb.erb +1 -0
- data/test/test_generator_helper.rb +1 -1
- data/website/index.html +1 -1
- data/website/rubyforge.html +1 -1
- metadata +73 -38
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
gem 'hoe', '>= 2.3.0'
|
2
3
|
require 'hoe'
|
3
4
|
%w[fileutils rubigen].each { |f| require f }
|
4
5
|
$:.unshift(File.dirname(__FILE__) + "/lib")
|
5
6
|
|
6
7
|
Hoe.plugin :newgem
|
8
|
+
Hoe.plugin :git
|
7
9
|
Hoe.plugin :website
|
8
10
|
Hoe.plugin :cucumberfeatures
|
9
11
|
|
@@ -13,7 +15,7 @@ $hoe = Hoe.spec 'newgem' do
|
|
13
15
|
developer 'Dr Nic Williams', 'drnicwilliams@gmail.com'
|
14
16
|
self.post_install_message = 'PostInstall.txt'
|
15
17
|
self.extra_deps = [
|
16
|
-
['activesupport','
|
18
|
+
['activesupport','~> 2.3.4'],
|
17
19
|
['rubigen',">= #{RubiGen::VERSION}"],
|
18
20
|
['hoe', ">= #{Hoe::VERSION}"],
|
19
21
|
['RedCloth','>= 4.1.1'], # for website generation
|
@@ -10,4 +10,4 @@ Feature: Development processes of newgem itself (rake tasks)
|
|
10
10
|
When I invoke task "rake gem"
|
11
11
|
Then folder "pkg" is created
|
12
12
|
And file with name matching "pkg/*.gem" is created else you should run "rake manifest" to fix this
|
13
|
-
And gem spec key "rdoc_options" contains
|
13
|
+
And gem spec key "rdoc_options" contains /(--mainREADME.rdoc|\[\"--main\", \"README.rdoc\"\])/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Feature: RubyGems have features to be described and tested
|
2
2
|
|
3
3
|
As a RubyGem developer
|
4
|
-
I want to describe the project
|
4
|
+
I want to describe the project's features using Cucumber
|
5
5
|
So that I can describe each feature of the project in readable text
|
6
6
|
|
7
7
|
Scenario: Install Cucumber into a RubyGem
|
@@ -22,7 +22,7 @@ Feature: Generated RubyGems have various rake tasks to aide their development
|
|
22
22
|
When I invoke task "rake gem"
|
23
23
|
Then folder "pkg" is created
|
24
24
|
And file with name matching "pkg/my_project-0.0.1.gem" is created
|
25
|
-
And gem spec key "rdoc_options" contains
|
25
|
+
And gem spec key "rdoc_options" contains /(--mainREADME.rdoc|\[\"--main\", \"README.rdoc\"\])/
|
26
26
|
And gem spec key "dependencies" contains /newgem \(>= [\d.]+, development\)/
|
27
27
|
|
28
28
|
Scenario: Hoe does not bitch about README.txt being missing
|
@@ -103,6 +103,11 @@ Then /help options "(.*)" and "(.*)" are displayed/ do |opt1, opt2|
|
|
103
103
|
actual_output.should match(/#{opt2}/)
|
104
104
|
end
|
105
105
|
|
106
|
+
Then /^I should see "([^\"]*)"$/ do |text|
|
107
|
+
actual_output = File.read(@stdout)
|
108
|
+
actual_output.should contain(text)
|
109
|
+
end
|
110
|
+
|
106
111
|
Then /^I should see$/ do |text|
|
107
112
|
actual_output = File.read(@stdout)
|
108
113
|
actual_output.should contain(text)
|
@@ -150,7 +155,7 @@ Then /^task "rake (.*)" is executed successfully/ do |task|
|
|
150
155
|
@stdout.should_not be_nil
|
151
156
|
actual_output = File.read(@stdout)
|
152
157
|
actual_output.should_not match(/^Don't know how to build task '#{task}'/)
|
153
|
-
actual_output.should_not match(/Error/
|
158
|
+
actual_output.should_not match(/Error/)
|
154
159
|
end
|
155
160
|
|
156
161
|
Then /^gem spec key "(.*)" contains \/(.*)\// do |key, regex|
|
data/lib/newgem.rb
CHANGED
@@ -20,7 +20,7 @@ module <%= module_name %>
|
|
20
20
|
Options are:
|
21
21
|
BANNER
|
22
22
|
opts.separator ""
|
23
|
-
opts.on("-p", "--path
|
23
|
+
opts.on("-p", "--path PATH", String,
|
24
24
|
"This is a sample message.",
|
25
25
|
"For multiple lines, add more strings.",
|
26
26
|
"Default: ~") { |arg| options[:path] = arg }
|
@@ -10,4 +10,4 @@ Feature: Development processes of newgem itself (rake tasks)
|
|
10
10
|
When I invoke task "rake gem"
|
11
11
|
Then folder "pkg" is created
|
12
12
|
And file with name matching "pkg/*.gem" is created else you should run "rake manifest" to fix this
|
13
|
-
And gem spec key "rdoc_options" contains
|
13
|
+
And gem spec key "rdoc_options" contains /(--mainREADME.rdoc|\[\"--main\", \"README.rdoc\"\])/
|
data/rubygems_generators/install_cucumber/templates/features/step_definitions/common_steps.rb
CHANGED
@@ -103,6 +103,11 @@ Then /help options "(.*)" and "(.*)" are displayed/ do |opt1, opt2|
|
|
103
103
|
actual_output.should match(/#{opt2}/)
|
104
104
|
end
|
105
105
|
|
106
|
+
Then /^I should see "([^\"]*)"$/ do |text|
|
107
|
+
actual_output = File.read(@stdout)
|
108
|
+
actual_output.should contain(text)
|
109
|
+
end
|
110
|
+
|
106
111
|
Then /^I should see$/ do |text|
|
107
112
|
actual_output = File.read(@stdout)
|
108
113
|
actual_output.should contain(text)
|
@@ -8,6 +8,7 @@ require 'spec'
|
|
8
8
|
Before do
|
9
9
|
@tmp_root = File.dirname(__FILE__) + "/../../tmp"
|
10
10
|
@home_path = File.expand_path(File.join(@tmp_root, "home"))
|
11
|
+
@lib_path = File.expand_path(File.dirname(__FILE__) + "/../../lib")
|
11
12
|
FileUtils.rm_rf @tmp_root
|
12
13
|
FileUtils.mkdir_p @home_path
|
13
14
|
ENV['HOME'] = @home_path
|
data/website/index.html
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
|
41
41
|
<p>Get Version</p>
|
42
|
-
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.5.3</a>
|
43
43
|
<p>Featured in</p>
|
44
44
|
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
|
45
45
|
</div>
|
data/website/rubyforge.html
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<div id="version"> <!-- class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return true' -->
|
41
41
|
<p>Get Version</p>
|
42
|
-
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.5.3</a>
|
43
43
|
<p>Featured in</p>
|
44
44
|
<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBeginning-Ruby-Novice-Professional-Experts%2Fdp%2F1590597664%2F&tag=drnic-20&linkCode=ur2&camp=1789&creative=9325" class="book"><img src="images/beginning-ruby.jpg" /></a>
|
45
45
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 5
|
8
|
+
- 3
|
9
|
+
version: 1.5.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Dr Nic Williams
|
@@ -9,79 +14,107 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-03-04 00:00:00 +10:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: activesupport
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
|
-
- -
|
25
|
+
- - ~>
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 3
|
30
|
+
- 4
|
31
|
+
version: 2.3.4
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: rubigen
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
41
|
+
segments:
|
42
|
+
- 1
|
43
|
+
- 5
|
44
|
+
- 3
|
45
|
+
version: 1.5.3
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
35
48
|
- !ruby/object:Gem::Dependency
|
36
49
|
name: hoe
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
52
|
requirements:
|
41
53
|
- - ">="
|
42
54
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
55
|
+
segments:
|
56
|
+
- 2
|
57
|
+
- 4
|
58
|
+
- 0
|
59
|
+
version: 2.4.0
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
45
62
|
- !ruby/object:Gem::Dependency
|
46
63
|
name: RedCloth
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
66
|
requirements:
|
51
67
|
- - ">="
|
52
68
|
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 4
|
71
|
+
- 1
|
72
|
+
- 1
|
53
73
|
version: 4.1.1
|
54
|
-
|
74
|
+
type: :runtime
|
75
|
+
version_requirements: *id004
|
55
76
|
- !ruby/object:Gem::Dependency
|
56
77
|
name: syntax
|
57
|
-
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
60
80
|
requirements:
|
61
81
|
- - ">="
|
62
82
|
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 1
|
85
|
+
- 0
|
86
|
+
- 0
|
63
87
|
version: 1.0.0
|
64
|
-
|
88
|
+
type: :runtime
|
89
|
+
version_requirements: *id005
|
65
90
|
- !ruby/object:Gem::Dependency
|
66
91
|
name: cucumber
|
67
|
-
|
68
|
-
|
69
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
prerelease: false
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
70
94
|
requirements:
|
71
95
|
- - ">="
|
72
96
|
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
- 3
|
100
|
+
- 11
|
73
101
|
version: 0.3.11
|
74
|
-
|
102
|
+
type: :development
|
103
|
+
version_requirements: *id006
|
75
104
|
- !ruby/object:Gem::Dependency
|
76
105
|
name: hoe
|
77
|
-
|
78
|
-
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
prerelease: false
|
107
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
80
108
|
requirements:
|
81
109
|
- - ">="
|
82
110
|
- !ruby/object:Gem::Version
|
83
|
-
|
84
|
-
|
111
|
+
segments:
|
112
|
+
- 2
|
113
|
+
- 4
|
114
|
+
- 0
|
115
|
+
version: 2.4.0
|
116
|
+
type: :development
|
117
|
+
version_requirements: *id007
|
85
118
|
description: |-
|
86
119
|
Quickly bundle any Ruby libraries into a RubyGem and share it with the world, your colleagues, or perhaps just with yourself amongst your projects.
|
87
120
|
|
@@ -266,18 +299,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
266
299
|
requirements:
|
267
300
|
- - ">="
|
268
301
|
- !ruby/object:Gem::Version
|
302
|
+
segments:
|
303
|
+
- 0
|
269
304
|
version: "0"
|
270
|
-
version:
|
271
305
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
306
|
requirements:
|
273
307
|
- - ">="
|
274
308
|
- !ruby/object:Gem::Version
|
309
|
+
segments:
|
310
|
+
- 0
|
275
311
|
version: "0"
|
276
|
-
version:
|
277
312
|
requirements: []
|
278
313
|
|
279
314
|
rubyforge_project: newgem
|
280
|
-
rubygems_version: 1.3.
|
315
|
+
rubygems_version: 1.3.6
|
281
316
|
signing_key:
|
282
317
|
specification_version: 3
|
283
318
|
summary: Quickly bundle any Ruby libraries into a RubyGem and share it with the world, your colleagues, or perhaps just with yourself amongst your projects
|