rack-ip-whitelist 0.0.1 → 0.0.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.
@@ -16,7 +16,8 @@ module Rack
16
16
  end
17
17
 
18
18
  def white_listed?(env)
19
- Rails.env.production? ? @ip_addresses.include?(env["REMOTE_IP"]) : true
19
+ Rails.logger.info "WHITELIST: ENV: #{env["REMOTE_ADDR"].inspect}"
20
+ Rails.env.production? ? @ip_addresses.include?(env["REMOTE_ADDR"]) : true
20
21
  end
21
22
  end
22
23
  end
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Ip
3
3
  module Whitelist
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ip-whitelist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Varghese
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-08 00:00:00 -05:00
18
+ date: 2011-07-14 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21