dry-logic 1.0.5 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +122 -26
  3. data/LICENSE +1 -1
  4. data/README.md +12 -14
  5. data/dry-logic.gemspec +26 -20
  6. data/lib/dry-logic.rb +1 -1
  7. data/lib/dry/logic.rb +2 -2
  8. data/lib/dry/logic/evaluator.rb +1 -1
  9. data/lib/dry/logic/operations.rb +11 -11
  10. data/lib/dry/logic/operations/abstract.rb +3 -3
  11. data/lib/dry/logic/operations/and.rb +3 -3
  12. data/lib/dry/logic/operations/attr.rb +1 -1
  13. data/lib/dry/logic/operations/binary.rb +4 -3
  14. data/lib/dry/logic/operations/check.rb +4 -4
  15. data/lib/dry/logic/operations/each.rb +2 -2
  16. data/lib/dry/logic/operations/implication.rb +2 -2
  17. data/lib/dry/logic/operations/key.rb +3 -3
  18. data/lib/dry/logic/operations/negation.rb +2 -2
  19. data/lib/dry/logic/operations/or.rb +2 -2
  20. data/lib/dry/logic/operations/set.rb +3 -3
  21. data/lib/dry/logic/operations/unary.rb +1 -1
  22. data/lib/dry/logic/operations/xor.rb +2 -2
  23. data/lib/dry/logic/operators.rb +4 -4
  24. data/lib/dry/logic/predicates.rb +32 -7
  25. data/lib/dry/logic/result.rb +2 -2
  26. data/lib/dry/logic/rule.rb +8 -8
  27. data/lib/dry/logic/rule/interface.rb +32 -37
  28. data/lib/dry/logic/rule/predicate.rb +3 -3
  29. data/lib/dry/logic/rule_compiler.rb +3 -3
  30. data/lib/dry/logic/version.rb +1 -1
  31. metadata +17 -166
  32. data/.codeclimate.yml +0 -12
  33. data/.github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md +0 -10
  34. data/.github/ISSUE_TEMPLATE/---bug-report.md +0 -34
  35. data/.github/ISSUE_TEMPLATE/---feature-request.md +0 -18
  36. data/.github/workflows/ci.yml +0 -70
  37. data/.github/workflows/docsite.yml +0 -34
  38. data/.github/workflows/sync_configs.yml +0 -34
  39. data/.gitignore +0 -9
  40. data/.rspec +0 -4
  41. data/.rubocop.yml +0 -89
  42. data/CODE_OF_CONDUCT.md +0 -13
  43. data/CONTRIBUTING.md +0 -29
  44. data/Gemfile +0 -16
  45. data/Rakefile +0 -14
  46. data/benchmarks/rule_application.rb +0 -30
  47. data/benchmarks/setup.rb +0 -13
  48. data/bin/console +0 -11
  49. data/docsite/source/index.html.md +0 -54
  50. data/docsite/source/operations.html.md +0 -62
  51. data/docsite/source/predicates.html.md +0 -102
  52. data/examples/basic.rb +0 -16
  53. data/spec/integration/result_spec.rb +0 -61
  54. data/spec/integration/rule_spec.rb +0 -55
  55. data/spec/shared/predicates.rb +0 -59
  56. data/spec/shared/rule.rb +0 -74
  57. data/spec/spec_helper.rb +0 -30
  58. data/spec/support/mutant.rb +0 -11
  59. data/spec/unit/operations/and_spec.rb +0 -70
  60. data/spec/unit/operations/attr_spec.rb +0 -29
  61. data/spec/unit/operations/check_spec.rb +0 -51
  62. data/spec/unit/operations/each_spec.rb +0 -49
  63. data/spec/unit/operations/implication_spec.rb +0 -32
  64. data/spec/unit/operations/key_spec.rb +0 -135
  65. data/spec/unit/operations/negation_spec.rb +0 -51
  66. data/spec/unit/operations/or_spec.rb +0 -75
  67. data/spec/unit/operations/set_spec.rb +0 -43
  68. data/spec/unit/operations/xor_spec.rb +0 -63
  69. data/spec/unit/predicates/array_spec.rb +0 -43
  70. data/spec/unit/predicates/attr_spec.rb +0 -31
  71. data/spec/unit/predicates/bool_spec.rb +0 -36
  72. data/spec/unit/predicates/bytesize_spec.rb +0 -48
  73. data/spec/unit/predicates/case_spec.rb +0 -35
  74. data/spec/unit/predicates/date_spec.rb +0 -33
  75. data/spec/unit/predicates/date_time_spec.rb +0 -33
  76. data/spec/unit/predicates/decimal_spec.rb +0 -34
  77. data/spec/unit/predicates/empty_spec.rb +0 -40
  78. data/spec/unit/predicates/eql_spec.rb +0 -23
  79. data/spec/unit/predicates/even_spec.rb +0 -33
  80. data/spec/unit/predicates/excluded_from_spec.rb +0 -37
  81. data/spec/unit/predicates/excludes_spec.rb +0 -58
  82. data/spec/unit/predicates/false_spec.rb +0 -37
  83. data/spec/unit/predicates/filled_spec.rb +0 -40
  84. data/spec/unit/predicates/float_spec.rb +0 -33
  85. data/spec/unit/predicates/format_spec.rb +0 -31
  86. data/spec/unit/predicates/gt_spec.rb +0 -42
  87. data/spec/unit/predicates/gteq_spec.rb +0 -42
  88. data/spec/unit/predicates/hash_spec.rb +0 -40
  89. data/spec/unit/predicates/included_in_spec.rb +0 -37
  90. data/spec/unit/predicates/includes_spec.rb +0 -24
  91. data/spec/unit/predicates/int_spec.rb +0 -36
  92. data/spec/unit/predicates/key_spec.rb +0 -31
  93. data/spec/unit/predicates/lt_spec.rb +0 -42
  94. data/spec/unit/predicates/lteq_spec.rb +0 -42
  95. data/spec/unit/predicates/max_bytesize_spec.rb +0 -39
  96. data/spec/unit/predicates/max_size_spec.rb +0 -51
  97. data/spec/unit/predicates/min_bytesize_spec.rb +0 -39
  98. data/spec/unit/predicates/min_size_spec.rb +0 -51
  99. data/spec/unit/predicates/none_spec.rb +0 -30
  100. data/spec/unit/predicates/not_eql_spec.rb +0 -23
  101. data/spec/unit/predicates/number_spec.rb +0 -39
  102. data/spec/unit/predicates/odd_spec.rb +0 -33
  103. data/spec/unit/predicates/respond_to_spec.rb +0 -31
  104. data/spec/unit/predicates/size_spec.rb +0 -57
  105. data/spec/unit/predicates/str_spec.rb +0 -34
  106. data/spec/unit/predicates/time_spec.rb +0 -33
  107. data/spec/unit/predicates/true_spec.rb +0 -37
  108. data/spec/unit/predicates/type_spec.rb +0 -37
  109. data/spec/unit/predicates/uuid_v4_spec.rb +0 -29
  110. data/spec/unit/predicates_spec.rb +0 -25
  111. data/spec/unit/rule/predicate_spec.rb +0 -55
  112. data/spec/unit/rule_compiler_spec.rb +0 -129
  113. data/spec/unit/rule_spec.rb +0 -213
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/logic/rule'
3
+ require "dry/logic/rule"
4
4
 
