social_shares 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: 3642b7fd39221e877acaa31168a1cf7e87f9868b
4
- data.tar.gz: fb6d78c291949dbff0fc77c9ee2536e8914ce6bf
3
+ metadata.gz: f0901d2956fa1b971bb4350401fa00c8a3e12a5a
4
+ data.tar.gz: 4ff3f0f3305d46b48782354651cf84dd6a2efcf5
5
5
  SHA512:
6
- metadata.gz: d5c6d41eda0fe528a92a42c972fedde5b88235dcf9e0f767c88a499f964d2e3c554a1295a94bebd5aa8a85cf3a4a5732c38ca6eeb38f317126f386d8ce26d917
7
- data.tar.gz: 20ac77025ed29fee54a1368d05f3c6f8ac35290c9f3e8ca379b929cb34fd69d768615c68538487ababd6adcc24e2ba820a841bfc8e16b8a69e1837d57c298845
6
+ metadata.gz: 59508e4b6e88bddae9220cd26536a11e4422b0b9fce29ef7e2087d06845a5ee00bd80b26e69446735f6ad7425ca5a5aced8235a9197a63d0b4363b3dd82c53c9
7
+ data.tar.gz: e0a189903223b500dce41bef1810ed14f4c40dff67a78eaa134213627f0f5cdd687c4c76592acc4202960c84a951c74b4bcac582c948853a6cba3d79ab322a79
@@ -11,7 +11,7 @@ module SocialShares
11
11
  }
12
12
  })
13
13
 
14
- matches = /shares":(\d+)/.match(response)
14
+ matches = /shares":(\d+)/.match(response.body)
15
15
  matches ? matches[-1].to_i : 0
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module SocialShares
11
11
  }
12
12
  })
13
13
 
14
- /'(\d+)'\)/.match(response)[-1].to_i
14
+ /'(\d+)'\)/.match(response.body)[-1].to_i
15
15
  end
16
16
  end
17
17
  end
@@ -5,7 +5,7 @@ module SocialShares
5
5
  def shares!
6
6
  response = get(URL, params: { url: checked_url })
7
7
 
8
- /count":(\d+)/.match(response)[-1].to_i
8
+ /count":(\d+)/.match(response.body)[-1].to_i
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module SocialShares
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -11,7 +11,7 @@ module SocialShares
11
11
  }
12
12
  })
13
13
 
14
- /VK.Share.count\(1,\s(\d+)\)/.match(response)[1].to_i
14
+ /VK.Share.count\(1,\s(\d+)\)/.match(response.body)[1].to_i
15
15
  end
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_shares
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
  - Timur Kozmenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-10 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client