flows 0.5.0 → 0.5.1

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: 8910a47890a3e15f9a79dbb3f7e6255f57cdf2232b9257e05dbdfd39b252d4f7
4
- data.tar.gz: bb71db93b1128f3c9f7a7dfb5e705c4ec4e6bd3615a19479bb5f68ba97d63b05
3
+ metadata.gz: e6f029a3e03c0cd3ac484cb703f67a1c4910a10c8395e7b1024518dc84a14cb5
4
+ data.tar.gz: 23f44992d336cd637c02ff6d96c82a99f7e6af2a2affc82bcdc2c3f4ee1153a2
5
5
  SHA512:
6
- metadata.gz: ea2894cb2a0472d84968d89c8f7ea3d0013e89fa1d7fc0864ba0cec223683c29950e24cff43b161204da0aa3aadf3969eb848539e828471de82a6b4beef500f1
7
- data.tar.gz: b12a300213344b4baab7a0f112931018a3a6f74bfee143687111261d692478bd6f2edf1436fb4f8819aae0afca4d4172d194b22e672a1cf9b3838d1b2b749002
6
+ metadata.gz: 17015a5eb9868ced9c18872706625df9aeb51aa90717be36929fe223006b5e28fa439fcc63db49b43a047c0375b3d6493f4640da6164be21815b3df95291ae96
7
+ data.tar.gz: b2170ec9d8a710b70fd676772ba7a5556ab23b9a50313bf34f321afb440f07d9fe66bc76634a9e53f02dd7063ebf92e27a94e162e6470e2b22a87703a6856f48
data/.gitignore CHANGED
@@ -17,3 +17,7 @@
17
17
 
18
18
  # OS specific stuff
19
19
  .DS_Store
20
+
21
+ # In case of gem development we don't need to track Gemfile.lock
22
+ # All the constraints must be expressed in gemspec
23
+ /Gemfile.lock
@@ -5,6 +5,7 @@ require:
5
5
 
6
6
  AllCops:
7
7
  TargetRubyVersion: 2.7
8
+ NewCops: enable
8
9
 
9
10
  Style/HashEachMethods:
10
11
  Enabled: true
@@ -58,3 +59,6 @@ Naming/RescuedExceptionsVariableName:
58
59
  Style/Documentation:
59
60
  Exclude:
60
61
  - 'lib/flows/shared_context_pipeline/step.rb' # false positive here
62
+
63
+ Style/SlicingWithRange:
64
+ Enabled: false # to support Ruby 2.5
@@ -16,6 +16,12 @@ Types of changes:
16
16
 
17
17
  ## [Unreleased]
18
18
 