5
5
  module Dry
6
6
  module Logic
@@ -19,9 +19,9 @@ module Dry
19
19
 
20
20
  def to_s
21
21
  if args.size > 0
22
- "#{name}(#{args.map(&:inspect).join(', ')})"
22
+ "#{name}(#{args.map(&:inspect).join(", ")})"
23
23
  else
24
- "#{name}"
24
+ name.to_s
25
25
  end
26
26
  end
27
27
 
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/constants'
3
+ require "dry/core/constants"
4
4
 
5
- require 'dry/logic/rule'
6
- require 'dry/logic/rule/predicate'
5
+ require "dry/logic/rule"
6
+ require "dry/logic/rule/predicate"
7
7
 
8
8
  module Dry
9
9
  module Logic
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Logic
5
- VERSION = '1.0.5'
5
+ VERSION = "1.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-logic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2021-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -30,28 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.2'
41
- - !ruby/object:Gem::Dependency
42
- name: dry-equalizer
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
33
+ version: '0.5'
34
+ - - ">="
46
35
  - !ruby/object:Gem::Version
47
- version: '0.2'
36
+ version: '0.5'
48
37
  type: :runtime
49
38
  prerelease: false
50
39
  version_requirements: !ruby/object:Gem::Requirement
51
40
  requirements:
52
41
  - - "~>"
53
42
  - !ruby/object:Gem::Version
54
- version: '0.2'
43
+ version: '0.5'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0.5'
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: bundler
57
49
  requirement: !ruby/object:Gem::Requirement
@@ -94,38 +86,17 @@ dependencies:
94
86
  - - ">="
95
87
  - !ruby/object:Gem::Version
96
88
  version: '0'
97
- description:
89
+ description: Predicate logic with rule composition
98
90
  email:
99
91
  - piotr.solnica@gmail.com
100
92
  executables: []
101
93
  extensions: []
102
94
  extra_rdoc_files: []
103
95
  files:
104
- - ".codeclimate.yml"
105
- - ".github/ISSUE_TEMPLATE/----please-don-t-ask-for-support-via-issues.md"
106
- - ".github/ISSUE_TEMPLATE/---bug-report.md"
107
- - ".github/ISSUE_TEMPLATE/---feature-request.md"
108
- - ".github/workflows/ci.yml"
109
- - ".github/workflows/docsite.yml"
110
- - ".github/workflows/sync_configs.yml"
111
- - ".gitignore"
112
- - ".rspec"
113
- - ".rubocop.yml"
114
96
  - CHANGELOG.md
115
- - CODE_OF_CONDUCT.md
116
- - CONTRIBUTING.md
117
- - Gemfile
118
97
  - LICENSE
119
98
  - README.md
120
- - Rakefile
121
- - benchmarks/rule_application.rb
122
- - benchmarks/setup.rb
123
- - bin/console
124
- - docsite/source/index.html.md
125
- - docsite/source/operations.html.md
126
- - docsite/source/predicates.html.md
127
99
  - dry-logic.gemspec
128
- - examples/basic.rb
129
100
  - lib/dry-logic.rb
130
101
  - lib/dry/logic.rb
131
102
  - lib/dry/logic/appliable.rb
@@ -152,73 +123,14 @@ files:
152
123
  - lib/dry/logic/rule/predicate.rb
153
124
  - lib/dry/logic/rule_compiler.rb
154
125
  - lib/dry/logic/version.rb
155
- - spec/integration/result_spec.rb
156
- - spec/integration/rule_spec.rb
157
- - spec/shared/predicates.rb
158
- - spec/shared/rule.rb
159
- - spec/spec_helper.rb
160
- - spec/support/mutant.rb
161
- - spec/unit/operations/and_spec.rb
162
- - spec/unit/operations/attr_spec.rb
163
- - spec/unit/operations/check_spec.rb
164
- - spec/unit/operations/each_spec.rb
165
- - spec/unit/operations/implication_spec.rb
166
- - spec/unit/operations/key_spec.rb
167
- - spec/unit/operations/negation_spec.rb
168
- - spec/unit/operations/or_spec.rb
169
- - spec/unit/operations/set_spec.rb
170
- - spec/unit/operations/xor_spec.rb
171
- - spec/unit/predicates/array_spec.rb
172
- - spec/unit/predicates/attr_spec.rb
173
- - spec/unit/predicates/bool_spec.rb
174
- - spec/unit/predicates/bytesize_spec.rb
175
- - spec/unit/predicates/case_spec.rb
176
- - spec/unit/predicates/date_spec.rb
177
- - spec/unit/predicates/date_time_spec.rb
178
- - spec/unit/predicates/decimal_spec.rb
179
- - spec/unit/predicates/empty_spec.rb
180
- - spec/unit/predicates/eql_spec.rb
181
- - spec/unit/predicates/even_spec.rb
182
- - spec/unit/predicates/excluded_from_spec.rb
183
- - spec/unit/predicates/excludes_spec.rb
184
- - spec/unit/predicates/false_spec.rb
185
- - spec/unit/predicates/filled_spec.rb
186
- - spec/unit/predicates/float_spec.rb
187
- - spec/unit/predicates/format_spec.rb
188
- - spec/unit/predicates/gt_spec.rb
189
- - spec/unit/predicates/gteq_spec.rb
190
- - spec/unit/predicates/hash_spec.rb
191
- - spec/unit/predicates/included_in_spec.rb
192
- - spec/unit/predicates/includes_spec.rb
193
- - spec/unit/predicates/int_spec.rb
194
- - spec/unit/predicates/key_spec.rb
195
- - spec/unit/predicates/lt_spec.rb
196
- - spec/unit/predicates/lteq_spec.rb
197
- - spec/unit/predicates/max_bytesize_spec.rb
198
- - spec/unit/predicates/max_size_spec.rb
199
- - spec/unit/predicates/min_bytesize_spec.rb
200
- - spec/unit/predicates/min_size_spec.rb
201
- - spec/unit/predicates/none_spec.rb
202
- - spec/unit/predicates/not_eql_spec.rb
203
- - spec/unit/predicates/number_spec.rb
204
- - spec/unit/predicates/odd_spec.rb
205
- - spec/unit/predicates/respond_to_spec.rb
206
- - spec/unit/predicates/size_spec.rb
207
- - spec/unit/predicates/str_spec.rb
208
- - spec/unit/predicates/time_spec.rb
209
- - spec/unit/predicates/true_spec.rb
210
- - spec/unit/predicates/type_spec.rb
211
- - spec/unit/predicates/uuid_v4_spec.rb
212
- - spec/unit/predicates_spec.rb
213
- - spec/unit/rule/predicate_spec.rb
214
- - spec/unit/rule_compiler_spec.rb
215
- - spec/unit/rule_spec.rb
216
- homepage: https://github.com/dry-rb/dry-logic
126
+ homepage: https://dry-rb.org/gems/dry-logic
217
127
  licenses:
218
128
  - MIT
219
129
  metadata:
220
- source_code_uri: https://github.com/dry-rb/dry-logic
130
+ allowed_push_host: https://rubygems.org
221
131
  changelog_uri: https://github.com/dry-rb/dry-logic/blob/master/CHANGELOG.md
132
+ source_code_uri: https://github.com/dry-rb/dry-logic
133
+ bug_tracker_uri: https://github.com/dry-rb/dry-logic/issues
222
134
  post_install_message:
223
135
  rdoc_options: []
224
136
  require_paths:
@@ -227,76 +139,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
139
  requirements:
228
140
  - - ">="
229
141
  - !ruby/object:Gem::Version
230
- version: 2.4.0
142
+ version: 2.5.0
231
143
  required_rubygems_version: !ruby/object:Gem::Requirement
232
144
  requirements:
233
145
  - - ">="
234
146
  - !ruby/object:Gem::Version
235
147
  version: '0'
236
148
  requirements: []
237
- rubygems_version: 3.0.6
149
+ rubygems_version: 3.1.6
238
150
  signing_key:
239
151
  specification_version: 4
240
152
  summary: Predicate logic with rule composition
