dry-types 0.13.3 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d477c5b2e7b19abd7d5a416c906b7d1e532bae40249213145446862ac4b49c21
4
- data.tar.gz: dc995a583c50c208fd4ed875590e99092b865a8596354116b93ba05f96b9e8a3
3
+ metadata.gz: cbf4d67993d24ac6ee54193a12a7ad872078216a115ca170368899d6ce8ec5ea
4
+ data.tar.gz: a0fcfa2eb7abb090b0c182e596e2b2b3c5cdcb28b0065fe23a91a7b7daa0af01
5
5
  SHA512:
6
- metadata.gz: 34ffcfef654b11fa9339a8b8b1b8d3d9bb50c9dfdc849a4f0ed1b6c4f1fef9860f4ecf1dd8d204f93db91114bc23b9f5706e002bfa0605d1fea9e366efc2152f
7
- data.tar.gz: 2efb9306f9c702415f454558d4d4a3c76d471a0898a7f9186e02c32b97da665091525e9c8dfcf501ca21c268536b3027b1c678e353cd7cc5acbf53b8616a0975
6
+ metadata.gz: 7baab2ddb3433498905dc143d299ed4af015d416744a14cb7ebc69d3102d0c6b7c58a1c66859d817003b6c49660cee8fd73d3448e1669cedd87666df3927ce48
7
+ data.tar.gz: 628520f10cfd2d3bfe64313d4528197e542087c8218967fd05c29cd360b0e04a913394711b892dcdd374f544ee01bc5d581c3b707dab4d4d82d67f4010ba8e8e
@@ -10,7 +10,6 @@ before_install:
10
10
  after_success:
11
11
  - '[ -d coverage ] && bundle exec codeclimate-test-reporter'
12
12
  rvm:
13
- - 2.2.9
14
13
  - 2.3.6
15
14
  - 2.4.3
16
15
  - 2.5.0
@@ -1,3 +1,9 @@
1
+ # v0.13.4 2018-12-21
2
+
3
+ ## Fixed
4
+
5
+ * Fixed warnings about keyword arguments from Ruby 2.6. See https://bugs.ruby-lang.org/issues/14183 for all the details (flash-gordon)
6
+
1
7
  # v0.13.3 2018-11-25
2
8
 
3
9
  ## Fixed
@@ -17,15 +17,15 @@ module Dry
17
17
  # @param [Builder, Object] input
18
18
  # @param [Hash] options
19
19
  # @param [#call, nil] block
20
- def self.new(input, options = {}, &block)
20
+ def self.new(input, **options, &block)
21
21
  type = input.is_a?(Builder) ? input : Definition.new(input)
22
- super(type, options, &block)
22
+ super(type, **options, &block)
23
23
  end
24
24
 
25
25
  # @param [Type] type
26
26
  # @param [Hash] options
27
27
  # @param [#call, nil] block
28
- def initialize(type, options = {}, &block)
28
+ def initialize(type, **options, &block)
29
29
  @type = type
30
30
  @fn = options.fetch(:fn, block)
31
31
 
@@ -27,7 +27,7 @@ module Dry
27
27
 
28
28
  # @param [Type,Class] primitive
29
29
  # @param [Hash] options
30
- def initialize(primitive, options = {})
30
+ def initialize(primitive, **options)
31
31
  super
32
32
  @primitive = primitive
33
33
  freeze
@@ -25,7 +25,7 @@ module Dry
25
25
  # @param [Hash] options
26
26
  # @option options [Hash{Symbol => Definition}] :member_types
27
27
  # @option options [String] :key_transform_fn
28
- def initialize(_primitive, options)
28
+ def initialize(_primitive, **options)
29
29
  @member_types = options.fetch(:member_types)
30
30
 
31
31
  meta = options[:meta] || EMPTY_HASH
@@ -14,7 +14,7 @@ module Dry
14
14
  # @param primitive [Type]
15
15
  # @option options [Hash{Symbol => Definition}] :member_types
16
16
  # @option options [Symbol] :hash_type
17
- def call(primitive, options)
17
+ def call(primitive, **options)
18
18
  hash_type = options.fetch(:hash_type)
19
19
  member_types = {}
20
20
 
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Types
3
- VERSION = '0.13.3'.freeze
3
+ VERSION = '0.13.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.3
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-25 00:00:00.000000000 Z
11
+ date: 2018-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -265,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubyforge_project:
269
- rubygems_version: 2.7.6
268
+ rubygems_version: 3.0.0.beta3
270
269
  signing_key:
271
270
  specification_version: 4
272
271
  summary: Type system for Ruby supporting coercions, constraints and complex types