ipecache 0.0.8 → 0.0.9
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 +8 -8
- data/CHANGELOG.md +6 -0
- data/ipecache.gemspec +1 -1
- data/lib/ipecache/plugins/fastly.rb +7 -1
- data/lib/ipecache/plugins/swisstxt_cdn.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzEyYzJiZDRmZjk2MzBiODMzMTAwYjI0ZTdjNzc3NTZhOGE2NWVjNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTNhYzUyODJmNmFiOGMyMzllNDU3OWFiMTQxODJjZjZjMTJmMTYxYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDM5YTA0ZGQ0MTUzOTZjNjkyZWFiNDdmYWEyNmQ0ZjgyZmZkOTQzMTQ0OTZm
|
10
|
+
OGI2ZGQ3Yjc1YmRmNzZlZDRjYWE4ZDZmOWE4NDFhNDk3ZDk1Y2MzNDdjMGIx
|
11
|
+
MWRlZWEzNTJmNWQwODE1NzhlODk0ZTBjMjRkOTAzMmJiZjI3NjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmEwYzNlMGZiMjVjZTgwOTZiYzUyYjI2MzIwYTk0ZDA5YmJjMjBmYmNiMjcw
|
14
|
+
OTdhOWRjM2JmMzE5OTAyNjM3NjhjOTUyMWQ0NmIzNzY0Yjg1MDExOTE3ZTUx
|
15
|
+
NjM1NWRlMDdiNmVjMGNlMjE2YjhjNGFhOGRlYmFlNWQ3MWYyYzA=
|
data/CHANGELOG.md
CHANGED
data/ipecache.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'ipecache'
|
5
|
-
gem.version = '0.0.
|
5
|
+
gem.version = '0.0.9'
|
6
6
|
gem.authors = ["Jon Cowie"]
|
7
7
|
gem.email = 'jonlives@gmail.com'
|
8
8
|
gem.homepage = 'https://github.com/jonlives/ipecache'
|
@@ -27,8 +27,14 @@ module Ipecache
|
|
27
27
|
|
28
28
|
http = Net::HTTP.new("api.fastly.com", "443")
|
29
29
|
http.use_ssl = true
|
30
|
+
|
31
|
+
# Fix for https://github.com/jonlives/ipecache/issues/10
|
32
|
+
# We're using SSL v3 here to disable SNI,
|
33
|
+
# which causes Fastly's API to return a 400
|
34
|
+
# as the hostname is changed to the URL being purged after
|
35
|
+
# SSL handshake.
|
30
36
|
http.ssl_version = 'SSLv3'
|
31
|
-
http.verify_mode = OpenSSL::SSL::
|
37
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
32
38
|
|
33
39
|
request = Net::HTTP::Purge.new(path)
|
34
40
|
request.add_field("X-Forwarded-For", "0.0.0.0")
|
@@ -49,7 +49,7 @@ module Ipecache
|
|
49
49
|
exit 1
|
50
50
|
end
|
51
51
|
|
52
|
-
Faraday.new(url: config.url || 'https://cdn-api.
|
52
|
+
Faraday.new(url: config.url || 'https://cdn-api.swisstxt.ch') do |conn|
|
53
53
|
conn.request :url_encoded
|
54
54
|
conn.headers[:user_agent] = 'Ipecache'
|
55
55
|
conn.headers[:accept] = 'application/json'
|
@@ -61,4 +61,4 @@ module Ipecache
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
64
|
-
end
|
64
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ipecache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Cowie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: app_conf
|
@@ -119,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.2.
|
122
|
+
rubygems_version: 2.2.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: An extensible tool for purging urls from caches and CDNs
|
126
126
|
test_files: []
|
127
|
-
has_rdoc:
|