behave_fun 0.2.3 → 0.3.0

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
2
  SHA256:
3
- metadata.gz: e526abe95ba12a46398d54816db835b06d7fd637fa12d8532717de73d859b706
4
- data.tar.gz: 4b8de5a4c3f9614e432c0e4a975f96a7b461e6b4be726f817b6a44ac2188e75e
3
+ metadata.gz: e1977048ee7e23c6741c0053e5f2c13aa0e7876bf707072fc30922136c8686a1
4
+ data.tar.gz: 4d1f362aff36da80a953405c494459585a9d9fb399ef577688a44598a5e7563b
5
5
  SHA512:
6
- metadata.gz: ce0fb474121dd2a64da415a002a0d02f20cba724def89a3cac06dd05cc1601cb4eb467da4293f748e4bd4985ef25a50b79d864633ec7834e348e33107a69bfb3
7
- data.tar.gz: 89c72baf8266aad35d239ea8f56e8aff7a2b71ff22533440b771cf98ed90c5c3dd351f5967c560c0a69514d422d0a0ad00f3a5972fb4fdf67578e8d1dfb7c53d
6
+ metadata.gz: 56f3753135d9928af024b135b7bd6de7566307a768a583beea0b55944d02359907931ea349d31905b55cf28635390ffbba13999a883eacb2011795e70d3388a1
7
+ data.tar.gz: c8a6e6c6fe0e1b32bc343bf3ef38b6997faeb91095cd41a55323801c0de6d3f6b90644888557d15fc028e562790e787f4fa02f4ec8d538466c038f707ce3d482
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- behave_fun (0.2.3)
4
+ behave_fun (0.3.0)
5
5
  activesupport (~> 6.0.0)
6
6
  dry-types (~> 1.4.0)
7
7
  zeitwerk (~> 2.3.0)
@@ -9,15 +9,15 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.0.3.1)
12
+ activesupport (6.0.3.2)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 0.7, < 2)
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
17
  zeitwerk (~> 2.2, >= 2.2.2)
18
- concurrent-ruby (1.1.6)
18
+ concurrent-ruby (1.1.7)
19
19
  diff-lcs (1.3)
20
- dry-configurable (0.11.5)
20
+ dry-configurable (0.11.6)
21
21
  concurrent-ruby (~> 1.0)
22
22
  dry-core (~> 0.4, >= 0.4.7)
23
23
  dry-equalizer (~> 0.2)
@@ -39,7 +39,7 @@ GEM
39
39
  dry-equalizer (~> 0.3)
40
40
  dry-inflector (~> 0.1, >= 0.1.2)
41
41
  dry-logic (~> 1.0, >= 1.0.2)
42
- i18n (1.8.2)
42
+ i18n (1.8.5)
43
43
  concurrent-ruby (~> 1.0)
44
44
  minitest (5.14.1)
45
45
  rake (12.3.3)
@@ -59,7 +59,7 @@ GEM
59
59
  thread_safe (0.3.6)
60
60
  tzinfo (1.2.7)
61
61
  thread_safe (~> 0.1)
62
- zeitwerk (2.3.0)
62
+ zeitwerk (2.3.1)
63
63
 
64
64
  PLATFORMS
65
65
  ruby
@@ -13,6 +13,7 @@ module BehaveFun
13
13
  @counter += 1
14
14
  if @counter < params[:times]
15
15
  @children[0].reset
16
+ execute
16
17
  else
17
18
  success
18
19
  end
@@ -1,5 +1,10 @@
1
1
  module BehaveFun
2
2
  class Decorators::UntilFail < Decorator
3
+ def child_success
4
+ reset
5
+ execute
6
+ end
7
+
3
8
  def child_fail
4
9
  success
5
10
  end
@@ -3,5 +3,10 @@ module BehaveFun
3
3
  def child_success
4
4
  success
5
5
  end
6
+
7
+ def child_fail
8
+ reset
9
+ execute
10
+ end
6
11
  end
7
12
  end
@@ -1,3 +1,3 @@
1
1
  module BehaveFun
2
- VERSION = '0.2.3'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: behave_fun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ayaya zhao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-31 00:00:00.000000000 Z
11
+ date: 2020-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk