dry-monads 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +9 -7
- data/.rubocop.yml +6 -0
- data/CHANGELOG.md +8 -0
- data/lib/dry/monads/do.rb +3 -1
- data/lib/dry/monads/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1408f096fd2a997f68c0ac8f7086eca73b3f493ffab9c2992d9ebaf52418b0e4
|
4
|
+
data.tar.gz: 0c967ca1adcaaf66813f15e92c1391abe681e8e1d0c4ae9c4ea68069b7a915d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f8b2abd8d7a92bb56c7160c0c42c8dc594d4130c874ce79d5d67a2fe827f383353244129b033ad1ba601d20d80ccbe5aebe8b1c4378cbd181a6f532353fa12
|
7
|
+
data.tar.gz: 34d09d33244f4feb8a26fbc91bf66ee02d085e00b33e5cbc3cbcc3c23059478cfc59c2ba5c79e0fb344a4ca543d17f863e374bba11a342d42bff8713723146e8
|
data/.github/workflows/ci.yml
CHANGED
@@ -34,13 +34,14 @@ jobs:
|
|
34
34
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter
|
35
35
|
chmod +x ./tmp/cc-test-reporter
|
36
36
|
./tmp/cc-test-reporter before-build
|
37
|
-
- name:
|
38
|
-
env:
|
39
|
-
COVERAGE: ${{matrix.coverage}}
|
37
|
+
- name: Bundle install
|
40
38
|
run: |
|
41
39
|
gem install bundler
|
42
40
|
bundle install --jobs 4 --retry 3 --without tools docs benchmarks
|
43
|
-
|
41
|
+
- name: Run all tests
|
42
|
+
env:
|
43
|
+
COVERAGE: ${{matrix.coverage}}
|
44
|
+
run: bundle exec rake
|
44
45
|
- name: Send coverage results
|
45
46
|
if: "matrix.coverage == 'true'"
|
46
47
|
env:
|
@@ -58,7 +59,7 @@ jobs:
|
|
58
59
|
strategy:
|
59
60
|
fail-fast: false
|
60
61
|
matrix:
|
61
|
-
image: ["jruby:9.2.
|
62
|
+
image: ["jruby:9.2.9", "ruby:2.7"]
|
62
63
|
container:
|
63
64
|
image: ${{matrix.image}}
|
64
65
|
steps:
|
@@ -67,8 +68,9 @@ jobs:
|
|
67
68
|
run: |
|
68
69
|
apt-get update
|
69
70
|
apt-get install -y --no-install-recommends git
|
70
|
-
- name:
|
71
|
+
- name: Bundle install
|
71
72
|
run: |
|
72
73
|
gem install bundler
|
73
74
|
bundle install --jobs 4 --retry 3 --without tools docs benchmarks
|
74
|
-
|
75
|
+
- name: Run all tests
|
76
|
+
run: bundle exec rake
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/dry/monads/do.rb
CHANGED
@@ -10,6 +10,8 @@ module Dry
|
|
10
10
|
module Do
|
11
11
|
extend Mixin
|
12
12
|
|
13
|
+
DELEGATE = ::RUBY_VERSION < '2.7' ? '*' : '...'
|
14
|
+
|
13
15
|
# @api private
|
14
16
|
class Halt < StandardError
|
15
17
|
# @api private
|
@@ -103,7 +105,7 @@ module Dry
|
|
103
105
|
# @api private
|
104
106
|
def wrap_method(target, method_name)
|
105
107
|
target.module_eval(<<-RUBY, __FILE__, __LINE__ + 1)
|
106
|
-
def #{method_name}(
|
108
|
+
def #{method_name}(#{DELEGATE})
|
107
109
|
if block_given?
|
108
110
|
super
|
109
111
|
else
|
data/lib/dry/monads/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-monads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Shilnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-equalizer
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
|
-
rubygems_version: 3.
|
205
|
+
rubygems_version: 3.1.2
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Common monads for Ruby.
|