papla 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/papla/backend.rb +1 -1
- data/lib/papla/version.rb +1 -1
- data/spec/en_spec.rb +186 -186
- data/spec/pl_spec.rb +186 -187
- metadata +40 -29
- data/.rvmrc +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3718d52dbf2b2e34996eebe042384eee6f50e482
|
4
|
+
data.tar.gz: 84e1e63ab9ea2260837b2a27f16affe9379beab5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: baad611511a89f89ddd8a0b188789608e129dc03525c65a91e3067a235cdde3a990590b3606f1a4b63bac7e2a05f2738c0dc0d361b4fb2b3fb9f08b51fe5e192
|
7
|
+
data.tar.gz: de2988b86a5c916b58367a0a1102b50ddccbd23681ce8227a696dc974504046521f25b50015cee15fcb636e810893d1f6ad839e3432e29ce0ac32a38ae2aacc6
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
papla
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/papla/backend.rb
CHANGED
data/lib/papla/version.rb
CHANGED
data/spec/en_spec.rb
CHANGED
@@ -8,211 +8,211 @@ describe Papla, 'en' do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'converts basic numbers' do
|
11
|
-
subject[0].
|
12
|
-
subject[1].
|
13
|
-
subject[2].
|
14
|
-
subject[3].
|
15
|
-
subject[4].
|
16
|
-
subject[5].
|
17
|
-
subject[6].
|
18
|
-
subject[7].
|
19
|
-
subject[8].
|
20
|
-
subject[9].
|
21
|
-
subject[10].
|
22
|
-
subject[11].
|
23
|
-
subject[12].
|
24
|
-
subject[13].
|
25
|
-
subject[14].
|
26
|
-
subject[15].
|
27
|
-
subject[16].
|
28
|
-
subject[17].
|
29
|
-
subject[18].
|
30
|
-
subject[19].
|
11
|
+
expect(subject[0]).to eq('Zero')
|
12
|
+
expect(subject[1]).to eq('One')
|
13
|
+
expect(subject[2]).to eq('Two')
|
14
|
+
expect(subject[3]).to eq('Three')
|
15
|
+
expect(subject[4]).to eq('Four')
|
16
|
+
expect(subject[5]).to eq('Five')
|
17
|
+
expect(subject[6]).to eq('Six')
|
18
|
+
expect(subject[7]).to eq('Seven')
|
19
|
+
expect(subject[8]).to eq('Eight')
|
20
|
+
expect(subject[9]).to eq('Nine')
|
21
|
+
expect(subject[10]).to eq('Ten')
|
22
|
+
expect(subject[11]).to eq('Eleven')
|
23
|
+
expect(subject[12]).to eq('Twelve')
|
24
|
+
expect(subject[13]).to eq('Thirteen')
|
25
|
+
expect(subject[14]).to eq('Fourteen')
|
26
|
+
expect(subject[15]).to eq('Fifteen')
|
27
|
+
expect(subject[16]).to eq('Sixteen')
|
28
|
+
expect(subject[17]).to eq('Seventeen')
|
29
|
+
expect(subject[18]).to eq('Eighteen')
|
30
|
+
expect(subject[19]).to eq('Nineteen')
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'joins number of tens and ones' do
|
34
|
-
subject[20].
|
35
|
-
subject[21].
|
36
|
-
subject[30].
|
37
|
-
subject[32].
|
38
|
-
subject[40].
|
39
|
-
subject[43].
|
40
|
-
subject[50].
|
41
|
-
subject[54].
|
42
|
-
subject[60].
|
43
|
-
subject[65].
|
44
|
-
subject[70].
|
45
|
-
subject[76].
|
46
|
-
subject[80].
|
47
|
-
subject[87].
|
48
|
-
subject[90].
|
49
|
-
subject[98].
|
34
|
+
expect(subject[20]).to eq('Twenty')
|
35
|
+
expect(subject[21]).to eq('Twenty one')
|
36
|
+
expect(subject[30]).to eq('Thirty')
|
37
|
+
expect(subject[32]).to eq('Thirty two')
|
38
|
+
expect(subject[40]).to eq('Forty')
|
39
|
+
expect(subject[43]).to eq('Forty three')
|
40
|
+
expect(subject[50]).to eq('Fifty')
|
41
|
+
expect(subject[54]).to eq('Fifty four')
|
42
|
+
expect(subject[60]).to eq('Sixty')
|
43
|
+
expect(subject[65]).to eq('Sixty five')
|
44
|
+
expect(subject[70]).to eq('Seventy')
|
45
|
+
expect(subject[76]).to eq('Seventy six')
|
46
|
+
expect(subject[80]).to eq('Eighty')
|
47
|
+
expect(subject[87]).to eq('Eighty seven')
|
48
|
+
expect(subject[90]).to eq('Ninety')
|
49
|
+
expect(subject[98]).to eq('Ninety eight')
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'joins number of hundreds, tens and ones' do
|
53
|
-
subject[100].
|
54
|
-
subject[101].
|
55
|
-
subject[111].
|
56
|
-
subject[122].
|
57
|
-
|
58
|
-
subject[200].
|
59
|
-
subject[202].
|
60
|
-
subject[212].
|
61
|
-
subject[233].
|
62
|
-
|
63
|
-
subject[300].
|
64
|
-
subject[303].
|
65
|
-
subject[313].
|
66
|
-
subject[344].
|
67
|
-
|
68
|
-
subject[400].
|
69
|
-
subject[404].
|
70
|
-
subject[414].
|
71
|
-
subject[455].
|
72
|
-
|
73
|
-
subject[500].
|
74
|
-
subject[505].
|
75
|
-
subject[515].
|
76
|
-
subject[566].
|
77
|
-
|
78
|
-
subject[600].
|
79
|
-
subject[606].
|
80
|
-
subject[616].
|
81
|
-
subject[677].
|
82
|
-
|
83
|
-
subject[700].
|
84
|
-
subject[707].
|
85
|
-
subject[717].
|
86
|
-
subject[788].
|
87
|
-
|
88
|
-
subject[800].
|
89
|
-
subject[808].
|
90
|
-
subject[818].
|
91
|
-
subject[899].
|
92
|
-
|
93
|
-
subject[900].
|
94
|
-
subject[909].
|
95
|
-
subject[919].
|
96
|
-
subject[990].
|
53
|
+
expect(subject[100]).to eq('One hundred')
|
54
|
+
expect(subject[101]).to eq('One hundred one')
|
55
|
+
expect(subject[111]).to eq('One hundred eleven')
|
56
|
+
expect(subject[122]).to eq('One hundred twenty two')
|
57
|
+
|
58
|
+
expect(subject[200]).to eq('Two hundred')
|
59
|
+
expect(subject[202]).to eq('Two hundred two')
|
60
|
+
expect(subject[212]).to eq('Two hundred twelve')
|
61
|
+
expect(subject[233]).to eq('Two hundred thirty three')
|
62
|
+
|
63
|
+
expect(subject[300]).to eq('Three hundred')
|
64
|
+
expect(subject[303]).to eq('Three hundred three')
|
65
|
+
expect(subject[313]).to eq('Three hundred thirteen')
|
66
|
+
expect(subject[344]).to eq('Three hundred forty four')
|
67
|
+
|
68
|
+
expect(subject[400]).to eq('Four hundred')
|
69
|
+
expect(subject[404]).to eq('Four hundred four')
|
70
|
+
expect(subject[414]).to eq('Four hundred fourteen')
|
71
|
+
expect(subject[455]).to eq('Four hundred fifty five')
|
72
|
+
|
73
|
+
expect(subject[500]).to eq('Five hundred')
|
74
|
+
expect(subject[505]).to eq('Five hundred five')
|
75
|
+
expect(subject[515]).to eq('Five hundred fifteen')
|
76
|
+
expect(subject[566]).to eq('Five hundred sixty six')
|
77
|
+
|
78
|
+
expect(subject[600]).to eq('Six hundred')
|
79
|
+
expect(subject[606]).to eq('Six hundred six')
|
80
|
+
expect(subject[616]).to eq('Six hundred sixteen')
|
81
|
+
expect(subject[677]).to eq('Six hundred seventy seven')
|
82
|
+
|
83
|
+
expect(subject[700]).to eq('Seven hundred')
|
84
|
+
expect(subject[707]).to eq('Seven hundred seven')
|
85
|
+
expect(subject[717]).to eq('Seven hundred seventeen')
|
86
|
+
expect(subject[788]).to eq('Seven hundred eighty eight')
|
87
|
+
|
88
|
+
expect(subject[800]).to eq('Eight hundred')
|
89
|
+
expect(subject[808]).to eq('Eight hundred eight')
|
90
|
+
expect(subject[818]).to eq('Eight hundred eighteen')
|
91
|
+
expect(subject[899]).to eq('Eight hundred ninety nine')
|
92
|
+
|
93
|
+
expect(subject[900]).to eq('Nine hundred')
|
94
|
+
expect(subject[909]).to eq('Nine hundred nine')
|
95
|
+
expect(subject[919]).to eq('Nine hundred nineteen')
|
96
|
+
expect(subject[990]).to eq('Nine hundred ninety')
|
97
97
|
end
|
98
98
|
|
99
99
|
it 'supports thousands' do
|
100
|
-
subject[1000].
|
101
|
-
subject[1001].
|
102
|
-
subject[1234].
|
103
|
-
subject[1999].
|
104
|
-
|
105
|
-
subject[2000].
|
106
|
-
subject[2001].
|
107
|
-
subject[2345].
|
108
|
-
subject[2888].
|
109
|
-
|
110
|
-
subject[3000].
|
111
|
-
subject[4000].
|
112
|
-
subject[5000].
|
113
|
-
subject[6000].
|
114
|
-
subject[7000].
|
115
|
-
subject[8000].
|
116
|
-
subject[9000].
|
100
|
+
expect(subject[1000]).to eq('One thousand')
|
101
|
+
expect(subject[1001]).to eq('One thousand one')
|
102
|
+
expect(subject[1234]).to eq('One thousand two hundred thirty four')
|
103
|
+
expect(subject[1999]).to eq('One thousand nine hundred ninety nine')
|
104
|
+
|
105
|
+
expect(subject[2000]).to eq('Two thousand')
|
106
|
+
expect(subject[2001]).to eq('Two thousand one')
|
107
|
+
expect(subject[2345]).to eq('Two thousand three hundred forty five')
|
108
|
+
expect(subject[2888]).to eq('Two thousand eight hundred eighty eight')
|
109
|
+
|
110
|
+
expect(subject[3000]).to eq('Three thousand')
|
111
|
+
expect(subject[4000]).to eq('Four thousand')
|
112
|
+
expect(subject[5000]).to eq('Five thousand')
|
113
|
+
expect(subject[6000]).to eq('Six thousand')
|
114
|
+
expect(subject[7000]).to eq('Seven thousand')
|
115
|
+
expect(subject[8000]).to eq('Eight thousand')
|
116
|
+
expect(subject[9000]).to eq('Nine thousand')
|
117
117
|
end
|
118
118
|
|
119
119
|
it 'supports tens of thousands' do
|
120
|
-
subject[10000].
|
121
|
-
|
122
|
-
subject[11000].
|
123
|
-
subject[12000].
|
124
|
-
subject[13000].
|
125
|
-
subject[14000].
|
126
|
-
subject[15000].
|
127
|
-
subject[16000].
|
128
|
-
subject[17000].
|
129
|
-
subject[18000].
|
130
|
-
subject[19000].
|
131
|
-
subject[20000].
|
132
|
-
|
133
|
-
subject[21000].
|
134
|
-
subject[22000].
|
135
|
-
subject[23000].
|
136
|
-
subject[24000].
|
137
|
-
subject[25000].
|
138
|
-
subject[26000].
|
139
|
-
subject[27000].
|
140
|
-
subject[28000].
|
141
|
-
subject[29000].
|
142
|
-
|
143
|
-
subject[33000].
|
144
|
-
subject[44000].
|
145
|
-
subject[55000].
|
146
|
-
subject[66000].
|
147
|
-
subject[77000].
|
148
|
-
subject[88000].
|
149
|
-
subject[99000].
|
120
|
+
expect(subject[10000]).to eq('Ten thousand')
|
121
|
+
|
122
|
+
expect(subject[11000]).to eq('Eleven thousand')
|
123
|
+
expect(subject[12000]).to eq('Twelve thousand')
|
124
|
+
expect(subject[13000]).to eq('Thirteen thousand')
|
125
|
+
expect(subject[14000]).to eq('Fourteen thousand')
|
126
|
+
expect(subject[15000]).to eq('Fifteen thousand')
|
127
|
+
expect(subject[16000]).to eq('Sixteen thousand')
|
128
|
+
expect(subject[17000]).to eq('Seventeen thousand')
|
129
|
+
expect(subject[18000]).to eq('Eighteen thousand')
|
130
|
+
expect(subject[19000]).to eq('Nineteen thousand')
|
131
|
+
expect(subject[20000]).to eq('Twenty thousand')
|
132
|
+
|
133
|
+
expect(subject[21000]).to eq('Twenty one thousand')
|
134
|
+
expect(subject[22000]).to eq('Twenty two thousand')
|
135
|
+
expect(subject[23000]).to eq('Twenty three thousand')
|
136
|
+
expect(subject[24000]).to eq('Twenty four thousand')
|
137
|
+
expect(subject[25000]).to eq('Twenty five thousand')
|
138
|
+
expect(subject[26000]).to eq('Twenty six thousand')
|
139
|
+
expect(subject[27000]).to eq('Twenty seven thousand')
|
140
|
+
expect(subject[28000]).to eq('Twenty eight thousand')
|
141
|
+
expect(subject[29000]).to eq('Twenty nine thousand')
|
142
|
+
|
143
|
+
expect(subject[33000]).to eq('Thirty three thousand')
|
144
|
+
expect(subject[44000]).to eq('Forty four thousand')
|
145
|
+
expect(subject[55000]).to eq('Fifty five thousand')
|
146
|
+
expect(subject[66000]).to eq('Sixty six thousand')
|
147
|
+
expect(subject[77000]).to eq('Seventy seven thousand')
|
148
|
+
expect(subject[88000]).to eq('Eighty eight thousand')
|
149
|
+
expect(subject[99000]).to eq('Ninety nine thousand')
|
150
150
|
end
|
151
151
|
|
152
152
|
it 'supports hundreds of thousands' do
|
153
|
-
subject[100_000].
|
154
|
-
|
155
|
-
subject[101_000].
|
156
|
-
subject[102_000].
|
157
|
-
subject[103_000].
|
158
|
-
subject[104_000].
|
159
|
-
subject[105_000].
|
160
|
-
subject[111_000].
|
161
|
-
subject[112_000].
|
162
|
-
subject[113_000].
|
163
|
-
subject[222_000].
|
164
|
-
subject[333_000].
|
165
|
-
subject[444_000].
|
166
|
-
subject[555_000].
|
167
|
-
subject[666_000].
|
168
|
-
subject[777_000].
|
169
|
-
subject[999_000].
|
170
|
-
subject[999_999].
|
153
|
+
expect(subject[100_000]).to eq('One hundred thousand')
|
154
|
+
|
155
|
+
expect(subject[101_000]).to eq('One hundred one thousand')
|
156
|
+
expect(subject[102_000]).to eq('One hundred two thousand')
|
157
|
+
expect(subject[103_000]).to eq('One hundred three thousand')
|
158
|
+
expect(subject[104_000]).to eq('One hundred four thousand')
|
159
|
+
expect(subject[105_000]).to eq('One hundred five thousand')
|
160
|
+
expect(subject[111_000]).to eq('One hundred eleven thousand')
|
161
|
+
expect(subject[112_000]).to eq('One hundred twelve thousand')
|
162
|
+
expect(subject[113_000]).to eq('One hundred thirteen thousand')
|
163
|
+
expect(subject[222_000]).to eq('Two hundred twenty two thousand')
|
164
|
+
expect(subject[333_000]).to eq('Three hundred thirty three thousand')
|
165
|
+
expect(subject[444_000]).to eq('Four hundred forty four thousand')
|
166
|
+
expect(subject[555_000]).to eq('Five hundred fifty five thousand')
|
167
|
+
expect(subject[666_000]).to eq('Six hundred sixty six thousand')
|
168
|
+
expect(subject[777_000]).to eq('Seven hundred seventy seven thousand')
|
169
|
+
expect(subject[999_000]).to eq('Nine hundred ninety nine thousand')
|
170
|
+
expect(subject[999_999]).to eq('Nine hundred ninety nine thousand nine hundred ninety nine')
|
171
171
|
end
|
172
172
|
|
173
173
|
it 'supports millions' do
|
174
|
-
subject[1_000_000].
|
175
|
-
subject[1_000_001].
|
176
|
-
subject[1_001_001].
|
177
|
-
subject[1_234_567].
|
178
|
-
subject[2_000_000].
|
179
|
-
subject[3_303_303].
|
180
|
-
subject[4_004_000].
|
181
|
-
subject[5_500_000].
|
182
|
-
subject[6_000_000].
|
183
|
-
subject[7_000_000].
|
184
|
-
subject[9_000_000].
|
174
|
+
expect(subject[1_000_000]).to eq('One million')
|
175
|
+
expect(subject[1_000_001]).to eq('One million one')
|
176
|
+
expect(subject[1_001_001]).to eq('One million one thousand one')
|
177
|
+
expect(subject[1_234_567]).to eq('One million two hundred thirty four thousand five hundred sixty seven')
|
178
|
+
expect(subject[2_000_000]).to eq('Two million')
|
179
|
+
expect(subject[3_303_303]).to eq('Three million three hundred three thousand three hundred three')
|
180
|
+
expect(subject[4_004_000]).to eq('Four million four thousand')
|
181
|
+
expect(subject[5_500_000]).to eq('Five million five hundred thousand')
|
182
|
+
expect(subject[6_000_000]).to eq('Six million')
|
183
|
+
expect(subject[7_000_000]).to eq('Seven million')
|
184
|
+
expect(subject[9_000_000]).to eq('Nine million')
|
185
185
|
end
|
186
186
|
|
187
187
|
it 'supports tens of millions' do
|
188
|
-
subject[11_000_000].
|
189
|
-
subject[13_000_000].
|
190
|
-
subject[15_000_000].
|
191
|
-
subject[19_000_000].
|
192
|
-
subject[20_000_000].
|
193
|
-
subject[22_000_000].
|
194
|
-
subject[33_000_000].
|
195
|
-
subject[44_000_000].
|
196
|
-
subject[55_000_000].
|
197
|
-
subject[66_000_000].
|
198
|
-
subject[77_000_000].
|
199
|
-
subject[88_000_000].
|
200
|
-
subject[99_000_000].
|
201
|
-
subject[99_999_999].
|
188
|
+
expect(subject[11_000_000]).to eq('Eleven million')
|
189
|
+
expect(subject[13_000_000]).to eq('Thirteen million')
|
190
|
+
expect(subject[15_000_000]).to eq('Fifteen million')
|
191
|
+
expect(subject[19_000_000]).to eq('Nineteen million')
|
192
|
+
expect(subject[20_000_000]).to eq('Twenty million')
|
193
|
+
expect(subject[22_000_000]).to eq('Twenty two million')
|
194
|
+
expect(subject[33_000_000]).to eq('Thirty three million')
|
195
|
+
expect(subject[44_000_000]).to eq('Forty four million')
|
196
|
+
expect(subject[55_000_000]).to eq('Fifty five million')
|
197
|
+
expect(subject[66_000_000]).to eq('Sixty six million')
|
198
|
+
expect(subject[77_000_000]).to eq('Seventy seven million')
|
199
|
+
expect(subject[88_000_000]).to eq('Eighty eight million')
|
200
|
+
expect(subject[99_000_000]).to eq('Ninety nine million')
|
201
|
+
expect(subject[99_999_999]).to eq('Ninety nine million nine hundred ninety nine thousand nine hundred ninety nine')
|
202
202
|
end
|
203
203
|
|
204
204
|
it 'supports hundreds of millions' do
|
205
|
-
subject[100_000_000].
|
206
|
-
subject[100_000_001].
|
207
|
-
subject[102_100_000].
|
208
|
-
subject[222_000_000].
|
209
|
-
subject[333_000_000].
|
210
|
-
subject[400_000_000].
|
211
|
-
subject[500_000_000].
|
212
|
-
subject[600_000_000].
|
213
|
-
subject[700_000_000].
|
214
|
-
subject[880_000_000].
|
215
|
-
subject[999_999_999].
|
205
|
+
expect(subject[100_000_000]).to eq('One hundred million')
|
206
|
+
expect(subject[100_000_001]).to eq('One hundred million one')
|
207
|
+
expect(subject[102_100_000]).to eq('One hundred two million one hundred thousand')
|
208
|
+
expect(subject[222_000_000]).to eq('Two hundred twenty two million')
|
209
|
+
expect(subject[333_000_000]).to eq('Three hundred thirty three million')
|
210
|
+
expect(subject[400_000_000]).to eq('Four hundred million')
|
211
|
+
expect(subject[500_000_000]).to eq('Five hundred million')
|
212
|
+
expect(subject[600_000_000]).to eq('Six hundred million')
|
213
|
+
expect(subject[700_000_000]).to eq('Seven hundred million')
|
214
|
+
expect(subject[880_000_000]).to eq('Eight hundred eighty million')
|
215
|
+
expect(subject[999_999_999]).to eq('Nine hundred ninety nine million nine hundred ninety nine thousand nine hundred ninety nine')
|
216
216
|
end
|
217
217
|
|
218
218
|
it 'does not support billions' do
|
@@ -221,26 +221,26 @@ describe Papla, 'en' do
|
|
221
221
|
|
222
222
|
describe 'floats' do
|
223
223
|
it 'appends the decimal part as cents' do
|
224
|
-
subject[1.23].
|
224
|
+
expect(subject[1.23]).to eq('One 23/100')
|
225
225
|
end
|
226
226
|
|
227
227
|
it 'displays two decimal digits' do
|
228
|
-
subject[2.0].
|
228
|
+
expect(subject[2.0]).to eq('Two 00/100')
|
229
229
|
end
|
230
230
|
|
231
231
|
it 'rounds to two decimal places' do
|
232
|
-
subject[3.456].
|
232
|
+
expect(subject[3.456]).to eq('Three 46/100')
|
233
233
|
end
|
234
234
|
|
235
235
|
it 'properly handles float precision imperfections' do
|
236
|
-
subject[111_111.2].
|
236
|
+
expect(subject[111_111.2]).to eq('One hundred eleven thousand one hundred eleven 20/100')
|
237
237
|
end
|
238
238
|
end
|
239
239
|
|
240
240
|
describe 'money' do
|
241
241
|
it 'concatenates dollars, cents and currency' do
|
242
242
|
discounted_price = Money.new(9999, 'PLN')
|
243
|
-
Papla[discounted_price].
|
243
|
+
expect(Papla[discounted_price]).to eq('Ninety nine 99/100 PLN')
|
244
244
|
end
|
245
245
|
end
|
246
246
|
end
|
data/spec/pl_spec.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
1
|
require 'spec_helper'
|
3
2
|
|
4
3
|
describe Papla, 'pl' do
|
@@ -9,211 +8,211 @@ describe Papla, 'pl' do
|
|
9
8
|
end
|
10
9
|
|
11
10
|
it 'converts basic numbers' do
|
12
|
-
subject[0].
|
13
|
-
subject[1].
|
14
|
-
subject[2].
|
15
|
-
subject[3].
|
16
|
-
subject[4].
|
17
|
-
subject[5].
|
18
|
-
subject[6].
|
19
|
-
subject[7].
|
20
|
-
subject[8].
|
21
|
-
subject[9].
|
22
|
-
subject[10].
|
23
|
-
subject[11].
|
24
|
-
subject[12].
|
25
|
-
subject[13].
|
26
|
-
subject[14].
|
27
|
-
subject[15].
|
28
|
-
subject[16].
|
29
|
-
subject[17].
|
30
|
-
subject[18].
|
31
|
-
subject[19].
|
11
|
+
expect(subject[0]).to eq('Zero')
|
12
|
+
expect(subject[1]).to eq('Jeden')
|
13
|
+
expect(subject[2]).to eq('Dwa')
|
14
|
+
expect(subject[3]).to eq('Trzy')
|
15
|
+
expect(subject[4]).to eq('Cztery')
|
16
|
+
expect(subject[5]).to eq('Pięć')
|
17
|
+
expect(subject[6]).to eq('Sześć')
|
18
|
+
expect(subject[7]).to eq('Siedem')
|
19
|
+
expect(subject[8]).to eq('Osiem')
|
20
|
+
expect(subject[9]).to eq('Dziewięć')
|
21
|
+
expect(subject[10]).to eq('Dziesięć')
|
22
|
+
expect(subject[11]).to eq('Jedenaście')
|
23
|
+
expect(subject[12]).to eq('Dwanaście')
|
24
|
+
expect(subject[13]).to eq('Trzynaście')
|
25
|
+
expect(subject[14]).to eq('Czternaście')
|
26
|
+
expect(subject[15]).to eq('Piętnaście')
|
27
|
+
expect(subject[16]).to eq('Szesnaście')
|
28
|
+
expect(subject[17]).to eq('Siedemnaście')
|
29
|
+
expect(subject[18]).to eq('Osiemnaście')
|
30
|
+
expect(subject[19]).to eq('Dziewiętnaście')
|
32
31
|
end
|
33
32
|
|
34
33
|
it 'joins number of tens and ones' do
|
35
|
-
subject[20].
|
36
|
-
subject[21].
|
37
|
-
subject[30].
|
38
|
-
subject[32].
|
39
|
-
subject[40].
|
40
|
-
subject[43].
|
41
|
-
subject[50].
|
42
|
-
subject[54].
|
43
|
-
subject[60].
|
44
|
-
subject[65].
|
45
|
-
subject[70].
|
46
|
-
subject[76].
|
47
|
-
subject[80].
|
48
|
-
subject[87].
|
49
|
-
subject[90].
|
50
|
-
subject[98].
|
34
|
+
expect(subject[20]).to eq('Dwadzieścia')
|
35
|
+
expect(subject[21]).to eq('Dwadzieścia jeden')
|
36
|
+
expect(subject[30]).to eq('Trzydzieści')
|
37
|
+
expect(subject[32]).to eq('Trzydzieści dwa')
|
38
|
+
expect(subject[40]).to eq('Czterdzieści')
|
39
|
+
expect(subject[43]).to eq('Czterdzieści trzy')
|
40
|
+
expect(subject[50]).to eq('Pięćdziesiąt')
|
41
|
+
expect(subject[54]).to eq('Pięćdziesiąt cztery')
|
42
|
+
expect(subject[60]).to eq('Sześćdziesiąt')
|
43
|
+
expect(subject[65]).to eq('Sześćdziesiąt pięć')
|
44
|
+
expect(subject[70]).to eq('Siedemdziesiąt')
|
45
|
+
expect(subject[76]).to eq('Siedemdziesiąt sześć')
|
46
|
+
expect(subject[80]).to eq('Osiemdziesiąt')
|
47
|
+
expect(subject[87]).to eq('Osiemdziesiąt siedem')
|
48
|
+
expect(subject[90]).to eq('Dziewięćdziesiąt')
|
49
|
+
expect(subject[98]).to eq('Dziewięćdziesiąt osiem')
|
51
50
|
end
|
52
51
|
|
53
52
|
it 'joins number of hundreds, tens and ones' do
|
54
|
-
subject[100].
|
55
|
-
subject[101].
|
56
|
-
subject[111].
|
57
|
-
subject[122].
|
58
|
-
|
59
|
-
subject[200].
|
60
|
-
subject[202].
|
61
|
-
subject[212].
|
62
|
-
subject[233].
|
63
|
-
|
64
|
-
subject[300].
|
65
|
-
subject[303].
|
66
|
-
subject[313].
|
67
|
-
subject[344].
|
68
|
-
|
69
|
-
subject[400].
|
70
|
-
subject[404].
|
71
|
-
subject[414].
|
72
|
-
subject[455].
|
73
|
-
|
74
|
-
subject[500].
|
75
|
-
subject[505].
|
76
|
-
subject[515].
|
77
|
-
subject[566].
|
78
|
-
|
79
|
-
subject[600].
|
80
|
-
subject[606].
|
81
|
-
subject[616].
|
82
|
-
subject[677].
|
83
|
-
|
84
|
-
subject[700].
|
85
|
-
subject[707].
|
86
|
-
subject[717].
|
87
|
-
subject[788].
|
88
|
-
|
89
|
-
subject[800].
|
90
|
-
subject[808].
|
91
|
-
subject[818].
|
92
|
-
subject[899].
|
93
|
-
|
94
|
-
subject[900].
|
95
|
-
subject[909].
|
96
|
-
subject[919].
|
97
|
-
subject[990].
|
53
|
+
expect(subject[100]).to eq('Sto')
|
54
|
+
expect(subject[101]).to eq('Sto jeden')
|
55
|
+
expect(subject[111]).to eq('Sto jedenaście')
|
56
|
+
expect(subject[122]).to eq('Sto dwadzieścia dwa')
|
57
|
+
|
58
|
+
expect(subject[200]).to eq('Dwieście')
|
59
|
+
expect(subject[202]).to eq('Dwieście dwa')
|
60
|
+
expect(subject[212]).to eq('Dwieście dwanaście')
|
61
|
+
expect(subject[233]).to eq('Dwieście trzydzieści trzy')
|
62
|
+
|
63
|
+
expect(subject[300]).to eq('Trzysta')
|
64
|
+
expect(subject[303]).to eq('Trzysta trzy')
|
65
|
+
expect(subject[313]).to eq('Trzysta trzynaście')
|
66
|
+
expect(subject[344]).to eq('Trzysta czterdzieści cztery')
|
67
|
+
|
68
|
+
expect(subject[400]).to eq('Czterysta')
|
69
|
+
expect(subject[404]).to eq('Czterysta cztery')
|
70
|
+
expect(subject[414]).to eq('Czterysta czternaście')
|
71
|
+
expect(subject[455]).to eq('Czterysta pięćdziesiąt pięć')
|
72
|
+
|
73
|
+
expect(subject[500]).to eq('Pięćset')
|
74
|
+
expect(subject[505]).to eq('Pięćset pięć')
|
75
|
+
expect(subject[515]).to eq('Pięćset piętnaście')
|
76
|
+
expect(subject[566]).to eq('Pięćset sześćdziesiąt sześć')
|
77
|
+
|
78
|
+
expect(subject[600]).to eq('Sześćset')
|
79
|
+
expect(subject[606]).to eq('Sześćset sześć')
|
80
|
+
expect(subject[616]).to eq('Sześćset szesnaście')
|
81
|
+
expect(subject[677]).to eq('Sześćset siedemdziesiąt siedem')
|
82
|
+
|
83
|
+
expect(subject[700]).to eq('Siedemset')
|
84
|
+
expect(subject[707]).to eq('Siedemset siedem')
|
85
|
+
expect(subject[717]).to eq('Siedemset siedemnaście')
|
86
|
+
expect(subject[788]).to eq('Siedemset osiemdziesiąt osiem')
|
87
|
+
|
88
|
+
expect(subject[800]).to eq('Osiemset')
|
89
|
+
expect(subject[808]).to eq('Osiemset osiem')
|
90
|
+
expect(subject[818]).to eq('Osiemset osiemnaście')
|
91
|
+
expect(subject[899]).to eq('Osiemset dziewięćdziesiąt dziewięć')
|
92
|
+
|
93
|
+
expect(subject[900]).to eq('Dziewięćset')
|
94
|
+
expect(subject[909]).to eq('Dziewięćset dziewięć')
|
95
|
+
expect(subject[919]).to eq('Dziewięćset dziewiętnaście')
|
96
|
+
expect(subject[990]).to eq('Dziewięćset dziewięćdziesiąt')
|
98
97
|
end
|
99
98
|
|
100
99
|
it 'supports thousands' do
|
101
|
-
subject[1000].
|
102
|
-
subject[1001].
|
103
|
-
subject[1234].
|
104
|
-
subject[1999].
|
105
|
-
|
106
|
-
subject[2000].
|
107
|
-
subject[2001].
|
108
|
-
subject[2345].
|
109
|
-
subject[2888].
|
110
|
-
|
111
|
-
subject[3000].
|
112
|
-
subject[4000].
|
113
|
-
subject[5000].
|
114
|
-
subject[6000].
|
115
|
-
subject[7000].
|
116
|
-
subject[8000].
|
117
|
-
subject[9000].
|
100
|
+
expect(subject[1000]).to eq('Jeden tysiąc')
|
101
|
+
expect(subject[1001]).to eq('Jeden tysiąc jeden')
|
102
|
+
expect(subject[1234]).to eq('Jeden tysiąc dwieście trzydzieści cztery')
|
103
|
+
expect(subject[1999]).to eq('Jeden tysiąc dziewięćset dziewięćdziesiąt dziewięć')
|
104
|
+
|
105
|
+
expect(subject[2000]).to eq('Dwa tysiące')
|
106
|
+
expect(subject[2001]).to eq('Dwa tysiące jeden')
|
107
|
+
expect(subject[2345]).to eq('Dwa tysiące trzysta czterdzieści pięć')
|
108
|
+
expect(subject[2888]).to eq('Dwa tysiące osiemset osiemdziesiąt osiem')
|
109
|
+
|
110
|
+
expect(subject[3000]).to eq('Trzy tysiące')
|
111
|
+
expect(subject[4000]).to eq('Cztery tysiące')
|
112
|
+
expect(subject[5000]).to eq('Pięć tysięcy')
|
113
|
+
expect(subject[6000]).to eq('Sześć tysięcy')
|
114
|
+
expect(subject[7000]).to eq('Siedem tysięcy')
|
115
|
+
expect(subject[8000]).to eq('Osiem tysięcy')
|
116
|
+
expect(subject[9000]).to eq('Dziewięć tysięcy')
|
118
117
|
end
|
119
118
|
|
120
119
|
it 'supports tens of thousands' do
|
121
|
-
subject[10000].
|
122
|
-
|
123
|
-
subject[11000].
|
124
|
-
subject[12000].
|
125
|
-
subject[13000].
|
126
|
-
subject[14000].
|
127
|
-
subject[15000].
|
128
|
-
subject[16000].
|
129
|
-
subject[17000].
|
130
|
-
subject[18000].
|
131
|
-
subject[19000].
|
132
|
-
subject[20000].
|
133
|
-
|
134
|
-
subject[21000].
|
135
|
-
subject[22000].
|
136
|
-
subject[23000].
|
137
|
-
subject[24000].
|
138
|
-
subject[25000].
|
139
|
-
subject[26000].
|
140
|
-
subject[27000].
|
141
|
-
subject[28000].
|
142
|
-
subject[29000].
|
143
|
-
|
144
|
-
subject[33000].
|
145
|
-
subject[44000].
|
146
|
-
subject[55000].
|
147
|
-
subject[66000].
|
148
|
-
subject[77000].
|
149
|
-
subject[88000].
|
150
|
-
subject[99000].
|
120
|
+
expect(subject[10000]).to eq('Dziesięć tysięcy')
|
121
|
+
|
122
|
+
expect(subject[11000]).to eq('Jedenaście tysięcy')
|
123
|
+
expect(subject[12000]).to eq('Dwanaście tysięcy')
|
124
|
+
expect(subject[13000]).to eq('Trzynaście tysięcy')
|
125
|
+
expect(subject[14000]).to eq('Czternaście tysięcy')
|
126
|
+
expect(subject[15000]).to eq('Piętnaście tysięcy')
|
127
|
+
expect(subject[16000]).to eq('Szesnaście tysięcy')
|
128
|
+
expect(subject[17000]).to eq('Siedemnaście tysięcy')
|
129
|
+
expect(subject[18000]).to eq('Osiemnaście tysięcy')
|
130
|
+
expect(subject[19000]).to eq('Dziewiętnaście tysięcy')
|
131
|
+
expect(subject[20000]).to eq('Dwadzieścia tysięcy')
|
132
|
+
|
133
|
+
expect(subject[21000]).to eq('Dwadzieścia jeden tysięcy')
|
134
|
+
expect(subject[22000]).to eq('Dwadzieścia dwa tysiące')
|
135
|
+
expect(subject[23000]).to eq('Dwadzieścia trzy tysiące')
|
136
|
+
expect(subject[24000]).to eq('Dwadzieścia cztery tysiące')
|
137
|
+
expect(subject[25000]).to eq('Dwadzieścia pięć tysięcy')
|
138
|
+
expect(subject[26000]).to eq('Dwadzieścia sześć tysięcy')
|
139
|
+
expect(subject[27000]).to eq('Dwadzieścia siedem tysięcy')
|
140
|
+
expect(subject[28000]).to eq('Dwadzieścia osiem tysięcy')
|
141
|
+
expect(subject[29000]).to eq('Dwadzieścia dziewięć tysięcy')
|
142
|
+
|
143
|
+
expect(subject[33000]).to eq('Trzydzieści trzy tysiące')
|
144
|
+
expect(subject[44000]).to eq('Czterdzieści cztery tysiące')
|
145
|
+
expect(subject[55000]).to eq('Pięćdziesiąt pięć tysięcy')
|
146
|
+
expect(subject[66000]).to eq('Sześćdziesiąt sześć tysięcy')
|
147
|
+
expect(subject[77000]).to eq('Siedemdziesiąt siedem tysięcy')
|
148
|
+
expect(subject[88000]).to eq('Osiemdziesiąt osiem tysięcy')
|
149
|
+
expect(subject[99000]).to eq('Dziewięćdziesiąt dziewięć tysięcy')
|
151
150
|
end
|
152
151
|
|
153
152
|
it 'supports hundreds of thousands' do
|
154
|
-
subject[100_000].
|
155
|
-
|
156
|
-
subject[101_000].
|
157
|
-
subject[102_000].
|
158
|
-
subject[103_000].
|
159
|
-
subject[104_000].
|
160
|
-
subject[105_000].
|
161
|
-
subject[111_000].
|
162
|
-
subject[112_000].
|
163
|
-
subject[113_000].
|
164
|
-
subject[222_000].
|
165
|
-
subject[333_000].
|
166
|
-
subject[444_000].
|
167
|
-
subject[555_000].
|
168
|
-
subject[666_000].
|
169
|
-
subject[777_000].
|
170
|
-
subject[999_000].
|
171
|
-
subject[999_999].
|
153
|
+
expect(subject[100_000]).to eq('Sto tysięcy')
|
154
|
+
|
155
|
+
expect(subject[101_000]).to eq('Sto jeden tysięcy')
|
156
|
+
expect(subject[102_000]).to eq('Sto dwa tysiące')
|
157
|
+
expect(subject[103_000]).to eq('Sto trzy tysiące')
|
158
|
+
expect(subject[104_000]).to eq('Sto cztery tysiące')
|
159
|
+
expect(subject[105_000]).to eq('Sto pięć tysięcy')
|
160
|
+
expect(subject[111_000]).to eq('Sto jedenaście tysięcy')
|
161
|
+
expect(subject[112_000]).to eq('Sto dwanaście tysięcy')
|
162
|
+
expect(subject[113_000]).to eq('Sto trzynaście tysięcy')
|
163
|
+
expect(subject[222_000]).to eq('Dwieście dwadzieścia dwa tysiące')
|
164
|
+
expect(subject[333_000]).to eq('Trzysta trzydzieści trzy tysiące')
|
165
|
+
expect(subject[444_000]).to eq('Czterysta czterdzieści cztery tysiące')
|
166
|
+
expect(subject[555_000]).to eq('Pięćset pięćdziesiąt pięć tysięcy')
|
167
|
+
expect(subject[666_000]).to eq('Sześćset sześćdziesiąt sześć tysięcy')
|
168
|
+
expect(subject[777_000]).to eq('Siedemset siedemdziesiąt siedem tysięcy')
|
169
|
+
expect(subject[999_000]).to eq('Dziewięćset dziewięćdziesiąt dziewięć tysięcy')
|
170
|
+
expect(subject[999_999]).to eq('Dziewięćset dziewięćdziesiąt dziewięć tysięcy dziewięćset dziewięćdziesiąt dziewięć')
|
172
171
|
end
|
173
172
|
|
174
173
|
it 'supports millions' do
|
175
|
-
subject[1_000_000].
|
176
|
-
subject[1_000_001].
|
177
|
-
subject[1_001_001].
|
178
|
-
subject[1_234_567].
|
179
|
-
subject[2_000_000].
|
180
|
-
subject[3_303_303].
|
181
|
-
subject[4_004_000].
|
182
|
-
subject[5_500_000].
|
183
|
-
subject[6_000_000].
|
184
|
-
subject[7_000_000].
|
185
|
-
subject[9_000_000].
|
174
|
+
expect(subject[1_000_000]).to eq('Jeden milion')
|
175
|
+
expect(subject[1_000_001]).to eq('Jeden milion jeden')
|
176
|
+
expect(subject[1_001_001]).to eq('Jeden milion jeden tysiąc jeden')
|
177
|
+
expect(subject[1_234_567]).to eq('Jeden milion dwieście trzydzieści cztery tysiące pięćset sześćdziesiąt siedem')
|
178
|
+
expect(subject[2_000_000]).to eq('Dwa miliony')
|
179
|
+
expect(subject[3_303_303]).to eq('Trzy miliony trzysta trzy tysiące trzysta trzy')
|
180
|
+
expect(subject[4_004_000]).to eq('Cztery miliony cztery tysiące')
|
181
|
+
expect(subject[5_500_000]).to eq('Pięć milionów pięćset tysięcy')
|
182
|
+
expect(subject[6_000_000]).to eq('Sześć milionów')
|
183
|
+
expect(subject[7_000_000]).to eq('Siedem milionów')
|
184
|
+
expect(subject[9_000_000]).to eq('Dziewięć milionów')
|
186
185
|
end
|
187
186
|
|
188
187
|
it 'supports tens of millions' do
|
189
|
-
subject[11_000_000].
|
190
|
-
subject[13_000_000].
|
191
|
-
subject[15_000_000].
|
192
|
-
subject[19_000_000].
|
193
|
-
subject[20_000_000].
|
194
|
-
subject[22_000_000].
|
195
|
-
subject[33_000_000].
|
196
|
-
subject[44_000_000].
|
197
|
-
subject[55_000_000].
|
198
|
-
subject[66_000_000].
|
199
|
-
subject[77_000_000].
|
200
|
-
subject[88_000_000].
|
201
|
-
subject[99_000_000].
|
202
|
-
subject[99_999_999].
|
188
|
+
expect(subject[11_000_000]).to eq('Jedenaście milionów')
|
189
|
+
expect(subject[13_000_000]).to eq('Trzynaście milionów')
|
190
|
+
expect(subject[15_000_000]).to eq('Piętnaście milionów')
|
191
|
+
expect(subject[19_000_000]).to eq('Dziewiętnaście milionów')
|
192
|
+
expect(subject[20_000_000]).to eq('Dwadzieścia milionów')
|
193
|
+
expect(subject[22_000_000]).to eq('Dwadzieścia dwa miliony')
|
194
|
+
expect(subject[33_000_000]).to eq('Trzydzieści trzy miliony')
|
195
|
+
expect(subject[44_000_000]).to eq('Czterdzieści cztery miliony')
|
196
|
+
expect(subject[55_000_000]).to eq('Pięćdziesiąt pięć milionów')
|
197
|
+
expect(subject[66_000_000]).to eq('Sześćdziesiąt sześć milionów')
|
198
|
+
expect(subject[77_000_000]).to eq('Siedemdziesiąt siedem milionów')
|
199
|
+
expect(subject[88_000_000]).to eq('Osiemdziesiąt osiem milionów')
|
200
|
+
expect(subject[99_000_000]).to eq('Dziewięćdziesiąt dziewięć milionów')
|
201
|
+
expect(subject[99_999_999]).to eq('Dziewięćdziesiąt dziewięć milionów dziewięćset dziewięćdziesiąt dziewięć tysięcy dziewięćset dziewięćdziesiąt dziewięć')
|
203
202
|
end
|
204
203
|
|
205
204
|
it 'supports hundreds of millions' do
|
206
|
-
subject[100_000_000].
|
207
|
-
subject[100_000_001].
|
208
|
-
subject[102_100_000].
|
209
|
-
subject[222_000_000].
|
210
|
-
subject[333_000_000].
|
211
|
-
subject[400_000_000].
|
212
|
-
subject[500_000_000].
|
213
|
-
subject[600_000_000].
|
214
|
-
subject[700_000_000].
|
215
|
-
subject[880_000_000].
|
216
|
-
subject[999_999_999].
|
205
|
+
expect(subject[100_000_000]).to eq('Sto milionów')
|
206
|
+
expect(subject[100_000_001]).to eq('Sto milionów jeden')
|
207
|
+
expect(subject[102_100_000]).to eq('Sto dwa miliony sto tysięcy')
|
208
|
+
expect(subject[222_000_000]).to eq('Dwieście dwadzieścia dwa miliony')
|
209
|
+
expect(subject[333_000_000]).to eq('Trzysta trzydzieści trzy miliony')
|
210
|
+
expect(subject[400_000_000]).to eq('Czterysta milionów')
|
211
|
+
expect(subject[500_000_000]).to eq('Pięćset milionów')
|
212
|
+
expect(subject[600_000_000]).to eq('Sześćset milionów')
|
213
|
+
expect(subject[700_000_000]).to eq('Siedemset milionów')
|
214
|
+
expect(subject[880_000_000]).to eq('Osiemset osiemdziesiąt milionów')
|
215
|
+
expect(subject[999_999_999]).to eq('Dziewięćset dziewięćdziesiąt dziewięć milionów dziewięćset dziewięćdziesiąt dziewięć tysięcy dziewięćset dziewięćdziesiąt dziewięć')
|
217
216
|
end
|
218
217
|
|
219
218
|
it 'does not support billions' do
|
@@ -222,26 +221,26 @@ describe Papla, 'pl' do
|
|
222
221
|
|
223
222
|
describe 'floats' do
|
224
223
|
it 'appends the decimal part as cents' do
|
225
|
-
subject[1.23].
|
224
|
+
expect(subject[1.23]).to eq('Jeden 23/100')
|
226
225
|
end
|
227
226
|
|
228
227
|
it 'displays two decimal digits' do
|
229
|
-
subject[2.0].
|
228
|
+
expect(subject[2.0]).to eq('Dwa 00/100')
|
230
229
|
end
|
231
230
|
|
232
231
|
it 'rounds to two decimal places' do
|
233
|
-
subject[3.456].
|
232
|
+
expect(subject[3.456]).to eq('Trzy 46/100')
|
234
233
|
end
|
235
234
|
|
236
235
|
it 'properly handles float precision imperfections' do
|
237
|
-
subject[111_111.2].
|
236
|
+
expect(subject[111_111.2]).to eq('Sto jedenaście tysięcy sto jedenaście 20/100')
|
238
237
|
end
|
239
238
|
end
|
240
239
|
|
241
240
|
describe 'money' do
|
242
241
|
it 'concatenates dollars, cents and currency' do
|
243
242
|
eleven_and_a_half_pounds = Money.new(1150, 'GBP')
|
244
|
-
Papla[eleven_and_a_half_pounds].
|
243
|
+
expect(Papla[eleven_and_a_half_pounds]).to eq('Jedenaście 50/100 GBP')
|
245
244
|
end
|
246
245
|
end
|
247
246
|
end
|
metadata
CHANGED
@@ -1,60 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Olek Janiszewski
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: i18n
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: money
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rake
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ">="
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
description: Papla is a Ruby gem that allows you to convert numbers into Polish and
|
59
70
|
English words.
|
60
71
|
email:
|
@@ -63,10 +74,11 @@ executables: []
|
|
63
74
|
extensions: []
|
64
75
|
extra_rdoc_files: []
|
65
76
|
files:
|
66
|
-
- .gitignore
|
67
|
-
- .rspec
|
68
|
-
- .
|
69
|
-
- .
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- ".ruby-gemset"
|
80
|
+
- ".ruby-version"
|
81
|
+
- ".travis.yml"
|
70
82
|
- CHANGELOG.md
|
71
83
|
- Gemfile
|
72
84
|
- README.md
|
@@ -87,26 +99,25 @@ files:
|
|
87
99
|
- spec/spec_helper.rb
|
88
100
|
homepage: https://github.com/exviva/papla
|
89
101
|
licenses: []
|
102
|
+
metadata: {}
|
90
103
|
post_install_message:
|
91
104
|
rdoc_options: []
|
92
105
|
require_paths:
|
93
106
|
- lib
|
94
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
108
|
requirements:
|
97
|
-
- -
|
109
|
+
- - ">="
|
98
110
|
- !ruby/object:Gem::Version
|
99
111
|
version: '0'
|
100
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
113
|
requirements:
|
103
|
-
- -
|
114
|
+
- - ">="
|
104
115
|
- !ruby/object:Gem::Version
|
105
116
|
version: '0'
|
106
117
|
requirements: []
|
107
118
|
rubyforge_project: papla
|
108
|
-
rubygems_version:
|
119
|
+
rubygems_version: 2.2.2
|
109
120
|
signing_key:
|
110
|
-
specification_version:
|
121
|
+
specification_version: 4
|
111
122
|
summary: Use Ruby to convert numbers into Polish and English words
|
112
123
|
test_files: []
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm --create 1.9.3@papla
|