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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby_gg/champion.rb +12 -0
- data/lib/ruby_gg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7379762e9c6e16cde86ddc55612deb6dfe6027b
|
4
|
+
data.tar.gz: 4ef9e6f69c59244d12b02cb62816691dc9bd5106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9cb7f09b9347872884610d41538ce2ac840361e2be83465113250d9a9ac54444083d33440173cd31fa0c3554b412c5c58ae29c00b7d8317922d55255248dcaa
|
7
|
+
data.tar.gz: 49255b386e718659160cf09f5f75c73f06cc4289bf91a2085d1b668613465ce81cd70bdcf60b4697739d3076c0901b5444117233e802557abceaf3434b9dde22
|
data/Gemfile.lock
CHANGED
data/lib/ruby_gg/champion.rb
CHANGED
@@ -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
|
data/lib/ruby_gg/version.rb
CHANGED