oas_parser 0.25.1 → 0.25.3

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: 8958db21f58d0bdcd471f2d002d62878c3e7226b5ff501a6effb0ea406afd47b
4
- data.tar.gz: 181ec3f26021d3839abea09068cda3646afb4bfbefc03e80df159385c47be7a8
3
+ metadata.gz: 6ab77d6f27d71dda9ea720c4f7e97bf122f0b0fcc985ae6055a0e68ceda805b3
4
+ data.tar.gz: 6ec0e89bac4ba15457f9176bf60f46361cc4aaa6e6545809ce4cdb85fa65855b
5
5
  SHA512:
6
- metadata.gz: 37a3a33d8efcfb39dd1adb6edf6e3d57d70cfaf7dbdf355b931b01e52d8791ba4c73ffafa14af4ec856e8f28064e49cb0a5257cf4e0ea8e62717b3ee694a3d8e
7
- data.tar.gz: 8b87cbf22b81a72e1163ed7ebc7b0c23e307145024b320810d402e46f4d7694ed115af76743ba90d960a8e35a4903d7c549eaafe5fcf069793c1653514ac0e29
6
+ metadata.gz: e780b83f48860d20711ef7ab119eee023fb03b0660da794c30310b5c1da75dea7bd4fb69baba1f8f8bc11474af72f686d980ac9a8b564ff482f911a6962fd5b1
7
+ data.tar.gz: 5a87c7f8d48667bef31731f3bb8e7da667c65a352c83d62ba868bce048ded9158e8a0997e642763fcd4148b9c1b9c356215f1055e83240671c98432dc0f2c951
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oas_parser (0.25.1)
4
+ oas_parser (0.25.2)
5
5
  activesupport (>= 4.0.0)
6
6
  addressable (~> 2.3)
7
7
  builder (~> 3.2.3)
@@ -13,12 +13,12 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (6.0.2.2)
16
+ activesupport (6.0.3.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- zeitwerk (~> 2.2)
21
+ zeitwerk (~> 2.2, >= 2.2.2)
22
22
  addressable (2.7.0)
23
23
  public_suffix (>= 2.0.2, < 5.0)
24
24
  builder (3.2.4)
@@ -45,32 +45,34 @@ GEM
45
45
  rspec (>= 2.99.0, < 4.0)
46
46
  hansi (0.2.0)
47
47
  hash-deep-merge (0.1.1)
48
- i18n (1.8.2)
48
+ i18n (1.8.3)
49
49
  concurrent-ruby (~> 1.0)
50
- json (2.1.0)
50
+ json (2.3.1)
51
51
  listen (3.1.5)
52
52
  rb-fsevent (~> 0.9, >= 0.9.4)
53
53
  rb-inotify (~> 0.9, >= 0.9.7)
54
54
  ruby_dep (~> 1.2)
55
55
  lumberjack (1.0.13)
56
56
  method_source (0.9.2)
57
- mini_portile2 (2.4.0)
58
- minitest (5.14.0)
57
+ mini_portile2 (2.5.0)
58
+ minitest (5.14.1)
59
59
  mustermann (1.1.1)
60
60
  ruby2_keywords (~> 0.0.1)
61
61
  mustermann-contrib (1.1.1)
62
62
  hansi (~> 0.2.0)
63
63
  mustermann (= 1.1.1)
64
64
  nenv (0.3.0)
65
- nokogiri (1.10.9)
66
- mini_portile2 (~> 2.4.0)
65
+ nokogiri (1.11.1)
66
+ mini_portile2 (~> 2.5.0)
67
+ racc (~> 1.4)
67
68
  notiffany (0.1.1)
68
69
  nenv (~> 0.1)
69
70
  shellany (~> 0.0)
70
71
  pry (0.11.3)
71
72
  coderay (~> 1.1.0)
72
73
  method_source (~> 0.9.0)
73
- public_suffix (4.0.4)
74
+ public_suffix (4.0.5)
75
+ racc (1.5.2)
74
76
  rake (13.0.1)
75
77
  rb-fsevent (0.10.3)
76
78
  rb-inotify (0.9.10)
@@ -44,6 +44,10 @@ module OasParser
44
44
  raw['security'] || []
45
45
  end
46
46
 
47
+ def tags
48
+ raw['tags'] || []
49
+ end
50
+
47
51
  def endpoints
48
52
  paths.flat_map(&:endpoints)
49
53
  end
@@ -8,6 +8,7 @@ module OasParser
8
8
  return document if escaped_pointer == ""
9
9
 
10
10
  tokens.reduce(document) do |nested_doc, token|
11
+ token = token.to_i if token[/^-?\d+$/]
11
12
  nested_doc.fetch(token)
12
13
  end
13
14
  end
@@ -14,7 +14,6 @@ module OasParser
14
14
  end
15
15
 
16
16
  def required
17
- return true if raw['required']
18
17
  return false unless schema['required']
19
18
  schema['required'].include? name
20
19
  end
@@ -1,3 +1,3 @@
1
1
  module OasParser
2
- VERSION = '0.25.1'.freeze
2
+ VERSION = '0.25.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oas_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.1
4
+ version: 0.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -206,7 +206,7 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: 0.15.1
209
- description:
209
+ description:
210
210
  email:
211
211
  - adam@lab.io
212
212
  executables: []
@@ -249,7 +249,7 @@ homepage: https://github.com/Nexmo/oas_parser
249
249
  licenses:
250
250
  - MIT
251
251
  metadata: {}
252
- post_install_message:
252
+ post_install_message:
253
253
  rdoc_options: []
254
254
  require_paths:
255
255
  - lib
@@ -264,9 +264,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  - !ruby/object:Gem::Version
265
265
  version: '0'
266
266
  requirements: []
267
- rubyforge_project:
268
- rubygems_version: 2.7.6.2
269
- signing_key:
267
+ rubygems_version: 3.1.4
268
+ signing_key:
270
269
  specification_version: 4
271
270
  summary: A parser for Open API specifications
272
271
  test_files: []