newgem 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +6 -0
- data/Manifest.txt +1 -0
- data/PostInstall.txt +3 -13
- data/README.rdoc +43 -49
- data/app_generators/newgem/templates/readme +1 -1
- data/features/expected_outputs/newgem.out +1 -1
- data/features/install_cucumber.feature +6 -0
- data/features/newgem_cli.feature +3 -3
- data/features/rubygem_tasks.feature +13 -0
- data/features/steps/cli.rb +48 -42
- data/lib/newgem.rb +1 -1
- data/rubygems_generators/install_cucumber/templates/env.rb +3 -13
- data/website/index.html +5 -11
- data/website/index.txt +3 -9
- data/website/rubyforge.html +1 -1
- metadata +3 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/PostInstall.txt
CHANGED
@@ -3,20 +3,10 @@ USAGE: newgem project_name
|
|
3
3
|
HELP/OPTIONS: newgem -h
|
4
4
|
|
5
5
|
|
6
|
-
newgem
|
7
|
-
|
8
|
-
full_name : Dr Nic Williams
|
9
|
-
email : drnicwilliams@gmail.com
|
10
|
-
github_username: drnic
|
11
|
-
|
12
|
-
To create the ~/.rubyforge/user-config.yml file run:
|
13
|
-
rubyforge setup (deletes your username and password, so run sparingly!)
|
14
|
-
edit ~/.rubyforge/user-config.yml
|
15
|
-
rubyforge config
|
16
|
-
|
17
|
-
Whenever you create a new RubyForge.org project, re-run:
|
18
|
-
rubyforge config
|
6
|
+
newgem can use an environment variable $RUBYFORGE_USERNAME
|
7
|
+
for its default. So you can add the following to your .bash_profile:
|
19
8
|
|
9
|
+
export RUBYFORGE_USERNAME="nicwilliams"
|
20
10
|
|
21
11
|
Did you know you have script/generate generators?
|
22
12
|
application_generator, component_generator, executable,
|
data/README.rdoc
CHANGED
@@ -16,55 +16,49 @@ Go to the folder where you want to create your new gem folder structure, and run
|
|
16
16
|
|
17
17
|
cd ~/ruby_projects
|
18
18
|
$ newgem wizzo
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
readme readme
|
63
|
-
Important
|
64
|
-
=========
|
65
|
-
|
66
|
-
* Open config/hoe.rb
|
67
|
-
* Update missing details (gem description, dependent gems, etc.)
|
19
|
+
create
|
20
|
+
create doc
|
21
|
+
create lib
|
22
|
+
create script
|
23
|
+
create tasks
|
24
|
+
create lib/wizzo
|
25
|
+
create History.txt
|
26
|
+
create Rakefile
|
27
|
+
create README.rdoc
|
28
|
+
create PostInstall.txt
|
29
|
+
create lib/wizzo.rb
|
30
|
+
dependency install_test_unit
|
31
|
+
create test
|
32
|
+
create test/test_helper.rb
|
33
|
+
create test/test_wizzo.rb
|
34
|
+
dependency install_website
|
35
|
+
create website/javascripts
|
36
|
+
create website/stylesheets
|
37
|
+
create config
|
38
|
+
exists script
|
39
|
+
exists tasks
|
40
|
+
create website/index.txt
|
41
|
+
create website/index.html
|
42
|
+
create config/website.yml.sample
|
43
|
+
create script/txt2html
|
44
|
+
dependency plain_theme
|
45
|
+
exists website/javascripts
|
46
|
+
exists website/stylesheets
|
47
|
+
create website/template.html.erb
|
48
|
+
create website/stylesheets/screen.css
|
49
|
+
create website/javascripts/rounded_corners_lite.inc.js
|
50
|
+
dependency install_rubigen_scripts
|
51
|
+
exists script
|
52
|
+
create script/generate
|
53
|
+
create script/destroy
|
54
|
+
create script/console
|
55
|
+
create Manifest.txt
|
56
|
+
readme readme
|
57
|
+
Important
|
58
|
+
=========
|
59
|
+
|
60
|
+
* Open Rakefile
|
61
|
+
* Update missing details (gem description, dependent gems, etc.)
|
68
62
|
|
69
63
|
You can generate test::unit or rspec test stubs via the -T, --test-with options (shoulda coming soon)
|
70
64
|
|
@@ -9,3 +9,9 @@ Feature: RubyGems have features to be described and tested
|
|
9
9
|
When 'install_cucumber' generator is invoked with arguments ''
|
10
10
|
Then folder 'features/steps' is created
|
11
11
|
And file 'tasks/cucumber.rake' is created
|
12
|
+
|
13
|
+
Scenario: Installed Cucumber includes a 'rake features' task
|
14
|
+
Given an existing newgem scaffold [called 'my_project']
|
15
|
+
And 'install_cucumber' generator is invoked with arguments ''
|
16
|
+
When task 'rake features' is invoked
|
17
|
+
Then task 'rake features' is executed successfully
|
data/features/newgem_cli.feature
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Feature: Can run create RubyGem scaffolds
|
1
|
+
Feature: Can run 'newgem' to create RubyGem scaffolds
|
2
2
|
|
3
3
|
As a developer of RubyGems
|
4
4
|
I want to create RubyGem scaffolds
|
@@ -10,11 +10,11 @@ Feature: Can run create RubyGem scaffolds
|
|
10
10
|
When newgem is executed for project 'my_project' with no options
|
11
11
|
Then file 'Rakefile' is created
|
12
12
|
And does invoke generator 'install_test_unit'
|
13
|
+
And does invoke generator 'install_website'
|
14
|
+
And does invoke generator 'install_rubigen_scripts'
|
13
15
|
And does not invoke generator 'install_rspec'
|
14
16
|
And does not invoke generator 'install_shoulda'
|
15
17
|
And does not invoke generator 'install_cucumber'
|
16
|
-
And does invoke generator 'install_website'
|
17
|
-
And does invoke generator 'install_rubigen_scripts'
|
18
18
|
And file 'config/website.yml.sample' is created
|
19
19
|
And yaml file 'config/website.yml.sample' contains {"host" => "unknown@rubyforge.org", "remote_dir" => "/var/www/gforge-projects/my_project"}
|
20
20
|
And output same as contents of 'newgem.out'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
Feature: Generated RubyGems have various rake tasks to aide their development
|
2
|
+
In order to maintain and release generated RubyGems
|
3
|
+
As a RubyGem developer
|
4
|
+
I want rake tasks to perform routine maintenance and deployment tasks
|
5
|
+
|
6
|
+
Scenario: Generate RubyGem
|
7
|
+
Given an existing newgem scaffold [called 'my_project']
|
8
|
+
And 'pkg' folder is deleted
|
9
|
+
When task 'rake gem' is invoked
|
10
|
+
Then folder 'pkg' is created
|
11
|
+
And file matching 'pkg/my_project-0.0.1.gem' is created
|
12
|
+
And gem spec key 'rdoc_options' contains /--mainREADME.rdoc/
|
13
|
+
And gem spec key 'dependencies' contains /newgem \(>= [\d.]+, development\)/
|
data/features/steps/cli.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Given %r{^a safe folder} do
|
2
|
-
FileUtils.rm_rf
|
3
|
-
FileUtils.mkdir_p
|
2
|
+
FileUtils.rm_rf @tmp_root = File.dirname(__FILE__) + "/../../tmp"
|
3
|
+
FileUtils.mkdir_p @tmp_root
|
4
4
|
end
|
5
5
|
|
6
6
|
Given /^this project is active project folder/ do
|
7
|
-
FileUtils.rm_rf
|
8
|
-
FileUtils.mkdir_p
|
9
|
-
|
7
|
+
FileUtils.rm_rf @tmp_root = File.dirname(__FILE__) + "/../../tmp"
|
8
|
+
FileUtils.mkdir_p @tmp_root
|
9
|
+
@active_project_folder = File.expand_path(File.dirname(__FILE__) + "/../..")
|
10
10
|
end
|
11
11
|
|
12
12
|
Given /^env variable \$([\w_]+) set to '(.*)'/ do |env_var, value|
|
@@ -23,60 +23,59 @@ end
|
|
23
23
|
|
24
24
|
Given %r{^an existing newgem scaffold \[called '(.*)'\]$} do |project_name|
|
25
25
|
# TODO this is a combo of "a safe folder" and "newgem is executed ..." steps; refactor
|
26
|
-
FileUtils.rm_rf
|
27
|
-
FileUtils.mkdir_p
|
26
|
+
FileUtils.rm_rf @tmp_root = File.dirname(__FILE__) + "/../../tmp"
|
27
|
+
FileUtils.mkdir_p @tmp_root
|
28
28
|
newgem = File.expand_path(File.dirname(__FILE__) + "/../../bin/newgem")
|
29
|
-
FileUtils.chdir
|
29
|
+
FileUtils.chdir @tmp_root do
|
30
30
|
@stdout = "newgem.out"
|
31
31
|
system "ruby #{newgem} #{project_name} > #{@stdout}"
|
32
32
|
force_local_newgem_priority project_name
|
33
33
|
end
|
34
|
-
|
35
|
-
|
34
|
+
@active_project_folder = File.join(@tmp_root, project_name)
|
35
|
+
@project_name = project_name
|
36
36
|
end
|
37
37
|
|
38
38
|
Given /^project website configuration for safe folder on local machine$/ do
|
39
|
-
|
40
|
-
FileUtils.rm_rf
|
41
|
-
FileUtils.mkdir_p
|
42
|
-
FileUtils.chdir
|
39
|
+
@remote_folder = File.expand_path(File.join(@tmp_root, 'website'))
|
40
|
+
FileUtils.rm_rf @remote_folder
|
41
|
+
FileUtils.mkdir_p @remote_folder
|
42
|
+
FileUtils.chdir @active_project_folder do
|
43
43
|
FileUtils.mkdir_p 'config'
|
44
|
-
|
45
|
-
config_yml = { "remote_dir" => $remote_folder }.to_yaml
|
44
|
+
config_yml = { "remote_dir" => @remote_folder }.to_yaml
|
46
45
|
config_path = File.join('config', 'website.yml')
|
47
46
|
File.open(config_path, "w") { |io| io << config_yml }
|
48
47
|
end
|
49
48
|
end
|
50
49
|
|
51
50
|
Given /^'(.*)' folder is deleted/ do |folder|
|
52
|
-
FileUtils.chdir
|
51
|
+
FileUtils.chdir @active_project_folder do
|
53
52
|
FileUtils.rm_rf folder
|
54
53
|
end
|
55
54
|
end
|
56
55
|
|
57
56
|
When %r{^newgem is executed for project '(.*)' with no options$} do |project_name|
|
58
57
|
newgem = File.expand_path(File.dirname(__FILE__) + "/../../bin/newgem")
|
59
|
-
|
60
|
-
$project_name = project_name
|
61
|
-
FileUtils.chdir $tmp_root do
|
58
|
+
FileUtils.chdir @tmp_root do
|
62
59
|
@stdout = "newgem.out"
|
63
60
|
system "ruby #{newgem} #{project_name} > #{@stdout}"
|
64
61
|
force_local_newgem_priority project_name
|
65
62
|
end
|
63
|
+
@active_project_folder = File.expand_path(File.join(@tmp_root, project_name))
|
64
|
+
@project_name = project_name
|
66
65
|
end
|
67
66
|
|
68
67
|
When %r{^newgem is executed for project '(.*)' with options '(.*)'$} do |project_name, arguments|
|
69
68
|
newgem = File.expand_path(File.dirname(__FILE__) + "/../../bin/newgem")
|
70
|
-
|
71
|
-
FileUtils.chdir
|
69
|
+
@project_name = project_name
|
70
|
+
FileUtils.chdir @tmp_root do
|
72
71
|
@stdout = "newgem.out"
|
73
72
|
system "ruby #{newgem} #{arguments} #{project_name} > #{@stdout}"
|
74
|
-
|
73
|
+
@active_project_folder = File.join(@tmp_root, project_name)
|
75
74
|
end
|
76
75
|
end
|
77
76
|
|
78
77
|
When %r{^'(.*)' generator is invoked with arguments '(.*)'$} do |generator, arguments|
|
79
|
-
FileUtils.chdir(
|
78
|
+
FileUtils.chdir(@active_project_folder) do
|
80
79
|
if Object.const_defined?("APP_ROOT")
|
81
80
|
APP_ROOT.replace(FileUtils.pwd)
|
82
81
|
else
|
@@ -87,52 +86,52 @@ When %r{^'(.*)' generator is invoked with arguments '(.*)'$} do |generator, argu
|
|
87
86
|
end
|
88
87
|
|
89
88
|
When /^run executable '(.*)' with arguments '(.*)'$/ do |executable, arguments|
|
90
|
-
@stdout = File.expand_path(File.join(
|
91
|
-
FileUtils.chdir(
|
89
|
+
@stdout = File.expand_path(File.join(@tmp_root, "executable.out"))
|
90
|
+
FileUtils.chdir(@active_project_folder) do
|
92
91
|
system "ruby #{executable} #{arguments} > #{@stdout}"
|
93
92
|
end
|
94
93
|
end
|
95
94
|
|
96
95
|
When /^run unit tests for test file '(.*)'$/ do |test_file|
|
97
|
-
@stdout = File.expand_path(File.join(
|
98
|
-
FileUtils.chdir(
|
96
|
+
@stdout = File.expand_path(File.join(@tmp_root, "tests.out"))
|
97
|
+
FileUtils.chdir(@active_project_folder) do
|
99
98
|
system "ruby #{test_file} > #{@stdout}"
|
100
99
|
end
|
101
100
|
end
|
102
101
|
|
103
102
|
When /^task 'rake (.*)' is invoked$/ do |task|
|
104
|
-
@
|
105
|
-
FileUtils.chdir(
|
106
|
-
system "rake #{task} > #{@
|
103
|
+
@raketask_stdout = File.expand_path(File.join(@tmp_root, "tests.out"))
|
104
|
+
FileUtils.chdir(@active_project_folder) do
|
105
|
+
system "rake #{task} > #{@raketask_stdout} 2> #{@raketask_stdout}"
|
107
106
|
end
|
108
107
|
end
|
109
108
|
|
110
109
|
Then %r{^folder '(.*)' is created} do |folder|
|
111
|
-
FileUtils.chdir
|
110
|
+
FileUtils.chdir @active_project_folder do
|
112
111
|
File.exists?(folder).should be_true
|
113
112
|
end
|
114
113
|
end
|
115
114
|
|
116
115
|
Then %r{^remote folder '(.*)' is created} do |folder|
|
117
|
-
FileUtils.chdir
|
116
|
+
FileUtils.chdir @remote_folder do
|
118
117
|
File.exists?(folder).should be_true
|
119
118
|
end
|
120
119
|
end
|
121
120
|
|
122
121
|
Then %r{^file '(.*)' (is|is not) created} do |file, is|
|
123
|
-
FileUtils.chdir
|
122
|
+
FileUtils.chdir @active_project_folder do
|
124
123
|
File.exists?(file).should(is == 'is' ? be_true : be_false)
|
125
124
|
end
|
126
125
|
end
|
127
126
|
|
128
127
|
Then %r{^remote file '(.*)' (is|is not) created} do |file, is|
|
129
|
-
FileUtils.chdir
|
128
|
+
FileUtils.chdir @remote_folder do
|
130
129
|
File.exists?(file).should(is == 'is' ? be_true : be_false)
|
131
130
|
end
|
132
131
|
end
|
133
132
|
|
134
133
|
Then /^file matching '(.*)' is created$/ do |pattern|
|
135
|
-
FileUtils.chdir
|
134
|
+
FileUtils.chdir @active_project_folder do
|
136
135
|
Dir[pattern].should_not be_empty
|
137
136
|
end
|
138
137
|
end
|
@@ -168,14 +167,14 @@ Then /^all (\d+) tests pass$/ do |expected_test_count|
|
|
168
167
|
end
|
169
168
|
|
170
169
|
Then /^yaml file '(.*)' contains (\{.*\})/ do |file, yaml|
|
171
|
-
FileUtils.chdir
|
170
|
+
FileUtils.chdir @active_project_folder do
|
172
171
|
yaml = eval yaml
|
173
172
|
YAML.load(File.read(file)).should == yaml
|
174
173
|
end
|
175
174
|
end
|
176
175
|
|
177
176
|
Then /^gem spec key '(.*)' contains \/(.*)\/$/ do |key, regex|
|
178
|
-
FileUtils.chdir
|
177
|
+
FileUtils.chdir @active_project_folder do
|
179
178
|
gem_file = Dir["pkg/*.gem"].first
|
180
179
|
gem_spec = Gem::Specification.from_yaml(`gem spec #{gem_file}`)
|
181
180
|
spec_value = gem_spec.send(key.to_sym)
|
@@ -184,10 +183,17 @@ Then /^gem spec key '(.*)' contains \/(.*)\/$/ do |key, regex|
|
|
184
183
|
end
|
185
184
|
|
186
185
|
Then /^Rakefile can display tasks successfully$/ do
|
187
|
-
@
|
188
|
-
FileUtils.chdir(
|
189
|
-
system "rake -T > #{@
|
186
|
+
@rake_stdout = File.expand_path(File.join(@tmp_root, "rakefile.out"))
|
187
|
+
FileUtils.chdir(@active_project_folder) do
|
188
|
+
system "rake -T > #{@rake_stdout} 2> #{@rake_stdout}"
|
190
189
|
end
|
191
|
-
actual_output = File.read(@
|
190
|
+
actual_output = File.read(@rake_stdout)
|
192
191
|
actual_output.should match(/^rake\s+\w+\s+#\s.*/)
|
193
192
|
end
|
193
|
+
|
194
|
+
Then /^task 'rake (.*)' is executed successfully$/ do |task|
|
195
|
+
@raketask_stdout.should_not be_nil
|
196
|
+
actual_output = File.read(@raketask_stdout)
|
197
|
+
actual_output.should_not match(/^Don't know how to build task '#{task}'/)
|
198
|
+
actual_output.should_not match(/Error/i)
|
199
|
+
end
|
data/lib/newgem.rb
CHANGED
@@ -1,16 +1,6 @@
|
|
1
1
|
require File.dirname(__FILE__) + "/../../lib/<%= project_name %>"
|
2
2
|
|
3
3
|
gem 'cucumber'
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# Not sure how to translate/reuse etc yet.
|
8
|
-
#
|
9
|
-
# # Sets up the Rails environment for Cucumber
|
10
|
-
# ENV["RAILS_ENV"] = "test"
|
11
|
-
# require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
|
12
|
-
# require 'cucumber/rails/world'
|
13
|
-
# Cucumber::Rails.use_transactional_fixtures
|
14
|
-
#
|
15
|
-
# # Comment out the next line if you're not using RSpec's matchers (should / should_not) in your steps.
|
16
|
-
# require 'cucumber/rails/rspec'
|
4
|
+
require 'cucumber'
|
5
|
+
gem 'rspec'
|
6
|
+
require 'spec'
|
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.0.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.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>
|
@@ -72,7 +72,6 @@
|
|
72
72
|
<pre>$ cd ~/ruby_projects
|
73
73
|
$ newgem wizzo
|
74
74
|
create
|
75
|
-
create config
|
76
75
|
create doc
|
77
76
|
create lib
|
78
77
|
create script
|
@@ -83,12 +82,6 @@ $ newgem wizzo
|
|
83
82
|
create README.rdoc
|
84
83
|
create PostInstall.txt
|
85
84
|
create lib/wizzo.rb
|
86
|
-
create lib/wizzo/version.rb
|
87
|
-
create config/hoe.rb
|
88
|
-
create config/requirements.rb
|
89
|
-
create tasks/deployment.rake
|
90
|
-
create tasks/environment.rake
|
91
|
-
create tasks/website.rake
|
92
85
|
dependency install_test_unit
|
93
86
|
create test
|
94
87
|
create test/test_helper.rb
|
@@ -96,12 +89,13 @@ $ newgem wizzo
|
|
96
89
|
dependency install_website
|
97
90
|
create website/javascripts
|
98
91
|
create website/stylesheets
|
92
|
+
create config
|
99
93
|
exists script
|
100
94
|
exists tasks
|
101
95
|
create website/index.txt
|
102
96
|
create website/index.html
|
97
|
+
create config/website.yml.sample
|
103
98
|
create script/txt2html
|
104
|
-
force tasks/website.rake
|
105
99
|
dependency plain_theme
|
106
100
|
exists website/javascripts
|
107
101
|
exists website/stylesheets
|
@@ -118,7 +112,7 @@ $ newgem wizzo
|
|
118
112
|
Important
|
119
113
|
=========
|
120
114
|
|
121
|
-
* Open
|
115
|
+
* Open Rakefile
|
122
116
|
* Update missing details (gem description, dependent gems, etc.)</pre>
|
123
117
|
<p>You can generate test::unit or rspec test stubs via the <code>-T</code> or <code>--test-with</code> options. For example, <code>-T rspec</code> generates a <code>spec</code> folder with some test stubs.</p>
|
124
118
|
<h3>Setup</h3>
|
@@ -230,7 +224,7 @@ rake install_gem</pre>
|
|
230
224
|
<h2>Contact</h2>
|
231
225
|
<p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a>.</p>
|
232
226
|
<p class="coda">
|
233
|
-
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>,
|
227
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 28th October 2008<br>
|
234
228
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
235
229
|
</p>
|
236
230
|
</div>
|
data/website/index.txt
CHANGED
@@ -25,7 +25,6 @@ Go to the folder where you want to create your new gem folder structure, and run
|
|
25
25
|
<pre>$ cd ~/ruby_projects
|
26
26
|
$ newgem wizzo
|
27
27
|
create
|
28
|
-
create config
|
29
28
|
create doc
|
30
29
|
create lib
|
31
30
|
create script
|
@@ -36,12 +35,6 @@ $ newgem wizzo
|
|
36
35
|
create README.rdoc
|
37
36
|
create PostInstall.txt
|
38
37
|
create lib/wizzo.rb
|
39
|
-
create lib/wizzo/version.rb
|
40
|
-
create config/hoe.rb
|
41
|
-
create config/requirements.rb
|
42
|
-
create tasks/deployment.rake
|
43
|
-
create tasks/environment.rake
|
44
|
-
create tasks/website.rake
|
45
38
|
dependency install_test_unit
|
46
39
|
create test
|
47
40
|
create test/test_helper.rb
|
@@ -49,12 +42,13 @@ $ newgem wizzo
|
|
49
42
|
dependency install_website
|
50
43
|
create website/javascripts
|
51
44
|
create website/stylesheets
|
45
|
+
create config
|
52
46
|
exists script
|
53
47
|
exists tasks
|
54
48
|
create website/index.txt
|
55
49
|
create website/index.html
|
50
|
+
create config/website.yml.sample
|
56
51
|
create script/txt2html
|
57
|
-
force tasks/website.rake
|
58
52
|
dependency plain_theme
|
59
53
|
exists website/javascripts
|
60
54
|
exists website/stylesheets
|
@@ -71,7 +65,7 @@ $ newgem wizzo
|
|
71
65
|
Important
|
72
66
|
=========
|
73
67
|
|
74
|
-
* Open
|
68
|
+
* Open Rakefile
|
75
69
|
* Update missing details (gem description, dependent gems, etc.)</pre>
|
76
70
|
|
77
71
|
You can generate test::unit or rspec test stubs via the <code>-T</code> or <code>--test-with</code> options. For example, <code>-T rspec</code> generates a <code>spec</code> folder with some test stubs.
|
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.0.
|
42
|
+
<a href="http://rubyforge.org/projects/newgem" class="numbers">1.0.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.0.
|
4
|
+
version: 1.0.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-10-
|
12
|
+
date: 2008-10-28 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- features/install_cucumber.feature
|
136
136
|
- features/install_website.feature
|
137
137
|
- features/newgem_cli.feature
|
138
|
+
- features/rubygem_tasks.feature
|
138
139
|
- features/steps/cli.rb
|
139
140
|
- features/steps/env.rb
|
140
141
|
- lib/newgem.rb
|