Merge pull request #2656 from wing328/ruby_gemspec_improve

[Ruby] add default value to gem spec
This commit is contained in:
wing328 2016-04-20 20:20:13 +08:00
commit cd2c624020
3 changed files with 14 additions and 14 deletions

View File

@ -3,15 +3,15 @@ $:.push File.expand_path("../lib", __FILE__)
require "{{gemName}}/version"
Gem::Specification.new do |s|
s.name = "{{gemName}}"
s.name = "{{gemName}}{{^gemName}}{{{appName}}}{{/gemName}}"
s.version = {{moduleName}}::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["{{gemAuthor}}"]
s.email = ["{{gemAuthorEmail}}"]
s.homepage = "{{gemHomepage}}"
s.summary = "{{gemSummary}}"
s.description = "{{gemDescription}}"
s.license = "{{gemLicense}}"
s.authors = ["{{gemAuthor}}{{^gemAuthor}}Swagger-Codegen{{/gemAuthor}}"]
s.email = ["{{gemAuthorEmail}}{{^gemAuthorEmail}}{{infoEmail}}{{/gemAuthorEmail}}"]
s.homepage = "{{gemHomepage}}{{^gemHomepage}}https://github.com/swagger-api/swagger-codegen{{/gemHomepage}}"
s.summary = "{{gemSummary}}{{^gemSummary}}{{{appName}}} Ruby Gem{{/gemSummary}}"
s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}"
s.license = "{{gemLicense}}{{^gemLicense}}{{{licenseInfo}}}{{^licenseInfo}}Apache 2.0{{/licenseInfo}}{{/gemLicense}}"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'

View File

@ -8,7 +8,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-04-19T23:40:36.993+08:00
- Build date: 2016-04-20T18:46:00.664+08:00
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
## Installation

View File

@ -6,12 +6,12 @@ Gem::Specification.new do |s|
s.name = "petstore"
s.version = Petstore::VERSION
s.platform = Gem::Platform::RUBY
s.authors = [""]
s.email = [""]
s.homepage = ""
s.summary = ""
s.description = ""
s.license = ""
s.authors = ["Swagger-Codegen"]
s.email = ["apiteam@swagger.io"]
s.homepage = "https://github.com/swagger-api/swagger-codegen"
s.summary = "Swagger Petstore Ruby Gem"
s.description = "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose."
s.license = "Apache 2.0"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'