openapi_parser 0.11.1 → 0.11.2

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: 19a8fdbdbc8e1f8bf0ffe99c10a9db62b71efb1314b8fbd868a0320e99aa8198
4
- data.tar.gz: 91c4bd31ed3fbde869967ba20bb6bb8bd4b279b1950ad1565e614b7ee6e45a10
3
+ metadata.gz: cd57f66bf94d3232c5f87e3d5ecf4acd3129dd7a3912970fa43dd9d2c32328c5
4
+ data.tar.gz: 42cd168a8f8d218ee00fa9fb47fd5ec890c88cbd1d8b52c17dd0396889fa58e1
5
5
  SHA512:
6
- metadata.gz: 6e21bb707a5d0fd61dbb806690c984cc317823f4c18bc54a6bdc1a186addbb7845b1202a7c4e719c6027f6bf32b97b48958ec4a7335c9cc545bab77b167b5c37
7
- data.tar.gz: a02864ccc5c5a64aba3ec84bb265c793f42ea7886356732d802f0934159da439659b44d1109c71b2335ec340970ba68c50760a5355e00e7e91f0465a0a850a07
6
+ metadata.gz: 6a975df0a46e822671a4c7ebdabf1d706947d11f08fe2843bbb75efb43e18f3596f2d9efea912807fde3d972b74202c76c23e25f5accfcd0bb84542a85a5a45d
7
+ data.tar.gz: c158d3bd6cbd9eb4615d13f3f3813a0e4f79b12f5afc5c00acd0c98d7e0979bb14117cd5ef8ad7e4a3d599a0fbb1616c0852f77d40abe41a35ab8ed1ae9394d9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.11.2 (2020-05-23)
4
+ * Allow date and time content in YAML #81
5
+
3
6
  ## 0.11.1 (2020-05-09)
4
7
  * fix too many warning
5
8
 
@@ -78,7 +78,10 @@ module OpenAPIParser
78
78
  end
79
79
 
80
80
  def parse_yaml(content)
81
- Psych.safe_load(content)
81
+ # FIXME: when drop ruby 2.5, we should use permitted_classes
82
+ (Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")) ?
83
+ Psych.safe_load(content, [Date, Time]) :
84
+ Psych.safe_load(content, permitted_classes: [Date, Time])
82
85
  end
83
86
 
84
87
  def parse_json(content)
@@ -1,3 +1,3 @@
1
1
  module OpenAPIParser
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.11.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openapi_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ota42y
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-09 00:00:00.000000000 Z
11
+ date: 2020-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler