rack-ip_address_restriction 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83fe23929baf0405eedca05c5eafbcaadb1d6f72
4
- data.tar.gz: 2268c390a435bc3f4161bc2cf4507db3eb1553e1
3
+ metadata.gz: ee2e3aa03c27c24b1255c923aeac8529e9e548a8
4
+ data.tar.gz: 88a1aeb0344d6879ca1e7ceb879f7ac8057ca0c8
5
5
  SHA512:
6
- metadata.gz: df8cbd83b7d2dcdf201cc858e182ecc9bc4ecb8f408c34796454e4a9ea52a44f6e4c42f401beb81b183f267b4e044d52b4eaa02629cfca60924feb9913cc8e60
7
- data.tar.gz: 2681c08451856fb67ec37c01c5e302b2a67d78ec97172942d09e8628067567651437e5bd6d03e3bd739002023f12c7264074f5127e36e1faea9a8c2f021bd581
6
+ metadata.gz: cde924979c1a8f227abeaf1309e4d24e7f89477ea8d9de0cdec8145efa696a20af2854b8792723b993ee1d6c39a7d187929781e8a818bf3b676609b7da3b7fbe
7
+ data.tar.gz: 4cb25e12f5446d7c5d93083ebdce0e397b9834c32a332660d52c9124e9173e4757dbbf54523589c9e0e83da854b87f009aa4573ebf8170d8f0a74382ad263a25
@@ -28,7 +28,7 @@ module Rack
28
28
  mapping = config.map do |location, ip_masks|
29
29
  host, path = parse_location(location)
30
30
  raise ArgumentError, 'paths need to start with /' if path[0] != '/'
31
- path_prefix = Pathname.new(path).cleanpath.to_s
31
+ path_prefix = Pathname.new(path).cleanpath.to_s.chomp('/')
32
32
 
33
33
  ip_masks = ip_masks.map { |addr| addr.is_a?(IPAddr) ? addr : IPAddr.new(addr) }
34
34
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class IpAddressRestriction
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -8,6 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Rack::IpAddressRestriction::VERSION
9
9
  spec.authors = ["koshigoe"]
10
10
  spec.email = ["koshigoeb@gmail.com"]
11
+ spec.license = 'MIT'
11
12
 
12
13
  spec.summary = %q{Restrict access by IP Address.}
13
14
  spec.description = %q{Inspired by Rack::Access provided by https://github.com/rack/rack-contrib.}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ip_address_restriction
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -100,7 +100,8 @@ files:
100
100
  - lib/rack/ip_address_restriction/version.rb
101
101
  - rack-ip_address_restriction.gemspec
102
102
  homepage: https://github.com/koshigoe/rack-ip_address_restriction
103
- licenses: []
103
+ licenses:
104
+ - MIT
104
105
  metadata: {}
105
106
  post_install_message:
106
107
  rdoc_options: []
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  version: '0'
119
120
  requirements: []
120
121
  rubyforge_project:
121
- rubygems_version: 2.5.1
122
+ rubygems_version: 2.4.5.1
122
123
  signing_key:
123
124
  specification_version: 4
124
125
  summary: Restrict access by IP Address.