servactory 2.0.0.rc2 → 2.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/config/locales/en.yml +2 -1
  3. data/config/locales/ru.yml +2 -1
  4. data/lib/servactory/{methods/method.rb → actions/action.rb} +2 -2
  5. data/lib/servactory/{methods/aliases_for_make → actions/aliases}/collection.rb +2 -2
  6. data/lib/servactory/{methods/method_collection.rb → actions/collection.rb} +3 -3
  7. data/lib/servactory/{methods → actions}/dsl.rb +8 -8
  8. data/lib/servactory/{methods/shortcuts_for_make → actions/shortcuts}/collection.rb +2 -2
  9. data/lib/servactory/actions/stages/collection.rb +20 -0
  10. data/lib/servactory/actions/stages/stage.rb +30 -0
  11. data/lib/servactory/{methods → actions}/tools/runner.rb +1 -1
  12. data/lib/servactory/{methods → actions}/workspace.rb +2 -2
  13. data/lib/servactory/base.rb +1 -1
  14. data/lib/servactory/configuration/dsl.rb +2 -2
  15. data/lib/servactory/configuration/factory.rb +5 -5
  16. data/lib/servactory/configuration/setup.rb +4 -4
  17. data/lib/servactory/context/workspace/inputs.rb +7 -5
  18. data/lib/servactory/dsl.rb +1 -1
  19. data/lib/servactory/inputs/input.rb +3 -3
  20. data/lib/servactory/inputs/validations/base.rb +1 -1
  21. data/lib/servactory/inputs/validations/inclusion.rb +1 -1
  22. data/lib/servactory/inputs/validations/must.rb +2 -2
  23. data/lib/servactory/inputs/validations/required.rb +1 -1
  24. data/lib/servactory/inputs/validations/type.rb +13 -114
  25. data/lib/servactory/internals/internal.rb +3 -3
  26. data/lib/servactory/internals/validations/base.rb +1 -1
  27. data/lib/servactory/internals/validations/type.rb +6 -124
  28. data/lib/servactory/maintenance/attributes/option.rb +13 -7
  29. data/lib/servactory/maintenance/validations/collection.rb +66 -0
  30. data/lib/servactory/maintenance/validations/object_schema.rb +15 -18
  31. data/lib/servactory/maintenance/validations/types.rb +181 -0
  32. data/lib/servactory/outputs/output.rb +3 -3
  33. data/lib/servactory/outputs/validations/base.rb +1 -1
  34. data/lib/servactory/outputs/validations/type.rb +6 -124
  35. data/lib/servactory/version.rb +1 -1
  36. metadata +21 -19
  37. data/lib/servactory/methods/stage.rb +0 -28
  38. data/lib/servactory/methods/stage_collection.rb +0 -18
@@ -5,7 +5,7 @@ module Servactory
5
5
  MAJOR = 2
6
6
  MINOR = 0
7
7
  PATCH = 0
8
- PRE = "rc2"
8
+ PRE = "rc4"
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc2
4
+ version: 2.0.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Sokolov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-17 00:00:00.000000000 Z
11
+ date: 2023-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.13'
33
+ version: '1.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.13'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: zeitwerk
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.50'
117
+ version: '1.57'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.50'
124
+ version: '1.57'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1.17'
131
+ version: '1.19'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '1.17'
138
+ version: '1.19'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-rake
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '2.19'
159
+ version: '2.24'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '2.19'
166
+ version: '2.24'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: steep
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -204,6 +204,15 @@ files:
204
204
  - config/locales/en.yml
205
205
  - config/locales/ru.yml
206
206
  - lib/servactory.rb
207
+ - lib/servactory/actions/action.rb
208
+ - lib/servactory/actions/aliases/collection.rb
209
+ - lib/servactory/actions/collection.rb
210
+ - lib/servactory/actions/dsl.rb
211
+ - lib/servactory/actions/shortcuts/collection.rb
212
+ - lib/servactory/actions/stages/collection.rb
213
+ - lib/servactory/actions/stages/stage.rb
214
+ - lib/servactory/actions/tools/runner.rb
215
+ - lib/servactory/actions/workspace.rb
207
216
  - lib/servactory/base.rb
208
217
  - lib/servactory/configuration/dsl.rb
209
218
  - lib/servactory/configuration/factory.rb
@@ -251,16 +260,9 @@ files:
251
260
  - lib/servactory/maintenance/attributes/options_collection.rb
252
261
  - lib/servactory/maintenance/collection_mode/class_names_collection.rb
253
262
  - lib/servactory/maintenance/hash_mode/class_names_collection.rb
263
+ - lib/servactory/maintenance/validations/collection.rb
254
264
  - lib/servactory/maintenance/validations/object_schema.rb
255
- - lib/servactory/methods/aliases_for_make/collection.rb
256
- - lib/servactory/methods/dsl.rb
257
- - lib/servactory/methods/method.rb
258
- - lib/servactory/methods/method_collection.rb
259
- - lib/servactory/methods/shortcuts_for_make/collection.rb
260
- - lib/servactory/methods/stage.rb
261
- - lib/servactory/methods/stage_collection.rb
262
- - lib/servactory/methods/tools/runner.rb
263
- - lib/servactory/methods/workspace.rb
265
+ - lib/servactory/maintenance/validations/types.rb
264
266
  - lib/servactory/outputs/collection.rb
265
267
  - lib/servactory/outputs/dsl.rb
266
268
  - lib/servactory/outputs/output.rb
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Servactory
4
- module Methods
5
- class Stage
6
- attr_accessor :position,
7
- :wrapper,
8
- :rollback,
9
- :condition,
10
- :is_condition_opposite
11
-
12
- def initialize(position:, wrapper: nil, rollback: nil, condition: nil)
13
- @position = position
14
- @wrapper = wrapper
15
- @rollback = rollback
16
- @condition = condition
17
- end
18
-
19
- def next_method_position
20
- methods.size + 1
21
- end
22
-
23
- def methods
24
- @methods ||= MethodCollection.new
25
- end
26
- end
27
- end
28
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Servactory
4
- module Methods
5
- class StageCollection
6
- extend Forwardable
7
- def_delegators :@collection, :<<, :each, :merge, :sort_by, :size, :empty?
8
-
9
- def initialize(collection = Set.new)
10
- @collection = collection
11
- end
12
-
13
- def sorted_by_position
14
- StageCollection.new(sort_by(&:position))
15
- end
16
- end
17
- end
18
- end