operations 0.0.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +33 -0
  3. data/.gitignore +4 -0
  4. data/.rspec +0 -2
  5. data/.rubocop.yml +21 -0
  6. data/.rubocop_todo.yml +36 -0
  7. data/Appraisals +8 -0
  8. data/CHANGELOG.md +11 -0
  9. data/Gemfile +8 -2
  10. data/README.md +910 -5
  11. data/Rakefile +3 -1
  12. data/gemfiles/rails.5.2.gemfile +14 -0
  13. data/gemfiles/rails.6.0.gemfile +14 -0
  14. data/gemfiles/rails.6.1.gemfile +14 -0
  15. data/gemfiles/rails.7.0.gemfile +14 -0
  16. data/gemfiles/rails.7.1.gemfile +14 -0
  17. data/lib/operations/command.rb +412 -0
  18. data/lib/operations/components/base.rb +79 -0
  19. data/lib/operations/components/callback.rb +55 -0
  20. data/lib/operations/components/contract.rb +20 -0
  21. data/lib/operations/components/idempotency.rb +70 -0
  22. data/lib/operations/components/on_failure.rb +16 -0
  23. data/lib/operations/components/on_success.rb +35 -0
  24. data/lib/operations/components/operation.rb +37 -0
  25. data/lib/operations/components/policies.rb +42 -0
  26. data/lib/operations/components/prechecks.rb +38 -0
  27. data/lib/operations/components/preconditions.rb +45 -0
  28. data/lib/operations/components.rb +5 -0
  29. data/lib/operations/configuration.rb +15 -0
  30. data/lib/operations/contract/messages_resolver.rb +11 -0
  31. data/lib/operations/contract.rb +39 -0
  32. data/lib/operations/convenience.rb +102 -0
  33. data/lib/operations/form/attribute.rb +42 -0
  34. data/lib/operations/form/builder.rb +85 -0
  35. data/lib/operations/form.rb +194 -0
  36. data/lib/operations/result.rb +122 -0
  37. data/lib/operations/test_helpers.rb +71 -0
  38. data/lib/operations/types.rb +6 -0
  39. data/lib/operations/version.rb +3 -1
  40. data/lib/operations.rb +42 -2
  41. data/operations.gemspec +20 -4
  42. metadata +164 -9
  43. data/.travis.yml +0 -6
metadata CHANGED
@@ -1,15 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: operations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkadiy Zabazhanov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-22 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2023-11-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: appraisal
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: database_cleaner-active_record
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activerecord
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 5.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 5.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: activesupport
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 5.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 5.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: after_commit_everywhere
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: dry-monads
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: dry-struct
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: dry-validation
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
13
139
  description: Operations framework
14
140
  email:
15
141
  - kinwizard@gmail.com
@@ -17,25 +143,54 @@ executables: []
17
143
  extensions: []
18
144
  extra_rdoc_files: []
19
145
  files:
146
+ - ".github/workflows/ci.yml"
20
147
  - ".gitignore"
21
148
  - ".rspec"
22
- - ".travis.yml"
149
+ - ".rubocop.yml"
150
+ - ".rubocop_todo.yml"
151
+ - Appraisals
152
+ - CHANGELOG.md
23
153
  - Gemfile
24
154
  - LICENSE.txt
25
155
  - README.md
26
156
  - Rakefile
27
157
  - bin/console
28
158
  - bin/setup
159
+ - gemfiles/rails.5.2.gemfile
160
+ - gemfiles/rails.6.0.gemfile
161
+ - gemfiles/rails.6.1.gemfile
162
+ - gemfiles/rails.7.0.gemfile
163
+ - gemfiles/rails.7.1.gemfile
29
164
  - lib/operations.rb
165
+ - lib/operations/command.rb
166
+ - lib/operations/components.rb
167
+ - lib/operations/components/base.rb
168
+ - lib/operations/components/callback.rb
169
+ - lib/operations/components/contract.rb
170
+ - lib/operations/components/idempotency.rb
171
+ - lib/operations/components/on_failure.rb
172
+ - lib/operations/components/on_success.rb
173
+ - lib/operations/components/operation.rb
174
+ - lib/operations/components/policies.rb
175
+ - lib/operations/components/prechecks.rb
176
+ - lib/operations/components/preconditions.rb
177
+ - lib/operations/configuration.rb
178
+ - lib/operations/contract.rb
179
+ - lib/operations/contract/messages_resolver.rb
180
+ - lib/operations/convenience.rb
181
+ - lib/operations/form.rb
182
+ - lib/operations/form/attribute.rb
183
+ - lib/operations/form/builder.rb
184
+ - lib/operations/result.rb
185
+ - lib/operations/test_helpers.rb
186
+ - lib/operations/types.rb
30
187
  - lib/operations/version.rb
31
188
  - operations.gemspec
32
189
  homepage: https://github.com/BookingSync/operations
33
190
  licenses:
34
191
  - MIT
35
192
  metadata:
36
- homepage_uri: https://github.com/BookingSync/operations
37
- source_code_uri: https://github.com/BookingSync/operations
38
- changelog_uri: https://github.com/BookingSync/operations
193
+ rubygems_mfa_required: 'true'
39
194
  post_install_message:
40
195
  rdoc_options: []
41
196
  require_paths:
@@ -44,14 +199,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
199
  requirements:
45
200
  - - ">="
46
201
  - !ruby/object:Gem::Version
47
- version: 2.3.0
202
+ version: 2.7.0
48
203
  required_rubygems_version: !ruby/object:Gem::Requirement
49
204
  requirements:
50
205
  - - ">="
51
206
  - !ruby/object:Gem::Version
52
207
  version: '0'
53
208
  requirements: []
54
- rubygems_version: 3.1.6
209
+ rubygems_version: 3.3.26
55
210
  signing_key:
56
211
  specification_version: 4
57
212
  summary: Operations framework
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.4
6
- before_install: gem install bundler -v 2.1.4