json_schema 0.13.3 → 0.13.4

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.
@@ -71,6 +71,14 @@ describe Commands::ValidateSchema do
71
71
  refute success
72
72
  end
73
73
 
74
+ it "errors on empty files" do
75
+ temp_file("") do |path|
76
+ success = @command.run([hyper_schema_path, path])
77
+ assert_equal ["#{path}: File is empty."], @command.errors
78
+ refute success
79
+ end
80
+ end
81
+
74
82
  def basic_hyper_schema
75
83
  <<-eos
76
84
  { "$schema": "http://json-schema.org/draft-04/hyper-schema" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.3
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ecma-re-validator
@@ -118,6 +118,7 @@ files:
118
118
  - lib/json_schema/schema.rb
119
119
  - lib/json_schema/validator.rb
120
120
  - schemas/hyper-schema.json
121
+ - schemas/open-api-schema.json
121
122
  - schemas/schema.json
122
123
  - test/commands/validate_schema_test.rb
123
124
  - test/data_scaffold.rb