newgem 0.22.1 → 0.22.2
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 +5 -0
- data/app_generators/newgem/templates/config/hoe.rb +1 -1
- data/app_generators/newgem/templates/spec.rb +2 -2
- data/config/hoe.rb +1 -1
- data/lib/newgem/version.rb +1 -1
- data/rubygems_generators/install_rspec/templates/spec.rb +2 -2
- data/rubygems_generators/install_rspec_stories/install_rspec_stories_generator.rb +3 -2
- data/rubygems_generators/install_rspec_stories/templates/all.rb +4 -4
- data/rubygems_generators/install_rspec_stories/templates/steps.rb +8 -10
- data/rubygems_generators/install_rspec_stories/templates/story.story +7 -7
- data/website/index.html +1 -1
- data/website/rubyforge.html +1 -1
- data/website/version-raw.js +1 -1
- data/website/version.js +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.22.2 2008-04-07 [NOT RELEASED]
|
2
|
+
|
3
|
+
* Cleaned up the REV cmd [Sascha Teske]
|
4
|
+
* Replaced hardcoded rspec values done in a hurry at RubyFools with parameterised values [Alsak Hellesoy]
|
5
|
+
|
1
6
|
== 0.22.1 2008-04-05
|
2
7
|
|
3
8
|
* moved the 'by Daniel Cadenas' reference to the correct template.rhtml
|
@@ -30,7 +30,7 @@ end
|
|
30
30
|
|
31
31
|
REV = nil
|
32
32
|
# UNCOMMENT IF REQUIRED:
|
33
|
-
# REV = `svn info
|
33
|
+
# REV = YAML.load(`svn info`)['Revision']
|
34
34
|
VERS = <%= module_name %>::VERSION::STRING + (REV ? ".#{REV}" : "")
|
35
35
|
RDOC_OPTS = ['--quiet', '--title', '<%= gem_name %> documentation',
|
36
36
|
"--opname", "index.html",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/spec_helper.rb'
|
2
2
|
|
3
3
|
# Time to add your specs!
|
4
|
-
# http://rspec.
|
4
|
+
# http://rspec.info/
|
5
5
|
describe "Place your specs here" do
|
6
6
|
|
7
7
|
it "find this spec in spec directory" do
|
8
8
|
violated "Be sure to write your specs"
|
9
9
|
end
|
10
10
|
|
11
|
-
end
|
11
|
+
end
|
data/config/hoe.rb
CHANGED
@@ -29,7 +29,7 @@ Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
|
29
29
|
end
|
30
30
|
|
31
31
|
REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
|
32
|
-
# REV = `svn info
|
32
|
+
# REV = YAML.load(`svn info`)['Revision']
|
33
33
|
VERS = Newgem::VERSION::STRING + (REV ? ".#{REV}" : "")
|
34
34
|
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
|
35
35
|
|
data/lib/newgem/version.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/spec_helper.rb'
|
2
2
|
|
3
3
|
# Time to add your specs!
|
4
|
-
# http://rspec.
|
4
|
+
# http://rspec.info/
|
5
5
|
describe "Place your specs here" do
|
6
6
|
|
7
7
|
it "find this spec in spec directory" do
|
8
8
|
violated "Be sure to write your specs"
|
9
9
|
end
|
10
10
|
|
11
|
-
end
|
11
|
+
end
|
@@ -2,11 +2,12 @@ class InstallRspecStoriesGenerator < RubiGen::Base
|
|
2
2
|
|
3
3
|
default_options :author => nil
|
4
4
|
|
5
|
-
attr_reader :gem_name, :name
|
5
|
+
attr_reader :gem_name, :module_name, :name
|
6
6
|
|
7
7
|
def initialize(runtime_args, runtime_options = {})
|
8
8
|
super
|
9
9
|
@gem_name = base_name
|
10
|
+
@module_name = gem_name.camelize
|
10
11
|
extract_options
|
11
12
|
end
|
12
13
|
|
@@ -50,4 +51,4 @@ EOS
|
|
50
51
|
# raw instance variable value.
|
51
52
|
# @author = options[:author]
|
52
53
|
end
|
53
|
-
end
|
54
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'spec/story'
|
3
3
|
require File.dirname(__FILE__) + '/../spec/spec_helper'
|
4
|
-
require 'stories/steps
|
4
|
+
require 'stories/steps/<%= gem_name %>_steps'
|
5
5
|
|
6
|
-
with_steps_for
|
7
|
-
run 'stories/
|
8
|
-
end
|
6
|
+
with_steps_for :<%= gem_name %> do
|
7
|
+
run 'stories/sell_<%= gem_name %>.story'
|
8
|
+
end
|
@@ -1,15 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
@initial = n.to_i
|
1
|
+
steps_for :<%= gem_name %> do
|
2
|
+
Given 'there are $n <%= gem_name %>' do |n|
|
3
|
+
<%= module_name %>.initial = n.to_i
|
5
4
|
end
|
6
5
|
|
7
|
-
When 'I sell $n
|
8
|
-
|
6
|
+
When 'I sell $n <%= gem_name %>' do |n|
|
7
|
+
<%= module_name %>.sold = n.to_i
|
9
8
|
end
|
10
9
|
|
11
|
-
Then 'there should be $n
|
12
|
-
|
13
|
-
(@initial - @sold).should == @left
|
10
|
+
Then 'there should be $n <%= gem_name %> left' do |n|
|
11
|
+
<%= module_name %>.left.should == n.to_i
|
14
12
|
end
|
15
|
-
end
|
13
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
Story: Sell
|
2
|
-
As a
|
3
|
-
I want to sell
|
1
|
+
Story: Sell <%= gem_name %>
|
2
|
+
As a <%= gem_name %> artist
|
3
|
+
I want to sell <%= gem_name %>
|
4
4
|
So that I can make the world a better place
|
5
5
|
|
6
|
-
Scenario: Sell a
|
7
|
-
Given there are 5
|
8
|
-
When I sell 2
|
9
|
-
Then there should be 3
|
6
|
+
Scenario: Sell a couple
|
7
|
+
Given there are 5 <%= gem_name %>
|
8
|
+
When I sell 2 <%= gem_name %>
|
9
|
+
Then there should be 3 <%= gem_name %> left
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>New Gem Generator</h1>
|
34
34
|
<div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="" class="numbers">0.22.
|
36
|
+
<a href="" class="numbers">0.22.2</a>
|
37
37
|
<p>Featured in</p>
|
38
38
|
<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>
|
39
39
|
</div>
|
data/website/rubyforge.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>New Gem Generator</h1>
|
34
34
|
<div id="version"> <!-- class="clickable" onclick='document.location = ""; return true' -->
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="" class="numbers">0.22.
|
36
|
+
<a href="" class="numbers">0.22.2</a>
|
37
37
|
<p>Featured in</p>
|
38
38
|
<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>
|
39
39
|
</div>
|
data/website/version-raw.js
CHANGED
data/website/version.js
CHANGED
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: 0.22.
|
4
|
+
version: 0.22.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-04-
|
12
|
+
date: 2008-04-09 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|