currency-in-words 0.1.2 → 0.1.3
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.
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/lib/currency-in-words.rb +2 -2
- metadata +8 -9
- data/currency-in-words.gemspec +0 -42
data/README.rdoc
CHANGED
@@ -37,9 +37,9 @@ Field is <tt>%n</tt> for the currency amount in words (same as format).
|
|
37
37
|
* <tt>:skip_and</tt> - Skips the 'and' part in number - US (defaults to +false+)
|
38
38
|
|
39
39
|
===== Examples
|
40
|
-
[<tt>
|
40
|
+
[<tt>number_to_currency_in_words(201201201.201, delimiter: true)</tt>]
|
41
41
|
\=> two hundred and one million, two hundred and one thousand, two hundred and one dollars, twenty cents
|
42
|
-
[<tt>
|
42
|
+
[<tt>number_to_currency_in_words(201201201.201, delimiter: true, skip_and: true)</tt>]
|
43
43
|
\=> two hundred one million, two hundred one thousand, two hundred one dollars, twenty cents
|
44
44
|
|
45
45
|
== Options settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/currency-in-words.rb
CHANGED
@@ -33,9 +33,9 @@ module CurrencyInWords
|
|
33
33
|
# * <tt>:skip_and</tt> - Skips the 'and' part in number - US (defaults to false).
|
34
34
|
#
|
35
35
|
# ==== Examples
|
36
|
-
# [<tt>
|
36
|
+
# [<tt>number_to_currency_in_words(201201201.201, :delimiter => true)</tt>]
|
37
37
|
# \=> two hundred and one million, two hundred and one thousand, two hundred and one dollars, twenty cents
|
38
|
-
# [<tt>
|
38
|
+
# [<tt>number_to_currency_in_words(201201201.201, :delimiter => true, :skip_and => true)</tt>]
|
39
39
|
# \=> two hundred one million, two hundred one thousand, two hundred one dollars, twenty cents
|
40
40
|
def number_to_currency_in_words number, options = {}
|
41
41
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: currency-in-words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152483300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152483300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: actionpack
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152482220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,9 +32,9 @@ dependencies:
|
|
32
32
|
version: '3.1'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152482220
|
36
36
|
description: Rails 3 helper number_to_currency_in_words that displays a currency amount
|
37
|
-
in words
|
37
|
+
in words (eg. 'one hundred dollars')
|
38
38
|
email: bruno@carrere.cc
|
39
39
|
executables: []
|
40
40
|
extensions: []
|
@@ -45,7 +45,6 @@ files:
|
|
45
45
|
- LICENSE.txt
|
46
46
|
- README.rdoc
|
47
47
|
- VERSION
|
48
|
-
- currency-in-words.gemspec
|
49
48
|
- lib/currency-in-words.rb
|
50
49
|
homepage: http://github.com/bcarrere/currency-in-words
|
51
50
|
licenses:
|
@@ -71,6 +70,6 @@ rubyforge_project:
|
|
71
70
|
rubygems_version: 1.8.10
|
72
71
|
signing_key:
|
73
72
|
specification_version: 3
|
74
|
-
summary: View helper for Rails that displays a currency amount in words (eg. 'one
|
73
|
+
summary: View helper for Rails 3 that displays a currency amount in words (eg. 'one
|
75
74
|
hundred dollars')
|
76
75
|
test_files: []
|
data/currency-in-words.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = "currency-in-words"
|
3
|
-
s.version = "0.1.2"
|
4
|
-
|
5
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
-
s.authors = ["Bruno Carrere"]
|
7
|
-
s.date = "2011-10-16"
|
8
|
-
s.description = "Rails 3 helper number_to_currency_in_words that displays a currency amount in words (eg. 'one hundred dollars')"
|
9
|
-
s.email = "bruno@carrere.cc"
|
10
|
-
s.extra_rdoc_files = [
|
11
|
-
"LICENSE.txt",
|
12
|
-
"README.rdoc"
|
13
|
-
]
|
14
|
-
s.files = [
|
15
|
-
"LICENSE.txt",
|
16
|
-
"README.rdoc",
|
17
|
-
"VERSION",
|
18
|
-
"currency-in-words.gemspec",
|
19
|
-
"lib/currency-in-words.rb"
|
20
|
-
]
|
21
|
-
s.homepage = "http://github.com/bcarrere/currency-in-words"
|
22
|
-
s.licenses = ["MIT"]
|
23
|
-
s.require_paths = ["lib"]
|
24
|
-
s.rubygems_version = "1.8.10"
|
25
|
-
s.summary = "View helper for Rails that displays a currency amount in words (eg. 'one hundred dollars')"
|
26
|
-
|
27
|
-
if s.respond_to? :specification_version then
|
28
|
-
s.specification_version = 3
|
29
|
-
|
30
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
31
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.1"])
|
32
|
-
s.add_runtime_dependency(%q<actionpack>, [">= 3.1"])
|
33
|
-
else
|
34
|
-
s.add_dependency(%q<activesupport>, [">= 3.1"])
|
35
|
-
s.add_dependency(%q<actionpack>, [">= 3.1"])
|
36
|
-
end
|
37
|
-
else
|
38
|
-
s.add_dependency(%q<activesupport>, [">= 3.1"])
|
39
|
-
s.add_dependency(%q<actionpack>, [">= 3.1"])
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|