From b4dc4f360e5ae036da18ea7e38592a4b21e902a0 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 1 Mar 2013 15:55:54 +1100 Subject: [PATCH] v1.4.0 --- rack-protection/Rakefile | 11 +++++++---- rack-protection/lib/rack/protection/version.rb | 2 +- rack-protection/rack-protection.gemspec | 6 ++++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/rack-protection/Rakefile b/rack-protection/Rakefile index 78adeaf5..b642a1a3 100644 --- a/rack-protection/Rakefile +++ b/rack-protection/Rakefile @@ -14,15 +14,18 @@ task(:spec) { ruby '-S rspec spec' } desc "generate gemspec" task 'rack-protection.gemspec' do require 'rack/protection/version' - content = File.read 'rack-protection.gemspec' + content = File.binread 'rack-protection.gemspec' # fetch data fields = { - :authors => `git shortlog -sn`.scan(/[^\d\s].*/), - :email => `git shortlog -sne`.scan(/[^<]+@[^>]+/), - :files => `git ls-files`.split("\n").reject { |f| f =~ /^(\.|Gemfile)/ } + :authors => `git shortlog -sn`.force_encoding('utf-8').scan(/[^\d\s].*/), + :email => `git shortlog -sne`.force_encoding('utf-8').scan(/[^<]+@[^>]+/), + :files => `git ls-files`.force_encoding('utf-8').split("\n").reject { |f| f =~ /^(\.|Gemfile)/ } } + # double email :( + fields[:email].delete("konstantin.haase@gmail.com") + # insert data fields.each do |field, values| updated = " s.#{field} = [" diff --git a/rack-protection/lib/rack/protection/version.rb b/rack-protection/lib/rack/protection/version.rb index 040b0954..f8f6550e 100644 --- a/rack-protection/lib/rack/protection/version.rb +++ b/rack-protection/lib/rack/protection/version.rb @@ -4,7 +4,7 @@ module Rack VERSION end - SIGNATURE = [1, 3, 2] + SIGNATURE = [1, 4, 0] VERSION = SIGNATURE.join('.') VERSION.extend Comparable diff --git a/rack-protection/rack-protection.gemspec b/rack-protection/rack-protection.gemspec index 0d5567c6..6ddbc2e3 100644 --- a/rack-protection/rack-protection.gemspec +++ b/rack-protection/rack-protection.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| # general infos s.name = "rack-protection" - s.version = "1.3.2" + s.version = "1.4.0" s.description = "You should use protection!" s.homepage = "http://github.com/rkh/rack-protection" s.summary = s.description @@ -15,6 +15,7 @@ Gem::Specification.new do |s| "Chris Mytton", "Corey Ward", "David Kellum", + "Egor Homakov", "Fojas", "Mael Clerambault", "Martin Mauch", @@ -23,7 +24,7 @@ Gem::Specification.new do |s| "Steve Agalloco", "Akzhan Abdulin", "TOBY", - "Bj\u{f8}rge N\u{e6}ss" + "Bj\u00F8rge N\u00E6ss" ] # generated from git shortlog -sne @@ -34,6 +35,7 @@ Gem::Specification.new do |s| "self@hecticjeff.net", "coreyward@me.com", "dek-oss@gravitext.com", + "homakov@gmail.com", "developer@fojasaur.us", "mael@clerambault.fr", "martin.mauch@gmail.com",