bean_sprout 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3ffd20b1150b356d918eb1d6b929694eaf856fc1b00d0fd4341a2aab3b99f979
|
4
|
+
data.tar.gz: 869a5661ca6fbec884a78811b80672eb6496274680b6b9c2c41a4bdf6ec32b0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db26685d0573b8974214afdf6bf17f23dcd390e9b3eb008ffdbe6950d0bcc099e224a57e7dcbc0db42de0cf315bea3a78efee4a915d8124dc25644713272946
|
7
|
+
data.tar.gz: 0a25d0ac98d9f14b30dcf2d5094cf5a6b0eadf8f843b9ba95317bad7b939f58bf775a706989434e30430a7ddf85004c86a631c5e88dca9f2ad56ea1ef37cff50
|
@@ -14,7 +14,7 @@ module BeanSprout
|
|
14
14
|
|
15
15
|
def bind_public_interface public_interface
|
16
16
|
raise "Cannot bind public interface to null." if public_interface.nil?
|
17
|
-
raise "Cannot bind public interface twice."
|
17
|
+
raise "Cannot bind public interface twice." if defined? @public_interface
|
18
18
|
@public_interface = public_interface
|
19
19
|
end
|
20
20
|
|
@@ -36,7 +36,7 @@ module BeanSprout
|
|
36
36
|
|
37
37
|
def plant
|
38
38
|
balanced!
|
39
|
-
raise IllegalStateError, "Can't plant twice." if @in_place
|
39
|
+
raise IllegalStateError, "Can't plant twice." if defined? @in_place
|
40
40
|
sprouts.each do |sprout|
|
41
41
|
sprout.bean.grow sprout
|
42
42
|
end
|
@@ -45,7 +45,9 @@ module BeanSprout
|
|
45
45
|
|
46
46
|
def remove
|
47
47
|
balanced!
|
48
|
-
|
48
|
+
unless defined? @in_place
|
49
|
+
raise IllegalStateError, "Must plant before remove."
|
50
|
+
end
|
49
51
|
sprouts.each do |sprout|
|
50
52
|
sprout.bean.pick sprout
|
51
53
|
end
|
data/lib/bean_sprout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bean_sprout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liqing Muyi
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '12'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 12.3.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '12'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 12.3.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: minitest
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.7.6.2
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Exchanging book-keeping information made easy.
|