mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Fix rack-protection.gemspec
This commit is contained in:
parent
e57f63df61
commit
9878c9ae55
2 changed files with 2 additions and 13 deletions
|
@ -1,16 +1,5 @@
|
||||||
module Rack
|
module Rack
|
||||||
module Protection
|
module Protection
|
||||||
def self.version
|
VERSION = ::Sinatra::VERSION
|
||||||
VERSION
|
|
||||||
end
|
|
||||||
|
|
||||||
SIGNATURE = [2, 0, 0]
|
|
||||||
VERSION = SIGNATURE.join('.')
|
|
||||||
|
|
||||||
VERSION.extend Comparable
|
|
||||||
def VERSION.<=>(other)
|
|
||||||
other = other.split('.').map { |i| i.to_i } if other.respond_to? :split
|
|
||||||
SIGNATURE <=> Array(other)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$:.unshift File.expand_path("../../sinatra/lib", __FILE__)
|
$:.unshift File.expand_path("../../lib", __FILE__)
|
||||||
require "sinatra/version"
|
require "sinatra/version"
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
|
|
Loading…
Reference in a new issue