From 37600e11729dce68a31af48931d15949bc62c8a8 Mon Sep 17 00:00:00 2001 From: wing328 Date: Wed, 20 Apr 2016 18:49:29 +0800 Subject: [PATCH] add default value to gem spec --- .../src/main/resources/ruby/gemspec.mustache | 14 +++++++------- samples/client/petstore/ruby/README.md | 2 +- samples/client/petstore/ruby/petstore.gemspec | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/ruby/gemspec.mustache b/modules/swagger-codegen/src/main/resources/ruby/gemspec.mustache index f26fb70bc44..65884d0f562 100644 --- a/modules/swagger-codegen/src/main/resources/ruby/gemspec.mustache +++ b/modules/swagger-codegen/src/main/resources/ruby/gemspec.mustache @@ -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' diff --git a/samples/client/petstore/ruby/README.md b/samples/client/petstore/ruby/README.md index d5fc3c8405b..4dc28289fa3 100644 --- a/samples/client/petstore/ruby/README.md +++ b/samples/client/petstore/ruby/README.md @@ -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 diff --git a/samples/client/petstore/ruby/petstore.gemspec b/samples/client/petstore/ruby/petstore.gemspec index 55ba462e237..08b733a0921 100644 --- a/samples/client/petstore/ruby/petstore.gemspec +++ b/samples/client/petstore/ruby/petstore.gemspec @@ -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'