ritual 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.0.5 2010-08-25
2
+
3
+ * Support more than 3 version components via version.increment(n).
4
+ * Add cucumber_task.
5
+
1
6
  == 0.0.4 2010-04-26
2
7
 
3
8
  * Set version in CHANGELOG when bumping version.
@@ -19,8 +19,10 @@ In `Rakefile`:
19
19
 
20
20
  Adds some shortcuts:
21
21
 
22
- * `spec_task(*args, &block)`: Define a spec task. Noop if RSpec cannot be
23
- loaded.
22
+ * `cucumber_task(*args, &block)`: Define a Cucumber task. Noop if
23
+ Cucumber cannot be loaded.
24
+ * `spec_task(*args, &block)`: Define an RSpec task. Noop if RSpec
25
+ cannot be loaded.
24
26
  * `rdoc_task(*args, &block)`: Define an rdoc task.
25
27
 
26
28
  And some tasks:
@@ -118,6 +118,7 @@ module Ritual
118
118
  end
119
119
 
120
120
  def increment(component)
121
+ (value.size..component).each{|i| value[i] = 0}
121
122
  value[component] += 1
122
123
  (component+1 ... value.size).each{|i| value[i] = 0}
123
124
  end
@@ -176,6 +177,12 @@ def spec_task(*args, &block)
176
177
  rescue LoadError
177
178
  end
178
179
 
180
+ def cucumber_task(*args, &block)
181
+ require 'cucumber/rake/task'
182
+ Cucumber::Rake::Task.new(*args, &block)
183
+ rescue LoadError
184
+ end
185
+
179
186
  def rdoc_task(*args, &block)
180
187
  require 'rake/rdoctask'
181
188
  Rake::RDocTask.new(*args, &block)
@@ -1,5 +1,5 @@
1
1
  module Ritual
2
- VERSION = [0, 0, 4]
2
+ VERSION = [0, 0, 5]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - George Ogata
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-26 00:00:00 -04:00
17
+ date: 2010-08-25 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20