PwnedCheck 1.0.9 → 1.0.10

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/pwnedcheck.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8668a46a17ea678069664befcf71db9d6424ed7
4
- data.tar.gz: f3666a4b7a42889cbe19d64c341c78f6f60a6d99
3
+ metadata.gz: e07bf430c294d16e1cc1230dba7f6c4d969a21e3
4
+ data.tar.gz: fc76a9a29b4d71ab1bfef60b12d10f8867dab23e
5
5
  SHA512:
6
- metadata.gz: e516decd8737686fddb5a5c94e0f1eec8f1d40ae0d3fcb1d4686308f11005a7ad2562134de876ce8a41a8e0aeffe932df8afe5e863cf8b01b4593b25755c8e09
7
- data.tar.gz: 7bd78053532b4bd35a8d4b8e324283466af1ed35266a76ca5a035dbf16a7173e28473a134d5b7c7ffcb18098caa4cd5ebd60cfdff135755e6b9a54ebc0c2a725
6
+ metadata.gz: 0e8c788ad9f0ac01f3dd98118c27ebaae750abc15b00b1fca5ee9730d795f8a999af2920fe9a32a21d4d2387e46b154ef3bfea509cbe90ed633f299e88e9b462
7
+ data.tar.gz: b81d62cdc9827681758c1c95dc134f8e2d5ce677b3cf8093248efb9cdec61394175ae5570e057ca302e2aee3d8dd07507715d6fe3f84a18cae09ecf770978fdf
data/README.md CHANGED
@@ -5,7 +5,7 @@ Ruby gem to check to see if an email address is on http://haveibeenpwned.com
5
5
  <table>
6
6
  <tr>
7
7
  <th>Version</th>
8
- <td>1.0.9</td>
8
+ <td>1.0.10</td>
9
9
  </tr>
10
10
  <tr>
11
11
  <th>Author</th>
data/lib/pwnedcheck.rb CHANGED
@@ -40,7 +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
+ agent.user_agent = 'PwnedCheck (http://www.chs.us/PwnedCheck)'
44
44
  begin
45
45
  url = "http://haveibeenpwned.com/api/breachedaccount/#{address}"
46
46
  page = agent.get Addressable::URI.parse(url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PwnedCheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Sampson