jsonschema-matchers 0.1.2 → 0.1.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
  SHA256:
3
- metadata.gz: 962ab5b6c78dac39d9e2a0ff5656d17d1df292c18119a0a3c9350fbead11adb7
4
- data.tar.gz: 4bbeefe58168ab0f8605ce49f15b1f10e2432574af942e20a935a171a56d98c1
3
+ metadata.gz: aebdfa4f7482284b2db5b5f3d24cf5f4a6aac00eff228380c93f879195f312b7
4
+ data.tar.gz: e69ae41eb4ce7bb22bc0939f6ae40d60f923fcad1f1e7ca0025c120e7f1323b0
5
5
  SHA512:
6
- metadata.gz: c96ebb60bb2426899ed2e68c79193db79d1bc8e7b7cbd60344bfa07b33271f378e524c4dab6ef4ec5c45f666f47ece4fa41699968f0a2da5ad411ade42935b10
7
- data.tar.gz: cc5908f1f09c44bacb5953b2e3d5a8a9b9810894f199ef306d3bcdda0fbc5571c2fa697f15cf98e64e88aec8f76ec603ad8b38cd8615f97c8653e7cd87efce84
6
+ metadata.gz: 67bb703f5766b938d90bc227254f61085d5b3c217e264c774b9fe08a6b5241baf90118990d98fac29405f40b68d76d563931a6ce688547ea2d5146de8bab6ff6
7
+ data.tar.gz: e3116cc28a75a10dc540d98a23d3b3b8edeed01ed8519871552e02cec01fd3e72fcb5b9b7181039cd01740f2f437a53b1b1440e6df4b4a385316a23b9bf0397c
@@ -1,7 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ if defined?(RSpec) && (ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test')
4
+ require 'jsonschema/matchers/match_jsonschema'
5
+ end
6
+
3
7
  require 'jsonschema/matchers/version'
4
- require 'jsonschema/matchers/match_jsonschema'
5
8
  require 'jsonschema/matchers/metadater'
6
9
  require 'jsonschema/generator'
7
10
 
@@ -15,7 +18,3 @@ module Jsonschema
15
18
  end
16
19
  end
17
20
  end
18
-
19
- RSpec.configure do |config|
20
- config.include Jsonschema::Matchers
21
- end
@@ -40,9 +40,13 @@ module Jsonschema
40
40
  end
41
41
 
42
42
  file = File.new(snap_path, 'w+')
43
- file.write(json_schema.to_json)
43
+ file.write(JSON.pretty_generate(json_schema))
44
44
  file.close
45
45
  end
46
46
  end
47
47
  end
48
48
  end
49
+
50
+ RSpec.configure do |config|
51
+ config.include Jsonschema::Matchers
52
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jsonschema
4
4
  module Matchers
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonschema-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Bykov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.0.3
143
+ rubygems_version: 3.0.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Jsonschema matchers