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" require "{{gemName}}/version"
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "{{gemName}}" s.name = "{{gemName}}{{^gemName}}{{{appName}}}{{/gemName}}"
s.version = {{moduleName}}::VERSION s.version = {{moduleName}}::VERSION
s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
s.authors = ["{{gemAuthor}}"] s.authors = ["{{gemAuthor}}{{^gemAuthor}}Swagger-Codegen{{/gemAuthor}}"]
s.email = ["{{gemAuthorEmail}}"] s.email = ["{{gemAuthorEmail}}{{^gemAuthorEmail}}{{infoEmail}}{{/gemAuthorEmail}}"]
s.homepage = "{{gemHomepage}}" s.homepage = "{{gemHomepage}}{{^gemHomepage}}https://github.com/swagger-api/swagger-codegen{{/gemHomepage}}"
s.summary = "{{gemSummary}}" s.summary = "{{gemSummary}}{{^gemSummary}}{{{appName}}} Ruby Gem{{/gemSummary}}"
s.description = "{{gemDescription}}" s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}"
s.license = "{{gemLicense}}" 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 'typhoeus', '~> 1.0', '>= 1.0.1'
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3' 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 - API version: 1.0.0
- Package 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 - Build package: class io.swagger.codegen.languages.RubyClientCodegen
## Installation ## Installation

View File

@ -6,12 +6,12 @@ Gem::Specification.new do |s|
s.name = "petstore" s.name = "petstore"
s.version = Petstore::VERSION s.version = Petstore::VERSION
s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
s.authors = [""] s.authors = ["Swagger-Codegen"]
s.email = [""] s.email = ["apiteam@swagger.io"]
s.homepage = "" s.homepage = "https://github.com/swagger-api/swagger-codegen"
s.summary = "" s.summary = "Swagger Petstore Ruby Gem"
s.description = "" 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 = "" s.license = "Apache 2.0"
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3' s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'