newgem 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +0 -34
  3. data/features/install_cucumber.feature +1 -3
  4. data/features/steps/cli.rb +4 -4
  5. data/features/steps/common.rb +1 -1
  6. data/lib/newgem.rb +1 -1
  7. data/rubygems_generators/executable/executable_generator.rb +1 -1
  8. data/rubygems_generators/executable/templates/test/test_cli.rb.erb +1 -2
  9. data/rubygems_generators/install_cucumber/templates/features/steps/common.rb +1 -1
  10. data/tasks/cucumber.rake +1 -1
  11. data/website/index.html +1 -1
  12. data/website/rubyforge.html +1 -1
  13. metadata +3 -37
  14. data/.test-result/TestExecutableGenerator/test_generator_without_options/passed +0 -0
  15. data/.test-result/TestExtconfGenerator/test_generator_for_rspec_project/passed +0 -0
  16. data/.test-result/TestExtconfGenerator/test_generator_without_options/passed +0 -0
  17. data/.test-result/TestFeatureGenerator/test_generator_without_options/passed +0 -0
  18. data/.test-result/TestInstallCucumberGenerator/test_generator_without_options/passed +0 -0
  19. data/.test-result/TestInstallJrubyGenerator/test_generator_without_options/passed +0 -0
  20. data/.test-result/TestInstallRspecGenerator/test_generator_without_options/passed +0 -0
  21. data/.test-result/TestInstallTestUnitGenerator/test_generator_without_options/passed +0 -0
  22. data/.test-result/TestInstallWebsiteGenerator/test_generator_without_options/passed +0 -0
  23. data/.test-result/TestNewgemGenerator/test_gem_name_does_not_change_if_project_name_is_overriden/passed +0 -0
  24. data/.test-result/TestNewgemGenerator/test_gem_name_should_come_from_project/passed +0 -0
  25. data/.test-result/TestNewgemGenerator/test_module_name_does_not_change_if_project_name_is_overriden/passed +0 -0
  26. data/.test-result/TestNewgemGenerator/test_module_name_should_come_from_gem_name/passed +0 -0
  27. data/.test-result/TestNewgemGenerator/test_newgem/passed +0 -0
  28. data/.test-result/TestNewgemGenerator/test_newgem_with_executable/passed +0 -0
  29. data/.test-result/TestNewgemGenerator/test_newgem_with_jruby/passed +0 -0
  30. data/.test-result/TestNewgemGenerator/test_newgem_with_no_website/passed +0 -0
  31. data/.test-result/TestNewgemGenerator/test_newgem_with_rspec/passed +0 -0
  32. data/.test-result/TestNewgemGenerator/test_newgem_with_website/passed +0 -0
  33. data/.test-result/TestNewgemGenerator/test_project_name_can_be_overriden/passed +0 -0
  34. data/.test-result/TestNewgemGenerator/test_project_name_should_default_to_gem_name/passed +0 -0
  35. data/.test-result/TestNewgemGenerator/test_run_in_trunk_path_finds_parent_path_for_gem_name/passed +0 -0
  36. data/.test-result/TestNewgemSimpleGenerator/test_generator_without_options/passed +0 -0
  37. data/.test-result/TestPlainThemeGenerator/test_generator_with_author_and_email/passed +0 -0
  38. data/.test-result/TestPlainThemeGenerator/test_generator_without_options/passed +0 -0
  39. data/.test-result/TestRubyforge/test_email_should_be_placeholder_if_nothing_found/passed +0 -0
  40. data/.test-result/TestRubyforge/test_email_should_come_from_environment/passed +0 -0
  41. data/.test-result/TestRubyforge/test_email_should_come_from_user_config/passed +0 -0
  42. data/.test-result/TestRubyforge/test_full_name_should_be_placeholder_if_nothing_found/passed +0 -0
  43. data/.test-result/TestRubyforge/test_full_name_should_come_from_environment/passed +0 -0
  44. data/.test-result/TestRubyforge/test_full_name_should_come_from_user_config/passed +0 -0
  45. data/.test-result/TestRubyforge/test_github_username_should_be_placeholder_if_nothing_found/passed +0 -0
  46. data/.test-result/TestRubyforge/test_github_username_should_come_from_environment/passed +0 -0
  47. data/.test-result/TestRubyforge/test_github_username_should_come_from_user_config/passed +0 -0
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 1.2.3 2008-12-29
2
+
3
+ * 'rake features' uses --format progress now
4
+ * bump rubigen to 1.5.1
5
+ * move website to gh-pages branch, and official homepage to http://drnic.github.com/newgem
6
+
1
7
  == 1.2.2 2008-12-27
