n_2_w 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +87 -0
- data/Rakefile +3 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/n_2_w/int.rb +64 -0
- data/lib/n_2_w/tel.rb +136 -0
- data/lib/n_2_w/version.rb +3 -0
- data/lib/n_2_w.rb +6 -0
- data/n_2_w.gemspec +30 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ef22961f656760931bc8f87addd56aa03af9c3b0
|
4
|
+
data.tar.gz: b10be26ed697cbd89ba091503b9cc1f422979d69
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c74e3a2d10821e8026939e905845995d75a42874af947e2527131f3a778c2be10fc466ecca15512b6cc8680557808a1a10f0afd9fac1acfbdfa1e78a2162000c
|
7
|
+
data.tar.gz: d30d4d7f7780e99dba49d6ae50810e3190819823184da7099652a01e8fea2f721c52af58192d39831d582deba4df7187e297b2239542016363dfdb75b6daedb0
|
data/.gitignore
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 alexandros.management@outlook.com. 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.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Alexandros Anapolitanos
|
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,87 @@
|
|
1
|
+
# N2W
|
2
|
+
|
3
|
+
--Convert numeric data into friendly, human-like verbal expressions that match
|
4
|
+
the occasion!
|
5
|
+
|
6
|
+
N2W or number_to_word, is a ruby gem that allows you to transform numeric data
|
7
|
+
into verbal expressions.
|
8
|
+
|
9
|
+
The way that we express numbers verbally (or the way that we choose to iterate
|
10
|
+
phonetically numerical data --whatever you prefer!) differs from one occasion
|
11
|
+
to another, according to our intention and purpose. This ruby gem is all about
|
12
|
+
giving your rails app, the ability to express large volumes of numerical data in
|
13
|
+
words, in a way that sounds more natural.
|
14
|
+
|
15
|
+
This might be useful to people for example who have a large database of phone
|
16
|
+
numbers and they use .erb and tts technology in order to communicate this information
|
17
|
+
with their clients. This might be also useful to people who work with educational tts
|
18
|
+
resources and they want to have scientific data (float readings, co-ordinates or
|
19
|
+
no. of pages) read out loud during a presentation, in a more human-like manner
|
20
|
+
than a single digit after the other.
|
21
|
+
|
22
|
+
Finally, this might be useful in order to communicate various other data types with a more
|
23
|
+
or less standard format, like zips post codes, ISBN's and twelve || sixteen digit
|
24
|
+
activation tokens.
|
25
|
+
|
26
|
+
This facility already includes class methods for the explicit expression of the following
|
27
|
+
numerical data structures and is scheduled to feature the options marked with a # in
|
28
|
+
the near future:
|
29
|
+
|
30
|
+
Integers (0..999*10**48), takes either a string or an integer.
|
31
|
+
|
32
|
+
--Soon to come: Floats/Scientific measurements
|
33
|
+
|
34
|
+
Telephone numbers (international, local, mobile and 800 numbers)-->this feature uses
|
35
|
+
regexes to discover phonetic patterns in your data to make tel numbersmore memorable!
|
36
|
+
|
37
|
+
--Soon to come: Zips && Post Codes
|
38
|
+
|
39
|
+
--Soon to come: Pages
|
40
|
+
|
41
|
+
--Soon to come: Checks
|
42
|
+
|
43
|
+
--Soon to come: Co-ordinates
|
44
|
+
|
45
|
+
--Soon to come: ISBNs
|
46
|
+
|
47
|
+
--Soon to come: Pay_as_you_go mobile telephony activation codes
|
48
|
+
|
49
|
+
--Soon to come: An explaining facility on how big is that number, with examples
|
50
|
+
drawn by science (feel free to contribute on this one as long as you are willing and
|
51
|
+
able to cross-reference!)
|
52
|
+
|
53
|
+
## Installation
|
54
|
+
|
55
|
+
Add this line to your application's Gemfile:
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
gem 'n_2_w'
|
59
|
+
```
|
60
|
+
|
61
|
+
And then execute:
|
62
|
+
|
63
|
+
$ bundle
|
64
|
+
|
65
|
+
Or install it yourself as:
|
66
|
+
|
67
|
+
$ gem install n_2_w
|
68
|
+
|
69
|
+
## Usage
|
70
|
+
|
71
|
+
Simply require N2W/Spint and call any_other on any integer or string/integer of ur choice.
|
72
|
+
|
73
|
+
## Development
|
74
|
+
|
75
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
76
|
+
|
77
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
78
|
+
|
79
|
+
## Contributing
|
80
|
+
|
81
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/n_2_w. 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.
|
82
|
+
|
83
|
+
|
84
|
+
## License
|
85
|
+
|
86
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
87
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "n_2_w"
|
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
|
data/bin/setup
ADDED
data/lib/n_2_w/int.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
module N2W
|
2
|
+
class Spint
|
3
|
+
def self.one(x, s=" ")
|
4
|
+
a=x.to_s.split("")
|
5
|
+
a.map! { |x| x.to_i }
|
6
|
+
one={0=>"zero",1=>"one", 2=>"two", 3=>"three", 4=>"four", 5=>"five", 6=>"six", 7=>"seven", 8=>"eight", 9=>"nine"}
|
7
|
+
two_i={1=>"eleven", 2=>"twelve", 3=>"thirteen", 4=>"fourteen", 5=>"fifteen", 6=>"sixteen", 7=>"seventeen", 8=>"eighteen", 9=>"nineteen"}
|
8
|
+
two_r={1=>"ten",2=>"twenty",3=>"thirty",4=>"forty",5=>"fifty",6=>"sixty",7=>"seventy",8=>"eighty",9=>"ninety"}
|
9
|
+
tn=Proc.new do if a[-1]==0
|
10
|
+
two_r[a[-2]]
|
11
|
+
elsif a[-2]==1
|
12
|
+
two_i[a[-1]]
|
13
|
+
else
|
14
|
+
two_r[a[-2]]+s+one(a[-1])
|
15
|
+
end
|
16
|
+
end
|
17
|
+
if a.length==1
|
18
|
+
return one[a[-1]]
|
19
|
+
elsif a.length==2
|
20
|
+
if a[-1]==0 && a[-2]==0
|
21
|
+
return "zero"
|
22
|
+
elsif a[-2]==0 && a[-1]!=0
|
23
|
+
return one[a[-1]]
|
24
|
+
else
|
25
|
+
return tn.call
|
26
|
+
end
|
27
|
+
elsif a.length==3
|
28
|
+
if (a[-3]!=0)
|
29
|
+
if a[-2]!=0
|
30
|
+
return (one[a[-3]]+" hundred and "+tn.call)
|
31
|
+
elsif a[-2]==0 && a[-1]!=0
|
32
|
+
return one[a[-3]]+" hundred and "+one[a[-1]]
|
33
|
+
else
|
34
|
+
return one[a[-3]]+" hundred"
|
35
|
+
end
|
36
|
+
elsif (a[-3]==0 && a[-2]!=0)
|
37
|
+
return tn.call
|
38
|
+
elsif (a[-3]==0 && a[-2]==0 && a[-1]==0)
|
39
|
+
return ""
|
40
|
+
elsif (a[-3]==0 && a[-2]==0 && a[-1]!=0)
|
41
|
+
return one[a[-1]]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.any_other(x, s=" ")
|
47
|
+
ab=x.to_s.split("")
|
48
|
+
order={0=>"", 1=>" thousand ", 2=>" million ", 3=>" billion ", 4=>" trillion ", 5=>" quadrillion ", 6=>" quintillion ", 7=>" sextillion ", 8=>" septillion ", 9=>" octillion ", 10=>" nonillion ", 11=>" decillion ", 12=>" undecillion ", 13=>" duodecillion ", 14=>" tredecillion ", 15=>" quattuordecillion ", 16=>" quindecillion " }
|
49
|
+
b=[ab.reverse.each_slice(3).to_a]
|
50
|
+
v=0
|
51
|
+
b[0].reverse.each_with_index {|x,y| v=y if (x[-1]!="0" || x[-2]!="0" || x[-3]!="0")}
|
52
|
+
va=b[0].reverse[v]
|
53
|
+
((va[-1]=="0" || va[-2]=="0") && va[-3]!="0") ? q="and " : q=""
|
54
|
+
e=b[0].map! {|x| x.join.reverse }
|
55
|
+
e.map!.with_index{|x,y| x=="000" ? one(x) : one(x)+order[y]}
|
56
|
+
z=(e.reverse-[""])
|
57
|
+
z.map! {|x| (x.include? "zero") ? x="" : x }
|
58
|
+
aza=z.insert(-2,q).join.split(" ")
|
59
|
+
if aza[0]=="and" then aza.delete("and") end
|
60
|
+
aza.join(" ")
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
data/lib/n_2_w/tel.rb
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
module N2W
|
2
|
+
class Tel
|
3
|
+
|
4
|
+
def self.sortln(x)
|
5
|
+
ab=x.to_s
|
6
|
+
ap=ab.scan(/[^\d]/).count
|
7
|
+
if ab.scan(/(\d\d\d).{0,2}\1|(\d)\2\2|(\d)\3/).count>1
|
8
|
+
smarti ab
|
9
|
+
else
|
10
|
+
tel_number ab
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.smarti d
|
15
|
+
da=d.to_s.split ""
|
16
|
+
da.map! { |x|
|
17
|
+
if x=="0"||x=="1"||x=="2"||x=="3"||x=="4"||x=="5"||x=="6"||x=="7"||x=="8"||x=="9"
|
18
|
+
x
|
19
|
+
else
|
20
|
+
","
|
21
|
+
end}
|
22
|
+
daa=da.join("").split(","); daa.delete("");
|
23
|
+
d=daa.join
|
24
|
+
a=d.enum_for(:scan, /(\d\d\d).{0,2}\1|(\d)\2\2|(\d)\3/).map { Regexp.last_match.begin(0) }
|
25
|
+
b=d.enum_for(:scan, /(\d\d\d).{0,2}\1|(\d)\2\2|(\d)\3/).map { Regexp.last_match.end(0)-1 }
|
26
|
+
e=[]
|
27
|
+
da.delete(",")
|
28
|
+
z=a.length
|
29
|
+
for i in 0..(z-1)
|
30
|
+
pp = da[a[i]..b[i]].join
|
31
|
+
e << pp
|
32
|
+
end
|
33
|
+
e.map! {|x| tel_number x}
|
34
|
+
d.gsub!(/(\d\d\d).{0,2}\1|(\d)\2\2|(\d)\3/,"-")
|
35
|
+
d1=d.split("-").map! {|x| tel_number x }
|
36
|
+
d1.delete ""
|
37
|
+
d.gsub!(/\b\d*\b/," ").gsub!(" "," ")
|
38
|
+
pr, de = 0, 0
|
39
|
+
ery=d.split("").map!{|x| if x==" "
|
40
|
+
pr+=1
|
41
|
+
x=d1[(pr-1)]
|
42
|
+
elsif x=="-"
|
43
|
+
de+=1
|
44
|
+
x=e[de-1]
|
45
|
+
end}
|
46
|
+
ery.join ", "
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.tel_number(x, s=" - ")
|
50
|
+
ab=x.to_s.split("")
|
51
|
+
ae=""
|
52
|
+
ab.map! do |x|
|
53
|
+
if x=="0"||x=="1"||x=="2"||x=="3"||x=="4"||x=="5"||x=="6"||x=="7"||x=="8"||x=="9"
|
54
|
+
x
|
55
|
+
#elsif x=="+"
|
56
|
+
# ae="your local international dial code plus, "
|
57
|
+
else
|
58
|
+
","
|
59
|
+
end
|
60
|
+
end
|
61
|
+
az=ab.join("").split(","); az.delete("");
|
62
|
+
az.map! do |x|
|
63
|
+
if x.length>3
|
64
|
+
if x.length%2==0
|
65
|
+
x.split("").each_slice(2).to_a.map! {|x| number(x.join) }.join(", ")
|
66
|
+
else
|
67
|
+
x.split("").reverse.each_slice(3).to_a.map! {|x| x.reverse}.reverse.map! {|x| number(x.join)}.join(", ")
|
68
|
+
end
|
69
|
+
else
|
70
|
+
number(x)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
az.join(", ")
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.number(x, s=" ")
|
77
|
+
a=x.to_s.split("")
|
78
|
+
a.map! { |x| x.to_i }
|
79
|
+
one={0=>"zero",1=>"one", 2=>"two", 3=>"three", 4=>"four", 5=>"five", 6=>"six", 7=>"seven", 8=>"eight", 9=>"nine"}
|
80
|
+
two_r={1=>"ten",2=>"twenty",3=>"thirty",4=>"forty",5=>"fifty",6=>"sixty",7=>"seventy",8=>"eighty",9=>"ninety"}
|
81
|
+
two_i={1=>"eleven", 2=>"twelve", 3=>"thirteen", 4=>"fourteen", 5=>"fifteen", 6=>"sixteen", 7=>"seventeen", 8=>"eighteen", 9=>"nineteen"}
|
82
|
+
tnm=Proc.new do
|
83
|
+
if a[-2]==a[-1] && a[-2]!=1
|
84
|
+
"double "+one[a[-2]]
|
85
|
+
else
|
86
|
+
if a[-2]==0 || a[-1]==0
|
87
|
+
one[a[-2]]+s+one[a[-1]]
|
88
|
+
elsif a[-2]==1 && (a[-1]==1 || a[-1]==2)
|
89
|
+
two_i[a[-1]]
|
90
|
+
elsif a[-2]==1 && (a[-1]!=1 || a[-1]!=2)
|
91
|
+
one[a[-2]]+s+one[a[-1]]
|
92
|
+
elsif a[-2]==7
|
93
|
+
one[a[-2]]+s+one[a[-1]]
|
94
|
+
else
|
95
|
+
two_r[a[-2]]+s+one[a[-1]]
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
tnn=Proc.new do
|
100
|
+
if a[-2]==a[-1]
|
101
|
+
"double "+one[a[-2]]
|
102
|
+
else
|
103
|
+
if a[-2]==0 || a[-1]==0
|
104
|
+
one[a[-2]]+s+one[a[-1]]
|
105
|
+
elsif a[-2]==1 && (a[-1]==1 || a[-1]==2)
|
106
|
+
two_i[a[-1]]
|
107
|
+
elsif a[-2]==1 && (a[-1]!=1 || a[-1]!=2)
|
108
|
+
one[a[-2]]+s+one[a[-1]]
|
109
|
+
elsif a[-2]==7
|
110
|
+
one[a[-2]]+s+one[a[-1]]
|
111
|
+
else
|
112
|
+
two_r[a[-2]]+s+one[a[-1]]
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
if x.length==1
|
117
|
+
return one[a[0]]
|
118
|
+
elsif x.length==2
|
119
|
+
return tnm.call
|
120
|
+
elsif x.length==3
|
121
|
+
if a[1]==a[2] && a[2]==a[0]
|
122
|
+
return "triple"+s+one[a[0]]
|
123
|
+
elsif a[0]==a[1] && a[1]!=a[2]
|
124
|
+
return "double"+s+one[a[1]]+s+one[a[2]]
|
125
|
+
elsif a[0]!=0 && a[1]==0 && a[2]==0
|
126
|
+
return (one[a[0]]+s+"hundred")
|
127
|
+
elsif a[1]==3 || a[1]==9 || a[1]==6 || a[1]==8
|
128
|
+
return one[a[0]]+s+tnn.call
|
129
|
+
else
|
130
|
+
return one[a[0]]+s+one[a[1]]+s+one[a[2]]
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
end
|
136
|
+
end
|
data/lib/n_2_w.rb
ADDED
data/n_2_w.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'n_2_w/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "n_2_w"
|
8
|
+
spec.version = N2W::VERSION
|
9
|
+
spec.authors = ["alexandros84"]
|
10
|
+
spec.email = ["alexandros.management@outlook.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{"--Convert numeric data into friendly, human-like verbal expressions that match
|
13
|
+
the occasion!"}
|
14
|
+
spec.description = %q{""}
|
15
|
+
spec.homepage = ""
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
21
|
+
f.match(%r{^(test|spec|features)/})
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: n_2_w
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- alexandros84
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-14 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.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
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: '""'
|
56
|
+
email:
|
57
|
+
- alexandros.management@outlook.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
64
|
+
- CODE_OF_CONDUCT.md
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE.txt
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- bin/console
|
70
|
+
- bin/setup
|
71
|
+
- lib/n_2_w.rb
|
72
|
+
- lib/n_2_w/int.rb
|
73
|
+
- lib/n_2_w/tel.rb
|
74
|
+
- lib/n_2_w/version.rb
|
75
|
+
- n_2_w.gemspec
|
76
|
+
homepage: ''
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.6.10
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: '"--Convert numeric data into friendly, human-like verbal expressions that
|
100
|
+
match the occasion!"'
|
101
|
+
test_files: []
|