peeping_tom 0.3 → 0.4

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.
Files changed (2) hide show
  1. data/lib/peeping_tom/dsl.rb +1 -9
  2. metadata +2 -2
@@ -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.get(file)
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
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
8
- version: "0.3"
7
+ - 4
8
+ version: "0.4"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Terry Heath