2
8
 
3
9
  * Added USAGE file to install_cucumber generator so it shows up in lists of available generators
data/Manifest.txt CHANGED
@@ -1,37 +1,3 @@
1
- .test-result/TestExecutableGenerator/test_generator_without_options/passed
2
- .test-result/TestExtconfGenerator/test_generator_for_rspec_project/passed
3
- .test-result/TestExtconfGenerator/test_generator_without_options/passed
4
- .test-result/TestFeatureGenerator/test_generator_without_options/passed
5
- .test-result/TestInstallCucumberGenerator/test_generator_without_options/passed
6
- .test-result/TestInstallJrubyGenerator/test_generator_without_options/passed
7
- .test-result/TestInstallRspecGenerator/test_generator_without_options/passed
8
- .test-result/TestInstallTestUnitGenerator/test_generator_without_options/passed
9
- .test-result/TestInstallWebsiteGenerator/test_generator_without_options/passed
10
- .test-result/TestNewgemGenerator/test_gem_name_does_not_change_if_project_name_is_overriden/passed
11
- .test-result/TestNewgemGenerator/test_gem_name_should_come_from_project/passed
12
- .test-result/TestNewgemGenerator/test_module_name_does_not_change_if_project_name_is_overriden/passed
13
- .test-result/TestNewgemGenerator/test_module_name_should_come_from_gem_name/passed
14
- .test-result/TestNewgemGenerator/test_newgem/passed
15
- .test-result/TestNewgemGenerator/test_newgem_with_executable/passed
16
- .test-result/TestNewgemGenerator/test_newgem_with_jruby/passed
17
- .test-result/TestNewgemGenerator/test_newgem_with_no_website/passed
18
- .test-result/TestNewgemGenerator/test_newgem_with_rspec/passed
19
- .test-result/TestNewgemGenerator/test_newgem_with_website/passed
20
- .test-result/TestNewgemGenerator/test_project_name_can_be_overriden/passed
21
- .test-result/TestNewgemGenerator/test_project_name_should_default_to_gem_name/passed
22
- .test-result/TestNewgemGenerator/test_run_in_trunk_path_finds_parent_path_for_gem_name/passed
23
- .test-result/TestNewgemSimpleGenerator/test_generator_without_options/passed
24
- .test-result/TestPlainThemeGenerator/test_generator_with_author_and_email/passed
25
- .test-result/TestPlainThemeGenerator/test_generator_without_options/passed
26
- .test-result/TestRubyforge/test_email_should_be_placeholder_if_nothing_found/passed
27
- .test-result/TestRubyforge/test_email_should_come_from_environment/passed
28
- .test-result/TestRubyforge/test_email_should_come_from_user_config/passed
29
- .test-result/TestRubyforge/test_full_name_should_be_placeholder_if_nothing_found/passed
30
- .test-result/TestRubyforge/test_full_name_should_come_from_environment/passed
31
- .test-result/TestRubyforge/test_full_name_should_come_from_user_config/passed
32
- .test-result/TestRubyforge/test_github_username_should_be_placeholder_if_nothing_found/passed
33
- .test-result/TestRubyforge/test_github_username_should_come_from_environment/passed
34
- .test-result/TestRubyforge/test_github_username_should_come_from_user_config/passed
35
1
  History.txt
36
2
  Manifest.txt
37
3
  PostInstall.txt
@@ -23,7 +23,5 @@ Feature: RubyGems have features to be described and tested
23
23
  And 'install_cucumber' generator is invoked with arguments ''
24
24
  When task 'rake features' is invoked
25
25
  Then task 'rake features' is executed successfully
