westfield_swagger 1.2.4 → 1.2.5
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49f0dc7061bea5287015f13e00eb98575cd5c878
|
|
4
|
+
data.tar.gz: cc319bfe0622902656680439da55018a11d30449
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90b55173a3e675ca253a2491ed4e6b9230de198705e489094178130620b5473100030e8e6c04ed9be1bf84d11c7e2c01b0421551fddcf74a3877f51c942a5a92
|
|
7
|
+
data.tar.gz: 147ead434f4f57231d8e8a6280ec3d560024e28813f03f0476c8ac0fe7e35fd865c27f96f69fcb825d71d4b85f38c63a31e0c2560d139f194c94936ff898d0bf
|
|
@@ -3,14 +3,16 @@ module WestfieldSwagger
|
|
|
3
3
|
rescue_from ApiSpecification::SpecificationParseError, with: :specification_parse_error
|
|
4
4
|
rescue_from ApiSpecification::SpecificationMissing, with: :specification_missing
|
|
5
5
|
|
|
6
|
+
ENV_PREFIX = %w(uat production).include?(Rails.env) ? "#{Rails.env}_" : ''
|
|
7
|
+
|
|
6
8
|
def index
|
|
7
9
|
if params[:service]
|
|
8
10
|
# Access service swagger
|
|
9
|
-
env_prefix =
|
|
11
|
+
env_prefix = ''
|
|
10
12
|
@service = "#{params[:service]}/"
|
|
11
13
|
else
|
|
12
14
|
# Access roll-up swagger
|
|
13
|
-
env_prefix =
|
|
15
|
+
env_prefix = ENV_PREFIX
|
|
14
16
|
@service = ""
|
|
15
17
|
end
|
|
16
18
|
|
data/westfield_swagger.gemspec
CHANGED
|
@@ -5,10 +5,10 @@ Gem::Specification.new do |spec|
|
|
|
5
5
|
spec.name = 'westfield_swagger'
|
|
6
6
|
spec.version = WestfieldSwagger::VERSION
|
|
7
7
|
spec.authors = ['Chris Nelson', 'George Shaw', 'Adam Cohen']
|
|
8
|
-
spec.email = ['gshaw@
|
|
8
|
+
spec.email = ['gshaw@westfield.com', 'acohen@westfield.com']
|
|
9
9
|
|
|
10
|
-
spec.summary = 'Integration API service with Swagger (www.swagger.io)'
|
|
11
|
-
spec.description = '
|
|
10
|
+
spec.summary = 'Integration of an API service with Swagger documentation (www.swagger.io)'
|
|
11
|
+
spec.description = 'Adds required controllers & routes for presentation of OpenAPI 2.0 specifications.'
|
|
12
12
|
spec.homepage = 'https://github.com/westfieldlabs/westfield_swagger'
|
|
13
13
|
spec.license = 'Apache-2.0'
|
|
14
14
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: westfield_swagger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Nelson
|
|
@@ -40,9 +40,9 @@ dependencies:
|
|
|
40
40
|
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: '0'
|
|
43
|
-
description:
|
|
43
|
+
description: Adds required controllers & routes for presentation of OpenAPI 2.0 specifications.
|
|
44
44
|
email:
|
|
45
|
-
- gshaw@
|
|
45
|
+
- gshaw@westfield.com
|
|
46
46
|
- acohen@westfield.com
|
|
47
47
|
executables: []
|
|
48
48
|
extensions: []
|
|
@@ -145,5 +145,5 @@ rubyforge_project:
|
|
|
145
145
|
rubygems_version: 2.4.8
|
|
146
146
|
signing_key:
|
|
147
147
|
specification_version: 4
|
|
148
|
-
summary: Integration API service with Swagger (www.swagger.io)
|
|
148
|
+
summary: Integration of an API service with Swagger documentation (www.swagger.io)
|
|
149
149
|
test_files: []
|