oas_parser 0.24.0 → 0.25.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: 0fd70d73eed5326319f61572f5a89e256553ba1ff5af7855f95db7854d6164ed
4
- data.tar.gz: 953cff2adbfd8904d867d555a3aec1cd9567148842bcefefaa48a5e63a93000f
3
+ metadata.gz: a37c6072413e71e1ccb71afd49e6efe579ce29036fff7b3f8121213d9f496ad7
4
+ data.tar.gz: 3a9263d4834f22acc4baff12566ee9da3477ab7ef293cbd6b3784a27b59ec1be
5
5
  SHA512:
6
- metadata.gz: 28459e9e0a12e418f5b38934734529a95b06612dd7ce23a0bf3ed4f8255dabd6c47426011e3284285f295ff4a4838f9a771c6e1eeec92d36bb71778342c2ab50
7
- data.tar.gz: ae2e6a3ff725f9b06338cdb694be2782a8b511d0b0f8e885585810b97d14e25cc1dd25a5bb8d51459917c67ea27f4a80c43327e8276caaab92f5e4ef713e43b8
6
+ metadata.gz: c134029c6aaaa7c8f11c2a618166b2a93b4a04493c71b0cea1b9bb89e5993d61456f080f405e46dc03069f000803ceb941754adef87110e56d5b72b4b061046c
7
+ data.tar.gz: 78a33bda7ae3f7ab9b896fd268d2832ec461e042b983d952361caa2f8f47a2ab24e770626ccdcadfcceac036aa6ace262a52d102c0f74cc867c52f78bccb0d8f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oas_parser (0.24.0)
4
+ oas_parser (0.25.0)
5
5
  activesupport (>= 4.0.0)
6
6
  addressable (~> 2.3)
7
7
  builder (~> 3.2.3)
@@ -13,7 +13,7 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (6.0.2.1)
16
+ activesupport (6.0.2.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
@@ -23,7 +23,7 @@ GEM
23
23
  public_suffix (>= 2.0.2, < 5.0)
24
24
  builder (3.2.4)
25
25
  coderay (1.1.2)
26
- concurrent-ruby (1.1.5)
26
+ concurrent-ruby (1.1.6)
27
27
  deep_merge (1.2.1)
28
28
  diff-lcs (1.3)
29
29
  docile (1.1.5)
@@ -62,7 +62,7 @@ GEM
62
62
  hansi (~> 0.2.0)
63
63
  mustermann (= 1.1.1)
64
64
  nenv (0.3.0)
65
- nokogiri (1.10.8)
65
+ nokogiri (1.10.9)
66
66
  mini_portile2 (~> 2.4.0)
67
67
  notiffany (0.1.1)
68
68
  nenv (~> 0.1)
@@ -70,8 +70,8 @@ GEM
70
70
  pry (0.11.3)
71
71
  coderay (~> 1.1.0)
72
72
  method_source (~> 0.9.0)
73
- public_suffix (4.0.3)
74
- rake (10.5.0)
73
+ public_suffix (4.0.4)
74
+ rake (13.0.1)
75
75
  rb-fsevent (0.10.3)
76
76
  rb-inotify (0.9.10)
77
77
  ffi (>= 0.5.0, < 2)
@@ -100,9 +100,9 @@ GEM
100
100
  simplecov-html (0.10.2)
101
101
  thor (0.20.3)
102
102
  thread_safe (0.3.6)
103
- tzinfo (1.2.6)
103
+ tzinfo (1.2.7)
104
104
  thread_safe (~> 0.1)
105
- zeitwerk (2.2.2)
105
+ zeitwerk (2.3.0)
106
106
 
107
107
  PLATFORMS
108
108
  ruby
@@ -112,7 +112,7 @@ DEPENDENCIES
112
112
  guard-rspec (~> 4.7.3)
113
113
  oas_parser!
114
114
  pry (~> 0.11.3)
115
- rake (~> 10.0)
115
+ rake (~> 13.0)
116
116
  rspec (~> 3.0)
117
117
  rspec-collection_matchers (~> 1.1.3)
118
118
  simplecov (~> 0.15.1)
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Open API Definition Parser
2
2
 
3
+ <img src="https://developer.nexmo.com/assets/images/Vonage_Nexmo.svg" height="48px" alt="Nexmo is now known as Vonage" />
4
+
3
5
  A Ruby parser for Open API Spec 3.0+ definitions.
4
6
 
5
7
  ### Install
@@ -47,5 +47,12 @@ module OasParser
47
47
  def endpoints
48
48
  paths.flat_map(&:endpoints)
49
49
  end
50
+
51
+ def webhooks
52
+ return [] unless raw['webhooks']
53
+ raw['webhooks'].map do |name, definition|
54
+ OasParser::Webhook.new(self, name, definition)
55
+ end
56
+ end
50
57
  end
51
58
  end
@@ -1,3 +1,3 @@
1
1
  module OasParser
2
- VERSION = '0.24.0'.freeze
2
+ VERSION = '0.25.0'.freeze
3
3
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OasParser
4
+ class Webhook < Path
5
+ def name
6
+ path
7
+ end
8
+ end
9
+ end
data/oas_parser.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency "bundler", "~> 2.1"
32
32
  spec.add_development_dependency "guard-rspec", "~> 4.7.3"
33
- spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rake", "~> 13.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
  spec.add_development_dependency "rspec-collection_matchers", "~> 1.1.3"
36
36
  spec.add_development_dependency "pry", "~> 0.11.3"
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.24.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '10.0'
145
+ version: '13.0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '10.0'
152
+ version: '13.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -243,6 +243,7 @@ files:
243
243
  - lib/oas_parser/response.rb
244
244
  - lib/oas_parser/response_parser.rb
245
245
  - lib/oas_parser/version.rb
246
+ - lib/oas_parser/webhook.rb
246
247
  - oas_parser.gemspec
247
248
  homepage: https://github.com/Nexmo/oas_parser
248
249
  licenses: