rack-tor-block 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/rack/ip.rb +1 -1
  3. metadata +5 -17
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ N2ZmMDlmYzk2MDBjMGM2ZjU1MTJjN2VlMTBiZTZlZTBiZjliYjc3Mw==
5
+ data.tar.gz: !binary |-
6
+ MmE2NWNkMjIwMGUzMWVkMGI1N2EwMzcyZWFhODQzNzc0N2U5NzQ5MQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NGExNTdmZGJhZTgxMzc1ZTlmZmZjODE4NTM2OTE5YTNkYzJmZWE5OGE2NzBh
10
+ MjY2MmVjMjk3YjlkMDRkNjBiY2U3NGFhNTQ5MTU5NDNhZTFkOGM5MTBkMmYx
11
+ MjYyMmRkZGE0MjExYzlkZDA4OWY4MmI4ZWIxNjViYWQ1MzQ5ZDc=
12
+ data.tar.gz: !binary |-
13
+ YjE3MmIwMDIyZDAzZmU3MWEyOTMwMWQ0NzI2MDgwMmM1YjhkYWJiZTI0Zjk0
14
+ MDZlNTdhZWU3MjVjY2ZhNzM1YzEyODFhOWU1MDk3YzBlOWZlYWEzMzc5N2Q4
15
+ Y2I3MzZhMTgyMmYzZjdkY2ZmMDhmYjVlMDc1OWI0YjZiODc3Zjk=
@@ -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 Errno::EHOSTUNREACH, Resolv::ResolvError => e
21
+ rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH, Resolv::ResolvError => e
22
22
  false
23
23
  end
24
24
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-tor-block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Luca Bonmassar
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2013-12-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>'
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>'
44
39
  - !ruby/object:Gem::Version
@@ -55,32 +50,25 @@ files:
55
50
  - lib/rack/tor_block.rb
56
51
  homepage: http://www.gild.com
57
52
  licenses: []
53
+ metadata: {}
58
54
  post_install_message:
59
55
  rdoc_options: []
60
56
  require_paths:
61
57
  - lib
62
58
  required_ruby_version: !ruby/object:Gem::Requirement
63
- none: false
64
59
  requirements:
65
60
  - - ! '>='
66
61
  - !ruby/object:Gem::Version
67
62
  version: '0'
68
- segments:
69
- - 0
70
- hash: -2886170832924418824
71
63
  required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
64
  requirements:
74
65
  - - ! '>='
75
66
  - !ruby/object:Gem::Version
76
67
  version: '0'
77
- segments:
78
- - 0
79
- hash: -2886170832924418824
80
68
  requirements: []
81
69
  rubyforge_project:
82
- rubygems_version: 1.8.24
70
+ rubygems_version: 2.1.11
83
71
  signing_key:
84
- specification_version: 3
72
+ specification_version: 4
85
73
  summary: Prevent tor users to access a Rack / Rails application.
86
74
  test_files: []