newgem 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,10 @@
1
+ === 1.5.3 2010-03-04
2
+
3
+ * Do not load activesupport 3.0, only 2.3
4
+ * In generated projects:
5
+ * Added step: I should see "..."
6
+ * Defined @lib_path in env.rb
7
+
1
8
  === 1.5.2 2009-08-03
2
9
 
3
10
  * allow any recent redcloth version for ruby 1.9 support
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','>= 2.0.2'],
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 /--mainREADME.rdoc/
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"s features using Cucumber
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 /--mainREADME.rdoc/
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/i)
158
+ actual_output.should_not match(/Error/)
154
159
  end
155
160
 
156
161
  Then /^gem spec key "(.*)" contains \/(.*)\// do |key, regex|
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Newgem
5
- VERSION = '1.5.2'
5
+ VERSION = '1.5.3'
6
6
  end
@@ -20,7 +20,7 @@ module <%= module_name %>
20
20
  Options are:
21
21
  BANNER
22
22
  opts.separator ""
23
- opts.on("-p", "--path=PATH", String,
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 /--mainREADME.rdoc/
13
+ And gem spec key "rdoc_options" contains /(--mainREADME.rdoc|\[\"--main\", \"README.rdoc\"\])/
@@ -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
@@ -23,7 +23,7 @@ end
23
23
  begin
24
24
  require 'rubigen'
25
25
  rescue LoadError
26
- require 'rubygems' unless ENV['NO_RUBYGEMS']
26
+ require 'rubygems'
27
27
  require 'rubigen'
28
28
  end
29
29
  require 'rubigen/helpers/generator_test_helper'
@@ -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.4.0</a>
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>
@@ -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.4.0</a>
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
- version: 1.5.2
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: 2009-08-03 00:00:00 -04:00
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
- type: :runtime
18
- version_requirement:
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
- version: 2.0.2
24
- version:
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
- type: :runtime
28
- version_requirement:
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
- version: 1.5.2
34
- version:
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
- type: :runtime
38
- version_requirement:
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
- version: 2.3.1
44
- version:
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
- type: :runtime
48
- version_requirement:
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
- version:
74
+ type: :runtime
75
+ version_requirements: *id004
55
76
  - !ruby/object:Gem::Dependency
56
77
  name: syntax
57
- type: :runtime
58
- version_requirement:
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
- version:
88
+ type: :runtime
89
+ version_requirements: *id005
65
90
  - !ruby/object:Gem::Dependency
66
91
  name: cucumber
67
- type: :development
68
- version_requirement:
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
- version:
102
+ type: :development
103
+ version_requirements: *id006
75
104
  - !ruby/object:Gem::Dependency
76
105
  name: hoe
77
- type: :development
78
- version_requirement:
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
- version: 2.3.1
84
- version:
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.5
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