openc-json_schema 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjczNDczZDkzN2I5NTkyNjc1Mzk1ZGJjNzIyOWMwYzI5NTk1ODA3YQ==
4
+ MGIzMDRmNzE1Y2Y1ODc0NGMwZWZkZWFlZmNmYjJkM2VjMjM5MTAyYw==
5
5
  data.tar.gz: !binary |-
6
- ZjcxODZkNjdlMTc4YmQ0MGZhNGJlOGUwNTA2ZWYyZDEwZmE3MzRlMQ==
6
+ YTMwMmRjNWZmYzkzMGY2ZWViN2QwNjZkZGZjMDE0N2EzODY4NGZmNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWU4YzY3ZmY5MzlhNzE2MDVlNzVlMmI5MGZmOTY1NWQyYjcxMzkzOWU3N2M5
10
- MzBiYmM4NGExYmFkMTIwODZjZGY2NTBmYzk1OGIwYmFkOTExY2Y1ZDZjM2I4
11
- MjY0ZjlhNzZjNjVmZjE1NThhOWZmZjNkMDVhNWNiZmZmNWYyYzg=
9
+ NGVlZThhZjkzMzZjZWI3OGUyNjA5NTBiNmJkNGYxOGNjY2VmZDMxMGQ3ZmU4
10
+ ZDA4OWY3N2FjNjE3YTdkOGQxMzM1ZWU4N2FkNmRmNjc4MTk2ZDc4ZTFkOTFm
11
+ MDAzMTcxYmEwNmY1NjhlNmQ1MWY5MzJjYmYzODcxMmE2NGE2Yjg=
12
12
  data.tar.gz: !binary |-
13
- YmJhNThmYTY5ZDAzZmNlZmMzM2VlOGY0YzNmMGI2YTU5ODc5ZWUzY2M1NDVj
14
- OWUwM2I4OGQ0MDFhNjMwOWQ2NTBjZGY3YmRkOGRlZmU5ZDE3MDc1NDIzMzVm
15
- OTUxZTAwMDhlNmRlMWM5M2ZkZTZjMjU3OWE2MjQ5OTZkM2VhOTk=
13
+ NjZhODVlMjJhOGY0YjRjMGU2ZDY0NjQ1MmNjOWViZjQyOGQ0NjBiM2UzNTJm
14
+ Y2M5NGQwZTUxY2UzZGI3OGFjMDQ5NTU4NWE4MGFkYjBjMWQzOGY4YjY5Mzgz
15
+ NDdmZTFjNTVmMTY2NWU4MzNkMmU4MmJmZjQyYTJjNWNmYzliMGU=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openc-json_schema (0.0.10)
4
+ openc-json_schema (0.0.11)
5
5
  json-schema-openc-fork (= 0.0.1)
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ date_format_validator = -> value {
11
11
  JSON::Validator.register_format_validator('date', date_format_validator)
12
12
 
13
13
  non_blank_format_validator = -> value {
14
- raise JSON::Schema::CustomFormatError.new('must not be blank') if value.strip == ''
14
+ raise JSON::Schema::CustomFormatError.new('must not be blank') if value.is_a?(String) && value.strip == ''
15
15
  }
16
16
 
17
17
  JSON::Validator.register_format_validator('non-blank', non_blank_format_validator)
@@ -1,5 +1,5 @@
1
1
  module Openc
2
2
  module JsonSchema
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc-json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenCorporates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler