newgem 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.test-result/TestNewgemGenerator/test_newgem/passed +0 -0
- data/History.txt +5 -0
- data/Manifest.txt +1 -0
- data/app_generators/newgem/newgem_generator.rb +1 -1
- data/bin/newgem +1 -1
- data/features/steps/common.rb +6 -1
- data/lib/newgem.rb +1 -1
- data/rubygems_generators/install_cucumber/templates/features/steps/common.rb +6 -1
- data/website/index.html +1 -1
- data/website/rubyforge.html +1 -1
- metadata +3 -2
File without changes
|
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
.test-result/TestNewgemGenerator/test_gem_name_should_come_from_project/passed
|
12
12
|
.test-result/TestNewgemGenerator/test_module_name_does_not_change_if_project_name_is_overriden/passed
|
13
13
|
.test-result/TestNewgemGenerator/test_module_name_should_come_from_gem_name/passed
|
14
|
+
.test-result/TestNewgemGenerator/test_newgem/passed
|
14
15
|
.test-result/TestNewgemGenerator/test_newgem_with_executable/passed
|
15
16
|
.test-result/TestNewgemGenerator/test_newgem_with_jruby/passed
|
16
17
|
.test-result/TestNewgemGenerator/test_newgem_with_no_website/passed
|
@@ -151,7 +151,7 @@ EOS
|
|
151
151
|
@author = options[:author]
|
152
152
|
@email = options[:email]
|
153
153
|
unless @author && @email
|
154
|
-
require File.dirname(__FILE__) + '/../../lib/newgem/rubyforge-ext' unless Newgem.const_defined?("Rubyforge")
|
154
|
+
require File.dirname(__FILE__) + '/../../lib/newgem/rubyforge-ext' unless Object.const_defined?("Newgem") && Newgem.const_defined?("Rubyforge")
|
155
155
|
rubyforge_config = Newgem::Rubyforge.new
|
156
156
|
@author ||= rubyforge_config.full_name
|
157
157
|
@email ||= rubyforge_config.email
|
data/bin/newgem
CHANGED
@@ -25,5 +25,5 @@ RubiGen::Base.prepend_sources(*[
|
|
25
25
|
if ARGV.delete "--simple"
|
26
26
|
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'newgem_simple')
|
27
27
|
else
|
28
|
-
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'newgem')
|
28
|
+
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'newgem', :backtrace => true)
|
29
29
|
end
|
data/features/steps/common.rb
CHANGED
@@ -44,13 +44,18 @@ Given %r{'(.*)' folder is deleted} do |folder|
|
|
44
44
|
end
|
45
45
|
|
46
46
|
When %r{^'(.*)' generator is invoked with arguments '(.*)'$} do |generator, arguments|
|
47
|
+
@stdout = StringIO.new
|
47
48
|
FileUtils.chdir(@active_project_folder) do
|
48
49
|
if Object.const_defined?("APP_ROOT")
|
49
50
|
APP_ROOT.replace(FileUtils.pwd)
|
50
51
|
else
|
51
52
|
APP_ROOT = FileUtils.pwd
|
52
53
|
end
|
53
|
-
run_generator(generator, arguments.split(' '), SOURCES)
|
54
|
+
run_generator(generator, arguments.split(' '), SOURCES, :stdout => @stdout)
|
55
|
+
end
|
56
|
+
File.open(File.join(@tmp_root, "generator.out"), "w") do |f|
|
57
|
+
@stdout.rewind
|
58
|
+
f << @stdout.read
|
54
59
|
end
|
55
60
|
end
|
56
61
|
|
data/lib/newgem.rb
CHANGED
@@ -44,13 +44,18 @@ Given %r{'(.*)' folder is deleted} do |folder|
|
|
44
44
|
end
|
45
45
|
|
46
46
|
When %r{^'(.*)' generator is invoked with arguments '(.*)'$} do |generator, arguments|
|
47
|
+
@stdout = StringIO.new
|
47
48
|
FileUtils.chdir(@active_project_folder) do
|
48
49
|
if Object.const_defined?("APP_ROOT")
|
49
50
|
APP_ROOT.replace(FileUtils.pwd)
|
50
51
|
else
|
51
52
|
APP_ROOT = FileUtils.pwd
|
52
53
|
end
|
53
|
-
run_generator(generator, arguments.split(' '), SOURCES)
|
54
|
+
run_generator(generator, arguments.split(' '), SOURCES, :stdout => @stdout)
|
55
|
+
end
|
56
|
+
File.open(File.join(@tmp_root, "generator.out"), "w") do |f|
|
57
|
+
@stdout.rewind
|
58
|
+
f << @stdout.read
|
54
59
|
end
|
55
60
|
end
|
56
61
|
|
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.1</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.1</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.1
|
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-15 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -119,6 +119,7 @@ files:
|
|
119
119
|
- .test-result/TestNewgemGenerator/test_gem_name_should_come_from_project/passed
|
120
120
|
- .test-result/TestNewgemGenerator/test_module_name_does_not_change_if_project_name_is_overriden/passed
|
121
121
|
- .test-result/TestNewgemGenerator/test_module_name_should_come_from_gem_name/passed
|
122
|
+
- .test-result/TestNewgemGenerator/test_newgem/passed
|
122
123
|
- .test-result/TestNewgemGenerator/test_newgem_with_executable/passed
|
123
124
|
- .test-result/TestNewgemGenerator/test_newgem_with_jruby/passed
|
124
125
|
- .test-result/TestNewgemGenerator/test_newgem_with_no_website/passed
|