Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Mar 1, 2013
1 parent 2560bb9 commit dac9197
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 7 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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} = ["
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/protection/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def self.version
VERSION
end

SIGNATURE = [1, 3, 2]
SIGNATURE = [1, 4, 0]
VERSION = SIGNATURE.join('.')

VERSION.extend Comparable
Expand Down
6 changes: 4 additions & 2 deletions rack-protection.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,6 +15,7 @@ Gem::Specification.new do |s|
"Chris Mytton",
"Corey Ward",
"David Kellum",
"Egor Homakov",
"Fojas",
"Mael Clerambault",
"Martin Mauch",
Expand All @@ -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
Expand All @@ -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",
Expand Down

0 comments on commit dac9197

Please sign in to comment.