mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Merge branch 'openapi/master' into openapi/merge
This commit is contained in:
@@ -8,7 +8,7 @@ module Rswag
|
||||
end
|
||||
|
||||
def call(env)
|
||||
if base_path?(env)
|
||||
if base_path?(env)
|
||||
redirect_uri = env['SCRIPT_NAME'].chomp('/') + '/index.html'
|
||||
return [ 301, { 'Location' => redirect_uri }, [ ] ]
|
||||
end
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
# frozen_string_literal: true
|
||||
|
||||
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
||||
|
||||
# Describe your gem and declare its dependencies:
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "rswag-ui"
|
||||
s.name = 'rswag-ui'
|
||||
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
||||
s.authors = ["Richie Morris"]
|
||||
s.email = ["domaindrivendev@gmail.com"]
|
||||
s.homepage = "https://github.com/domaindrivendev/rswag"
|
||||
s.summary = "A Rails Engine that includes swagger-ui and powers it from configured Swagger endpoints"
|
||||
s.description = "Expose beautiful API documentation, that's powered by Swagger JSON endpoints, including a UI to explore and test operations"
|
||||
s.license = "MIT"
|
||||
s.authors = ['Richie Morris', 'Greg Myers', 'Jay Danielian']
|
||||
s.email = ['domaindrivendev@gmail.com']
|
||||
s.homepage = 'https://github.com/rswag/rswag'
|
||||
s.summary = 'A Rails Engine that includes swagger-ui and powers it from configured Swagger endpoints'
|
||||
s.description = 'Expose beautiful API documentation, powered by Swagger JSON endpoints, including a UI to explore and test operations'
|
||||
s.license = 'MIT'
|
||||
|
||||
s.files = Dir.glob("{lib,node_modules}/**/*") + ["MIT-LICENSE", "Rakefile" ]
|
||||
s.files = Dir.glob('{lib,node_modules}/**/*') + ['MIT-LICENSE', 'Rakefile' ]
|
||||
|
||||
s.add_dependency 'actionpack', '>=3.1', '< 7.0'
|
||||
s.add_dependency 'railties', '>= 3.1', '< 7.0'
|
||||
|
||||
Reference in New Issue
Block a user