dry-struct 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -6
- data/CHANGELOG.md +13 -5
- data/lib/dry/struct.rb +2 -2
- data/lib/dry/struct/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699389c318f69ba426a40f87002f2003470f2b5b5f4fe552a8e9951d233f66b8
|
4
|
+
data.tar.gz: adae078b67653286ce7f930d5a5f105be42ac4783775de11091ba63a4db44094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f97d383c6e7c6da04d71fb15ae37dd3e5a99a77d572edf19f5deee75422a03012985c1234f17dd24ed67927ca56dad5da668c3e3596dbc1f18f50f3b72436990
|
7
|
+
data.tar.gz: 2034ae0d33585fca5386ab7271c0e7699b570ea813b1cad26b6662fc6621c770fbce5a08b5fb7a983841a1dbc5285cf8547071f7e0b7a318f332ea9b7ccb5fc3
|
data/.travis.yml
CHANGED
@@ -7,18 +7,17 @@ script:
|
|
7
7
|
after_success:
|
8
8
|
- "[ -d coverage ] && bundle exec codeclimate-test-reporter"
|
9
9
|
rvm:
|
10
|
-
- 2.4.
|
11
|
-
- 2.5.
|
12
|
-
- 2.6.
|
13
|
-
-
|
10
|
+
- 2.4.9
|
11
|
+
- 2.5.7
|
12
|
+
- 2.6.5
|
13
|
+
- 2.7
|
14
|
+
- jruby-9.2.8.0
|
14
15
|
- truffleruby
|
15
16
|
env:
|
16
17
|
global:
|
17
18
|
- COVERAGE=true
|
18
19
|
- JRUBY_OPTS='--dev -J-Xmx1024M'
|
19
20
|
matrix:
|
20
|
-
include:
|
21
|
-
- rvm: 2.7
|
22
21
|
allow_failures:
|
23
22
|
- rvm: truffleruby
|
24
23
|
notifications:
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# 1.1.
|
1
|
+
# 1.1.1 2019-10-13
|
2
2
|
|
3
|
-
##
|
3
|
+
## Changed
|
4
4
|
|
5
|
-
-
|
5
|
+
- Pattern matching syntax is simplified with `deconstruct_keys` (k-tsj)
|
6
6
|
|
7
7
|
```ruby
|
8
8
|
User = Dry.Struct(name: 'string', email: 'string')
|
@@ -10,14 +10,22 @@
|
|
10
10
|
user = User.new(name: 'John Doe', email: 'john@acme.org')
|
11
11
|
|
12
12
|
case user
|
13
|
-
in User(
|
13
|
+
in User(name: 'John Doe', email:)
|
14
14
|
puts email
|
15
15
|
else
|
16
16
|
puts 'Not John'
|
17
17
|
end
|
18
18
|
```
|
19
19
|
|
20
|
-
See more examples in the [specs](https://github.com/dry-rb/dry-struct/blob/
|
20
|
+
See more examples in the [specs](https://github.com/dry-rb/dry-struct/blob/8112772eb08d22ff2cd3e6997514d79a9b124968/spec/dry/struct/pattern_matching_spec.rb).
|
21
|
+
|
22
|
+
[Compare v1.1.0...v1.1.1](https://github.com/dry-rb/dry-struct/compare/v1.1.0...v1.1.1)
|
23
|
+
|
24
|
+
# 1.1.0 2019-10-07
|
25
|
+
|
26
|
+
## Added
|
27
|
+
|
28
|
+
- Experimental support for pattern matching :tada: (flash-gordon)
|
21
29
|
|
22
30
|
[Compare v1.0.0...v1.1.0](https://github.com/dry-rb/dry-struct/compare/v1.0.0...v1.1.0)
|
23
31
|
|
data/lib/dry/struct.rb
CHANGED
data/lib/dry/struct/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-equalizer
|