currency_formatter 0.0.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 +7 -0
- data/lib/currency_formatter.rb +6 -0
- data/lib/currency_formatter/helper.rb +13 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f9b63f653728cd03d5d9413b04a2611a5658b007dfa73fd26c02f33580ab80b
|
4
|
+
data.tar.gz: 2aaf405a904ffc2a79fba23a4c45769a75e39b1e6b585dafa9cd936db754050c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ff9e59818d1d56d34866c8b04cb4db087b143c63dd06361a11fc02217edaf571f6f51023f389d6c8dbc4675c13d1e607022e28eda3a3607a4a0eccee86fe8eeb
|
7
|
+
data.tar.gz: f0d2c6e542a70649213f22f73b1dab3019966c5a4e272e8d7820988286e6560ffcb0ad2ab4d84eff968f93549d8d5eee2ab96c3ab8db93bf6a54b8ad6cf06832
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'action_controller'
|
2
|
+
|
3
|
+
module CurrencyFormatter
|
4
|
+
module Helper
|
5
|
+
def self.hi
|
6
|
+
puts "Hello world!"
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.idr(amount)
|
10
|
+
ActionController::Base.helpers.number_to_currency amount.to_f, unit: 'Rp ', separator: ',', delimiter: '.', precision: 2
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: currency_formatter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- habiburrahman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple currency formatter
|
14
|
+
email: habib.maison@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/currency_formatter.rb
|
20
|
+
- lib/currency_formatter/helper.rb
|
21
|
+
homepage: https://rubygems.org/gems/currency_formatter
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubygems_version: 3.0.3
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Currenct Formatter
|
44
|
+
test_files: []
|