epilotto_curriculum.gemspec in epilotto_curriculum-0.1.2 vs epilotto_curriculum.gemspec in epilotto_curriculum-0.2.0

- old
+ new

@@ -1,19 +1,37 @@ -# -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "epilotto_curriculum/version" +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'epilotto_curriculum/version' -Gem::Specification.new do |s| - s.name = "epilotto_curriculum" - s.version = EpilottoCurriculum::VERSION - s.platform = Gem::Platform::RUBY - s.authors = ["Enrico Pilotto"] - s.email = ["enrico@megiston.it"] - s.homepage = "http://github.com/pioz/epilotto_curriculum" - s.summary = "Enrico Pilotto's curriculum vitae" - s.description = "Get Enrico Pilotto's Curriculm Vitae typing 'epilotto' from your terminal" - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - s.require_paths = ["lib"] - s.add_dependency('term-ansicolor', '>= 1.0.5') +Gem::Specification.new do |spec| + spec.name = "epilotto_curriculum" + spec.version = EpilottoCurriculum::VERSION + spec.authors = ["pioz"] + spec.email = ["enrico@megiston.it"] + + spec.summary = %q{Enrico Pilotto's curriculum vitae} + spec.description = %q{Get Enrico Pilotto's Curriculm Vitae typing 'epilotto' from your terminal.} + spec.homepage = "http://github.com/pioz/epilotto_curriculum." + spec.license = "MIT" + + # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' + # to allow pushing to a single host or delete this section to allow pushing to any host. + if spec.respond_to?(:metadata) + spec.metadata['allowed_push_host'] = "https://rubygems.org" + else + raise "RubyGems 2.0 or newer is required to protect against " \ + "public gem pushes." + end + + spec.files = `git ls-files -z`.split("\x0").reject do |f| + f.match(%r{^(test|spec|features)/}) + end + spec.bindir = "bin" + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler", "~> 1.13" + spec.add_development_dependency "rake", "~> 10.0" + + spec.add_dependency("term-ansicolor", ">= 1.0.5") end