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
- SHA1:
3
- metadata.gz: f0c296f0544c8cc79cd02755c6f56f24707fec21
4
- data.tar.gz: 4697a8ecd50d231262c809febd4624fe985d814c
2
+ SHA256:
3
+ metadata.gz: 3ffd20b1150b356d918eb1d6b929694eaf856fc1b00d0fd4341a2aab3b99f979
4
+ data.tar.gz: 869a5661ca6fbec884a78811b80672eb6496274680b6b9c2c41a4bdf6ec32b0b
5
5
  SHA512:
6
- metadata.gz: 29f14e1a8a7e8dcdc68e70e379395859bf63a6dee8aa936eb8ed611a605345c5db59d6593b526516cbf8803a7c7b6c4ffc2e8c5bd2ace07f93994a5954a73225
7
- data.tar.gz: 8fee22de7310d99c6e9e15ab64add0a3093fabb116a59eb0403007262f6ed5a91a8c31ad6fb6fb759313b3e79e426231e066ab22bc43564a596b65c95ae2b24b
6
+ metadata.gz: 4db26685d0573b8974214afdf6bf17f23dcd390e9b3eb008ffdbe6950d0bcc099e224a57e7dcbc0db42de0cf315bea3a78efee4a915d8124dc25644713272946
7
+ data.tar.gz: 0a25d0ac98d9f14b30dcf2d5094cf5a6b0eadf8f843b9ba95317bad7b939f58bf775a706989434e30430a7ddf85004c86a631c5e88dca9f2ad56ea1ef37cff50
@@ -14,8 +14,8 @@ module BeanSprout
14
14
  end
15
15
 
16
16
  def def_private_default_delegators *args
17
- def_default_delegators *args
18
- private *args
17
+ def_default_delegators(*args)
18
+ private(*args)
19
19
  end
20
20
 
21
21
  private :def_default_delegators, :def_private_default_delegators
@@ -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." unless @public_interface.nil?
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
- raise IllegalStateError, "Must plant before remove." unless @in_place
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
@@ -1,3 +1,3 @@
1
1
  module BeanSprout
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
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.8
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: '10.4'
19
+ version: '12'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 10.4.0
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: '10.4'
29
+ version: '12'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 10.4.0
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.4.6
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.