mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Merge pull request #2 from jdanielian/travis-ci
Finishes some renaming elements that were missed previously
This commit is contained in:
13
.travis.yml
13
.travis.yml
@@ -1,16 +1,15 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
|
|
||||||
rvm:
|
rvm:
|
||||||
- 2.2.5
|
- 2.5.1
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- RAILS_VERSION=5.2.0
|
- RAILS_VERSION=5.2.0
|
||||||
- RAILS_VERSION=4.2.0
|
- RAILS_VERSION=4.2.0
|
||||||
- RAILS_VERSION=3.2.22
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- /home/travis/.rvm/gems/ruby-2.2.5
|
- /home/travis/.rvm/gems/ruby-2.5.1
|
||||||
|
|
||||||
install: ./ci/build.sh
|
install: ./ci/build.sh
|
||||||
|
|
||||||
@@ -26,7 +25,7 @@ jobs:
|
|||||||
- stage: publish components
|
- stage: publish components
|
||||||
script: 'cd rswag-api'
|
script: 'cd rswag-api'
|
||||||
deploy:
|
deploy:
|
||||||
gemspec: rswag-api.gemspec
|
gemspec: open_api-rswag-api.gemspec
|
||||||
provider: rubygems
|
provider: rubygems
|
||||||
api_key: $RUBYGEMS_API_KEY
|
api_key: $RUBYGEMS_API_KEY
|
||||||
on:
|
on:
|
||||||
@@ -36,7 +35,7 @@ jobs:
|
|||||||
- stage: publish components
|
- stage: publish components
|
||||||
script: 'cd rswag-specs'
|
script: 'cd rswag-specs'
|
||||||
deploy:
|
deploy:
|
||||||
gemspec: rswag-specs.gemspec
|
gemspec: open_api-rswag-specs.gemspec
|
||||||
provider: rubygems
|
provider: rubygems
|
||||||
api_key: $RUBYGEMS_API_KEY
|
api_key: $RUBYGEMS_API_KEY
|
||||||
on:
|
on:
|
||||||
@@ -46,7 +45,7 @@ jobs:
|
|||||||
- stage: publish components
|
- stage: publish components
|
||||||
script: 'cd rswag-ui'
|
script: 'cd rswag-ui'
|
||||||
deploy:
|
deploy:
|
||||||
gemspec: rswag-ui.gemspec
|
gemspec: open_api-rswag-ui.gemspec
|
||||||
provider: rubygems
|
provider: rubygems
|
||||||
api_key: $RUBYGEMS_API_KEY
|
api_key: $RUBYGEMS_API_KEY
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
@@ -57,7 +56,7 @@ jobs:
|
|||||||
- stage: publish rswag
|
- stage: publish rswag
|
||||||
script: 'cd rswag'
|
script: 'cd rswag'
|
||||||
deploy:
|
deploy:
|
||||||
gemspec: rswag.gemspec
|
gemspec: open_api-rswag.gemspec
|
||||||
provider: rubygems
|
provider: rubygems
|
||||||
api_key: $RUBYGEMS_API_KEY
|
api_key: $RUBYGEMS_API_KEY
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|||||||
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
s.authors = ["Richie Morris", "Jay Danielian"]
|
s.authors = ["Richie Morris", "Jay Danielian"]
|
||||||
s.email = ["domaindrivendev@gmail.com"]
|
s.email = ["domaindrivendev@gmail.com"]
|
||||||
s.homepage = "https://github.com/jdanielian/rswag"
|
s.homepage = "https://github.com/jdanielian/open-api-rswag"
|
||||||
s.summary = "A Rails Engine that exposes Swagger files as JSON endpoints"
|
s.summary = "A Rails Engine that exposes Swagger files as JSON endpoints"
|
||||||
s.description = "Open up your API to the phenomenal Swagger ecosystem by exposing Swagger files, that describe your service, as JSON endpoints"
|
s.description = "Open up your API to the phenomenal Swagger ecosystem by exposing Swagger files, that describe your service, as JSON endpoints"
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|||||||
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
s.authors = ['Richie Morris', 'Jay Danielian']
|
s.authors = ['Richie Morris', 'Jay Danielian']
|
||||||
s.email = ['domaindrivendev@gmail.com']
|
s.email = ['domaindrivendev@gmail.com']
|
||||||
s.homepage = 'https://github.com/jdanielian/rswag'
|
s.homepage = 'https://github.com/jdanielian/open-api-rswag'
|
||||||
s.summary = 'A Swagger-based DSL for rspec-rails & accompanying rake task for generating Swagger files'
|
s.summary = 'A Swagger-based DSL for rspec-rails & accompanying rake task for generating Swagger files'
|
||||||
s.description = 'Simplify API integration testing with a succinct rspec DSL and generate Swagger files directly from your rspecs'
|
s.description = 'Simplify API integration testing with a succinct rspec DSL and generate Swagger files directly from your rspecs'
|
||||||
s.license = 'MIT'
|
s.license = 'MIT'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|||||||
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
s.authors = ["Richie Morris", "Jay Danielian"]
|
s.authors = ["Richie Morris", "Jay Danielian"]
|
||||||
s.email = ["domaindrivendev@gmail.com"]
|
s.email = ["domaindrivendev@gmail.com"]
|
||||||
s.homepage = "https://github.com/jaydanielian/rswag"
|
s.homepage = "https://github.com/jdanielian/open-api-rswag"
|
||||||
s.summary = "A Rails Engine that includes swagger-ui and powers it from configured Swagger endpoints"
|
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.description = "Expose beautiful API documentation, that's powered by Swagger JSON endpoints, including a UI to explore and test operations"
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
8
rswag/lib/open_api/rswag.rb
Normal file
8
rswag/lib/open_api/rswag.rb
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
require 'open_api/rswag/specs'
|
||||||
|
require 'open_api/rswag/api'
|
||||||
|
require 'open_api/rswag/ui'
|
||||||
|
|
||||||
|
module OpenApi
|
||||||
|
module Rswag
|
||||||
|
end
|
||||||
|
end
|
||||||
6
rswag/lib/open_api/rswag/railtie.rb
Normal file
6
rswag/lib/open_api/rswag/railtie.rb
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
module OpenApi
|
||||||
|
module Rswag
|
||||||
|
class Railtie < ::Rails::Railtie
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
require 'rswag/specs'
|
|
||||||
require 'rswag/api'
|
|
||||||
require 'rswag/ui'
|
|
||||||
|
|
||||||
module Rswag
|
|
||||||
end
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
module Rswag
|
|
||||||
class Railtie < ::Rails::Railtie
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -2,18 +2,18 @@ $:.push File.expand_path("../lib", __FILE__)
|
|||||||
|
|
||||||
# Describe your gem and declare its dependencies:
|
# Describe your gem and declare its dependencies:
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "rswag"
|
s.name = "open_api-rswag"
|
||||||
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
s.version = ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
s.authors = ["Richie Morris"]
|
s.authors = ["Richie Morris", "Jay Danielian"]
|
||||||
s.email = ["domaindrivendev@gmail.com"]
|
s.email = ["domaindrivendev@gmail.com"]
|
||||||
s.homepage = "https://github.com/domaindrivendev/rswag"
|
s.homepage = "https://github.com/jdanielian/open-api-rswag"
|
||||||
s.summary = "Swagger tooling for Rails API's"
|
s.summary = "Swagger tooling for Rails API's"
|
||||||
s.description = "Generate beautiful API documentation, including a UI to explore and test operations, directly from your rspec integration tests"
|
s.description = "Generate beautiful API documentation, including a UI to explore and test operations, directly from your rspec integration tests"
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
|
|
||||||
s.files = Dir["{lib}/**/*"] + [ "MIT-LICENSE" ]
|
s.files = Dir["{lib}/**/*"] + [ "MIT-LICENSE" ]
|
||||||
|
|
||||||
s.add_dependency 'rswag-specs', ENV['TRAVIS_TAG'] || '0.0.0'
|
s.add_dependency 'open_api-rswag-specs', ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
s.add_dependency 'rswag-api', ENV['TRAVIS_TAG'] || '0.0.0'
|
s.add_dependency 'open_api-rswag-api', ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
s.add_dependency 'rswag-ui', ENV['TRAVIS_TAG'] || '0.0.0'
|
s.add_dependency 'open_api-rswag-ui', ENV['TRAVIS_TAG'] || '0.0.0'
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user