newgem 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
+ == 0.10.3 2007-05-25
2
+
3
+ * 1 major enhancement
4
+ * rspec test framework now works via 'spec' task [Jeroen Janssen]
5
+ * 3 minor improvement
6
+ * For rspec gems, default task => spec task
7
+ * Generated rakefile checks for existance of rspec gem else shows how to get it
8
+ * The require statement in the lib/<gemname>.rb file now uses lowercase project name [Jeroen Janssen]
9
+
1
10
  == 0.10.2 2007-05-25
2
11
 
3
12
  * 3 major enhancements
data/bin/newgem CHANGED
@@ -122,7 +122,7 @@ File.open(main, 'w') do |file|
122
122
  module #{module_name}
123
123
  end
124
124
 
125
- require '#{module_name}/version'
125
+ require '#{project_name}/version'
126
126
  EOS
127
127
  end
128
128
 
@@ -172,7 +172,13 @@ if test_framework == 'rspec'
172
172
  require 'spec'
173
173
  eos
174
174
  requirements = <<-eos
175
- require 'spec/rake/spectest'
175
+ begin
176
+ require 'spec/rake/spectask'
177
+ rescue LoadError
178
+ puts 'To use rspec for testing you must install rspec gem:'
179
+ puts '$ sudo gem install rspec'
180
+ exit
181
+ end
176
182
  eos
177
183
  test_task = <<-eos
178
184
  desc "Run the specs under spec/models"
@@ -180,6 +186,9 @@ Spec::Rake::SpecTask.new do |t|
180
186
  t.spec_opts = ['--options', "spec/spec.opts"]
181
187
  t.spec_files = FileList['spec/*_spec.rb']
182
188
  end
189
+
190
+ desc "Default task is to run specs"
191
+ task :default => :spec
183
192
  eos
184
193
  else
185
194
  test = project_name + "/test"
@@ -2,7 +2,7 @@ module Newgem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 10
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -33,7 +33,7 @@
33
33
  <h1>New Gem Generator</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return false'>
35
35
  Get Version
36
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.10.2</a>
36
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.10.3</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;newgem&#8217;</h1>
39
39
 
@@ -33,7 +33,7 @@
33
33
  <h1>New Gem Generator</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/newgem"; return false'>
35
35
  Get Version
36
- <a href="http://rubyforge.org/projects/newgem" class="numbers">0.10.2</a>
36
+ <a href="http://rubyforge.org/projects/newgem" class="numbers">0.10.3</a>
37
37
  </div>
38
38
  <h1>&#x2192; using &#8216;rubyforge&#8217;</h1>
39
39
 
@@ -1,3 +1,3 @@
1
1
  // Announcement JS file
2
- var version = "0.10.2";
2
+ var version = "0.10.3";
3
3
  MagicAnnouncement.show('compositekeys', version);
@@ -1,4 +1,4 @@
1
1
  // Version JS file
2
- var version = "0.10.2";
2
+ var version = "0.10.3";
3
3
 
4
4
  document.write(" - " + version);
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: newgem
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.10.2
7
- date: 2007-05-25 00:00:00 +02:00
6
+ version: 0.10.3
7
+ date: 2007-05-26 00:00:00 +02:00
8
8
  summary: Make your own gems at home
9
9
  require_paths:
10
10
  - lib