PwnedCheck 1.0.8 → 1.0.9

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 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfffbf712546b0d3c061ed2da3a07693d666b12a
4
- data.tar.gz: 4df6fd6c5833268b99bde895e448c78f26555968
3
+ metadata.gz: d8668a46a17ea678069664befcf71db9d6424ed7
4
+ data.tar.gz: f3666a4b7a42889cbe19d64c341c78f6f60a6d99
5
5
  SHA512:
6
- metadata.gz: 0a9f1bea5512306ab3e6c85d03661dd7e0c4397a9da0e3d9ef68bfcefb6e2e15d54fe82697a0c08bdf6bd9d5296d3b8d514923f304b5dca58bdfe826f0bde98e
7
- data.tar.gz: cf93795573b068c1bb370e502df1ea33ec07c16bc008fc9eb1b1fa706e35fe631affb040b33045d641a071fe5c9e760cbf5b1c7791af3722776be2a9bc7162ab
6
+ metadata.gz: e516decd8737686fddb5a5c94e0f1eec8f1d40ae0d3fcb1d4686308f11005a7ad2562134de876ce8a41a8e0aeffe932df8afe5e863cf8b01b4593b25755c8e09
7
+ data.tar.gz: 7bd78053532b4bd35a8d4b8e324283466af1ed35266a76ca5a035dbf16a7173e28473a134d5b7c7ffcb18098caa4cd5ebd60cfdff135755e6b9a54ebc0c2a725
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.8</td>
8
+ <td>1.0.9</td>
9
9
  </tr>
10
10
  <tr>
11
11
  <th>Author</th>
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)
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.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Sampson