committee-rails 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/committee/rails/test/methods.rb +7 -0
- data/lib/committee/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a3f68dc9ba8e438ce54582ea99d45e64371adc7d5a264d68004a6408a67782
|
4
|
+
data.tar.gz: edd5b6a33ba746b5693ae42c6e0c7381a216de4b4287a48d66f5e58429b20875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69292ca6e1c5dddc9a0473aab8418fc20d5fcd8e517cfd989bda4cb262000fc373c903f4ac024e82981d26351caa65e3b329124e875f09b489479081b14933ae
|
7
|
+
data.tar.gz: 0566b55c0fdc9d6403effb7a9816fb5feafe9cfb939a6c2525bfeba8a63313312afc4bd87361272cd5e9a40fa5333670792e036ab672dc7bfce925413adc50bf
|
@@ -4,13 +4,20 @@ module Committee::Rails
|
|
4
4
|
include Committee::Test::Methods
|
5
5
|
|
6
6
|
def committee_schema
|
7
|
+
@committee_schema = committee_options[:schema]
|
8
|
+
|
7
9
|
@committee_schema ||= begin
|
10
|
+
|
8
11
|
driver = Committee::Drivers::HyperSchema.new
|
9
12
|
schema_hash = JSON.parse(File.read(Rails.root.join('docs', 'schema', 'schema.json')))
|
10
13
|
driver.parse(schema_hash)
|
11
14
|
end
|
12
15
|
end
|
13
16
|
|
17
|
+
def committee_options
|
18
|
+
{}
|
19
|
+
end
|
20
|
+
|
14
21
|
def assert_schema_conform
|
15
22
|
@committee_schema ||= begin
|
16
23
|
# The preferred option. The user has already parsed a schema elsewhere
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: committee-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- willnet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: committee
|