lacerda 0.5.1 → 0.6.0

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: c18e12744792ee1181fc60b2d4ff2e4fc8a4e6f1
4
- data.tar.gz: fcf6342cb48049f3148f63593901b96d10c217bc
3
+ metadata.gz: 2f3515827ac0e0906718373949fd7f8b9435da1a
4
+ data.tar.gz: 27db4d757a2a9f77ecc55b24297ca7a53535213b
5
5
  SHA512:
6
- metadata.gz: 3c1c85ab2a8c6f78a00aa38e8e22497170ddca66edddebdaba03364094201681beca3a75060421beb4c6ad13e2002465f30f9b43bec529ebe17efbb6e36f2897
7
- data.tar.gz: 5d15dfb37682e919cda888a549b1b40afeba6e6e4e3db360f7f46e2701c6ae6d92a3484a1884784966a8535971b9d90ff0f9d23648c053e6744e8a87d1950046
6
+ metadata.gz: c2ad189d09cbb074fb2245aefb4359dc96cf41354ffbdc8dd1cfc1fc05bd14e335a739514b2840285243281d99ab4b7763fb27cbbcbf2b4abc91cf911968fefe
7
+ data.tar.gz: 9b2ade73de003c6121bdcabd742b17c5e9f246ce99a9ed642330bf5654c193a847f379fbc7fc2bc234034a6b378c267ad4ab90e7048bc14f27328a727d6c94e4
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.0 (30-Oct-15)
2
+ - bump Blumquist version to the one that auto validates
3
+ - be ruby <2 compatible
4
+
1
5
  # 0.5.0 (29-Oct-15)
2
6
  - add `consume_object` method that returns Blumquist wrapped data
3
7
 
data/lacerda.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_runtime_dependency "json-schema", ["~> 2.5"]
25
25
  spec.add_runtime_dependency "redsnow", ["~> 0.4"]
26
26
  spec.add_runtime_dependency "colorize"
27
- spec.add_runtime_dependency "blumquist", ["~> 0.1.1"]
27
+ spec.add_runtime_dependency "blumquist", ["~> 0.2"]
28
28
 
29
29
  spec.add_development_dependency "bundler", ["~> 1"]
30
30
  spec.add_development_dependency "guard-bundler", ["~> 2.1"]
@@ -4,9 +4,9 @@ module Lacerda
4
4
  class Infrastructure
5
5
  attr_reader :errors, :data_dir
6
6
 
7
- def initialize(data_dir:, verbose: false)
8
- @verbose = !!verbose
9
- @data_dir = data_dir
7
+ def initialize(options)
8
+ @verbose = !!options.fetch(:verbose, false)
9
+ @data_dir = options.fetch(:data_dir)
10
10
  @mutex1 = Mutex.new
11
11
  @mutex2 = Mutex.new
12
12
  end
@@ -81,7 +81,7 @@ module Lacerda
81
81
 
82
82
  def consume_object(type, data)
83
83
  object_description = @consume.object(type)
84
- Blumquist.new(object_description.schema, data)
84
+ Blumquist.new(schema: object_description.schema, data: data)
85
85
  end
86
86
 
87
87
  private
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.5.1'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.1
89
+ version: '0.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.1.1
96
+ version: '0.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -209,7 +209,6 @@ files:
209
209
  - Guardfile
210
210
  - README.md
211
211
  - Rakefile
212
- - circle.yml
213
212
  - lacerda.gemspec
214
213
  - lib/lacerda.rb
215
214
  - lib/lacerda/compare/json_schema.rb
data/circle.yml DELETED
@@ -1,3 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.2.1