lacerda 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: f22605d51fec41e57a8bb76e38621ef3fba87847
4
- data.tar.gz: 186995c3c701f0a3ffaf6783eed3cbb85ee2b940
3
+ metadata.gz: 91f5bd818b023050eb685876d234aee2759844df
4
+ data.tar.gz: d29587aa04edda7df8aa1a18557e4ac8b986699a
5
5
  SHA512:
6
- metadata.gz: f9527eab7980d2770748ce1382678111e992ab125e5918f0843ddc28d4d56071972d770082908630491836922eadef2a66cca8645b0643b145c1957cf98581d9
7
- data.tar.gz: 6e76e0f5edc802737bcb0099b1886e5397fbcf8f7ed6835ad76d332279b4f1f014c349c80e1c110d5a8c613255ccb5fb1f16d417a6942f277f82d3d48c8d0cd6
6
+ metadata.gz: 8f2e8d8336cdc01a964eefa2c3098370823ad82be164505c87add3701dda4209d5b83657694b6933cb909f98fa50ba85e07733cd3745f082941f5fa706382109
7
+ data.tar.gz: bdfb411bcb9ca86e2ba1756ab7554674bba344e917b426acd0d568f2dc78ce40a9a28acd18c6292e964a56fb6f72f41a149f1d6df821b88d04893de2d2e849da
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.3.3 (28-Oct-15)
2
+ - add error messages
3
+
1
4
  # 0.3.2 (28-Oct-15)
2
5
  - fix wrongly named rake task
3
6
  - fix case where an infrastructure with a missing publishing service was reported as valid
@@ -2,14 +2,14 @@ module Lacerda
2
2
  module Compare
3
3
  class JsonSchema
4
4
  ERRORS = {
5
- :ERR_ARRAY_ITEM_MISMATCH => nil,
6
- :ERR_MISSING_DEFINITION => nil,
7
- :ERR_MISSING_POINTER => nil,
8
- :ERR_MISSING_PROPERTY => nil,
9
- :ERR_MISSING_REQUIRED => nil,
10
- :ERR_MISSING_TYPE_AND_REF => nil,
11
- :ERR_TYPE_MISMATCH => nil,
12
- :ERR_NOT_SUPPORTED => nil
5
+ :ERR_ARRAY_ITEM_MISMATCH => "The items in the published array don't match the consumer's specification.",
6
+ :ERR_MISSING_DEFINITION => "The published object is missing a type defined the consumer's specification.",
7
+ :ERR_MISSING_POINTER => "A JSON pointer could not be resolved.",
8
+ :ERR_MISSING_PROPERTY => "The published object is missing a property required by your specification.",
9
+ :ERR_MISSING_REQUIRED => "The published object has an optional property that you marked as required in your specification.",
10
+ :ERR_MISSING_TYPE_AND_REF => 'A property has to either have a "type" or a "$ref" property.',
11
+ :ERR_TYPE_MISMATCH => "The published object has a property with a different type than the consumer's specification.",
12
+ :ERR_NOT_SUPPORTED => 'I don\'t yet know what to do when the consumer\'s specification has a "$ref" defined and the publisher\'s specification has a "type".'
13
13
  }
14
14
 
15
15
  attr_reader :errors
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport