committee 3.0.0 → 3.0.1
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 +4 -4
- data/lib/committee/middleware/base.rb +1 -1
- data/test/middleware/base_test.rb +2 -2
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f58a91c5d672284bd965c829df989503f748a858679b3a04ab796548ab6e578f
|
|
4
|
+
data.tar.gz: c4c324cba3b1647d1794c637ab2248305abe0a24428bd463a945269a7af5a2e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7b0277782428f323e560f1951974e0be78699fdf117975631aed40b1172c169222a3b9b97fe794f16b685f5dc274eaad867bd7ddefef7a711b45e6b2a9e3b2e
|
|
7
|
+
data.tar.gz: 0aa0c9c4453e9892dc4b007d8d9dce73d567d792425e7dafe9e1ff1d681639c541345705f48e9cbb53798191b05be865ce43d334e06668bfb798c29087e5fcdd
|
|
@@ -27,7 +27,7 @@ module Committee::Middleware
|
|
|
27
27
|
unless schema
|
|
28
28
|
schema = Committee::Drivers::load_from_file(options[:schema_path]) if options[:schema_path]
|
|
29
29
|
|
|
30
|
-
raise(ArgumentError, "Committee: need option `schema` or `
|
|
30
|
+
raise(ArgumentError, "Committee: need option `schema` or `schema_path`") unless schema
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Expect the type we want by now. If we don't have it, the user passed
|
|
@@ -96,7 +96,7 @@ describe Committee::Middleware::Base do
|
|
|
96
96
|
post "/apps"
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
assert_equal "Committee: need option `schema` or `
|
|
99
|
+
assert_equal "Committee: need option `schema` or `schema_path`", e.message
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
describe 'initialize option' do
|
|
@@ -110,7 +110,7 @@ describe Committee::Middleware::Base do
|
|
|
110
110
|
assert_kind_of Committee::Drivers::OpenAPI2::Schema, b.instance_variable_get(:@schema)
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
-
it "
|
|
113
|
+
it "schema_path option with OpenAPI3" do
|
|
114
114
|
b = Committee::Middleware::Base.new(nil, schema_path: open_api_3_schema_path)
|
|
115
115
|
assert_kind_of Committee::Drivers::OpenAPI3::Schema, b.instance_variable_get(:@schema)
|
|
116
116
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: committee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandur
|
|
8
8
|
- geemus (Wesley Beary)
|
|
9
|
+
- ota42y
|
|
9
10
|
autorequire:
|
|
10
11
|
bindir: bin
|
|
11
12
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
13
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
|
13
14
|
dependencies:
|
|
14
15
|
- !ruby/object:Gem::Dependency
|
|
15
16
|
name: json_schema
|
|
@@ -161,6 +162,7 @@ description:
|
|
|
161
162
|
email:
|
|
162
163
|
- brandur@mutelight.org
|
|
163
164
|
- geemus+github@gmail.com
|
|
165
|
+
- ota42y@gmail.com
|
|
164
166
|
executables:
|
|
165
167
|
- committee-stub
|
|
166
168
|
extensions: []
|
|
@@ -241,7 +243,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
241
243
|
- !ruby/object:Gem::Version
|
|
242
244
|
version: '0'
|
|
243
245
|
requirements: []
|
|
244
|
-
|
|
246
|
+
rubyforge_project:
|
|
247
|
+
rubygems_version: 2.7.3
|
|
245
248
|
signing_key:
|
|
246
249
|
specification_version: 4
|
|
247
250
|
summary: A collection of Rack middleware to support JSON Schema.
|