rack-entrance 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rack/entrance.rb CHANGED
@@ -10,7 +10,9 @@ module Rack
10
10
  def call(env)
11
11
  request = Rack::Request.new(env)
12
12
  ip = env["action_dispatch.remote_ip"] || request.ip
13
- request.env['entrance.internal'] = internal? ip
13
+ request.env['entrance.ip'] = ip
14
+ request.env['entrance.internal_ips'] = internal_ips
15
+ request.env['entrance.internal'] = internal?(ip)
14
16
  @app.call env
15
17
  end
16
18
 
@@ -3,7 +3,7 @@ module Rack
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-entrance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: