dry-types 0.14.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 108086e1690cb76a8333da83b42c1f2a4b46f9abbb08b2bd878463dfa87fd524
4
- data.tar.gz: ae1430a7067084dcb2945d230ed527677db095ca93bd58df965d2cb3d3069734
3
+ metadata.gz: 56b7935633ed4d23fa17d30082254f98e3e7f642a482c17bdb6f77629f88a399
4
+ data.tar.gz: f9860f5500c746b10dcdd0aec29c70737d31615dc2342ee2ad7bc1f3e12c9250
5
5
  SHA512:
6
- metadata.gz: 4627bd45f3992571ba33cc506a0cfc5904e5763e06c0bc2a92dc757e775bb46f3ece7162b7269af4acca97758f61229f5376afce5692a34ceda78bc73cd0bc07
7
- data.tar.gz: 99fffa1826139214ae7b1abcc6f2a33d6c1280e8cffa528f7dbf33251434d0b0104eef5fb9047c0fedf02aa5bd428df142d0a05457c32c2a530fb0088947ea56
6
+ metadata.gz: 363ff8a7854062a51c71ff646d5e6c3c9ae1c964be5b99267c77b4cbfc5efa9d99b0466cdc736d142859aa624be99bb9fba1cf89bf9282eeb71f234eb5e3898f
7
+ data.tar.gz: 6f6b1714103ea16df7a837c9e0a5b9488adf59f6eddeb8f28228c09daeb843edabacdae54ce9d4b461010c4851f75f8da5860f210b943b1a879105dd85dfd2bf
data/.travis.yml CHANGED
@@ -1,29 +1,27 @@
1
1
  language: ruby
2
+ dist: trusty
3
+ sudo: required
2
4
  cache: bundler
3
- sudo: false
4
5
  bundler_args: --without benchmarks tools
5
- before_script:
6
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
7
- - chmod +x ./cc-test-reporter
8
- - ./cc-test-reporter before-build
9
- after_script:
10
- - "[ -d coverage ] && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
11
6
  script:
12
7
  - bundle exec rake
8
+ after_success:
9
+ - '[ -d coverage ] && bundle exec codeclimate-test-reporter'
13
10
  rvm:
14
- - 2.6.0
15
- - 2.5.3
16
- - 2.4.5
17
11
  - 2.3.8
18
- - jruby-9.2.5.0
12
+ - 2.4.5
13
+ - 2.5.5
14
+ - 2.6.2
15
+ - jruby-9.2.6.0
19
16
  env:
20
17
  global:
21
18
  - COVERAGE=true
19
+ - JRUBY_OPTS='--dev -J-Xmx1024M'
22
20
  notifications:
23
21
  email: false
24
22
  webhooks:
25
23
  urls:
26
24
  - https://webhooks.gitter.im/e/19098b4253a72c9796db
27
- on_success: change # options: [always|never|change] default: always
28
- on_failure: always # options: [always|never|change] default: always
29
- on_start: false # default: false
25
+ on_success: change # options: [always|never|change] default: always
26
+ on_failure: always # options: [always|never|change] default: always
27
+ on_start: false # default: false
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
- # 0.14.0
1
+ # v0.14.1 2019-03-25
2
+
3
+ ## Fixed
4
+ - `coercible.integer` now doesn't blow up on invalid strings (exterm)
5
+
6
+ [Compare v0.14.0...v0.14.1](https://github.com/dry-rb/dry-types/compare/v0.14.0...v0.14.1)
7
+
8
+ # v0.14.0 2019-01-29
2
9
 
3
10
  ## Changed
4
11
 
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ gemspec
4
4
 
5
5
  group :test do
6
6
  platform :mri do
7
+ gem "codeclimate-test-reporter", require: false
7
8
  gem 'simplecov', require: false
8
9
  end
9
10
  end
data/dry-types.gemspec CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
  spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
38
38
  spec.add_runtime_dependency 'dry-logic', '~> 0.5', '>= 0.5'
39
39
 
40
- spec.add_development_dependency "bundler", "~> 1.6"
40
+ spec.add_development_dependency "bundler"
41
41
  spec.add_development_dependency "rake", "~> 11.0"
42
42
  spec.add_development_dependency "rspec", "~> 3.3"
43
43
  spec.add_development_dependency 'dry-monads', '~> 0.2'
@@ -79,7 +79,7 @@ module Dry
79
79
  # @return [Boolean]
80
80
  def valid?(value)
81
81
  constructed_value = fn[value]
82
- rescue NoMethodError, TypeError
82
+ rescue NoMethodError, TypeError, ArgumentError
83
83
  false
84
84
  else
85
85
  type.valid?(constructed_value)
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Types
3
- VERSION = '0.14.0'.freeze
3
+ VERSION = '0.14.1'.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.14.0
4
+ version: 0.14.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-01-29 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -116,16 +116,16 @@ dependencies:
116
116
  name: bundler
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - "~>"
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: '1.6'
121
+ version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - "~>"
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: '1.6'
128
+ version: '0'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: rake
131
131
  requirement: !ruby/object:Gem::Requirement
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  requirements: []
271
- rubygems_version: 3.0.2
271
+ rubygems_version: 3.0.1
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Type system for Ruby supporting coercions, constraints and complex types