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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5793c2096459800a14275ce48f5dfd2305f83f2d12f5fd878558b2489901baae
4
- data.tar.gz: 0e726419aef2677fbabaa811707aae675a1d9d9d74422ef4fd92240e8d2b80b6
3
+ metadata.gz: 68a3f68dc9ba8e438ce54582ea99d45e64371adc7d5a264d68004a6408a67782
4
+ data.tar.gz: edd5b6a33ba746b5693ae42c6e0c7381a216de4b4287a48d66f5e58429b20875
5
5
  SHA512:
6
- metadata.gz: d9b69fc08820c45b1b84a0ba2de9e9ec15bcb94ce5924e3f6478ede434c2ef5808415c0f5e6897b9e511ed5bbde4ce683dbcb2e287a790476c658e6887078f62
7
- data.tar.gz: aaac3b3042b3492c0123de0e56d95eaded52916bd907023ae737ede03de3c99dc118a62ee226ce27e6554cd5d824687dbbce51545079d4b7d4cf7f820f0d466a
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
@@ -1,5 +1,5 @@
1
1
  module Committee
2
2
  module Rails
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
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.2.1
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-04-20 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: committee