blumquist 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/blumquist.rb +1 -1
- data/lib/blumquist/errors/validation.rb +1 -1
- data/lib/blumquist/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5e4d75cddd5c44519c9825fda2a66b098e091b
|
4
|
+
data.tar.gz: 8b4296bec61f4eb06eefc5bb308c1d8acb04799b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82bc8da4c1734ee3510496646251fffaa144aa2e2308640b90d7e5e58e00b40471d74a2950a52dea006dbe44d537bc04736f5f8d419d60c15e1f655f08e6e554
|
7
|
+
data.tar.gz: 04058a903ca94f86ddfc88450a9afa1783dadfdc34fc38606be1f8c9c4affda9caf29039a3facf3a8f48408b18e3c4a84444461c3cfe5af501bc0f9d0ea11c81
|
data/CHANGELOG.md
CHANGED
data/lib/blumquist.rb
CHANGED
@@ -45,7 +45,7 @@ class Blumquist
|
|
45
45
|
return unless @validate
|
46
46
|
errors = JSON::Validator.fully_validate(@schema, @data)
|
47
47
|
return true if errors.length == 0
|
48
|
-
raise(Errors::ValidationError, [errors
|
48
|
+
raise(Errors::ValidationError, [errors.map { |e| e.split("\n") }, @data])
|
49
49
|
end
|
50
50
|
|
51
51
|
def validate_schema
|
data/lib/blumquist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blumquist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.6.12
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Turn some data and a json schema into an immutable object with getters from
|