This commit is contained in:
Konstantin Haase 2013-03-01 15:55:54 +11:00
parent 8a2514674c
commit b4dc4f360e
3 changed files with 12 additions and 7 deletions

View File

@ -14,15 +14,18 @@ task(:spec) { ruby '-S rspec spec' }
desc "generate gemspec" desc "generate gemspec"
task 'rack-protection.gemspec' do task 'rack-protection.gemspec' do
require 'rack/protection/version' require 'rack/protection/version'
content = File.read 'rack-protection.gemspec' content = File.binread 'rack-protection.gemspec'
# fetch data # fetch data
fields = { fields = {
:authors => `git shortlog -sn`.scan(/[^\d\s].*/), :authors => `git shortlog -sn`.force_encoding('utf-8').scan(/[^\d\s].*/),
:email => `git shortlog -sne`.scan(/[^<]+@[^>]+/), :email => `git shortlog -sne`.force_encoding('utf-8').scan(/[^<]+@[^>]+/),
:files => `git ls-files`.split("\n").reject { |f| f =~ /^(\.|Gemfile)/ } :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 # insert data
fields.each do |field, values| fields.each do |field, values|
updated = " s.#{field} = [" updated = " s.#{field} = ["

View File

@ -4,7 +4,7 @@ module Rack
VERSION VERSION
end end
SIGNATURE = [1, 3, 2] SIGNATURE = [1, 4, 0]
VERSION = SIGNATURE.join('.') VERSION = SIGNATURE.join('.')
VERSION.extend Comparable VERSION.extend Comparable

View File

@ -2,7 +2,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
# general infos # general infos
s.name = "rack-protection" s.name = "rack-protection"
s.version = "1.3.2" s.version = "1.4.0"
s.description = "You should use protection!" s.description = "You should use protection!"
s.homepage = "http://github.com/rkh/rack-protection" s.homepage = "http://github.com/rkh/rack-protection"
s.summary = s.description s.summary = s.description
@ -15,6 +15,7 @@ Gem::Specification.new do |s|
"Chris Mytton", "Chris Mytton",
"Corey Ward", "Corey Ward",
"David Kellum", "David Kellum",
"Egor Homakov",
"Fojas", "Fojas",
"Mael Clerambault", "Mael Clerambault",
"Martin Mauch", "Martin Mauch",
@ -23,7 +24,7 @@ Gem::Specification.new do |s|
"Steve Agalloco", "Steve Agalloco",
"Akzhan Abdulin", "Akzhan Abdulin",
"TOBY", "TOBY",
"Bj\u{f8}rge N\u{e6}ss" "Bj\u00F8rge N\u00E6ss"
] ]
# generated from git shortlog -sne # generated from git shortlog -sne
@ -34,6 +35,7 @@ Gem::Specification.new do |s|
"self@hecticjeff.net", "self@hecticjeff.net",
"coreyward@me.com", "coreyward@me.com",
"dek-oss@gravitext.com", "dek-oss@gravitext.com",
"homakov@gmail.com",
"developer@fojasaur.us", "developer@fojasaur.us",
"mael@clerambault.fr", "mael@clerambault.fr",
"martin.mauch@gmail.com", "martin.mauch@gmail.com",