email_crawler 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/email_crawler/proxy.rb +2 -1
- data/lib/email_crawler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2de69de34df458d935de9deaed59993e9b66e26b
|
4
|
+
data.tar.gz: ac1e1063e63f708ed663183b4bb3b6331b686520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de5977cd80e45368403850c964e4e50e56c4efef0f17d16ecb5cf942f612aff49d00542ae462f4f6b477b8d9d91201c8364e0995cbed88e696a32c1dea230304
|
7
|
+
data.tar.gz: 4d5b2008c4d23886f45ebeae9d46391d3b22ac6e5eab74a4b93b9c6aee43af7898978e225482818bb81b6d822b16caeb53bb686433b09af79e560eb5a65655dc
|
data/lib/email_crawler/proxy.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "openssl"
|
1
2
|
require "open-uri"
|
2
3
|
require "json"
|
3
4
|
require "dotenv"
|
@@ -16,7 +17,7 @@ module EmailCrawler
|
|
16
17
|
Dotenv.load
|
17
18
|
|
18
19
|
json = JSON.parse(open("https://api.digitalocean.com/droplets/?client_id=#{ENV['DO_CLIENT_ID']}&api_key=#{ENV['DO_API_KEY']}",
|
19
|
-
ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE).read)
|
20
|
+
ssl_verify_mode: ::OpenSSL::SSL::VERIFY_NONE).read)
|
20
21
|
json["droplets"].
|
21
22
|
select{ |droplet| droplet["name"] =~ /proxy\d+/ }.
|
22
23
|
map { |droplet| droplet["ip_address"] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_crawler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cristian Rasch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|