Browse files

v1.4.0

  • Loading branch information...
1 parent 2560bb9 commit dac91970da37d07071819d32a7a00c4a5f636a7e @rkh rkh committed Mar 1, 2013
Showing with 12 additions and 7 deletions.
  1. +7 −4 Rakefile
  2. +1 −1 lib/rack/protection/version.rb
  3. +4 −2 rack-protection.gemspec
View
11 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} = ["
View
2 lib/rack/protection/version.rb
@@ -4,7 +4,7 @@ def self.version
VERSION
end
- SIGNATURE = [1, 3, 2]
+ SIGNATURE = [1, 4, 0]
VERSION = SIGNATURE.join('.')
VERSION.extend Comparable
View
6 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",

0 comments on commit dac9197

Please sign in to comment.