jumoku 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jumoku/version.rb +1 -1
- data/spec/behaviors/core_tree.rb +6 -6
- metadata +27 -1
data/lib/jumoku/version.rb
CHANGED
data/spec/behaviors/core_tree.rb
CHANGED
@@ -56,9 +56,9 @@ shared_examples_for "a legacy tree" do
|
|
56
56
|
describe "#add_branch!" do
|
57
57
|
describe "an empty tree" do
|
58
58
|
it "should create a branch and return the updated tree" do
|
59
|
-
tree.add_branch!(
|
59
|
+
tree.add_branch!(1, 2).should be_a tree_type
|
60
60
|
tree.should be_valid
|
61
|
-
tree.nodes.should == [
|
61
|
+
tree.nodes.sort.should == [1, 2]
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
@@ -213,12 +213,12 @@ shared_examples_for "a legacy tree" do
|
|
213
213
|
|
214
214
|
describe "a tree containing several nodes" do
|
215
215
|
it "should be aware of its nodes" do
|
216
|
-
tree.add_node!
|
217
|
-
tree.nodes.should == [
|
216
|
+
tree.add_node! 1
|
217
|
+
tree.nodes.sort.should == [1]
|
218
218
|
|
219
|
-
tree.add_branch! 2,
|
219
|
+
tree.add_branch! 2, 1
|
220
220
|
tree.add_branch! 2, 3
|
221
|
-
tree.nodes.should == [
|
221
|
+
tree.nodes.sort.should == [1, 2, 3]
|
222
222
|
tree.should be_valid
|
223
223
|
end
|
224
224
|
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jumoku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Jean-Denis Vauguet <jd@vauguet.fr>
|
@@ -21,6 +26,9 @@ dependencies:
|
|
21
26
|
requirements:
|
22
27
|
- - ">="
|
23
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
24
32
|
version: "0"
|
25
33
|
type: :runtime
|
26
34
|
version_requirements: *id001
|
@@ -32,6 +40,9 @@ dependencies:
|
|
32
40
|
requirements:
|
33
41
|
- - ">="
|
34
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
35
46
|
version: "0"
|
36
47
|
type: :runtime
|
37
48
|
version_requirements: *id002
|
@@ -43,6 +54,9 @@ dependencies:
|
|
43
54
|
requirements:
|
44
55
|
- - ">="
|
45
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
46
60
|
version: "0"
|
47
61
|
type: :runtime
|
48
62
|
version_requirements: *id003
|
@@ -54,6 +68,9 @@ dependencies:
|
|
54
68
|
requirements:
|
55
69
|
- - ">="
|
56
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
57
74
|
version: "0"
|
58
75
|
type: :development
|
59
76
|
version_requirements: *id004
|
@@ -65,6 +82,9 @@ dependencies:
|
|
65
82
|
requirements:
|
66
83
|
- - ">="
|
67
84
|
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
68
88
|
version: "0"
|
69
89
|
type: :development
|
70
90
|
version_requirements: *id005
|
@@ -117,12 +137,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
137
|
requirements:
|
118
138
|
- - ">="
|
119
139
|
- !ruby/object:Gem::Version
|
140
|
+
hash: 3
|
141
|
+
segments:
|
142
|
+
- 0
|
120
143
|
version: "0"
|
121
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
145
|
none: false
|
123
146
|
requirements:
|
124
147
|
- - ">="
|
125
148
|
- !ruby/object:Gem::Version
|
149
|
+
hash: 3
|
150
|
+
segments:
|
151
|
+
- 0
|
126
152
|
version: "0"
|
127
153
|
requirements: []
|
128
154
|
|