PwnedCheck 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/pwnedcheck.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8668a46a17ea678069664befcf71db9d6424ed7
|
4
|
+
data.tar.gz: f3666a4b7a42889cbe19d64c341c78f6f60a6d99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e516decd8737686fddb5a5c94e0f1eec8f1d40ae0d3fcb1d4686308f11005a7ad2562134de876ce8a41a8e0aeffe932df8afe5e863cf8b01b4593b25755c8e09
|
7
|
+
data.tar.gz: 7bd78053532b4bd35a8d4b8e324283466af1ed35266a76ca5a035dbf16a7173e28473a134d5b7c7ffcb18098caa4cd5ebd60cfdff135755e6b9a54ebc0c2a725
|
data/README.md
CHANGED
data/lib/pwnedcheck.rb
CHANGED
@@ -40,6 +40,7 @@ module PwnedCheck
|
|
40
40
|
# @return [Array] an array of sites that the email address is associated with
|
41
41
|
def self.check(address)
|
42
42
|
agent = Mechanize.new
|
43
|
+
agent.user_agent_alias = 'PwnedCheck (http://www.chs.us/PwnedCheck)'
|
43
44
|
begin
|
44
45
|
url = "http://haveibeenpwned.com/api/breachedaccount/#{address}"
|
45
46
|
page = agent.get Addressable::URI.parse(url)
|