From 2a1e7daa1d29579d2045b63920afbb7d14033558 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 29 Feb 2016 15:35:17 +0100 Subject: [PATCH 1/2] Skip date in gemspec --- github_changelog_generator.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/github_changelog_generator.gemspec b/github_changelog_generator.gemspec index a8ad97a..42960cb 100644 --- a/github_changelog_generator.gemspec +++ b/github_changelog_generator.gemspec @@ -12,7 +12,6 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 1.9.3" spec.authors = ["Petr Korolev"] spec.email = "sky4winder+github_changelog_generator@gmail.com" - spec.date = `date +"%Y-%m-%d"`.strip! spec.summary = "Script, that automatically generate changelog from your tags, issues, labels and pull requests." spec.description = "Changelog generation has never been so easy. Fully automate changelog generation - this gem generate change log file based on tags, issues and merged pull requests from Github issue tracker." spec.homepage = "https://github.com/skywinder/Github-Changelog-Generator" From 7ab1ee1c2116560e1ecb4497705b75f4b9f6f604 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 1 Mar 2016 14:54:59 +0100 Subject: [PATCH 2/2] Gemspec: Use Ruby to calculate YYYY-MM-DD date --- github_changelog_generator.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github_changelog_generator.gemspec b/github_changelog_generator.gemspec index 42960cb..d542c17 100644 --- a/github_changelog_generator.gemspec +++ b/github_changelog_generator.gemspec @@ -1,5 +1,5 @@ # coding: utf-8 - +require "date" lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "github_changelog_generator/version" @@ -12,6 +12,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 1.9.3" spec.authors = ["Petr Korolev"] spec.email = "sky4winder+github_changelog_generator@gmail.com" + spec.date = Date.today.iso8601 spec.summary = "Script, that automatically generate changelog from your tags, issues, labels and pull requests." spec.description = "Changelog generation has never been so easy. Fully automate changelog generation - this gem generate change log file based on tags, issues and merged pull requests from Github issue tracker." spec.homepage = "https://github.com/skywinder/Github-Changelog-Generator"