share_counter 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f98aa6a9350226175cf57c1dd5211c1cfee2915c
4
- data.tar.gz: bf35960f6f7e67d5fa3a628289a6149832043b97
3
+ metadata.gz: 701a51684f3f6a3928b1eedb34fc549e39088147
4
+ data.tar.gz: 0031d614760947d43798c427f76087c1ff00386c
5
5
  SHA512:
6
- metadata.gz: 44d9ef6ce648d9870f1a0bd49b6a38355f229aa3ea2178df58eca58c5076e97a930cea65a2ea4071ecd286a10fb7d6a97f17feeb6b44870d129a6eabf683f1a2
7
- data.tar.gz: ce544854516093532503798fea07ec3baca91951d0dc43ac44b4887bff291fd7d2f2c7386566b2ea2679523c4d7064d094d39a86558b034fcd0e61297a008d0f
6
+ metadata.gz: 3cacc4d46769cdac1dd11bae09ef13e018a0f61a2e963526a920036340d61910d546174ab0a1a43a7178c49caec8f0e9d1579b4f290e0511400d9939ad381b36
7
+ data.tar.gz: a3593ee32a0dd8a255e9263fc84e5b0e13c19700f2c630f7e8272a310e28fa5952d595646350a3cfd07ebb7ee50fdb14e295b7d81d3e44710f013296b3eaf747
@@ -1,3 +1,3 @@
1
1
  module ShareCounter
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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/fql.query", format: "json", query: "select commentsbox_count, click_count, total_count, comment_count, like_count, share_count from link_stat where url=\"#{url}\""
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide Santangelo