From b6ec9bd8be2cf8b0ecf708b4a6114816fc1ea491 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Mon, 17 Nov 2014 18:01:10 +0200 Subject: [PATCH] update gemspec file --- github_changelog_generator.gemspec | 47 ++++++++++++++++++------------ lib/github_changelog_generator.rb | 1 + 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/github_changelog_generator.gemspec b/github_changelog_generator.gemspec index ea9b248..a360b1a 100644 --- a/github_changelog_generator.gemspec +++ b/github_changelog_generator.gemspec @@ -1,22 +1,31 @@ -Gem::Specification.new do |s| - s.name = "github_changelog_generator" - s.version = GitHubChangelogGenerator::VERSION - s.default_executable = "github_changelog_generator" +# coding: utf-8 - s.required_ruby_version = '>= 1.9.3' - s.authors = ["Petr Korolev"] - s.date = `date +"%Y-%m-%d"`.strip! - s.description = %q{Script, that automatically generate change-log from your tags and pull-requests} - s.email = %q{sky4winder+github_changelog_generator@gmail.com} - s.files = ["lib/github_changelog_generator.rb", "lib/github_changelog_generator/parser.rb", "bin/github_changelog_generator"] - s.homepage = %q{https://github.com/skywinder/Github-Changelog-Generator} - s.require_paths = ["lib"] - s.rubygems_version = %q{1.6.2} - s.summary = %q{Script, that automatically generate change-log from your tags and pull-requests.} - s.license = "MIT" - s.add_runtime_dependency(%q, ["~> 0.13"]) - s.add_runtime_dependency(%q, ["~> 0.12"]) - s.add_runtime_dependency(%q, ["~> 0.7"]) +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) - s.executables = %w(github_changelog_generator) +require 'github_changelog_generator/version' + +Gem::Specification.new do |spec| + spec.name = "github_changelog_generator" + spec.version = GitHubChangelogGenerator::VERSION + spec.default_executable = "github_changelog_generator" + + spec.required_ruby_version = '>= 1.9.3' + spec.authors = ["Petr Korolev"] + spec.email = %q{sky4winder+github_changelog_generator@gmail.com} + spec.date = `date +"%Y-%m-%d"`.strip! + spec.summary = %q{Script, that automatically generate change-log from your tags and pull-requests.} + spec.description = %q{Script, that automatically generate change-log from your tags and pull-requests} + spec.homepage = %q{https://github.com/skywinder/Github-Changelog-Generator} + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0") + spec.rubygems_version = %q{1.6.2} + spec.require_paths = ["lib"] + + spec.add_runtime_dependency(%q, ["~> 0.13"]) + spec.add_runtime_dependency(%q, ["~> 0.12"]) + spec.add_runtime_dependency(%q, ["~> 0.7"]) + + spec.executables = %w(github_changelog_generator) end diff --git a/lib/github_changelog_generator.rb b/lib/github_changelog_generator.rb index 16d9484..8d88957 100755 --- a/lib/github_changelog_generator.rb +++ b/lib/github_changelog_generator.rb @@ -5,6 +5,7 @@ require 'json' require 'httparty' require 'colorize' require_relative 'github_changelog_generator/parser' +require_relative 'github_changelog_generator/version' module GitHubChangelogGenerator class ChangelogGenerator