share_counts 0.0.3 → 0.0.4

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- share_counts (0.0.2)
4
+ share_counts (0.0.3)
5
5
  json
6
6
  nokogiri
7
7
  redis
@@ -99,7 +99,7 @@ module ShareCounts
99
99
  #
100
100
  def extract_count *args
101
101
  json = args.shift
102
- result = args.first.flatten.last.split("/").inject( json.is_a?(Array) ? json.first : json ) {
102
+ result = args.first.to_a.flatten.last.split("/").inject( json.is_a?(Array) ? json.first : json ) {
103
103
  |r, c| r[c].is_a?(Array) ? r[c].first : r[c]
104
104
  }
105
105
  end
data/share_counts.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.push File.expand_path("../lib/share_counts", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "share_counts"
7
- s.version = "0.0.3"
7
+ s.version = "0.0.4"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Vito Botta"]
10
10
  s.email = ["vito@botta.name"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Vito Botta