oas_parser 0.11.1 → 0.11.2
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/Gemfile.lock +6 -6
- data/lib/oas_parser/definition.rb +8 -2
- data/lib/oas_parser/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84e3f8571db1699d56f1500b0bc4bcef20f7f2e4
|
|
4
|
+
data.tar.gz: 7f64bb227e4d2d205100ca1274422ae908806998
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba42e9d256a4d423017c85de200256a16dd2458ca6e07492fce92aea5052cee07919c0e007f2e419cd67d0b4b721a6c936b726a30a69388801afba900d9dd3db
|
|
7
|
+
data.tar.gz: 68e45002299f74910959ffe16c6de259de3a85fe435cfd509d28bcd777a850200ee724a0fde0de126076af068535c3e9173b36ee24ae85c4506440ee72886eeb
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
oas_parser (0.11.
|
|
4
|
+
oas_parser (0.11.2)
|
|
5
5
|
activesupport (~> 5.1.2)
|
|
6
6
|
addressable (~> 2.3)
|
|
7
7
|
builder (~> 3.2.3)
|
|
@@ -13,9 +13,9 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (5.1.
|
|
16
|
+
activesupport (5.1.6)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
|
-
i18n (
|
|
18
|
+
i18n (>= 0.7, < 2)
|
|
19
19
|
minitest (~> 5.1)
|
|
20
20
|
tzinfo (~> 1.1)
|
|
21
21
|
addressable (2.5.2)
|
|
@@ -42,7 +42,7 @@ GEM
|
|
|
42
42
|
guard (~> 2.1)
|
|
43
43
|
guard-compat (~> 1.1)
|
|
44
44
|
rspec (>= 2.99.0, < 4.0)
|
|
45
|
-
i18n (0.
|
|
45
|
+
i18n (1.0.1)
|
|
46
46
|
concurrent-ruby (~> 1.0)
|
|
47
47
|
json (2.1.0)
|
|
48
48
|
json_schema (0.15.0)
|
|
@@ -50,7 +50,7 @@ GEM
|
|
|
50
50
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
51
51
|
rb-inotify (~> 0.9, >= 0.9.7)
|
|
52
52
|
ruby_dep (~> 1.2)
|
|
53
|
-
lumberjack (1.0.
|
|
53
|
+
lumberjack (1.0.13)
|
|
54
54
|
method_source (0.9.0)
|
|
55
55
|
mini_portile2 (2.3.0)
|
|
56
56
|
minitest (5.11.3)
|
|
@@ -105,4 +105,4 @@ DEPENDENCIES
|
|
|
105
105
|
simplecov (~> 0.15.1)
|
|
106
106
|
|
|
107
107
|
BUNDLED WITH
|
|
108
|
-
1.16.
|
|
108
|
+
1.16.1
|
|
@@ -2,16 +2,22 @@ module OasParser
|
|
|
2
2
|
class Definition
|
|
3
3
|
include OasParser::RawAccessor
|
|
4
4
|
raw_keys :info, :servers, :components, :openapi
|
|
5
|
+
attr_reader :path
|
|
5
6
|
|
|
6
7
|
attr_accessor :raw
|
|
7
8
|
|
|
8
9
|
def self.resolve(path)
|
|
9
10
|
raw = Parser.resolve(path)
|
|
10
|
-
Definition.new(raw)
|
|
11
|
+
Definition.new(raw, path)
|
|
11
12
|
end
|
|
12
13
|
|
|
13
|
-
def initialize(raw)
|
|
14
|
+
def initialize(raw, path)
|
|
14
15
|
@raw = raw
|
|
16
|
+
@path = path
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def format
|
|
20
|
+
File.extname(@path).sub('.', '')
|
|
15
21
|
end
|
|
16
22
|
|
|
17
23
|
def paths
|
data/lib/oas_parser/version.rb
CHANGED
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.11.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Butler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
234
234
|
version: '0'
|
|
235
235
|
requirements: []
|
|
236
236
|
rubyforge_project:
|
|
237
|
-
rubygems_version: 2.6.
|
|
237
|
+
rubygems_version: 2.6.8
|
|
238
238
|
signing_key:
|
|
239
239
|
specification_version: 4
|
|
240
240
|
summary: A parser for Open API specifications
|