rack-tor-block 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rack/ip.rb +1 -1
  2. metadata +5 -5
@@ -18,7 +18,7 @@ module Rack
18
18
 
19
19
  def is_tor? #Implements https://www.torproject.org/projects/tordnsel.html.en
20
20
  Resolv.getaddress(tor_hostname) == TOR_POSITIVE_IP
21
- rescue Resolv::ResolvError => e
21
+ rescue Errno::EHOSTUNREACH, Resolv::ResolvError => e
22
22
  false
23
23
  end
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-tor-block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-22 00:00:00.000000000 Z
12
+ date: 2013-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: 4417837426725258599
70
+ hash: -2886170832924418824
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
@@ -76,11 +76,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  segments:
78
78
  - 0
79
- hash: 4417837426725258599
79
+ hash: -2886170832924418824
80
80
  requirements: []
81
81
  rubyforge_project:
82
82
  rubygems_version: 1.8.24
83
83
  signing_key:
84
84
  specification_version: 3
85
- summary: Prevent tor users to access a Racl / Rails application.
85
+ summary: Prevent tor users to access a Rack / Rails application.
86
86
  test_files: []