share_checker 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module ShareChecker
8
8
  #
9
9
  def parse(response)
10
10
  doc = parse_json(response)
11
- doc.nil? ? 0 : doc["response"]["count"].to_i
11
+ doc && doc["response"] ? doc["response"]["count"].to_i : 0
12
12
  end
13
13
 
14
14
  def url
@@ -1,3 +1,3 @@
1
1
  module ShareChecker
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: share_checker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Igor Galeta