19
+ ## [0.5.1] - 2020-06-29
20
+
21
+ ### Fixed
22
+
23
+ * `Flows::SharedContextPipeline` wrap DSL failure in case of inheritance, [issue](https://github.com/ffloyd/flows/issues/18)
24
+
19
25
  ## [0.5.0] - 2020-05-18
20
26
 
21
27
  ### Added
@@ -53,6 +59,7 @@ Types of changes:
53
59
  * `Flows::Util::PrependToClass` - allows to prepend some module to class even if
54
60
  target module did not included directly into class.
55
61
 
56
- [unreleased]: https://github.com/ffloyd/flows/compare/v0.4.0...HEAD
62
+ [unreleased]: https://github.com/ffloyd/flows/compare/v0.5.1...HEAD
63
+ [0.5.1]: https://github.com/ffloyd/flows/compare/v0.5.0...v0.5.1
57
64
  [0.5.0]: https://github.com/ffloyd/flows/compare/v0.4.0...v0.5.0
58
65
  [0.4.0]: https://github.com/ffloyd/flows/compare/v0.3.0...v0.4.0
@@ -143,7 +143,7 @@ module Flows
143
143
  module_for_do
144
144
  end
145
145
 
146
- # `:reek:TooManyStatements:` - allowed because we have no choice here.
146
+ # `:reek:TooManyStatements` - allowed because we have no choice here.
147
147
  #
148
148
  # `:reek:NestedIterators` - allowed here because here are no iterators.
149
149
  def define_wrapper(mod, method_name) # rubocop:disable Metrics/MethodLength
@@ -3,8 +3,9 @@ module Flows
3
3
  # @api private
4
4
  class Wrap
5
5
  attr_reader :router_def
6
+ attr_reader :tracks_definitions
6
7
 
7
- # :reek:Attribute:
8
+ # :reek:Attribute
8
9
  attr_accessor :next_step
9
10
 
10
11
  EMPTY_HASH = {}.freeze
@@ -22,6 +23,7 @@ module Flows
22
23
  def initialize(method_name:, router_def:, &tracks_definitions)
23
24
  @method_name = method_name
24
25
  @router_def = router_def
26
+ @tracks_definitions = tracks_definitions
25
27
 
26
28
  singleton_class.extend DSL::Tracks
27
29
  singleton_class.extend Result::Helpers
@@ -29,6 +31,14 @@ module Flows
29
31
  singleton_class.instance_exec(&tracks_definitions)
30
32
  end
31
33
 
34
+ # on `#dup` we're getting new empty singleton class
35
+ # so we need to initialize it like original one
36
+ def initialize_dup(other)
37
+ singleton_class.extend DSL::Tracks
38
+ singleton_class.extend Result::Helpers
39
+ singleton_class.instance_exec(&other.tracks_definitions)
40
+ end
41
+
32
42
  def name
33
43
  singleton_class.tracks.first_step_name
34
44
  end
@@ -1,3 +1,3 @@
1
1
  module Flows
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flows
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Kolesnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -392,7 +392,6 @@ files:
392
392
  - CHANGELOG.md
393
393
  - CODE_OF_CONDUCT.md
394
394
  - Gemfile
395
- - Gemfile.lock
396
395
  - LICENSE.txt
397
396
  - README.md
398
397
  - Rakefile
@@ -1,239 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- flows (0.5.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.0)
10
- awesome_print (1.8.0)
11
- axiom-types (0.1.1)
12
- descendants_tracker (~> 0.0.4)
13
- ice_nine (~> 0.11.0)
14
- thread_safe (~> 0.3, >= 0.3.1)
15
- backports (3.17.0)
16
- benchmark-ips (2.7.2)
17
- codeclimate-engine-rb (0.4.1)
18
- virtus (~> 1.0)
19
- codecov (0.1.16)
20
- json
21
- simplecov
22
- url
23
- coderay (1.1.2)
24
- coercible (1.0.0)
25
- descendants_tracker (~> 0.0.1)
26
- concurrent-ruby (1.1.6)
27
- crass (1.0.6)
28
- declarative (0.0.10)
29
- declarative-option (0.1.0)
30
- descendants_tracker (0.0.4)
31
- thread_safe (~> 0.3, >= 0.3.1)
32
- diff-lcs (1.3)
33
- docile (1.3.2)
34
- dry-configurable (0.11.5)
35
- concurrent-ruby (~> 1.0)
36
- dry-core (~> 0.4, >= 0.4.7)
37
- dry-equalizer (~> 0.2)
38
- dry-container (0.7.2)
39
- concurrent-ruby (~> 1.0)
40
- dry-configurable (~> 0.1, >= 0.1.3)
41
- dry-core (0.4.9)
42
- concurrent-ruby (~> 1.0)
43
- dry-equalizer (0.3.0)
44
- dry-events (0.2.0)
45
- concurrent-ruby (~> 1.0)
46
- dry-core (~> 0.4)
47
- dry-equalizer (~> 0.2)
48
- dry-matcher (0.8.3)
49
- dry-core (>= 0.4.8)
50
- dry-monads (1.3.5)
51
- concurrent-ruby (~> 1.0)
52
- dry-core (~> 0.4, >= 0.4.4)
53
- dry-equalizer
54
- dry-transaction (0.13.0)
55
- dry-container (>= 0.2.8)
56
- dry-events (>= 0.1.0)
57
- dry-matcher (>= 0.7.0)
58
- dry-monads (>= 0.4.0)
59
- equalizer (0.0.11)
60
- equatable (0.6.1)
61
- ffi (1.12.2)
62
- ffi-hunspell (0.5.0)
63
- ffi (~> 1.0)
64
- forspell (0.0.8)
65
- backports (~> 3.0)
66
- ffi-hunspell
67
- highline
68
- kramdown (~> 2.0)
69
- kramdown-parser-gfm (~> 1.0)
70
- parser
71
- pastel
72
- ruby-progressbar
73
- sanitize (~> 5.0)
74
- slop (~> 4.6)
75
- yard
76
- gli (2.19.0)
77
- highline (2.0.3)
78
- hirb (0.7.3)
79
- ice_nine (0.11.2)
80
- inch (0.8.0)
81
- pry
82
- sparkr (>= 0.2.0)
83
- term-ansicolor
84
- yard (~> 0.9.12)
85
- jaro_winkler (1.5.4)
86
- json (2.3.0)
87
- kalibera (0.1)
88
- memoist (~> 0.11.0)
89
- rbzip2 (~> 0.2.0)
90
- kramdown (2.1.0)
91
- kramdown-parser-gfm (1.1.0)
92
- kramdown (~> 2.0)
93
- kwalify (0.7.2)
94
- mdl (0.9.0)
95
- kramdown (~> 2.0)
96
- kramdown-parser-gfm (~> 1.0)
97
- mixlib-cli (~> 2.1, >= 2.1.1)
98
- mixlib-config (>= 2.2.1, < 4)
99
- memoist (0.11.0)
100
- method_source (1.0.0)
101
- mini_portile2 (2.4.0)
102
- mixlib-cli (2.1.5)
103
- mixlib-config (3.0.6)
104
- tomlrb
105
- nokogiri (1.10.9)
106
- mini_portile2 (~> 2.4.0)
107
- nokogumbo (2.0.2)
108
- nokogiri (~> 1.8, >= 1.8.4)
109
- parallel (1.19.1)
110
- parser (2.7.0.5)
111
- ast (~> 2.4.0)
112
- pastel (0.7.3)
113
- equatable (~> 0.6)
114
- tty-color (~> 0.5)
115
- pry (0.13.0)
116
- coderay (~> 1.1)
117
- method_source (~> 1.0)
118
- psych (3.1.0)
119
- rainbow (3.0.0)
120
- rake (13.0.1)
121
- rbzip2 (0.2.0)
122
- reek (5.6.0)
123
- codeclimate-engine-rb (~> 0.4.0)
124
- kwalify (~> 0.7.0)
125
- parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
126
- psych (~> 3.1.0)
127
- rainbow (>= 2.0, < 4.0)
128
- representable (3.0.4)
129
- declarative (< 0.1.0)
130
- declarative-option (< 0.2.0)
131
- uber (< 0.2.0)
132
- rexml (3.2.4)
133
- rspec (3.9.0)
134
- rspec-core (~> 3.9.0)
135
- rspec-expectations (~> 3.9.0)
136
- rspec-mocks (~> 3.9.0)
137
- rspec-core (3.9.1)
138
- rspec-support (~> 3.9.1)
139
- rspec-expectations (3.9.1)
140
- diff-lcs (>= 1.2.0, < 2.0)
141
- rspec-support (~> 3.9.0)
142
- rspec-mocks (3.9.1)
143
- diff-lcs (>= 1.2.0, < 2.0)
144
- rspec-support (~> 3.9.0)
145
- rspec-support (3.9.2)
146
- rubocop (0.80.1)
147
- jaro_winkler (~> 1.5.1)
148
- parallel (~> 1.10)
149
- parser (>= 2.7.0.1)
150
- rainbow (>= 2.2.2, < 4.0)
151
- rexml
152
- ruby-progressbar (~> 1.7)
153
- unicode-display_width (>= 1.4.0, < 1.7)
154
- rubocop-md (0.3.2)
155
- rubocop (~> 0.60)
156
- rubocop-performance (1.5.2)
157
- rubocop (>= 0.71.0)
158
- rubocop-rspec (1.38.1)
159
- rubocop (>= 0.68.1)
160
- ruby-prof (1.3.1)
161
- ruby-progressbar (1.10.1)
162
- sanitize (5.1.0)
163
- crass (~> 1.0.2)
164
- nokogiri (>= 1.8.0)
165
- nokogumbo (~> 2.0)
166
- simplecov (0.18.5)
167
- docile (~> 1.1)
168
- simplecov-html (~> 0.11)
169
- simplecov-html (0.12.2)
170
- slop (4.8.0)
171
- sparkr (0.4.1)
172
- stackprof (0.2.15)
173
- sync (0.5.0)
174
- term-ansicolor (1.7.1)
175
- tins (~> 1.0)
176
- thread_safe (0.3.6)
177
- tins (1.24.1)
178
- sync
179
- tomlrb (1.3.0)
180
- trailblazer-activity (0.10.0)
181
- trailblazer-context (>= 0.2.0, < 0.3.0)
182
- trailblazer-activity-dsl-linear (0.2.6)
183
- trailblazer-activity (>= 0.9.1, < 1.0.0)
184
- trailblazer-context (0.2.0)
185
- trailblazer-developer (0.0.12)
186
- hirb
187
- representable
188
- trailblazer-activity (>= 0.10.0, < 1.0.0)
189
- trailblazer-activity-dsl-linear
190
- trailblazer-operation (0.6.0)
191
- trailblazer-activity (>= 0.10.0, < 1.0.0)
192
- trailblazer-activity-dsl-linear (>= 0.2.1, < 1.0.0)
193
- trailblazer-developer (>= 0.0.8)
194
- tty-color (0.5.1)
195
- uber (0.1.0)
196
- unicode-display_width (1.6.1)
197
- url (0.3.2)
198
- virtus (1.0.5)
199
- axiom-types (~> 0.1)
200
- coercible (~> 1.0)
201
- descendants_tracker (~> 0.0, >= 0.0.3)
202
- equalizer (~> 0.0, >= 0.0.9)
203
- warning (1.0.0)
204
- yard (0.9.24)
205
-
206
- PLATFORMS
207
- ruby
208
-
209
- DEPENDENCIES
210
- awesome_print
211
- benchmark-ips
212
- bundler (~> 2.0)
213
- codecov
214
- dry-monads (~> 1.3)
215
- dry-transaction
216
- flows!
217
- forspell (~> 0.0.8)
218
- gli
219
- inch
220
- kalibera
221
- mdl
222
- pry
223
- rainbow
224
- rake (~> 13.0)
225
- reek
226
- rspec (~> 3.0)
227
- rubocop
228
- rubocop-md
229
- rubocop-performance
230
- rubocop-rspec
231
- ruby-prof
232
- simplecov
233
- stackprof
234
- trailblazer-operation
235
- warning
236
- yard
237
-
238
- BUNDLED WITH
239
- 2.1.4