get_top_10 0.0.2 → 0.0.3

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.
@@ -1,3 +1,3 @@
1
1
  module GetTop10
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/get_top_10.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "get_top_10/version"
2
2
 
3
3
  module GetTop10
4
- def get(h)
4
+ def self.get(h)
5
5
  z = h.sort_by {|k,v| -v}
6
6
  a = []
7
7
  previous_count = -1
@@ -16,5 +16,6 @@ module GetTop10
16
16
  z.each do |l|
17
17
  h[l[0]] = l[1]
18
18
  end
19
+ h
19
20
  end
20
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_top_10
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: