latias-string-commas 0.1.3 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/latias/string.rb +15 -10
  3. metadata +2 -4
  4. data/README.md +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6629f922849ab534b44aa2abe07dfe769f4cd849d85ba70f047079f61d4a2cb5
4
- data.tar.gz: c8b3379a6a5534ceab071ca1cffbbf134fba212eb9e883a39d64d7fa1b576cc9
3
+ metadata.gz: 45375204e02ec4a5500007f86c452748071eafeeb3c7d44a4627aac4a82ac403
4
+ data.tar.gz: a1cba140af7ea26fd1cca18488ccd85f68395df3e7a36690f3174fd03f187499
5
5
  SHA512:
6
- metadata.gz: e634d25d7e95c2913192a61914b3951f4233aaa6b39e2dd0775be2f798fc9e86f890349f580d76e2ab6e6f29a4223bd9c5d7753b61bac97f2b9b6178de968dec
7
- data.tar.gz: d0844c73a9f05b378ca3bafad16e4aa001fc0a4f36703e7cf5cda5153a280f24080a251f17ae4e770fea81c76833edbaf142fa2861ae9e07a22a4ac4e4f1432a
6
+ metadata.gz: 3919af7fb5d46ba605581880582cd73c77b35ed7cc466184c7027788365241d3661b229be9c91fd3b5fb641b1ddff5bfac5b98beb5165db85f755c02f1bf4ca5
7
+ data.tar.gz: 97a679a9b4bba4311050cc91ecd80cad9b6c4134095680955ec91ed7d900f9186fe27d7574031fae13e8442ee0d4de855d8c8638db3c6dec9ca354de6ea71039
@@ -1,11 +1,16 @@
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
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
10
 
11
- extend Latias::String
11
+ # extend Latias::String
12
+ class Hola
13
+ def self.hi
14
+ puts "Hello world!"
15
+ end
16
+ end
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.3
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - nattanon
@@ -17,13 +17,11 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - README.md
21
20
  - lib/latias/string.rb
22
21
  homepage: https://gitlab.opensource-technology.com/nattanon/latias-string-commas
23
22
  licenses:
24
23
  - MIT
25
- metadata:
26
- source_code_uri: https://gitlab.opensource-technology.com/nattanon/latias-string-commas
24
+ metadata: {}
27
25
  post_install_message:
28
26
  rdoc_options: []
29
27
  require_paths:
data/README.md DELETED
@@ -1,30 +0,0 @@
1
- # Latias::String
2
- Short description and motivation.
3
-
4
- ## Usage
5
- How to use my plugin.
6
-
7
- ## Installation
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem 'latias-string-commas', '~> 0.1.1'
12
- ```
13
-
14
- ## Examples
15
- ```ruby
16
- include Latias::String
17
- ```
18
-
19
- ```ruby
20
- 2.6.5 :001 > buddist_date_format(Date.today) # Date
21
- => "15 มกราคม 2564"
22
- 2.6.5 :002 > buddist_date_format(Date.today, format: "%d") # Date
23
- => "15"
24
- 2.6.5 :003 > buddist_date_format(Date.today, format: "%d %y") # Date
25
- => "15 64"
26
- 2.6.5 :004 > buddist_date_format(Date.today, format: "%d %Y") # Date
27
- => "15 2564"
28
- 2.6.5 :005 > buddist_date_format(DateTime.now(), format: "%b %Y %H:%M:%S %z") # DateTime
29
- => "ม.ค. 2564 17:20:23 +0700"
30
- ```