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 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`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
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.rubyforge.org/
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`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
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
 
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 22
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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.rubyforge.org/
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/rubyfools_steps'
4
+ require 'stories/steps/<%= gem_name %>_steps'
5
5
 
6
- with_steps_for :rubyfools do
7
- run 'stories/sell_rubyfools.story'
8
- end
6
+ with_steps_for :<%= gem_name %> do
7
+ run 'stories/sell_<%= gem_name %>.story'
8
+ end
@@ -1,15 +1,13 @@
1
- # TODO: Make the steps talk to your code
2
- steps_for :rubyfools do
3
- Given 'there are $n rubyfools' do |n|
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 rubyfools' do |n|
8
- @sold = n.to_i
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 rubyfools' do |n|
12
- @left = n.to_i + 1
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 RubyFools
2
- As a conference organiser
3
- I want to sell RubyFools
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 cpuple
7
- Given there are 5 rubyfools
8
- When I sell 2 rubyfools
9
- Then there should be 3 rubyfools
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.1</a>
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>
@@ -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.1</a>
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>
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.22.1";
2
+ var version = "0.22.2";
3
3
  MagicAnnouncement.show('compositekeys', version);
data/website/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.22.1";
2
+ var version = "0.22.2";
3
3
 
4
4
  document.write(" - " + version);
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.1
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-06 00:00:00 +08:00
12
+ date: 2008-04-09 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency