share_counts 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/share_counts/common.rb +1 -1
- data/share_counts.gemspec +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/share_counts/common.rb
CHANGED
@@ -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