latias-string-commas 0.1.0 → 0.1.6

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/latias/string.rb +15 -6
  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: 464c9efaaf089f39a9167a148bb8dc98117fc3018c0fb43fbfa98d67d7323b83
4
- data.tar.gz: bf459bd05963b26f62eaed543d34499a8b9af7bfc22c2bcaf763c04fcf1a734e
3
+ metadata.gz: accd5587a6a36a52fd440bc8438e1f8c428f340417a129599cc87580df78067d
4
+ data.tar.gz: ac2dfbc4191382cc5ca55cde574eb7ed4efbdbad10d9b3d20428334d0d7ee62e
5
5
  SHA512:
6
- metadata.gz: 3cba2ed1233be4760a68e15a39d63058736c85dbbfee3642d2dbff73f975b34b77c2cb93b7209f5fc21d83508642bd8d539c96b8d1056d45b993c9b2bd1052a1
7
- data.tar.gz: f0874c18a9cab39875b314ae62210d4d13d74f210100e9786e07871265c152cde0f42e571e2f98ed0c4da2bbe567df592178bf9a23ffd667f7c8a8974bebc4ab
6
+ metadata.gz: 240c71ffad3c9da88dce65b8aadf16b72f576eca34c247f3e15ee7c5eb44d413455a8f294563cd58f308dd83944ac1f017780fb046dc317121fd576235e15e01
7
+ data.tar.gz: '09f6a190d1ad3d63bdf5d8af85a6604417349bd415f3c4f078bdfc1da10e9f93418484ffb7ab8cc34ec0147b631a7182d08ac2f4640f23af04f413d80c8349c7'
@@ -1,7 +1,16 @@
1
- module Latias
2
- class String
3
- def add_commas
4
- reverse.scan(/\d{3}|.+/).join(',').reverse
5
- 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
+
11
+ # extend Latias::String
12
+ class Hola
13
+ def self.hi
14
+ puts "Hello world!"
6
15
  end
7
- 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.0
4
+ version: 0.1.6
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.0', git: 'https://nattanon:dT1Lcvf8pvGoU7LX4Uqr@gitlab.opensource-technology.com/nattanon/latias-string-commas.git'
12
- ```
13
-
14
- ## Examples
15
- ```ruby
16
- require 'latias-string-commas'
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
- ```