26
- And output does match /Feature: Development processes of newgem itself \(rake tasks\)/
27
- And output does match /And file with name matching 'pkg/\*\.gem' is created/
28
- And output does not match /You can use these snippets to implement pending steps/
26
+ And output does match /\.{6}/
29
27
 
@@ -53,7 +53,7 @@ When %r{^newgem is executed for project '(.*)' with no options$} do |project_nam
53
53
  @newgem_cmd = newgem_cmd
54
54
  setup_active_project_folder project_name
55
55
  in_tmp_folder do
56
- @stdout = "newgem.out"
56
+ @stdout = File.expand_path("newgem.out")
57
57
  system "ruby #{@newgem_cmd} #{project_name} > #{@stdout}"
58
58
  force_local_lib_override
59
59
  end
@@ -63,7 +63,7 @@ When %r{^newgem is executed for project '(.*)' with options '(.*)'$} do |project
63
63
  @newgem_cmd = newgem_cmd
64
64
  setup_active_project_folder project_name
65
65
  in_tmp_folder do
66
- @stdout = "newgem.out"
66
+ @stdout = File.expand_path("newgem.out")
67
67
  system "ruby #{@newgem_cmd} #{arguments} #{project_name} > #{@stdout}"
68
68
  force_local_lib_override
69
69
  end
@@ -72,7 +72,7 @@ end
72
72
  When /^newgem is executed only with options '(.*)'$/ do |arguments|
73
73
  @newgem_cmd = newgem_cmd
74
74
  in_tmp_folder do
75
- @stdout = "newgem.out"
75
+ @stdout = File.expand_path("newgem.out")
76
76
  system "ruby #{@newgem_cmd} #{arguments} > #{@stdout}"
77
77
  end
78
78
  end
@@ -98,6 +98,6 @@ Then %r{^remote file '(.*)' (is|is not) created} do |file, is|
98
98
  end
99
99
 
100
100
  Then /^shows version number$/ do
101
- stdout = File.read(File.join(@tmp_root, @stdout))
101
+ stdout = File.read(@stdout)
102
102
  stdout.should =~ /#{Newgem::VERSION}/
103
103
  end
@@ -116,7 +116,7 @@ end
116
116
 
117
117
  Then %r{^output same as contents of '(.*)'$} do |file|
118
118
  expected_output = File.read(File.join(File.dirname(__FILE__) + "/../expected_outputs", file))
119
- actual_output = File.read(File.dirname(__FILE__) + "/../../tmp/#{@stdout}")
119
+ actual_output = File.read(@stdout)
120
120
  actual_output.should == expected_output
121
121
  end
122
122
 
data/lib/newgem.rb CHANGED
@@ -4,5 +4,5 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require "hoe-patched"
5
5
 
6
6
  module Newgem
7
- VERSION = '1.2.2'
7
+ VERSION = '1.2.3'
8
8
  end
@@ -46,7 +46,7 @@ class ExecutableGenerator < RubiGen::Base
46
46
  Create an executable Ruby script that is deployed
47
47
  with this RubyGem.
48
48
 
49
- USAGE: #{$0} generate bin_name"
49
+ USAGE: #{$0} executable bin_name"
50
50
  EOS
51
51
  end
52
52
 
@@ -3,8 +3,7 @@ require '<%= bin_name %>/cli'
3
3
 
4
4
  class Test<%= module_name %>Cli < Test::Unit::TestCase
5
5
  def setup
6
- @stdout_io = StringIO.new
7
- <%= module_name %>::CLI.execute(@stdout_io, [])
6
+ <%= module_name %>::CLI.execute(@stdout_io = StringIO.new, [])
8
7
  @stdout_io.rewind
9
8
  @stdout = @stdout_io.read
10
9
  end
@@ -116,7 +116,7 @@ end
116
116
 
117
117
  Then %r{^output same as contents of '(.*)'$} do |file|
118
118
  expected_output = File.read(File.join(File.dirname(__FILE__) + "/../expected_outputs", file))
119
- actual_output = File.read(File.dirname(__FILE__) + "/../../tmp/#{@stdout}")
119
+ actual_output = File.read(@stdout)
120
120
  actual_output.should == expected_output
