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"
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} = ["

View File

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

View File

@ -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",