ruby_gg 0.1.4.4 → 0.1.4.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 280888c1a4cf5bb4fee6bfd6b24244e6eef42af0
4
- data.tar.gz: 49f7d97cd2c8d0d37ea64ff6ba71a25e0d5ca140
3
+ metadata.gz: d7379762e9c6e16cde86ddc55612deb6dfe6027b
4
+ data.tar.gz: 4ef9e6f69c59244d12b02cb62816691dc9bd5106
5
5
  SHA512:
6
- metadata.gz: 16c6d7c64721253edebaf1f7ec785b61998e4fab0004fd588c6c2c6e8da615711b06b23f84fc6e35c00d5177f09150d48de84b31c2bd0209f465c76bb4503058
7
- data.tar.gz: 330ad6cd9e4fef8133c0ce297df9fa749174ebd8898ded8f5207142d89a885a04323e471b5132f429ee22f3f8b63c4bbbc2213e6ae0702edd9aa4533584915b9
6
+ metadata.gz: c9cb7f09b9347872884610d41538ce2ac840361e2be83465113250d9a9ac54444083d33440173cd31fa0c3554b412c5c58ae29c00b7d8317922d55255248dcaa
7
+ data.tar.gz: 49255b386e718659160cf09f5f75c73f06cc4289bf91a2085d1b668613465ce81cd70bdcf60b4697739d3076c0901b5444117233e802557abceaf3434b9dde22
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_gg (0.1.4.4)
4
+ ruby_gg (0.1.4.5)
5
5
  httparty (~> 0.16.1)
6
6
 
7
7
  GEM
@@ -163,6 +163,18 @@ module RubyGg
163
163
  return icon
164
164
  end
165
165
 
166
+ def points(points)
167
+ if points.to_i < 1000
168
+ return points
169
+ elsif points.to_i >= 1000 and points.to_i < 1000000
170
+ fixed = points.to_f/1000.0
171
+ return ('%.1f' % fixed).to_s + ' K'
172
+ elsif points.to_i >= 1000000
173
+ fixed = points.to_f/1000000.0
174
+ return ('%.1f' % fixed).to_s + ' M'
175
+ end
176
+ end
177
+
166
178
  end
167
179
 
168
180
  end
@@ -1,3 +1,3 @@
1
1
  module RubyGg
2
- VERSION = "0.1.4.4"
2
+ VERSION = "0.1.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_gg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.4
4
+ version: 0.1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manish Shahi