japanese_number_unit 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/.travis.yml +18 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +2 -1
- data/README.md +16 -1
- data/lib/japanese_number_unit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f99932dcbd6198c75a5270cc1bab32abaf37163117030cf62b0f78ef3bf6f7c3
|
4
|
+
data.tar.gz: 49d5428a4e93744a0cb3532789cd130ecff90b1e6a2d8b40f738e086eca4f8b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c99dfea2fc6ce4b44e068d1f160eb454f79b73a3f454c20118c20a4d6f204c547b4a1153594c5770ee4dc5872ac4f7b0696ce78e4243f0ac8778ec2ea31508ce
|
7
|
+
data.tar.gz: c4e53353b21b61609c9ba7618f8a6d8f5691fa1c2b503baa2d02ab0bff367afe6da10db29df70753d33caf34ce6a1fc0e942063e467cca68a7e814e9de48adb1
|
data/.travis.yml
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
---
|
2
|
+
env:
|
3
|
+
global:
|
4
|
+
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
|
5
|
+
-
|
2
6
|
language: ruby
|
3
7
|
cache: bundler
|
4
8
|
rvm:
|
5
9
|
- 2.6.5
|
10
|
+
- 2.7.0
|
11
|
+
- ruby-head
|
6
12
|
before_install: gem install bundler -v 2.1.1
|
13
|
+
before_script:
|
14
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
15
|
+
- chmod +x ./cc-test-reporter
|
16
|
+
- ./cc-test-reporter before-build
|
17
|
+
script:
|
18
|
+
- bundle exec rake spec
|
19
|
+
after_script:
|
20
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
21
|
+
matrix:
|
22
|
+
allow_failures:
|
23
|
+
- rvm: ruby-head
|
24
|
+
fast_finish: true
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# JapaneseNumberUnit
|
2
2
|
|
3
|
+
[](https://dependabot.com)
|
4
|
+
[](https://codeclimate.com/github/shuheiokuda0704/japanese_number_unit)
|
5
|
+
[](https://rubygems.org/gems/japanese_number_unit)
|
6
|
+
[](https://github.com/shuheiokuda0704/japanese_number_unit/blob/master/LICENSE.txt)
|
7
|
+
|
3
8
|
JapaneseNumberUnit gem extends Integer class to add japanese number unit as instance method.
|
4
9
|
|
5
10
|
## Installation
|
@@ -20,7 +25,17 @@ Or install it yourself as:
|
|
20
25
|
|
21
26
|
## Usage
|
22
27
|
|
23
|
-
|
28
|
+
```ruby
|
29
|
+
1.十 # => 10
|
30
|
+
1.百 # => 100
|
31
|
+
1.千 # => 1000
|
32
|
+
1.万 # => 10000
|
33
|
+
1.億 # => 1_0000_0000
|
34
|
+
1.兆 # => 1_0000_0000_0000
|
35
|
+
1.京 # => 1_0000_0000_0000_0000
|
36
|
+
1.千.兆 # => 1000_0000_0000_0000
|
37
|
+
"#{5000.兆}円欲しい" # => "5000000000000000円欲しい"
|
38
|
+
```
|
24
39
|
|
25
40
|
## Development
|
26
41
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: japanese_number_unit
|
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
|
- shuheiokuda0704
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem extends Integer class to add japanese unit.
|
14
14
|
email:
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
|
-
rubygems_version: 3.
|
56
|
+
rubygems_version: 3.1.2
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: This gem extends Integer class to add japanese unit.
|