latias-string-commas 0.1.8 → 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: 45375204e02ec4a5500007f86c452748071eafeeb3c7d44a4627aac4a82ac403
4
- data.tar.gz: a1cba140af7ea26fd1cca18488ccd85f68395df3e7a36690f3174fd03f187499
3
+ metadata.gz: 684243ade4fa49b5474b98d7136d29e5a4a85269cd6d267e4ce2c0c69b20f0b5
4
+ data.tar.gz: cfd04a369321d2fc04a9d401d1d3483df1554b0d0b1b4c1a181c4814ccbb3083
5
5
  SHA512:
6
- metadata.gz: 3919af7fb5d46ba605581880582cd73c77b35ed7cc466184c7027788365241d3661b229be9c91fd3b5fb641b1ddff5bfac5b98beb5165db85f755c02f1bf4ca5
7
- data.tar.gz: 97a679a9b4bba4311050cc91ecd80cad9b6c4134095680955ec91ed7d900f9186fe27d7574031fae13e8442ee0d4de855d8c8638db3c6dec9ca354de6ea71039
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.8
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - nattanon
@@ -10,14 +10,14 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description: A simple hello world gem
14
14
  email:
15
15
  - nattanon@hospital-os.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/latias/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
- # class String
3
- # def add_commas
4
- # self..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 Hola
13
- def self.hi
14
- puts "Hello world!"
15
- end
16
- end