swagger_parser 0.0.2 → 0.0.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
  SHA1:
3
- metadata.gz: 2b25b8b773325fefdff2ca3b99e2315f7aee9dd0
4
- data.tar.gz: 54d3c5035f3a85591452d714270ce4250ee961a3
3
+ metadata.gz: 02c5d296cb6421c8617d5ff229d1d585ff56605c
4
+ data.tar.gz: 204012b78ec194aa4d7ac335f8292926de86d616
5
5
  SHA512:
6
- metadata.gz: 927bbe33a8ea50822ccd596c59f5a31b9575cd4754a0f063e87f932c90ba869ae5d275888de4599eb1f6d2bb5f5d9599952dbcc3a97bb5821de7beec7f3b93eb
7
- data.tar.gz: 8f3ef79d29675b5aa1af4e63b4933f9fceb7044b4ff0d6c97d9046c6eb5f2d84ec63ee5ce902cbd96ae5630a7435d36e3959a7163c377575c086549f2eb24b25
6
+ metadata.gz: 93e8cc5fecfc94aa47174b123f31f318887e0b087bbb51892302e4a4d769e776eecfc5196f6fa26575fa3adf51098b2b319b99484d305de4a214d77bd795bd41
7
+ data.tar.gz: 25de6cb1cb57c68f53110413c3403738bebadfd0b3e18e2df2566a35363f42c8fa415aea4b5996ca7e242690f14f95a6a642df5187c77e49bd4965dc3a3c9ab3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
+ ## 0.0.3
2
+
3
+ - Support ExternalDocumentation
4
+
1
5
  ## 0.0.2
6
+
2
7
  - Improve Path and Operation
3
8
 
4
9
  ## 0.0.1
10
+
5
11
  - 1st Release
@@ -4,8 +4,8 @@ module SwaggerParser
4
4
  module ExternalDocsAttributable
5
5
  # @return [SwaggerParser::ExternalDocumentation, nil]
6
6
  def external_docs
7
- if source["external_docs"]
8
- SwaggerParser::ExternalDocumentation.new(source["external_docs"])
7
+ if source["externalDocs"]
8
+ SwaggerParser::ExternalDocumentation.new(source["externalDocs"])
9
9
  end
10
10
  end
11
11
  end
@@ -2,5 +2,14 @@ require "swagger_parser/source_based_object"
2
2
 
3
3
  module SwaggerParser
4
4
  class ExternalDocumentation < SourceBasedObject
5
+ # @return [Object]
6
+ def description
7
+ source["description"]
8
+ end
9
+
10
+ # @return [Object]
11
+ def url
12
+ source["url"]
13
+ end
5
14
  end
6
15
  end
@@ -1,3 +1,3 @@
1
1
  module SwaggerParser
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,9 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.4.5
133
+ rubygems_version: 2.4.5.1
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Swagger schema parser.
137
137
  test_files: []
138
- has_rdoc: