newgem 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +1 -0
- data/features/steps/common.rb +14 -4
- data/lib/newgem.rb +1 -1
- data/rubygems_generators/install_cucumber/USAGE +6 -0
- data/rubygems_generators/install_cucumber/templates/features/steps/common.rb +14 -4
- data/website/index.html +1 -1
- data/website/rubyforge.html +1 -1
- metadata +3 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -121,6 +121,7 @@ rubygems_generators/extconf/templates/spec/spec.rb.erb
|
|
121
121
|
rubygems_generators/extconf/templates/tasks/extconf.rake
|
122
122
|
rubygems_generators/extconf/templates/tasks/extconf_name.rake
|
123
123
|
rubygems_generators/extconf/templates/test/test.rb.erb
|
124
|
+
rubygems_generators/install_cucumber/USAGE
|
124
125
|
rubygems_generators/install_cucumber/install_cucumber_generator.rb
|
125
126
|
rubygems_generators/install_cucumber/templates/features/development.feature
|
126
127
|
rubygems_generators/install_cucumber/templates/features/steps/common.rb
|
data/features/steps/common.rb
CHANGED
@@ -59,6 +59,13 @@ When %r{^'(.*)' generator is invoked with arguments '(.*)'$} do |generator, argu
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
When %r{run executable '(.*)' with arguments '(.*)'} do |executable, arguments|
|
63
|
+
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
64
|
+
in_project_folder do
|
65
|
+
system "#{executable} #{arguments} > #{@stdout} 2> #{@stdout}"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
62
69
|
When %r{run project executable '(.*)' with arguments '(.*)'} do |executable, arguments|
|
63
70
|
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
64
71
|
in_project_folder do
|
@@ -68,7 +75,10 @@ end
|
|
68
75
|
|
69
76
|
When %r{run local executable '(.*)' with arguments '(.*)'} do |executable, arguments|
|
70
77
|
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
71
|
-
|
78
|
+
executable = File.expand_path(File.join(File.dirname(__FILE__), "/../../bin", executable))
|
79
|
+
in_project_folder do
|
80
|
+
system "ruby #{executable} #{arguments} > #{@stdout} 2> #{@stdout}"
|
81
|
+
end
|
72
82
|
end
|
73
83
|
|
74
84
|
When %r{^task 'rake (.*)' is invoked$} do |task|
|
@@ -78,9 +88,9 @@ When %r{^task 'rake (.*)' is invoked$} do |task|
|
|
78
88
|
end
|
79
89
|
end
|
80
90
|
|
81
|
-
Then %r{^folder '(.*)' is created} do |folder|
|
91
|
+
Then %r{^folder '(.*)' (is|is not) created} do |folder, is|
|
82
92
|
in_project_folder do
|
83
|
-
File.exists?(folder).should be_true
|
93
|
+
File.exists?(folder).should(is == 'is' ? be_true : be_false)
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
@@ -111,7 +121,7 @@ Then %r{^output same as contents of '(.*)'$} do |file|
|
|
111
121
|
end
|
112
122
|
|
113
123
|
Then %r{^(does|does not) invoke generator '(.*)'$} do |does_invoke, generator|
|
114
|
-
actual_output = File.read(
|
124
|
+
actual_output = File.read(@stdout)
|
115
125
|
does_invoke == "does" ?
|
116
126
|
actual_output.should(match(/dependency\s+#{generator}/)) :
|
117
127
|
actual_output.should_not(match(/dependency\s+#{generator}/))
|
data/lib/newgem.rb
CHANGED
@@ -59,6 +59,13 @@ When %r{^'(.*)' generator is invoked with arguments '(.*)'$} do |generator, argu
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
When %r{run executable '(.*)' with arguments '(.*)'} do |executable, arguments|
|
63
|
+
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
64
|
+
in_project_folder do
|
65
|
+
system "#{executable} #{arguments} > #{@stdout} 2> #{@stdout}"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
62
69
|
When %r{run project executable '(.*)' with arguments '(.*)'} do |executable, arguments|
|
63
70
|
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
64
71
|
in_project_folder do
|
@@ -68,7 +75,10 @@ end
|
|
68
75
|
|
69
76
|
When %r{run local executable '(.*)' with arguments '(.*)'} do |executable, arguments|
|
70
77
|
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
71
|
-
|
78
|
+
executable = File.expand_path(File.join(File.dirname(__FILE__), "/../../bin", executable))
|
79
|
+
in_project_folder do
|
80
|
+
system "ruby #{executable} #{arguments} > #{@stdout} 2> #{@stdout}"
|
81
|
+
end
|
72
82
|
end
|
73
83
|
|
74
84
|
When %r{^task 'rake (.*)' is invoked$} do |task|
|
@@ -78,9 +88,9 @@ When %r{^task 'rake (.*)' is invoked$} do |task|
|
|
78
88
|
end
|
79
89
|
end
|
80
90
|
|
81
|
-
Then %r{^folder '(.*)' is created} do |folder|
|
91
|
+
Then %r{^folder '(.*)' (is|is not) created} do |folder, is|
|
82
92
|
in_project_folder do
|
83
|
-
File.exists?(folder).should be_true
|
93
|
+
File.exists?(folder).should(is == 'is' ? be_true : be_false)
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
@@ -111,7 +121,7 @@ Then %r{^output same as contents of '(.*)'$} do |file|
|
|
111
121
|
end
|
112
122
|
|
113
123
|
Then %r{^(does|does not) invoke generator '(.*)'$} do |does_invoke, generator|
|
114
|
-
actual_output = File.read(
|
124
|
+
actual_output = File.read(@stdout)
|
115
125
|
does_invoke == "does" ?
|
116
126
|
actual_output.should(match(/dependency\s+#{generator}/)) :
|
117
127
|
actual_output.should_not(match(/dependency\s+#{generator}/))
|
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.2.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.2.2</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.2.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.2.2</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,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dr Nic Williams
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-27 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -229,6 +229,7 @@ files:
|
|
229
229
|
- rubygems_generators/extconf/templates/tasks/extconf.rake
|
230
230
|
- rubygems_generators/extconf/templates/tasks/extconf_name.rake
|
231
231
|
- rubygems_generators/extconf/templates/test/test.rb.erb
|
232
|
+
- rubygems_generators/install_cucumber/USAGE
|
232
233
|
- rubygems_generators/install_cucumber/install_cucumber_generator.rb
|
233
234
|
- rubygems_generators/install_cucumber/templates/features/development.feature
|
234
235
|
- rubygems_generators/install_cucumber/templates/features/steps/common.rb
|