peeping_tom 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/peeping_tom/dsl.rb +1 -9
- metadata +2 -2
data/lib/peeping_tom/dsl.rb
CHANGED
@@ -9,7 +9,7 @@ module PeepingTom
|
|
9
9
|
url = URI.parse(site.url)
|
10
10
|
res = Net::HTTP.start(url.host, url.port) do |http|
|
11
11
|
file = "/" + url.to_s.sub(/http:\/\/.*?\//, '')
|
12
|
-
http.
|
12
|
+
http.head(file)
|
13
13
|
end
|
14
14
|
return res.code.to_i >= 200 && res.code.to_i < 400
|
15
15
|
end
|
@@ -72,13 +72,5 @@ module PeepingTom
|
|
72
72
|
def site(name, site, opts = {})
|
73
73
|
PeepingTom.peeper.register(name, site, opts)
|
74
74
|
end
|
75
|
-
|
76
|
-
def irc(msg)
|
77
|
-
PeepingTom::Notifier::IRC.notify(msg)
|
78
|
-
end
|
79
|
-
|
80
|
-
def email(msg)
|
81
|
-
PeepingTom::Notifier::Email.notify(msg)
|
82
|
-
end
|
83
75
|
end
|
84
76
|
end
|