Tweak gemspecs and script to build gems

This commit is contained in:
richie 2016-10-11 21:55:13 -07:00
parent 02159f2136
commit fa8d42b37b
8 changed files with 51 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
**/*/tmp
**/*/log
**/*/*.gem

View File

@ -14,7 +14,7 @@ PATH
remote: ~/src/rswag/rswag-specs
specs:
rswag-specs (1.0.0)
json-schema
json-schema (~> 2.2)
rails (>= 3.1, < 5.1)
GEM
@ -115,7 +115,7 @@ GEM
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.11)
sqlite3 (1.3.12)
strong_parameters (0.2.3)
actionpack (~> 3.0)
activemodel (~> 3.0)

35
ci/deploy.sh Executable file
View File

@ -0,0 +1,35 @@
#!/usr/bin/env bash
ROOT_PATH=$PWD
set -e # abort if anything fails
bundle check || bundle
echo '####################'
echo 'Build Gems'
echo '####################'
echo ''
echo '##### rswag-api #####'
cd $ROOT_PATH/rswag-api
gem build rswag-api.gemspec
echo '##### rswag-specs #####'
cd $ROOT_PATH/rswag-specs
gem build rswag-specs.gemspec
echo '##### rswag-ui #####'
cd $ROOT_PATH/rswag-ui
gem build rswag-ui.gemspec
echo '##### rswag #####'
cd $ROOT_PATH/rswag
gem build rswag.gemspec
echo '####################'
echo 'Push to RubyGems'
echo '####################'
echo ''
# Cleanup
cd $ROOT_PATH

View File

@ -11,6 +11,8 @@ Gem::Specification.new do |s|
s.email = ["domaindrivendev@gmail.com"]
s.homepage = "https://github.com/domaindrivendev/rswag"
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.license = "MIT"
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile" ]

View File

@ -11,10 +11,12 @@ Gem::Specification.new do |s|
s.email = ["domaindrivendev@gmail.com"]
s.homepage = "https://github.com/domaindrivendev/rswag"
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.license = "MIT"
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile" ]
s.add_dependency "rails", ">= 3.1", "< 5.1"
s.add_dependency 'json-schema'
s.add_development_dependency 'rspec-rails'
s.add_dependency 'json-schema', '~> 2.2'
s.add_development_dependency 'rspec-rails', '>= 2.14', '< 4'
end

View File

@ -11,6 +11,8 @@ Gem::Specification.new do |s|
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.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile" ]

View File

@ -11,11 +11,12 @@ Gem::Specification.new do |s|
s.email = ["domaindrivendev@gmail.com"]
s.homepage = "https://github.com/domaindrivendev/rswag"
s.summary = "Swagger tooling for Rails API's"
s.description = "Generate Swagger files direclty from integration specs, expose them as JSON endpoints, and use them to power a slick API docs and discovery UI"
s.description = "Generate beautiful API documentation, including a UI to explore and test operations, directly from your rspec integration tests"
s.license = "MIT"
s.files = Dir["{app,config,db,lib}/**/*"] + [ "MIT-LICENSE" ]
s.add_dependency 'rswag-specs'
s.add_dependency 'rswag-api'
s.add_dependency 'rswag-ui'
s.add_dependency 'rswag-specs', Rswag::VERSION
s.add_dependency 'rswag-api', Rswag::VERSION
s.add_dependency 'rswag-ui', Rswag::VERSION
end