share_counter 0.3.1 → 0.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 701a51684f3f6a3928b1eedb34fc549e39088147
4
- data.tar.gz: 0031d614760947d43798c427f76087c1ff00386c
3
+ metadata.gz: 0f7a3224979ff4fa601cac348df52e0b7115f734
4
+ data.tar.gz: 52dfeeafccc73c34d487f9a2d1f3428b053d3104
5
5
  SHA512:
6
- metadata.gz: 3cacc4d46769cdac1dd11bae09ef13e018a0f61a2e963526a920036340d61910d546174ab0a1a43a7178c49caec8f0e9d1579b4f290e0511400d9939ad381b36
7
- data.tar.gz: a3593ee32a0dd8a255e9263fc84e5b0e13c19700f2c630f7e8272a310e28fa5952d595646350a3cfd07ebb7ee50fdb14e295b7d81d3e44710f013296b3eaf747
6
+ metadata.gz: fa5a3d7337e166dc53a575c7faef5882e8c34668698996306f6ae4be690330d8571d87e79484ec18f94655f1af185103e157006e68616f48a02d5e4dda7d0b2b
7
+ data.tar.gz: d2e4a6a859deecbe045150c3149a20a23a415500ce08fc5d371c18a36544a9e128687945074c61598effc6c26f254f23ca1b8743999f5c995e18a877845268b9
@@ -1,3 +1,3 @@
1
1
  module ShareCounter
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/share_counter.rb CHANGED
@@ -10,7 +10,7 @@ module ShareCounter
10
10
  end
11
11
 
12
12
  def self.facebook url
13
- html = make_request "https://api.facebook.com/method/links.getStats?urls=#{url}&format=json"
13
+ html = make_request "https://api.facebook.com/method/links.getStats", urls: url, format: "json"
14
14
  return JSON.parse(html, symbolize_names: true)[0]
15
15
  end
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: share_counter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide Santangelo