lacerda 0.14.1 → 0.14.2

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
  SHA1:
3
- metadata.gz: f3ba739a9e09757bb55d5e48e3eb479359a88641
4
- data.tar.gz: de51bf4427eda378bb3f3ee172c266beece19b83
3
+ metadata.gz: 84b9f409e21598d3679266a9195f9f0ab4067903
4
+ data.tar.gz: 383463e0faf1b456f810ab9f16c0193ed210ea06
5
5
  SHA512:
6
- metadata.gz: 1fa82775ecb797534b07325e2788b69f574482525fcb5d768a4a270fa302f6590ee9a8e62140bdb3c33b83bf4345e906720005f49b1e3d9ff1518a02f49455a1
7
- data.tar.gz: 166b754d392b220ccaf7d2cc53999eeb5894a8a1fa6417ff41194e7ff83cefc03113310e234152c3510db42bc1c2c177ad4a84f954df45e72c9811a56ff5da92
6
+ metadata.gz: f4385a9a6af721d743c2feace10086a6e6d57acba4a69dd79dc93c00285dc51152b47476df846fe2624f266803e81aa749304ad02085e1f87aaa66c98c690a56
7
+ data.tar.gz: 48500d3fbbb716afbddf75b3adecb81cdcbe7d0eee117f065e7339a95f7f8054859c1308fec03e3eb70c5ca3db584d1ee002fda71f6d6ad5da96cc0e31e5ecec
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.3.1
@@ -1,3 +1,7 @@
1
+ # 0.14.2
2
+ - fix compatibility check for types that allow multiple primitives
3
+ (e.g. `"type": ["number", "null"]`)
4
+
1
5
  # 0.14.1
2
6
  - make rspec reporter be a little more ignorant
3
7
 
@@ -53,9 +53,9 @@ module Lacerda
53
53
 
54
54
  # 1)
55
55
  if consume['type'] and publish['type']
56
- consume_types = ([consume['type']].flatten - ["null"]).sort
56
+ consume_types = ([consume['type']].flatten).sort
57
57
  publish_types = [publish['type']].flatten.sort
58
- if consume_types != publish_types
58
+ if !(publish_types - consume_types).blank?
59
59
  return _e(:ERR_TYPE_MISMATCH, location, "Consume types #{consume_types.to_json} not compatible with publish types #{publish_types.to_json}")
60
60
  end
61
61
 
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.14.1'
2
+ VERSION = '0.14.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-01 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  version: '0'
282
282
  requirements: []
283
283
  rubyforge_project:
284
- rubygems_version: 2.6.4
284
+ rubygems_version: 2.5.1
285
285
  signing_key:
286
286
  specification_version: 4
287
287
  summary: Markdown publish/consume contract parser and validator