committee 2.5.0 → 2.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80e547ab72368f1c052c9ca8617977a0291855b598465baf2021a2e6724ba27e
4
- data.tar.gz: cf618eb555e631ef4a6dc51b0b8bcc856b58102193eaffb84d5cd6e68f2852da
3
+ metadata.gz: 0b9f998d8056dd74bde5f8c3f522dc156d37af573a96ed089abe3d8a9e99c5d5
4
+ data.tar.gz: 70c8fb47979080bddcb70f7d736a82d7739cdbe89945303bb06767c8dcce6949
5
5
  SHA512:
6
- metadata.gz: 2db3579f4329429aac202ff34c111b0f92609de39ab6f1d1e4264910d42612d1b8c20fcdf464881f148012086e57bd0fedd3730dec76d500235764a599e0676d
7
- data.tar.gz: d680e5a57f7393a64336e17a593a862bab689992d032b8ef5fabfa735d80815ee6739801602c277b851d930f296b511b19bda412555e1a8c96b4150a9f92f783
6
+ metadata.gz: 4aa59b2147ab36885982da4da3e7b0cc20e70e4d9b6bd7b687a10cdbd1e1192a7ba58e0d160fc9ca11d5da646f1e0469a28859505fb48c37497da30f6d9cfb82
7
+ data.tar.gz: 6111d776b668b12b702c910655c901e5743e10adc3d4873b0f26b030b67b1d7a602cc2e141f037ea0729f5f73ac7e7a120794d715616330987afffa0693b7812
@@ -177,7 +177,7 @@ module Committee::Drivers
177
177
 
178
178
  # validation: string
179
179
  param_schema.format = param_data["format"] unless param_data["format"].nil?
180
- param_schema.pattern = param_data["pattern"] unless param_data["pattern"].nil?
180
+ param_schema.pattern = Regexp.new(param_data["pattern"]) unless param_data["pattern"].nil?
181
181
  param_schema.min_length = param_data["minLength"] unless param_data["minLength"].nil?
182
182
  param_schema.max_length = param_data["maxLength"] unless param_data["maxLength"].nil?
183
183
 
@@ -307,7 +307,7 @@ describe Committee::Drivers::OpenAPI2::ParameterSchemaBuilder do
307
307
 
308
308
  assert_nil schema_data
309
309
  assert_equal "password", schema.properties["password"].format
310
- assert_equal "[a-zA-Z0-9]+", schema.properties["password"].pattern
310
+ assert_equal Regexp.new("[a-zA-Z0-9]+"), schema.properties["password"].pattern
311
311
  assert_equal 6, schema.properties["password"].min_length
312
312
  assert_equal 30, schema.properties["password"].max_length
313
313
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: committee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-22 00:00:00.000000000 Z
12
+ date: 2019-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_schema