ritual 0.0.4 → 0.0.5
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/CHANGELOG +5 -0
- data/README.markdown +4 -2
- data/lib/ritual.rb +7 -0
- data/lib/ritual/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -19,8 +19,10 @@ In `Rakefile`:
|
|
19
19
|
|
20
20
|
Adds some shortcuts:
|
21
21
|
|
22
|
-
* `
|
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:
|
data/lib/ritual.rb
CHANGED
@@ -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)
|
data/lib/ritual/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
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-
|
17
|
+
date: 2010-08-25 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|