baht 0.1.0 → 0.1.1
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/.drone.yml +42 -0
- data/Gemfile.lock +2 -2
- data/README.md +10 -7
- data/lib/baht.rb +1 -1
- data/lib/baht/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d08d035c6dc7011d614eb2ba202708872f15f758
|
|
4
|
+
data.tar.gz: 40b5a0d77fac86cbc4141c2b7eb92f3b52122d78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a310fe331ee007b04e2ccd3f544479052fc5a43c974e78dcbd913452ebdd62346f0f6eeaac5f46129b5e0f85a3a68a1c7a34d2f9894468f431a650b0a77a405
|
|
7
|
+
data.tar.gz: 335e14d49d8ae9666add9f9199a9242430d6d00ba3b4d9eed0553199a3ad18c335546c0bcfba2f8f79f9e3ba7c97c578781c258093d2c8f4c2a361dd183a9436
|
data/.drone.yml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: pipeline
|
|
3
|
+
name: ruby-2-5
|
|
4
|
+
|
|
5
|
+
clone:
|
|
6
|
+
depth: 5
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
- name: test
|
|
10
|
+
image: ruby:2.5
|
|
11
|
+
commands:
|
|
12
|
+
- bundle install --jobs=3 --retry=3
|
|
13
|
+
- rake
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
kind: pipeline
|
|
17
|
+
name: ruby-2-4
|
|
18
|
+
|
|
19
|
+
clone:
|
|
20
|
+
depth: 5
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- name: test
|
|
24
|
+
image: ruby:2.4
|
|
25
|
+
commands:
|
|
26
|
+
- bundle install --jobs=3 --retry=3
|
|
27
|
+
- rake
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
kind: pipeline
|
|
31
|
+
name: ruby-2-3
|
|
32
|
+
|
|
33
|
+
clone:
|
|
34
|
+
depth: 5
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- name: test
|
|
38
|
+
image: ruby:2.3
|
|
39
|
+
commands:
|
|
40
|
+
- bundle install --jobs=3 --retry=3
|
|
41
|
+
- rake
|
|
42
|
+
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
# Baht
|
|
1
|
+
# Baht [](https://cloud.drone.io/narze/baht)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
Convert number to Thai Baht format.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -22,7 +20,12 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
```ruby
|
|
24
|
+
Baht.words(9000)
|
|
25
|
+
=> "เก้าพันบาทถ้วน"
|
|
26
|
+
Baht.words(3.5)
|
|
27
|
+
=> "สามบาทห้าสิบสตางค์"
|
|
28
|
+
```
|
|
26
29
|
|
|
27
30
|
## Development
|
|
28
31
|
|
|
@@ -32,7 +35,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
35
|
|
|
33
36
|
## Contributing
|
|
34
37
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/narze/baht. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
36
39
|
|
|
37
40
|
## License
|
|
38
41
|
|
|
@@ -40,4 +43,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
40
43
|
|
|
41
44
|
## Code of Conduct
|
|
42
45
|
|
|
43
|
-
Everyone interacting in the Baht project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
46
|
+
Everyone interacting in the Baht project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/narze/baht/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/baht.rb
CHANGED
|
@@ -34,7 +34,7 @@ module Baht
|
|
|
34
34
|
สี่สิบ สี่สิบเอ็ด สี่สิบสอง สี่สิบสาม สี่สิบสี่ สี่สิบห้า สี่สิบหก สี่สิบเจ็ด สี่สิบแปด สี่สิบเก้า
|
|
35
35
|
ห้าสิบ ห้าสิบเอ็ด ห้าสิบสอง ห้าสิบสาม ห้าสิบสี่ ห้าสิบห้า ห้าสิบหก ห้าสิบเจ็ด ห้าสิบแปด ห้าสิบเก้า
|
|
36
36
|
หกสิบ หกสิบเอ็ด หกสิบสอง หกสิบสาม หกสิบสี่ หกสิบห้า หกสิบหก หกสิบเจ็ด หกสิบแปด หกสิบเก้า
|
|
37
|
-
เจ็ดสิบ เจ็ดสิบเอ็ด เจ็ดสิบสอง เจ็ดสิบสาม
|
|
37
|
+
เจ็ดสิบ เจ็ดสิบเอ็ด เจ็ดสิบสอง เจ็ดสิบสาม เจ็ดสิบสี่ เจ็ดสิบห้า เจ็ดสิบหก เจ็ดสิบเจ็ด เจ็ดสิบแปด เจ็ดสิบเก้า
|
|
38
38
|
แปดสิบ แปดสิบเอ็ด แปดสิบสอง แปดสิบสาม แปดสิบสี่ แปดสิบห้า แปดสิบหก แปดสิบเจ็ด แปดสิบแปด แปดสิบเก้า
|
|
39
39
|
เก้าสิบ เก้าสิบเอ็ด เก้าสิบสอง เก้าสิบสาม เก้าสิบสี่ เก้าสิบห้า เก้าสิบหก เก้าสิบเจ็ด เก้าสิบแปด เก้าสิบเก้า
|
|
40
40
|
}
|
data/lib/baht/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: baht
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- narze
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -59,6 +59,7 @@ executables: []
|
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
+
- ".drone.yml"
|
|
62
63
|
- ".gitignore"
|
|
63
64
|
- ".rspec"
|
|
64
65
|
- ".travis.yml"
|