latias-string-commas 0.1.12 → 0.1.13

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
  SHA256:
3
- metadata.gz: f16e0d44dceac3f6f21e7a7def11c94cc19edc009e3befe14cf9cb08aed11089
4
- data.tar.gz: 8659ca2235d861336d4fe226b3e0c91718257b04fe5bc1c13969a4adc2d1ff11
3
+ metadata.gz: 684243ade4fa49b5474b98d7136d29e5a4a85269cd6d267e4ce2c0c69b20f0b5
4
+ data.tar.gz: cfd04a369321d2fc04a9d401d1d3483df1554b0d0b1b4c1a181c4814ccbb3083
5
5
  SHA512:
6
- metadata.gz: 232cd38bb7f3d73ce455908fc4a7724521622f1ac1b2f9becadade2cdf6bc943154f5c2da087dab2a4caae921f226a5bd7a8c3dec45b6977777b8aa7c56e2374
7
- data.tar.gz: 9974dd3789393fd622bbbb24c87a59b8fc0a18fa11ede7e179e6f18f42ed942eaa6a7997f5027f6007da5417d5321dfc18d0444c856646d8ea35cf125db02cbc
6
+ metadata.gz: 25489ee596fb0653005efbd31b5b88dbb2e7fe0c466664b808f8ee178e7b7a1441bb6c985a8e39a910599f6cb5c6cea24ec43de25f21c5c7b10699d48699ffd8
7
+ data.tar.gz: ec4469c1027a833f259095d5896e7104b8fd5cd66cbacfd5b51d9ac0cdd1992201940cd0136ba5c909419f1188bd226be7f8cf40a37a31042f56cd551064b38c
@@ -0,0 +1,11 @@
1
+ module Latias
2
+ module String
3
+ def add_commas(m_str)
4
+ m_str.to_s.reverse.scan(/\d{3}|.+/).join(',').reverse
5
+ rescue StandardError # optionally: `rescue Exception => ex`
6
+ m_str
7
+ end
8
+ end
9
+ end
10
+
11
+ extend Latias::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latias-string-commas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - nattanon
@@ -17,7 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/string.rb
20
+ - lib/latias-string-commas.rb
21
21
  homepage: https://gitlab.opensource-technology.com/nattanon/latias-string-commas
22
22
  licenses:
23
23
  - MIT
@@ -1,16 +0,0 @@
1
- # module Latias
2
- # module String
3
- # def add_commas(m_str)
4
- # m_str.to_s.reverse.scan(/\d{3}|.+/).join(',').reverse
5
- # rescue StandardError # optionally: `rescue Exception => ex`
6
- # m_str
7
- # end
8
- # end
9
- # end
10
-
11
- # extend Latias::String
12
- class Holaa
13
- def self.hi
14
- puts 'Hello world!'
15
- end
16
- end