121
121
  end
122
122
 
data/tasks/cucumber.rake CHANGED
@@ -3,7 +3,7 @@ begin
3
3
  require 'cucumber/rake/task'
4
4
 
5
5
  Cucumber::Rake::Task.new(:features) do |t|
6
- t.cucumber_opts = "--format pretty"
6
+ t.cucumber_opts = "--format progress"
7
7
  end
8
8
  rescue LoadError
9
9
  end
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.2</a>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">1.2.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.2.2</a>
42
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">1.2.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,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
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-27 00:00:00 +10:00
12
+ date: 2008-12-29 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0
33
+ version: 1.5.1
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hoe
@@ -106,40 +106,6 @@ extra_rdoc_files:
106
106
  - website/version-raw.txt
107
107
  - website/version.txt
108
108
  files:
109
- - .test-result/TestExecutableGenerator/test_generator_without_options/passed
110
- - .test-result/TestExtconfGenerator/test_generator_for_rspec_project/passed
111
- - .test-result/TestExtconfGenerator/test_generator_without_options/passed
112
- - .test-result/TestFeatureGenerator/test_generator_without_options/passed
113
- - .test-result/TestInstallCucumberGenerator/test_generator_without_options/passed
114
- - .test-result/TestInstallJrubyGenerator/test_generator_without_options/passed
115
- - .test-result/TestInstallRspecGenerator/test_generator_without_options/passed
116
- - .test-result/TestInstallTestUnitGenerator/test_generator_without_options/passed
117
- - .test-result/TestInstallWebsiteGenerator/test_generator_without_options/passed
118
- - .test-result/TestNewgemGenerator/test_gem_name_does_not_change_if_project_name_is_overriden/passed
119
- - .test-result/TestNewgemGenerator/test_gem_name_should_come_from_project/passed
120
- - .test-result/TestNewgemGenerator/test_module_name_does_not_change_if_project_name_is_overriden/passed
121
- - .test-result/TestNewgemGenerator/test_module_name_should_come_from_gem_name/passed
122
- - .test-result/TestNewgemGenerator/test_newgem/passed
123
- - .test-result/TestNewgemGenerator/test_newgem_with_executable/passed
124
- - .test-result/TestNewgemGenerator/test_newgem_with_jruby/passed
125
- - .test-result/TestNewgemGenerator/test_newgem_with_no_website/passed
126
- - .test-result/TestNewgemGenerator/test_newgem_with_rspec/passed
127
- - .test-result/TestNewgemGenerator/test_newgem_with_website/passed
128
- - .test-result/TestNewgemGenerator/test_project_name_can_be_overriden/passed
129
- - .test-result/TestNewgemGenerator/test_project_name_should_default_to_gem_name/passed
130
- - .test-result/TestNewgemGenerator/test_run_in_trunk_path_finds_parent_path_for_gem_name/passed
131
- - .test-result/TestNewgemSimpleGenerator/test_generator_without_options/passed
132
- - .test-result/TestPlainThemeGenerator/test_generator_with_author_and_email/passed
133
- - .test-result/TestPlainThemeGenerator/test_generator_without_options/passed
134
- - .test-result/TestRubyforge/test_email_should_be_placeholder_if_nothing_found/passed
135
- - .test-result/TestRubyforge/test_email_should_come_from_environment/passed
136
- - .test-result/TestRubyforge/test_email_should_come_from_user_config/passed
137
- - .test-result/TestRubyforge/test_full_name_should_be_placeholder_if_nothing_found/passed
138
- - .test-result/TestRubyforge/test_full_name_should_come_from_environment/passed
139
- - .test-result/TestRubyforge/test_full_name_should_come_from_user_config/passed
140
- - .test-result/TestRubyforge/test_github_username_should_be_placeholder_if_nothing_found/passed
141
- - .test-result/TestRubyforge/test_github_username_should_come_from_environment/passed
142
- - .test-result/TestRubyforge/test_github_username_should_come_from_user_config/passed
143
109
  - History.txt
144
110
  - Manifest.txt
145
111
  - PostInstall.txt
File without changes