definition 0.7.0 → 0.7.1

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: 9de3bc4f221f0a67beb7c82f3d7bacfa86ab332cfc3ab7efe3f35bd6efeeeaca
4
- data.tar.gz: a11b488ecb7fc5e3b2956dbb14c533631936b78d613f6f4a68c58e584cc25faa
3
+ metadata.gz: b16eba88381d8ea5594b51e4855b3ca4f0684196bf552f5498a5eb43f67458bd
4
+ data.tar.gz: 238611bb117e46b6701fae5d6236b66ab9754424dd88a6363dd091601ee2b249
5
5
  SHA512:
6
- metadata.gz: cc464d58c56ef306fdc83868be3f67a7151c64e17f9f28d652584c94f73d2ce083308c1fd1c152bc667d57989f0e7fcbaea0e4a89a9aa30e9fb6093bfab18787
7
- data.tar.gz: cad0aa2a4165e5ea329751dc8ded8a61f943e110a30d930afbcfec3b2ba2ea7686dccbe41ef322906fb56c8ab23df65f83913d794933d29a3f7907ec0d3e23db
6
+ metadata.gz: e4a1d3d64e85ba1a43356adf08413a6469d8f0f59acf35f395c43adc44320557e562a90b54c49f51236664ce94201f65b18a8e9c288edb709cf3ab85102dc12c
7
+ data.tar.gz: 3e753b50686933ddb0c83afbcd394ce0a98b5f16fe9cee7799df94f3b968489f6e0828332b01f4c444ccc86ca575f3af27e6b35a34f391306c5328f721ee2906
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /tmp/
9
9
  /bin/
10
10
  *.swp
11
+ .approvals
11
12
  spec/examples.txt
data/Changelog.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [0.7.1] - 2022-03-04
10
+ ### Fixed
11
+ - Float coercion: check for nil before coercion
12
+
9
13
  ## [0.7.0] - 2022-02-25
10
14
  ### Added
11
15
  - Lambda definitions can now be failed with custom error messages
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- definition (0.7.0)
4
+ definition (0.7.1)
5
5
  activesupport
6
6
  i18n
7
7
 
@@ -49,9 +49,13 @@ GEM
49
49
  rb-inotify (~> 0.9, >= 0.9.10)
50
50
  lumberjack (1.2.8)
51
51
  method_source (1.0.0)
52
+ mini_portile2 (2.8.0)
52
53
  minitest (5.15.0)
53
54
  nenv (0.3.0)
54
- nokogiri (1.13.1-x86_64-linux)
55
+ nokogiri (1.13.3)
56
+ mini_portile2 (~> 2.8.0)
57
+ racc (~> 1.4)
58
+ nokogiri (1.13.3-x86_64-linux)
55
59
  racc (~> 1.4)
56
60
  notiffany (0.1.3)
57
61
  nenv (~> 0.1)
@@ -14,7 +14,7 @@ module Definition
14
14
  end
15
15
 
16
16
  def conform(value)
17
- value = coerce.call(value) if coerce && !valid?(value)
17
+ value = coerce.call(value) if value && coerce && !valid?(value)
18
18
 
19
19
  try_conform(value)
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Definition
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: definition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Goltermann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-25 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -255,7 +255,6 @@ executables: []
255
255
  extensions: []
256
256
  extra_rdoc_files: []
257
257
  files:
258
- - ".approvals"
259
258
  - ".circleci/config.yml"
260
259
  - ".gitignore"
261
260
  - ".rspec"
data/.approvals DELETED
File without changes