241
- test_files:
242
- - spec/integration/result_spec.rb
243
- - spec/integration/rule_spec.rb
244
- - spec/shared/predicates.rb
245
- - spec/shared/rule.rb
246
- - spec/spec_helper.rb
247
- - spec/support/mutant.rb
248
- - spec/unit/operations/and_spec.rb
249
- - spec/unit/operations/attr_spec.rb
250
- - spec/unit/operations/check_spec.rb
251
- - spec/unit/operations/each_spec.rb
252
- - spec/unit/operations/implication_spec.rb
253
- - spec/unit/operations/key_spec.rb
254
- - spec/unit/operations/negation_spec.rb
255
- - spec/unit/operations/or_spec.rb
256
- - spec/unit/operations/set_spec.rb
257
- - spec/unit/operations/xor_spec.rb
258
- - spec/unit/predicates/array_spec.rb
259
- - spec/unit/predicates/attr_spec.rb
260
- - spec/unit/predicates/bool_spec.rb
261
- - spec/unit/predicates/bytesize_spec.rb
262
- - spec/unit/predicates/case_spec.rb
263
- - spec/unit/predicates/date_spec.rb
264
- - spec/unit/predicates/date_time_spec.rb
265
- - spec/unit/predicates/decimal_spec.rb
266
- - spec/unit/predicates/empty_spec.rb
267
- - spec/unit/predicates/eql_spec.rb
268
- - spec/unit/predicates/even_spec.rb
269
- - spec/unit/predicates/excluded_from_spec.rb
270
- - spec/unit/predicates/excludes_spec.rb
271
- - spec/unit/predicates/false_spec.rb
272
- - spec/unit/predicates/filled_spec.rb
273
- - spec/unit/predicates/float_spec.rb
274
- - spec/unit/predicates/format_spec.rb
275
- - spec/unit/predicates/gt_spec.rb
276
- - spec/unit/predicates/gteq_spec.rb
277
- - spec/unit/predicates/hash_spec.rb
278
- - spec/unit/predicates/included_in_spec.rb
279
- - spec/unit/predicates/includes_spec.rb
280
- - spec/unit/predicates/int_spec.rb
281
- - spec/unit/predicates/key_spec.rb
282
- - spec/unit/predicates/lt_spec.rb
283
- - spec/unit/predicates/lteq_spec.rb
284
- - spec/unit/predicates/max_bytesize_spec.rb
285
- - spec/unit/predicates/max_size_spec.rb
286
- - spec/unit/predicates/min_bytesize_spec.rb
287
- - spec/unit/predicates/min_size_spec.rb
288
- - spec/unit/predicates/none_spec.rb
289
- - spec/unit/predicates/not_eql_spec.rb
290
- - spec/unit/predicates/number_spec.rb
291
- - spec/unit/predicates/odd_spec.rb
292
- - spec/unit/predicates/respond_to_spec.rb
293
- - spec/unit/predicates/size_spec.rb
294
- - spec/unit/predicates/str_spec.rb
295
- - spec/unit/predicates/time_spec.rb
296
- - spec/unit/predicates/true_spec.rb
297
- - spec/unit/predicates/type_spec.rb
298
- - spec/unit/predicates/uuid_v4_spec.rb
299
- - spec/unit/predicates_spec.rb
300
- - spec/unit/rule/predicate_spec.rb
301
- - spec/unit/rule_compiler_spec.rb
302
- - spec/unit/rule_spec.rb
153
+ test_files: []
data/.codeclimate.yml DELETED
@@ -1,12 +0,0 @@
1
- # this file is managed by dry-rb/devtools project
2
-
3
- version: "2"
4
-
5
- exclude_patterns:
6
- - "benchmarks/"
7
- - "examples/"
8
- - "spec/"
9
-
10
- plugins:
11
- rubocop:
12
- enabled: true
@@ -1,10 +0,0 @@
1
- ---
2
- name: "⚠️ Please don't ask for support via issues"
3
- about: See CONTRIBUTING.md for more information
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
-
@@ -1,34 +0,0 @@
1
- ---
2
- name: "\U0001F41B Bug report"
3
- about: See CONTRIBUTING.md for more information
4
- title: ''
5
- labels: bug
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Before you submit this: WE ONLY ACCEPT BUG REPORTS AND FEATURE REQUESTS**
11
-
12
- For more information see [our contribution guidelines](https://github.com/rom-rb/rom/blob/master/CONTRIBUTING.md)
13
-
14
- **Before you report**
15
-
16
- :warning: If you have a problem related to a schema, please **report it under [dry-schema issues](https://github.com/dry-rb/dry-schema/issues/new?assignees=&labels=bug&template=---bug-report.md&title=)** instead.
17
-
18
- **Describe the bug**
19
-
20
- A clear and concise description of what the bug is.
21
-
22
- **To Reproduce**
23
-
24
- Provide detailed steps to reproduce, an executable script would be best.
25
-
26
- **Expected behavior**
27
-
28
- A clear and concise description of what you expected to happen.
29
-
30
- **Your environment**
31
-
32
- - Affects my production application: **YES/NO**
33
- - Ruby version: ...
34
- - OS: ...
@@ -1,18 +0,0 @@
1
- ---
2
- name: "\U0001F6E0 Feature request"
3
- about: See CONTRIBUTING.md for more information
4
- title: ''
5
- labels: feature
6
- assignees: ''
7
-
8
- ---
9
-
10
- Summary of what the feature is supposed to do.
11
-
12
- ## Examples
13
-
14
- Code examples showing how the feature could be used.
15
-
16
- ## Resources
17
-
18
- Additional information, like a link to the discussion forum thread where the feature was discussed etc.
@@ -1,70 +0,0 @@
1
- name: ci
2
-
3
- on:
4
- push:
5
- paths:
6
- - .github/workflows/ci.yml
7
- - lib/**
8
- - spec/**
9
-
10
- jobs:
11
- tests-mri:
12
- runs-on: ubuntu-latest
13
- strategy:
14
- fail-fast: false
15
- matrix:
16
- ruby: ["2.6.x", "2.5.x", "2.4.x"]
17
- include:
18
- - ruby: "2.6.x"
19
- coverage: "true"
20
- steps:
21
- - uses: actions/checkout@v1
22
- - name: Set up Ruby
23
- uses: actions/setup-ruby@v1
24
- with:
25
- ruby-version: ${{matrix.ruby}}
26
- - name: Download test reporter
27
- if: "matrix.coverage == 'true'"
28
- run: |
29
- mkdir -p tmp/
30
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter
31
- chmod +x ./tmp/cc-test-reporter
32
- ./tmp/cc-test-reporter before-build
33
- - name: Run all tests
34
- env:
35
- COVERAGE: ${{matrix.coverage}}
36
- run: |
37
- gem install bundler
38
- bundle install --jobs 4 --retry 3 --without tools docs
39
- bundle exec rake
40
- - name: Send coverage results
41
- if: "matrix.coverage == 'true'"
42
- env:
43
- CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
44
- GIT_COMMIT_SHA: ${{github.sha}}
45
- GIT_BRANCH: ${{github.ref}}
46
- GIT_COMMITTED_AT: ${{github.event.head_commit.timestamp}}
47
- run: |
48
- GIT_BRANCH=`ruby -e "puts ENV['GITHUB_REF'].split('/', 3).last"` \
49
- GIT_COMMITTED_AT=`ruby -r time -e "puts Time.iso8601(ENV['GIT_COMMITTED_AT']).to_i"` \
50
- ./tmp/cc-test-reporter after-build
51
-
52
- tests-others:
53
- runs-on: ubuntu-latest
54
- strategy:
55
- fail-fast: false
56
- matrix:
57
- image: ["jruby:9.2.8", "ruby:rc"]
58
- container:
59
- image: ${{matrix.image}}
60
- steps:
61
- - uses: actions/checkout@v1
62
- - name: Install git
63
- run: |
64
- apt-get update
65
- apt-get install -y --no-install-recommends git
66
- - name: Run all tests
67
- run: |
68
- gem install bundler
69
- bundle install --jobs 4 --retry 3 --without tools docs
70
- bundle exec rspec
@@ -1,34 +0,0 @@
1
- # this file is managed by dry-rb/devtools project
2
-
3
- name: docsite
4
-
5
- on:
6
- push:
7
- paths:
8
- - docsite/**
9
- - .github/workflows/docsite.yml
10
- branches:
11
- - master
12
- - release-**
13
- tags:
14
-
15
- jobs:
16
- update-docs:
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: actions/checkout@v1
20
- - name: Set up Ruby
21
- uses: actions/setup-ruby@v1
22
- with:
23
- ruby-version: "2.6.x"
24
- - name: Install dependencies
25
- run: |
26
- gem install bundler
27
- bundle install --jobs 4 --retry 3 --without benchmarks sql
28
- - name: Symlink ossy
29
- run: mkdir -p bin && ln -sf "$(bundle show ossy)/bin/ossy" bin/ossy
30
- - name: Trigger dry-rb.org deploy
31
- env:
32
- GITHUB_LOGIN: dry-bot
33
- GITHUB_TOKEN: ${{ secrets.GH_PAT }}
34
- run: bin/ossy github workflow dry-rb/dry-rb.org ci