check_http 0.0.3 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/check_http/checker.rb +1 -5
- data/lib/check_http/version.rb +1 -1
- metadata +2 -2
data/lib/check_http/checker.rb
CHANGED
@@ -5,15 +5,11 @@ module CheckHTTP
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def check(url)
|
8
|
-
ethon.
|
8
|
+
ethon = Ethon::Easy.new
|
9
9
|
ethon.url = url
|
10
10
|
ethon.prepare
|
11
11
|
ethon.perform
|
12
12
|
ethon.to_hash.reject { |k,v| blacklist.include?(k) }.merge(:url => url)
|
13
13
|
end
|
14
|
-
|
15
|
-
def ethon
|
16
|
-
@ethon ||= Ethon::Easy.new
|
17
|
-
end
|
18
14
|
end
|
19
15
|
end
|
data/lib/check_http/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check_http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
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: 2012-08-
|
12
|
+
date: 2012-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ethon
|