rbehave 0.1.0 → 0.2.0
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.txt +5 -0
- data/Manifest.txt +44 -17
- data/NOTES.txt +2 -7
- data/behaviour/everything.rb +1 -1
- data/behaviour/examples/{everything.rb → examples.rb} +0 -0
- data/behaviour/examples/rbehave/documenter/plain_text_documenter_behaviour.rb +1 -0
- data/behaviour/examples/rbehave/given_scenario_behaviour.rb +26 -0
- data/behaviour/examples/rbehave/runner/options_behaviour.rb +39 -0
- data/behaviour/examples/rbehave/runner/runner_behaviour.rb +39 -0
- data/behaviour/examples/rbehave/runner/story_runner_behaviour.rb +58 -2
- data/behaviour/examples/rbehave/simple_step_behaviour.rb +35 -0
- data/behaviour/examples/rbehave/step_mother_behaviour.rb +32 -0
- data/behaviour/examples/rbehave/world_behaviour.rb +44 -5
- data/behaviour/examples/rspec_adapter.rb +3 -1
- data/examples/game-of-life/.loadpath +5 -0
- data/examples/game-of-life/.project +18 -0
- data/examples/game-of-life/README.txt +21 -0
- data/examples/game-of-life/behaviour/everything.rb +2 -0
- data/examples/game-of-life/behaviour/examples/examples.rb +2 -0
- data/examples/game-of-life/behaviour/examples/game_behaviour.rb +17 -0
- data/examples/game-of-life/behaviour/examples/grid_behaviour.rb +68 -0
- data/examples/game-of-life/behaviour/examples/helper.rb +2 -0
- data/examples/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story +21 -0
- data/examples/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +21 -0
- data/examples/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story +42 -0
- data/examples/game-of-life/behaviour/stories/ICanCreateACell.story +42 -0
- data/examples/game-of-life/behaviour/stories/ICanKillACell.story +17 -0
- data/examples/game-of-life/behaviour/stories/TheGridWraps.story +53 -0
- data/examples/game-of-life/behaviour/stories/create_a_cell.rb +58 -0
- data/examples/game-of-life/behaviour/stories/stories.txt +22 -0
- data/examples/game-of-life/life.rb +2 -0
- data/examples/game-of-life/life/game.rb +6 -0
- data/examples/game-of-life/life/grid.rb +38 -0
- data/lib/rbehave.rb +6 -71
- data/lib/rbehave/documenter/plain_text_documenter.rb +2 -2
- data/lib/rbehave/exceptions.rb +3 -3
- data/lib/rbehave/given_scenario.rb +12 -0
- data/lib/rbehave/runner.rb +52 -0
- data/lib/rbehave/runner/options.rb +26 -0
- data/lib/rbehave/runner/story_runner.rb +26 -5
- data/lib/rbehave/simple_step.rb +14 -0
- data/lib/rbehave/step_mother.rb +19 -0
- data/lib/rbehave/story.rb +8 -3
- data/lib/rbehave/version.rb +1 -1
- data/lib/rbehave/world.rb +31 -23
- metadata +47 -19
- data/Rakefile +0 -54
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: rbehave
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.2.0
|
7
|
+
date: 2007-05-30 00:00:00 +01:00
|
8
8
|
summary: RBehave
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -29,34 +29,62 @@ post_install_message:
|
|
29
29
|
authors:
|
30
30
|
- dan
|
31
31
|
files:
|
32
|
-
- lib/rbehave
|
32
|
+
- lib/rbehave.rb
|
33
|
+
- lib/rbehave/version.rb
|
34
|
+
- lib/rbehave/runner/scenario_runner.rb
|
35
|
+
- lib/rbehave/runner/story_runner.rb
|
36
|
+
- lib/rbehave/runner/options.rb
|
37
|
+
- lib/rbehave/runner/scenario_collector.rb
|
33
38
|
- lib/rbehave/exceptions.rb
|
39
|
+
- lib/rbehave/given_scenario.rb
|
40
|
+
- lib/rbehave/runner.rb
|
41
|
+
- lib/rbehave/scenario.rb
|
42
|
+
- lib/rbehave/step_mother.rb
|
43
|
+
- lib/rbehave/reporter/plain_text_reporter.rb
|
44
|
+
- lib/rbehave/simple_step.rb
|
34
45
|
- lib/rbehave/documenter/plain_text_documenter.rb
|
35
46
|
- lib/rbehave/world.rb
|
36
|
-
- lib/rbehave/runner/story_runner.rb
|
37
|
-
- lib/rbehave/runner/scenario_collector.rb
|
38
|
-
- lib/rbehave/runner/scenario_runner.rb
|
39
47
|
- lib/rbehave/story.rb
|
40
|
-
- lib/rbehave/version.rb
|
41
|
-
- lib/rbehave/scenario.rb
|
42
|
-
- lib/rbehave.rb
|
43
48
|
- behaviour/everything.rb
|
44
|
-
- behaviour/examples/
|
45
|
-
- behaviour/examples/
|
46
|
-
- behaviour/examples/
|
47
|
-
- behaviour/examples/rbehave/story_behaviour.rb
|
48
|
-
- behaviour/examples/rbehave/runner/scenario_runner_behaviour.rb
|
49
|
+
- behaviour/examples/examples.rb
|
50
|
+
- behaviour/examples/rspec_adapter.rb
|
51
|
+
- behaviour/examples/helper.rb
|
49
52
|
- behaviour/examples/rbehave/runner/story_runner_behaviour.rb
|
53
|
+
- behaviour/examples/rbehave/runner/runner_behaviour.rb
|
54
|
+
- behaviour/examples/rbehave/runner/scenario_runner_behaviour.rb
|
55
|
+
- behaviour/examples/rbehave/runner/options_behaviour.rb
|
50
56
|
- behaviour/examples/rbehave/runner/scenario_collector_behaviour.rb
|
57
|
+
- behaviour/examples/rbehave/world_behaviour.rb
|
51
58
|
- behaviour/examples/rbehave/exception_behaviour.rb
|
52
|
-
- behaviour/examples/
|
53
|
-
- behaviour/examples/
|
54
|
-
- behaviour/examples/
|
59
|
+
- behaviour/examples/rbehave/story_behaviour.rb
|
60
|
+
- behaviour/examples/rbehave/given_scenario_behaviour.rb
|
61
|
+
- behaviour/examples/rbehave/reporter/plain_text_reporter_behaviour.rb
|
62
|
+
- behaviour/examples/rbehave/step_mother_behaviour.rb
|
63
|
+
- behaviour/examples/rbehave/documenter/plain_text_documenter_behaviour.rb
|
64
|
+
- behaviour/examples/rbehave/simple_step_behaviour.rb
|
65
|
+
- examples/game-of-life/life/game.rb
|
66
|
+
- examples/game-of-life/life/grid.rb
|
67
|
+
- examples/game-of-life/.loadpath
|
68
|
+
- examples/game-of-life/behaviour/everything.rb
|
69
|
+
- examples/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story
|
70
|
+
- examples/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story
|
71
|
+
- examples/game-of-life/behaviour/stories/TheGridWraps.story
|
72
|
+
- examples/game-of-life/behaviour/stories/stories.txt
|
73
|
+
- examples/game-of-life/behaviour/stories/ICanKillACell.story
|
74
|
+
- examples/game-of-life/behaviour/stories/ICanCreateACell.story
|
75
|
+
- examples/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story
|
76
|
+
- examples/game-of-life/behaviour/stories/create_a_cell.rb
|
77
|
+
- examples/game-of-life/behaviour/examples/examples.rb
|
78
|
+
- examples/game-of-life/behaviour/examples/grid_behaviour.rb
|
79
|
+
- examples/game-of-life/behaviour/examples/game_behaviour.rb
|
80
|
+
- examples/game-of-life/behaviour/examples/helper.rb
|
81
|
+
- examples/game-of-life/.project
|
82
|
+
- examples/game-of-life/life.rb
|
83
|
+
- examples/game-of-life/README.txt
|
55
84
|
- CHANGELOG.txt
|
56
85
|
- History.txt
|
57
86
|
- Manifest.txt
|
58
87
|
- NOTES.txt
|
59
|
-
- Rakefile
|
60
88
|
- README.txt
|
61
89
|
- setup.rb
|
62
90
|
test_files:
|
data/Rakefile
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'rake/clean'
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rake/packagetask'
|
6
|
-
require 'rake/gempackagetask'
|
7
|
-
require 'rake/rdoctask'
|
8
|
-
require 'rake/contrib/rubyforgepublisher'
|
9
|
-
require 'fileutils'
|
10
|
-
require 'hoe'
|
11
|
-
include FileUtils
|
12
|
-
require File.join(File.dirname(__FILE__), 'lib', 'rbehave', 'version')
|
13
|
-
|
14
|
-
AUTHOR = "dan" # can also be an array of Authors
|
15
|
-
EMAIL = "dan@rbehave.org"
|
16
|
-
DESCRIPTION = "RBehave"
|
17
|
-
GEM_NAME = "rbehave" # what ppl will type to install your gem
|
18
|
-
RUBYFORGE_PROJECT = "rbehave" # The unix name for your project
|
19
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
20
|
-
|
21
|
-
|
22
|
-
NAME = "rbehave"
|
23
|
-
REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
|
24
|
-
VERS = ENV['VERSION'] || (Rbehave::VERSION::STRING + (REV ? ".#{REV}" : ""))
|
25
|
-
CLEAN.include ['**/.*.sw?', '*.gem', '.config']
|
26
|
-
RDOC_OPTS = ['--quiet', '--title', "rbehave documentation",
|
27
|
-
"--opname", "index.html",
|
28
|
-
"--line-numbers",
|
29
|
-
"--main", "README",
|
30
|
-
"--inline-source"]
|
31
|
-
|
32
|
-
class Hoe
|
33
|
-
def extra_deps
|
34
|
-
@extra_deps.reject { |x| Array(x).first == 'hoe' }
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
# Generate all the Rake tasks
|
39
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
40
|
-
hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
41
|
-
p.author = AUTHOR
|
42
|
-
p.description = DESCRIPTION
|
43
|
-
p.email = EMAIL
|
44
|
-
p.summary = DESCRIPTION
|
45
|
-
p.url = HOMEPATH
|
46
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
47
|
-
p.test_globs = ["behaviour/everything.rb"]
|
48
|
-
p.clean_globs = CLEAN #An array of file patterns to delete on clean.
|
49
|
-
|
50
|
-
# == Optional
|
51
|
-
#p.changes - A description of the release's latest changes.
|
52
|
-
#p.extra_deps - An array of rubygem dependencies.
|
53
|
-
#p.spec_extras - A hash of extra values to set in the gemspec.
|
54
|
-
end
|