to_rupees 0.1.0
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/.gitignore +61 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/to_rupees/divisions.rb +12 -0
- data/lib/to_rupees/under_hundred.rb +108 -0
- data/lib/to_rupees/utils.rb +29 -0
- data/lib/to_rupees/version.rb +3 -0
- data/lib/to_rupees.rb +63 -0
- data/to_rupees.gemspec +29 -0
- metadata +102 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8ed42d4a6a917bc0795f0e70ffa19665c34887ab6750f7841f2f6d0782fa618e
|
4
|
+
data.tar.gz: aab366122411346d1e8de26a0214dd39b74efca6f23902dce659870f00e83a68
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: edfc98f1db77ff0efb1987474992044ee71c9b7431d10599ae1b79f520286b008bd1161838c0cc9f9e457bbf5bb050480e11ced97d9e6c285d8ca4684805bf8d
|
7
|
+
data.tar.gz: 694b163f07188cbb418fde1af44c01c59bc6c8654e32bb037213f858650aad5afa61fcac6be81f783cae3c98645b1be05e4d6543ecf5c1d993736dd6160e737b
|
data/.gitignore
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/_yardoc/
|
4
|
+
/coverage/
|
5
|
+
/doc/
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/tmp/
|
9
|
+
|
10
|
+
# rspec failure tracking
|
11
|
+
.rspec_status
|
12
|
+
*.gem
|
13
|
+
*.rbc
|
14
|
+
/.config
|
15
|
+
/coverage/
|
16
|
+
/InstalledFiles
|
17
|
+
/pkg/
|
18
|
+
/spec/reports/
|
19
|
+
/spec/examples.txt
|
20
|
+
/test/tmp/
|
21
|
+
/test/version_tmp/
|
22
|
+
/tmp/
|
23
|
+
|
24
|
+
# Used by dotenv library to load environment variables.
|
25
|
+
# .env
|
26
|
+
|
27
|
+
## Specific to RubyMotion:
|
28
|
+
.dat*
|
29
|
+
.repl_history
|
30
|
+
build/
|
31
|
+
*.bridgesupport
|
32
|
+
build-iPhoneOS/
|
33
|
+
build-iPhoneSimulator/
|
34
|
+
|
35
|
+
## Specific to RubyMotion (use of CocoaPods):
|
36
|
+
#
|
37
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
38
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
39
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
40
|
+
#
|
41
|
+
# vendor/Pods/
|
42
|
+
|
43
|
+
## Documentation cache and generated files:
|
44
|
+
/.yardoc/
|
45
|
+
/_yardoc/
|
46
|
+
/doc/
|
47
|
+
/rdoc/
|
48
|
+
|
49
|
+
## Environment normalization:
|
50
|
+
/.bundle/
|
51
|
+
/vendor/bundle
|
52
|
+
/lib/bundler/man/
|
53
|
+
|
54
|
+
# for a library or gem, you might want to ignore these files since the code is
|
55
|
+
# intended to run in multiple environments; otherwise, check them in:
|
56
|
+
# Gemfile.lock
|
57
|
+
# .ruby-version
|
58
|
+
# .ruby-gemset
|
59
|
+
|
60
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
61
|
+
.rvmrc
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at vineet.12cs069@abes.ac.in. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 vinspro
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Vineet sahu
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# ToRupees
|
2
|
+
Spell out numbers in indian currency.
|
3
|
+
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'to_rupees'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install to_rupees
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
12.to_rupees
|
25
|
+
=> "Twelve Rupees"
|
26
|
+
|
27
|
+
12.23.to_rupees
|
28
|
+
=> "Twelve Rupees and Twenty Three Paisa"
|
29
|
+
|
30
|
+
123534.to_rupees
|
31
|
+
=> "One Lakh , Twenty Three Thousand , Five Hundred And Thirty Four Rupees"
|
32
|
+
|
33
|
+
"123534".to_rupees
|
34
|
+
=> "One Lakh , Twenty Three Thousand , Five Hundred And Thirty Four Rupees"
|
35
|
+
|
36
|
+
"123534.78400".to_rupees
|
37
|
+
=> "One Lakh , Twenty Three Thousand , Five Hundred And Thirty Four Rupees and Seventy Eight Paisa"
|
38
|
+
|
39
|
+
"123534.78900".to_rupees
|
40
|
+
=> "One Lakh , Twenty Three Thousand , Five Hundred And Thirty Four Rupees and Seventy Nine Paisa"
|
41
|
+
```
|
42
|
+
|
43
|
+
## Contributing
|
44
|
+
|
45
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[vin-droid]/to_rupees.
|
46
|
+
1. Fork it ( https://github.com/[vin-droid]/to_rupees/fork )
|
47
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
48
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
49
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
50
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "to_rupees"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module ToRupees
|
3
|
+
module UnderHundred
|
4
|
+
UNDER_HUNDRED = {
|
5
|
+
0 => "zero",
|
6
|
+
1 => "one",
|
7
|
+
2 => "two",
|
8
|
+
3 => "three",
|
9
|
+
4 => "four",
|
10
|
+
5 => "five",
|
11
|
+
6 => "six",
|
12
|
+
7 => "seven",
|
13
|
+
8 => "eight",
|
14
|
+
9 => "nine",
|
15
|
+
10 => "ten",
|
16
|
+
11 => "eleven",
|
17
|
+
12 => "twelve",
|
18
|
+
13 => "thirteen",
|
19
|
+
14 => "fourteen",
|
20
|
+
15 => "fifteen",
|
21
|
+
16 => "sixteen",
|
22
|
+
17 => "seventeen",
|
23
|
+
18 => "eighteen",
|
24
|
+
19 => "nineteen",
|
25
|
+
20 => "twenty",
|
26
|
+
21 => "twenty one",
|
27
|
+
22 => "twenty two",
|
28
|
+
23 => "twenty three",
|
29
|
+
24 => "twenty four",
|
30
|
+
25 => "twenty five",
|
31
|
+
26 => "twenty six",
|
32
|
+
27 => "twenty seven",
|
33
|
+
28 => "twenty eight",
|
34
|
+
29 => "twenty nine",
|
35
|
+
30 => "thirty",
|
36
|
+
31 => "thirty one",
|
37
|
+
32 => "thirty two",
|
38
|
+
33 => "thirty three",
|
39
|
+
34 => "thirty four",
|
40
|
+
35 => "thirty five",
|
41
|
+
36 => "thirty six",
|
42
|
+
37 => "thirty seven",
|
43
|
+
38 => "thirty eight",
|
44
|
+
39 => "thirty nine",
|
45
|
+
40 => "forty",
|
46
|
+
41 => "forty one",
|
47
|
+
42 => "forty two",
|
48
|
+
43 => "forty three",
|
49
|
+
44 => "forty four",
|
50
|
+
45 => "forty five",
|
51
|
+
46 => "forty six",
|
52
|
+
47 => "forty seven",
|
53
|
+
48 => "forty eight",
|
54
|
+
49 => "forty nine",
|
55
|
+
50 => "fifty",
|
56
|
+
51 => "fifty one",
|
57
|
+
52 => "fifty two",
|
58
|
+
53 => "fifty three",
|
59
|
+
54 => "fifty four",
|
60
|
+
55 => "fifty five",
|
61
|
+
56 => "fifty six",
|
62
|
+
57 => "fifty seven",
|
63
|
+
58 => "fifty eight",
|
64
|
+
59 => "fifty nine",
|
65
|
+
60 => "sixty",
|
66
|
+
61 => "sixty one",
|
67
|
+
62 => "sixty two",
|
68
|
+
63 => "sixty three",
|
69
|
+
64 => "sixty four",
|
70
|
+
65 => "sixty five",
|
71
|
+
66 => "sixty six",
|
72
|
+
67 => "sixty seven",
|
73
|
+
68 => "sixty eight",
|
74
|
+
69 => "sixty nine",
|
75
|
+
70 => "seventy",
|
76
|
+
71 => "seventy one",
|
77
|
+
72 => "seventy two",
|
78
|
+
73 => "seventy three",
|
79
|
+
74 => "seventy four",
|
80
|
+
75 => "seventy five",
|
81
|
+
76 => "seventy six",
|
82
|
+
77 => "seventy seven",
|
83
|
+
78 => "seventy eight",
|
84
|
+
79 => "seventy nine",
|
85
|
+
80 => "eighty",
|
86
|
+
81 => "eighty one",
|
87
|
+
82 => "eighty two",
|
88
|
+
83 => "eighty three",
|
89
|
+
84 => "eighty four",
|
90
|
+
85 => "eighty five",
|
91
|
+
86 => "eighty six",
|
92
|
+
87 => "eighty seven",
|
93
|
+
88 => "eighty eight",
|
94
|
+
89 => "eighty nine",
|
95
|
+
90 => "ninety",
|
96
|
+
91 => "ninety one",
|
97
|
+
92 => "ninety two",
|
98
|
+
93 => "ninety three",
|
99
|
+
94 => "ninety four",
|
100
|
+
95 => "ninety five",
|
101
|
+
96 => "ninety six",
|
102
|
+
97 => "ninety seven",
|
103
|
+
98 => "ninety eight",
|
104
|
+
99 => "ninety nine",
|
105
|
+
100 => "one hundred"
|
106
|
+
}.freeze
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "./under_hundred.rb"
|
3
|
+
module ToRupees
|
4
|
+
module Utils
|
5
|
+
include UnderHundred
|
6
|
+
|
7
|
+
def result_below_one_thousand(num, counter)
|
8
|
+
hundred, remaining = num.divmod(100)
|
9
|
+
|
10
|
+
return higher_than_hundred(hundred, remaining, counter) if hundred != 0
|
11
|
+
UNDER_HUNDRED[remaining] if hundred == 0 && remaining != 0
|
12
|
+
end
|
13
|
+
|
14
|
+
def higher_than_hundred(hundred, remaining, counter)
|
15
|
+
century = UNDER_HUNDRED[hundred]
|
16
|
+
if remaining != 0
|
17
|
+
return century + " hundred " + UNDER_HUNDRED[remaining] if counter != 0
|
18
|
+
return century + " hundred and " + UNDER_HUNDRED[remaining]
|
19
|
+
end
|
20
|
+
return century + " hundred " if remaining == 0
|
21
|
+
end
|
22
|
+
|
23
|
+
def numerical?(num)
|
24
|
+
Integer(num)
|
25
|
+
rescue
|
26
|
+
raise "A numeric is expected"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/to_rupees.rb
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
require "./to_rupees/version.rb"
|
2
|
+
require "active_support/inflector"
|
3
|
+
|
4
|
+
module ToRupees
|
5
|
+
require_relative "./to_rupees/under_hundred.rb"
|
6
|
+
require_relative "./to_rupees/divisions.rb"
|
7
|
+
require_relative "./to_rupees/utils.rb"
|
8
|
+
|
9
|
+
include ToRupees::UnderHundred
|
10
|
+
include ToRupees::Divisions
|
11
|
+
include ToRupees::Utils
|
12
|
+
class Error < StandardError; end
|
13
|
+
|
14
|
+
def to_rupees
|
15
|
+
num = numerical?(self)
|
16
|
+
in_words = ''
|
17
|
+
if num <= 100
|
18
|
+
in_words = UNDER_HUNDRED[num]
|
19
|
+
else
|
20
|
+
counter = 0
|
21
|
+
result = []
|
22
|
+
num, remaining = num.divmod(1000)
|
23
|
+
temp_result = result_below_one_thousand(remaining, counter)
|
24
|
+
result << temp_result + " " + DIVISIONS[counter] + " " if temp_result
|
25
|
+
counter += 1
|
26
|
+
while num != 0
|
27
|
+
num, remaining = num.divmod(100)
|
28
|
+
temp_result = result_below_one_thousand(remaining, counter)
|
29
|
+
result << temp_result + " " + DIVISIONS[counter] + " " if temp_result
|
30
|
+
counter += 1
|
31
|
+
end
|
32
|
+
in_words = result.reverse.join(", ").rstrip
|
33
|
+
end
|
34
|
+
(in_words + " rupee#{numerical?(self) > 1 ? 's' : ''}").titleize
|
35
|
+
end
|
36
|
+
|
37
|
+
INTEGER_KLASS = 1.class # Fixnum before Ruby 2.4, Integer from Ruby 2.4
|
38
|
+
class INTEGER_KLASS
|
39
|
+
include ToRupees
|
40
|
+
end
|
41
|
+
|
42
|
+
class ::String
|
43
|
+
def to_rupees
|
44
|
+
Float(self).to_rupees
|
45
|
+
rescue
|
46
|
+
raise "A numeric is expected"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
class ::Float
|
51
|
+
def to_rupees
|
52
|
+
in_words = []
|
53
|
+
v = divmod 1
|
54
|
+
in_words << v[0].to_i.to_rupees
|
55
|
+
if v[1].to_f.nonzero?
|
56
|
+
decimal_in_words = ToRupees::UnderHundred::UNDER_HUNDRED[("%.2f" % v[1].to_f).split('.').last.to_i] + " paisa"
|
57
|
+
in_words = [in_words.last.to_s.gsub(' and ', ' ').split(' ').join(' ')] if in_words.size.nonzero?
|
58
|
+
in_words << decimal_in_words
|
59
|
+
end
|
60
|
+
in_words.map(&:titleize).join(' and ')
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
data/to_rupees.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "to_rupees/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "to_rupees"
|
8
|
+
spec.version = ToRupees::VERSION
|
9
|
+
spec.authors = ["Vineet sahu"]
|
10
|
+
spec.email = ["vineet.12cs069@abes.ac.in"]
|
11
|
+
|
12
|
+
spec.summary = %q{Spell out numbers in indian currency.}
|
13
|
+
spec.description = %q{TSpell out numbers in indian currency.}
|
14
|
+
spec.homepage = "https://github.com/vin-droid/to_rupees"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: to_rupees
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vineet sahu
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: TSpell out numbers in indian currency.
|
56
|
+
email:
|
57
|
+
- vineet.12cs069@abes.ac.in
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".travis.yml"
|
65
|
+
- CODE_OF_CONDUCT.md
|
66
|
+
- Gemfile
|
67
|
+
- LICENSE
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- bin/console
|
72
|
+
- bin/setup
|
73
|
+
- lib/to_rupees.rb
|
74
|
+
- lib/to_rupees/divisions.rb
|
75
|
+
- lib/to_rupees/under_hundred.rb
|
76
|
+
- lib/to_rupees/utils.rb
|
77
|
+
- lib/to_rupees/version.rb
|
78
|
+
- to_rupees.gemspec
|
79
|
+
homepage: https://github.com/vin-droid/to_rupees
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata: {}
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
requirements: []
|
98
|
+
rubygems_version: 3.0.3
|
99
|
+
signing_key:
|
100
|
+
specification_version: 4
|
101
|
+
summary: Spell out numbers in indian currency.
|
102
|
+
test_files: []
|