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

Commit

Permalink
Bump version for developing 2.0.0 alpha
Browse files Browse the repository at this point in the history
Updated gemspec task to only add maintainers emails,
probably not everyone wants their email publicly listed just for submitting a patch.

Also replaced the file selection to manual, which leaves out spec files from the gem package.
  • Loading branch information
Zachary Scott committed Jul 25, 2016
1 parent 731b28c commit d32ac0a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 71 deletions.
7 changes: 2 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ task 'rack-protection.gemspec' do
# fetch data
fields = {
: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)/ }
:email => ["mail@zzak.io", "konstantin.haase@gmail.com"],
:files => %w(License README.md Rakefile Gemfile rack-protection.gemspec) + Dir['lib/**/*']
}

# 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, 5, 3]
SIGNATURE = [2, 0, 0]
VERSION = SIGNATURE.join('.')

VERSION.extend Comparable
Expand Down
98 changes: 33 additions & 65 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.5.3"
s.version = "2.0.0"
s.description = "You should use protection!"
s.homepage = "http://github.com/sinatra/rack-protection"
s.summary = s.description
Expand All @@ -11,16 +11,27 @@ Gem::Specification.new do |s|
# generated from git shortlog -sn
s.authors = [
"Konstantin Haase",
"Maurizio De Santis",
"Alex Rodionov",
"Patrick Ellis",
"Jason Staten",
"Patrick Ellis",
"ITO Nobuaki",
"Jeff Welling",
"Matteo Centenaro",
"Akzhan Abdulin",
"Alan deLevie",
"Bj\u{f8}rge N\u{e6}ss",
"Chris Heald",
"Chris Mytton",
"Corey Ward",
"Dario Cravero",
"David Kellum",
"Egor Homakov",
"Florian Gilcher",
"Fojas",
"Igor Bochkariov",
"Josef Stribny",
"Katrina Owen",
"Mael Clerambault",
"Martin Mauch",
"Renne Nissinen",
Expand All @@ -30,85 +41,42 @@ Gem::Specification.new do |s|
"TOBY",
"Thais Camilo and Konstantin Haase",
"Vipul A M",
"Akzhan Abdulin",
"brookemckim",
"Bj\u{f8}rge N\u{e6}ss",
"Chris Heald",
"Chris Mytton",
"Corey Ward",
"Dario Cravero",
"David Kellum"
"Zachary Scott",
"ashley williams",
"brookemckim"
]

# generated from git shortlog -sne
s.email = [
"konstantin.mailinglists@googlemail.com",
"p0deje@gmail.com",
"jstaten07@gmail.com",
"patrick@soundcloud.com",
"jeff.welling@gmail.com",
"bugant@gmail.com",
"daydream.trippers@gmail.com",
"florian.gilcher@asquera.de",
"developer@fojasaur.us",
"ujifgc@gmail.com",
"mael@clerambault.fr",
"martin.mauch@gmail.com",
"rennex@iki.fi",
"kaz.july.7@gmail.com",
"s.savulchik@gmail.com",
"steve.agalloco@gmail.com",
"toby.net.info.mail+git@gmail.com",
"dev+narwen+rkh@rkh.im",
"vipulnsward@gmail.com",
"akzhan.abdulin@gmail.com",
"brooke@digitalocean.com",
"bjoerge@bengler.no",
"cheald@gmail.com",
"self@hecticjeff.net",
"coreyward@me.com",
"dario@uxtemple.com",
"dek-oss@gravitext.com",
"homakov@gmail.com"
"mail@zzak.io",
"konstantin.haase@gmail.com"
]

# generated from git ls-files
s.files = [
"License",
"README.md",
"Rakefile",
"lib/rack-protection.rb",
"lib/rack/protection.rb",
"lib/rack/protection/authenticity_token.rb",
"lib/rack/protection/base.rb",
"Gemfile",
"rack-protection.gemspec",
"lib/rack",
"lib/rack/protection",
"lib/rack/protection/escaped_params.rb",
"lib/rack/protection/form_token.rb",
"lib/rack/protection/frame_options.rb",
"lib/rack/protection/http_origin.rb",
"lib/rack/protection/ip_spoofing.rb",
"lib/rack/protection/json_csrf.rb",
"lib/rack/protection/path_traversal.rb",
"lib/rack/protection/remote_referrer.rb",
"lib/rack/protection/remote_token.rb",
"lib/rack/protection/ip_spoofing.rb",
"lib/rack/protection/base.rb",
"lib/rack/protection/session_hijacking.rb",
"lib/rack/protection/authenticity_token.rb",
"lib/rack/protection/version.rb",
"lib/rack/protection/path_traversal.rb",
"lib/rack/protection/form_token.rb",
"lib/rack/protection/json_csrf.rb",
"lib/rack/protection/http_origin.rb",
"lib/rack/protection/frame_options.rb",
"lib/rack/protection/xss_header.rb",
"rack-protection.gemspec",
"spec/authenticity_token_spec.rb",
"spec/base_spec.rb",
"spec/escaped_params_spec.rb",
"spec/form_token_spec.rb",
"spec/frame_options_spec.rb",
"spec/http_origin_spec.rb",
"spec/ip_spoofing_spec.rb",
"spec/json_csrf_spec.rb",
"spec/path_traversal_spec.rb",
"spec/protection_spec.rb",
"spec/remote_referrer_spec.rb",
"spec/remote_token_spec.rb",
"spec/session_hijacking_spec.rb",
"spec/spec_helper.rb",
"spec/xss_header_spec.rb"
"lib/rack/protection/remote_token.rb",
"lib/rack/protection.rb",
"lib/rack-protection.rb"
]

# dependencies
Expand Down

0 comments on commit d32ac0a

Please sign in to comment.