wikiloc 0.0.1 → 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.
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --tty
3
+ --format documentation
data/Guardfile ADDED
@@ -0,0 +1,9 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'rspec', :version => 2, :cli => '--format documentation' do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec/" }
8
+ end
9
+
@@ -2,7 +2,7 @@ Feature: locator submits location
2
2
 
3
3
  The locator submits a location. The application scrapes relevant data from Wikipedia.
4
4
  As a start, it will get the location's populations.
5
-
5
+
6
6
  Scenario: Asking for the capital of Israel
7
7
  Given I am not yet using wikiloc
8
8
  When I run `wikiloc` interactively
@@ -12,209 +12,609 @@ Feature: locator submits location
12
12
  And the output should contain "Enter location:"
13
13
  Then the output should contain "What do you want to know?"
14
14
  Then the output should contain "Jerusalem"
15
-
16
- Scenario Outline: All countries and their capitals
15
+
16
+ Scenario Outline: All countries and their data
17
17
  Given the location is "<location>"
18
18
  When I ask for "<data_type>"
19
19
  Then the data should be "<data>"
20
20
 
21
21
  Scenarios: All countries and their capitals
22
22
  | location | data_type | data |
23
- | Afghanistan | capital | Kabul |
24
- | Albania | capital | Tirana |
25
- | Algeria | capital | Algiers |
26
- | Andorra | capital | Andorra la Vella |
27
- | Angola | capital | Luanda |
28
- | Antigua and Barbuda | capital | Saint John's |
29
- | Argentina | capital | Buenos Aires |
30
- | Armenia | capital | Yerevan |
31
- | Australia | capital | Canberra |
32
- | Austria | capital | Vienna |
33
- | Azerbaijan | capital | Baku |
34
- | The Bahamas | capital | Nassau |
35
- | Bahrain | capital | Manama |
36
- | Bangladesh | capital | Dhaka |
37
- | Barbados | capital | Bridgetown |
38
- | Belarus | capital | Minsk |
39
- | Belgium | capital | Brussels |
40
- | Belize | capital | Belmopan |
41
- | Benin | capital | Porto-Novo |
42
- | Bhutan | capital | Thimphu |
43
- #| Bolivia | capital | La Paz (administrative); Sucre (judicial) |
44
- | Bosnia and Herzegovina | capital | Sarajevo |
45
- | Botswana | capital | Gaborone |
46
- #| Brazil | capital | Brasilia |
47
- | Brunei | capital | Bandar Seri Begawan |
48
- | Bulgaria | capital | Sofia |
49
- | Burkina Faso | capital | Ouagadougou |
50
- | Burundi | capital | Bujumbura |
51
- | Cambodia | capital | Phnom Penh |
52
- #| Cameroon | capital | Yaounde |
53
- | Canada | capital | Ottawa |
54
- | Cape Verde | capital | Praia |
55
- | Central African Republic | capital | Bangui |
56
- | Chad | capital | N'Djamena |
57
- | Chile | capital | Santiago |
58
- | China | capital | Beijing |
59
- | Colombia | capital | Bogotá |
60
- | Comoros | capital | Moroni |
61
- | Congo, Republic of the | capital | Brazzaville |
62
- | Congo, Democratic Republic of the | capital | Kinshasa |
63
- | Costa Rica | capital | San José |
64
- ##| Cote d'Ivoire | capital | Yamoussoukro (official); Abidjan (de facto) |
65
- | Croatia | capital | Zagreb |
66
- | Cuba | capital | Havana |
67
- | Cyprus | capital | Nicosia |
68
- | Czech Republic | capital | Prague |
69
- | Denmark | capital | Copenhagen |
70
- | Djibouti | capital | Djibouti |
71
- | Dominica | capital | Roseau |
72
- | Dominican Republic | capital | Santo Domingo |
73
- | East Timor | capital | Dili |
74
- | Ecuador | capital | Quito |
75
- | Egypt | capital | Cairo |
76
- | El Salvador | capital | San Salvador |
77
- #| Equatorial Guinea | capital | Malabo |
78
- | Eritrea | capital | Asmara |
79
- | Estonia | capital | Tallinn |
80
- | Ethiopia | capital | Addis Ababa |
81
- | Fiji | capital | Suva |
82
- | Finland | capital | Helsinki |
83
- | France | capital | Paris |
84
- | Gabon | capital | Libreville |
85
- | The Gambia | capital | Banjul |
86
- #| Georgia | capital | Tbilisi |
87
- | Germany | capital | Berlin |
88
- | Ghana | capital | Accra |
89
- | Greece | capital | Athens |
90
- | Grenada | capital | St. George’s |
91
- | Guatemala | capital | Guatemala City |
92
- | Guinea | capital | Conakry |
93
- | Guinea-Bissau | capital | Bissau |
94
- | Guyana | capital | Georgetown |
95
- | Haiti | capital | Port-au-Prince |
96
- | Honduras | capital | Tegucigalpa and Comayagüela |
97
- | Hungary | capital | Budapest |
98
- | Iceland | capital | Reykjavík |
99
- #| India | capital | New Delhi |
100
- | Indonesia | capital | Jakarta |
101
- | Iran | capital | Tehran |
102
- | Iraq | capital | Baghdad |
103
- #| Ireland | capital | Dublin |
104
- | Israel | capital | Jerusalem |
105
- | Italy | capital | Rome |
106
- | Jamaica | capital | Kingston |
107
- | Japan | capital | Tokyo |
108
- | Jordan | capital | Amman |
109
- | Kazakhstan | capital | Astana |
110
- | Kenya | capital | Nairobi |
111
- #| Kiribati | capital | Tarawa Atoll |
112
- | Korea, North | capital | Pyongyang |
113
- | Korea, South | capital | Seoul |
114
- | Kosovo | capital | Pristina (Prishtina or Priština) |
115
- | Kuwait | capital | Kuwait City |
116
- | Kyrgyzstan | capital | Bishkek |
117
- | Laos | capital | Vientiane |
118
- | Latvia | capital | Riga |
119
- | Lebanon | capital | Beirut |
120
- | Lesotho | capital | Maseru |
121
- | Liberia | capital | Monrovia |
122
- #| Libya | capital | Tripoli |
123
- #| Liechtenstein | capital | Vaduz |
124
- | Lithuania | capital | Vilnius |
125
- | Luxembourg | capital | Luxembourg |
126
- #| Macedonia | capital | Skopje |
127
- | Madagascar | capital | Antananarivo |
128
- | Malawi | capital | Lilongwe |
129
- | Malaysia | capital | Kuala Lumpur |
130
- | Maldives | capital | Malé |
131
- | Mali | capital | Bamako |
132
- | Malta | capital | Valletta |
133
- | Marshall Islands | capital | Majuro (Delap) |
134
- | Mauritania | capital | Nouakchott |
135
- | Mauritius | capital | Port Louis |
136
- | Mexico | capital | Mexico City |
137
- | Micronesia, Federated States of | capital | Palikir |
138
- #| Moldova | capital | Chisinau |
139
- #| Monaco | capital | Monaco |
140
- | Mongolia | capital | Ulan Bator |
141
- #| Montenegro | capital | Podgorica |
142
- | Morocco | capital | Rabat |
143
- | Mozambique | capital | Maputo |
144
- ##| Myanmar (Burma) | capital | Rangoon (Yangon); Naypyidaw or Nay Pyi Taw (administrative) |
145
- | Namibia | capital | Windhoek |
146
- ##| Nauru | capital | no official capital; government offices in Yaren District |
147
- | Nepal | capital | Kathmandu |
148
- | Netherlands | capital | Amsterdam |
149
- | New Zealand | capital | Wellington |
150
- | Nicaragua | capital | Managua |
151
- | Niger | capital | Niamey |
152
- | Nigeria | capital | Abuja |
153
- | Norway | capital | Oslo |
154
- | Oman | capital | Muscat |
155
- | Pakistan | capital | Islamabad |
156
- #| Palau | capital | Melekeok |
157
- | Panama | capital | Panama |
158
- | Papua New Guinea | capital | Port Moresby |
159
- | Paraguay | capital | Asunción |
160
- | Peru | capital | Lima |
161
- | Philippines | capital | Manila |
162
- | Poland | capital | Warsaw |
163
- | Portugal | capital | Lisbon |
164
- | Qatar | capital | Doha |
165
- | Romania | capital | Bucharest |
166
- | Russia | capital | Moscow |
167
- | Rwanda | capital | Kigali |
168
- | Saint Kitts and Nevis | capital | Basseterre |
169
- | Saint Lucia | capital | Castries |
170
- | Saint Vincent and the Grenadines | capital | Kingstown |
171
- | Samoa | capital | Apia |
172
- | San Marino | capital | City of San Marino |
173
- | Sao Tome and Principe | capital | São Tomé |
174
- | Saudi Arabia | capital | Riyadh |
175
- | Senegal | capital | Dakar |
176
- | Serbia | capital | Belgrade |
177
- | Seychelles | capital | Victoria |
178
- | Sierra Leone | capital | Freetown |
179
- #| Singapore | capital | Singapore |
180
- | Slovakia | capital | Bratislava |
181
- #| Slovenia | capital | Ljubljana |
182
- | Solomon Islands | capital | Honiara |
183
- | Somalia | capital | Mogadishu |
184
- ##| South Africa | capital | Pretoria (administrative); Cape Town (legislative); Bloemfontein (judiciary) |
185
- | South Sudan | capital | Juba |
186
- | Spain | capital | Madrid |
187
- ##| Sri Lanka | capital | Colombo; Sri Jayewardenepura Kotte (legislative) |
188
- | Sudan | capital | Khartoum |
189
- | Suriname | capital | Paramaribo |
190
- ##| Swaziland | capital | Mbabane |
191
- | Sweden | capital | Stockholm |
192
- #| Switzerland | capital | Bern |
193
- | Syria | capital | Damascus |
194
- #| Taiwan | capital | Taipei |
195
- | Tajikistan | capital | Dushanbe |
196
- | Tanzania | capital | Dodoma |
197
- #| Thailand | capital | Bangkok |
198
- | Togo | capital | Lomé |
199
- | Tonga | capital | Nukuʻalofa |
200
- #| Trinidad and Tobago | capital | Port-of-Spain |
201
- | Tunisia | capital | Tunis |
202
- | Turkey | capital | Ankara |
203
- | Turkmenistan | capital | Ashgabat |
204
- | Tuvalu | capital | Funafuti |
205
- | Uganda | capital | Kampala |
206
- | Ukraine | capital | Kiev |
207
- | United Arab Emirates | capital | Abu Dhabi |
208
- | United Kingdom | capital | London |
209
- | United States of America | capital | Washington, D.C. |
210
- | Uruguay | capital | Montevideo |
211
- | Uzbekistan | capital | Tashkent |
212
- | Vanuatu | capital | Port Vila |
213
- #| Vatican City (Holy See) | capital | Vatican City |
214
- | Venezuela | capital | Caracas |
215
- | Vietnam | capital | Hanoi |
216
- | Yemen | capital | Sana‘a |
217
- | Zambia | capital | Lusaka |
218
- | Zimbabwe | capital | Harare |
23
+ | Afghanistan | Capital | Kabul |
24
+ | Albania | Capital | Tirana |
25
+ | Algeria | Capital | Algiers |
26
+ | Andorra | Capital | Andorra la Vella |
27
+ | Angola | Capital | Luanda |
28
+ | Antigua and Barbuda | Capital | Saint John's |
29
+ | Argentina | Capital | Buenos Aires |
30
+ | Armenia | Capital | Yerevan |
31
+ | Australia | Capital | Canberra |
32
+ | Austria | Capital | Vienna |
33
+ | Azerbaijan | Capital | Baku |
34
+ | The Bahamas | Capital | Nassau |
35
+ | Bahrain | Capital | Manama |
36
+ | Bangladesh | Capital | Dhaka |
37
+ | Barbados | Capital | Bridgetown |
38
+ | Belarus | Capital | Minsk |
39
+ | Belgium | Capital | Brussels |
40
+ | Belize | Capital | Belmopan |
41
+ | Benin | Capital | Porto-Novo |
42
+ | Bhutan | Capital | Thimphu |
43
+ | Bolivia | Capital | Sucre |
44
+ | Bosnia and Herzegovina | Capital | Sarajevo |
45
+ | Botswana | Capital | Gaborone |
46
+ | Brazil | Capital | Brasília |
47
+ | Brunei | Capital | Bandar Seri Begawan |
48
+ | Bulgaria | Capital | Sofia |
49
+ | Burkina Faso | Capital | Ouagadougou |
50
+ | Burundi | Capital | Bujumbura |
51
+ | Cambodia | Capital | Phnom Penh |
52
+ | Cameroon | Capital | Yaoundé |
53
+ | Canada | Capital | Ottawa |
54
+ | Cape Verde | Capital | Praia |
55
+ | Central African Republic | Capital | Bangui |
56
+ | Chad | Capital | N'Djamena |
57
+ | Chile | Capital | Santiago |
58
+ | China | Capital | Beijing |
59
+ | Colombia | Capital | Bogotá |
60
+ | Comoros | Capital | Moroni |
61
+ | Congo, Republic of the | Capital | Brazzaville |
62
+ | Congo, Democratic Republic of the | Capital | Kinshasa |
63
+ | Costa Rica | Capital | San José |
64
+ | Cote d'Ivoire | Capital | Yamoussoukro |
65
+ | Croatia | Capital | Zagreb |
66
+ | Cuba | Capital | Havana |
67
+ | Cyprus | Capital | Nicosia |
68
+ | Czech Republic | Capital | Prague |
69
+ | Denmark | Capital | Copenhagen |
70
+ | Djibouti | Capital | Djibouti |
71
+ | Dominica | Capital | Roseau |
72
+ | Dominican Republic | Capital | Santo Domingo |
73
+ | East Timor | Capital | Dili |
74
+ | Ecuador | Capital | Quito |
75
+ | Egypt | Capital | Cairo |
76
+ | El Salvador | Capital | San Salvador |
77
+ | Equatorial Guinea | Capital | Malabo |
78
+ | Eritrea | Capital | Asmara |
79
+ | Estonia | Capital | Tallinn |
80
+ | Ethiopia | Capital | Addis Ababa |
81
+ | Fiji | Capital | Suva |
82
+ | Finland | Capital | Helsinki |
83
+ | France | Capital | Paris |
84
+ | Gabon | Capital | Libreville |
85
+ | The Gambia | Capital | Banjul |
86
+ | Georgia | Capital | Tbilisi |
87
+ | Germany | Capital | Berlin |
88
+ | Ghana | Capital | Accra |
89
+ | Greece | Capital | Athens |
90
+ | Grenada | Capital | St. George’s |
91
+ | Guatemala | Capital | Guatemala City |
92
+ | Guinea | Capital | Conakry |
93
+ | Guinea-Bissau | Capital | Bissau |
94
+ | Guyana | Capital | Georgetown |
95
+ | Haiti | Capital | Port-au-Prince |
96
+ | Honduras | Capital | Tegucigalpa |
97
+ | Hungary | Capital | Budapest |
98
+ | Iceland | Capital | Reykjavík |
99
+ | India | Capital | New Delhi |
100
+ | Indonesia | Capital | Jakarta |
101
+ | Iran | Capital | Tehran |
102
+ | Iraq | Capital | Baghdad |
103
+ | Ireland | Capital | Dublin |
104
+ | Israel | Capital | Jerusalem |
105
+ | Italy | Capital | Rome |
106
+ | Jamaica | Capital | Kingston |
107
+ | Japan | Capital | Tokyo |
108
+ | Jordan | Capital | Amman |
109
+ | Kazakhstan | Capital | Astana |
110
+ | Kenya | Capital | Nairobi |
111
+ | Kiribati | Capital | Tarawa |
112
+ | Korea, North | Capital | Pyongyang |
113
+ | Korea, South | Capital | Seoul |
114
+ | Kosovo | Capital | Pristina (Prishtina or Priština) |
115
+ | Kuwait | Capital | Kuwait City |
116
+ | Kyrgyzstan | Capital | Bishkek |
117
+ | Laos | Capital | Vientiane |
118
+ | Latvia | Capital | Riga |
119
+ | Lebanon | Capital | Beirut |
120
+ | Lesotho | Capital | Maseru |
121
+ | Liberia | Capital | Monrovia |
122
+ | Libya | Capital | Tripoli |
123
+ | Liechtenstein | Capital | Vaduz |
124
+ | Lithuania | Capital | Vilnius |
125
+ | Luxembourg | Capital | Luxembourg |
126
+ | Republic of Macedonia | Capital | Skopje |
127
+ | Madagascar | Capital | Antananarivo |
128
+ | Malawi | Capital | Lilongwe |
129
+ | Malaysia | Capital | Kuala Lumpur |
130
+ | Maldives | Capital | Malé |
131
+ | Mali | Capital | Bamako |
132
+ | Malta | Capital | Valletta |
133
+ | Marshall Islands | Capital | Majuro |
134
+ | Mauritania | Capital | Nouakchott |
135
+ | Mauritius | Capital | Port Louis |
136
+ | Mexico | Capital | Mexico City |
137
+ | Micronesia, Federated States of | Capital | Palikir |
138
+ | Moldova | Capital | Chisinau |
139
+ | Monaco | Capital | Monte Carlo |
140
+ | Mongolia | Capital | Ulan Bator |
141
+ | Montenegro | Capital | Podgorica |
142
+ | Morocco | Capital | Rabat |
143
+ | Mozambique | Capital | Maputo |
144
+ | Myanmar (Burma) | Capital | Naypyidaw |
145
+ | Namibia | Capital | Windhoek |
146
+ | Nauru | Capital | Yaren |
147
+ | Nepal | Capital | Kathmandu |
148
+ | Netherlands | Capital | Amsterdam |
149
+ | New Zealand | Capital | Wellington |
150
+ | Nicaragua | Capital | Managua |
151
+ | Niger | Capital | Niamey |
152
+ | Nigeria | Capital | Abuja |
153
+ | Norway | Capital | Oslo |
154
+ | Oman | Capital | Muscat |
155
+ | Pakistan | Capital | Islamabad |
156
+ | Palau | Capital | Melekeok |
157
+ | Panama | Capital | Panama City |
158
+ | Papua New Guinea | Capital | Port Moresby |
159
+ | Paraguay | Capital | Asunción |
160
+ | Peru | Capital | Lima |
161
+ | Philippines | Capital | Manila |
162
+ | Poland | Capital | Warsaw |
163
+ | Portugal | Capital | Lisbon |
164
+ | Puerto Rico | Capital | San Juan |
165
+ | Qatar | Capital | Doha |
166
+ | Romania | Capital | Bucharest |
167
+ | Russia | Capital | Moscow |
168
+ | Rwanda | Capital | Kigali |
169
+ | Saint Kitts and Nevis | Capital | Basseterre |
170
+ | Saint Lucia | Capital | Castries |
171
+ | Saint Vincent and the Grenadines | Capital | Kingstown |
172
+ | Samoa | Capital | Apia |
173
+ | San Marino | Capital | City of San Marino |
174
+ | Sao Tome and Principe | Capital | São Tomé |
175
+ | Saudi Arabia | Capital | Riyadh |
176
+ | Senegal | Capital | Dakar |
177
+ | Serbia | Capital | Belgrade |
178
+ | Seychelles | Capital | Victoria |
179
+ | Sierra Leone | Capital | Freetown |
180
+ | Singapore | Capital | Singapore |
181
+ | Slovakia | Capital | Bratislava |
182
+ | Slovenia | Capital | Ljubljana |
183
+ | Solomon Islands | Capital | Honiara |
184
+ | Somalia | Capital | Mogadishu |
185
+ | South Africa | Capital | Pretoria |
186
+ | South Sudan | Capital | Juba |
187
+ | Spain | Capital | Madrid |
188
+ | Sri Lanka | Capital | Sri Jayawardenapura Kotte |
189
+ | Sudan | Capital | Khartoum |
190
+ | Suriname | Capital | Paramaribo |
191
+ | Swaziland | Capital | Lobamba |
192
+ | Sweden | Capital | Stockholm |
193
+ | Switzerland | Capital | Bern |
194
+ | Syria | Capital | Damascus |
195
+ | Taiwan | Capital | Taipei City |
196
+ | Tajikistan | Capital | Dushanbe |
197
+ | Tanzania | Capital | Dodoma |
198
+ | Thailand | Capital | Bangkok (Thai: Krung Thep) |
199
+ | Togo | Capital | Lomé |
200
+ | Tonga | Capital | Nukuʻalofa |
201
+ | Trinidad and Tobago | Capital | Port of Spain |
202
+ | Tunisia | Capital | Tunis |
203
+ | Turkey | Capital | Ankara |
204
+ | Turkmenistan | Capital | Ashgabat |
205
+ | Tuvalu | Capital | Funafuti |
206
+ | Uganda | Capital | Kampala |
207
+ | Ukraine | Capital | Kiev |
208
+ | United Arab Emirates | Capital | Abu Dhabi |
209
+ | United Kingdom | Capital | London |
210
+ | United States of America | Capital | Washington, D.C. |
211
+ | Uruguay | Capital | Montevideo |
212
+ | Uzbekistan | Capital | Tashkent |
213
+ | Vanuatu | Capital | Port Vila |
214
+ | Vatican City | Capital | Vatican City |
215
+ | Venezuela | Capital | Caracas |
216
+ | Vietnam | Capital | Hanoi |
217
+ | Yemen | Capital | Sana‘a |
218
+ | Zambia | Capital | Lusaka |
219
+ | Zimbabwe | Capital | Harare |
220
+
221
+ Scenarios: All countries and their currencies
222
+ | location | data_type | data |
223
+ | Afghanistan | Currency | Afghani |
224
+ | Albania | Currency | Lek |
225
+ | Algeria | Currency | Algerian dinar |
226
+ | Andorra | Currency | Euro |
227
+ | Angola | Currency | Kwanza |
228
+ | Antigua and Barbuda | Currency | East Caribbean dollar |
229
+ | Argentina | Currency | Peso |
230
+ | Armenia | Currency | Dram |
231
+ | Australia | Currency | Australian dollar |
232
+ | Austria | Currency | Euro |
233
+ | Azerbaijan | Currency | Manat |
234
+ | The Bahamas | Currency | Bahamian dollar |
235
+ | Bahrain | Currency | Bahraini dinar |
236
+ | Bangladesh | Currency | Taka |
237
+ | Barbados | Currency | Barbadian dollar |
238
+ | Belarus | Currency | Belarusian ruble |
239
+ | Belgium | Currency | Euro ( |
240
+ | Belize | Currency | Belize dollar |
241
+ | Benin | Currency | West African CFA franc |
242
+ | Bhutan | Currency | Ngultrum |
243
+ | Bolivia | Currency | Boliviano |
244
+ | Bosnia and Herzegovina | Currency | Convertible Mark |
245
+ | Botswana | Currency | Pula |
246
+ | Brazil | Currency | Real |
247
+ | Brunei | Currency | Brunei dollar |
248
+ | Bulgaria | Currency | Lev |
249
+ | Burkina Faso | Currency | West African CFA franc |
250
+ | Burundi | Currency | Burundi franc |
251
+ | Cambodia | Currency | Riel |
252
+ | Cameroon | Currency | Central African CFA franc |
253
+ | Canada | Currency | Canadian dollar |
254
+ | Cape Verde | Currency | Cape Verdean escudo |
255
+ | Central African Republic | Currency | Central African CFA franc |
256
+ | Chad | Currency | Central African CFA franc |
257
+ | Chile | Currency | Peso |
258
+ | China | Currency | Renminbi (yuan) |
259
+ | Colombia | Currency | Peso |
260
+ | Comoros | Currency | Comorian franc |
261
+ | Congo, Republic of the | Currency | Central African CFA franc |
262
+ | Congo, Democratic Republic of the | Currency | Congolese franc |
263
+ | Costa Rica | Currency | Costa Rican colón |
264
+ | Cote d'Ivoire | Currency | West African CFA franc |
265
+ | Croatia | Currency | Kuna |
266
+ | Cuba | Currency | Cuban peso |
267
+ | Cyprus | Currency | Euro |
268
+ | Czech Republic | Currency | Czech koruna |
269
+ | Denmark | Currency | Danish krone |
270
+ | Djibouti | Currency | Franc |
271
+ | Dominica | Currency | East Caribbean dollar |
272
+ | Dominican Republic | Currency | Peso |
273
+ | East Timor (Timor-Leste) | Currency | US Dollar |
274
+ | Ecuador | Currency | U.S. dollar |
275
+ | Egypt | Currency | Egyptian pound |
276
+ | El Salvador | Currency | U.S. dollar |
277
+ | Equatorial Guinea | Currency | Central African CFA franc |
278
+ | Eritrea | Currency | Nakfa |
279
+ | Estonia | Currency | Euro |
280
+ | Ethiopia | Currency | Birr |
281
+ | Fiji | Currency | Fijian dollar |
282
+ | Finland | Currency | Euro |
283
+ | France | Currency | Euro, |
284
+ | Gabon | Currency | Central African CFA franc |
285
+ | The Gambia | Currency | Dalasi |
286
+ | Georgia | Currency | Lari |
287
+ | Germany | Currency | Euro |
288
+ | Ghana | Currency | Ghana cedi |
289
+ | Greece | Currency | Euro ( |
290
+ | Grenada | Currency | East Caribbean dollar |
291
+ | Guatemala | Currency | Quetzal |
292
+ | Guinea | Currency | Guinean franc |
293
+ | Guinea-Bissau | Currency | West African CFA franc |
294
+ | Guyana | Currency | Guyanese dollar |
295
+ | Haiti | Currency | Gourde |
296
+ | Honduras | Currency | Lempira |
297
+ | Hungary | Currency | Forint |
298
+ | Iceland | Currency | Icelandic króna |
299
+ | India | Currency | Indian rupee |
300
+ | Indonesia | Currency | Rupiah |
301
+ | Iran | Currency | Rial |
302
+ | Iraq | Currency | Iraqi dinar |
303
+ | Ireland | Currency | Euro (Formerly Irish Pound) |
304
+ | Israel | Currency | Shekel |
305
+ | Italy | Currency | Euro |
306
+ | Jamaica | Currency | Jamaican dollar |
307
+ | Japan | Currency | International Symbol |
308
+ | Jordan | Currency | Jordanian dinar |
309
+ | Kazakhstan | Currency | Tenge |
310
+ | Kenya | Currency | Kenyan shilling |
311
+ | Kiribati | Currency | Kiribati dollar |
312
+ | Korea, North | Currency | North Korean won |
313
+ | Korea, South | Currency | South Korean won |
314
+ | Kosovo | Currency | Euro ( |
315
+ | Kuwait | Currency | Kuwaiti dinar |
316
+ | Kyrgyzstan | Currency | Som |
317
+ | Laos | Currency | Kip |
318
+ | Latvia | Currency | Lats |
319
+ | Lebanon | Currency | Lebanese pound |
320
+ | Lesotho | Currency | Lesotho loti |
321
+ | Liberia | Currency | Liberian dollar |
322
+ | Libya | Currency | Dinar |
323
+ | Liechtenstein | Currency | Swiss franc |
324
+ | Lithuania | Currency | Lithuanian litas |
325
+ | Luxembourg | Currency | Euro |
326
+ | Macedonia | Currency | Denar |
327
+ | Madagascar | Currency | Malagasy ariary |
328
+ | Malawi | Currency | Kwacha |
329
+ | Malaysia | Currency | Ringgit |
330
+ | Maldives | Currency | Maldivian Rufiyaa |
331
+ | Mali | Currency | West African CFA franc |
332
+ | Malta | Currency | Euro ( |
333
+ | Marshall Islands | Currency | United States dollar |
334
+ | Mauritania | Currency | Ouguiya |
335
+ | Mauritius | Currency | Mauritian rupee |
336
+ | Mexico | Currency | Peso |
337
+ | Micronesia, Federated States of | Currency | United States dollar |
338
+ | Moldova | Currency | Moldovan leu |
339
+ | Monaco | Currency | Euro ( |
340
+ | Mongolia | Currency | Tögrög |
341
+ | Morocco | Currency | Moroccan dirham |
342
+ | Montenegro | Currency | Euro ( |
343
+ | Mozambique | Currency | Mozambican metical |
344
+ | Myanmar (Burma) | Currency | kyat |
345
+ | Namibia | Currency | Namibian dollar |
346
+ | Nauru | Currency | Usually the |
347
+ | Nepal | Currency | Nepalese rupee |
348
+ | Netherlands | Currency | Euro |
349
+ | New Zealand | Currency | New Zealand dollar |
350
+ | Nicaragua | Currency | Córdoba |
351
+ | Niger | Currency | West African CFA franc |
352
+ | Nigeria | Currency | Naira |
353
+ | Norway | Currency | Norwegian krone |
354
+ | Oman | Currency | Rial |
355
+ | Pakistan | Currency | Pakistani Rupee |
356
+ | Palau | Currency | US dollar |
357
+ | Panama | Currency | Balboa |
358
+ | Papua New Guinea | Currency | Papua New Guinean kina |
359
+ | Paraguay | Currency | Guaraní |
360
+ | Peru | Currency | Nuevo Sol |
361
+ | Philippines | Currency | Peso |
362
+ | Poland | Currency | Złoty |
363
+ | Portugal | Currency | Euro |
364
+ | Puerto Rico | Currency | United States dollar |
365
+ | Qatar | Currency | Riyal |
366
+ | Romania | Currency | Romanian leu |
367
+ | Russia | Currency | Ruble |
368
+ | Rwanda | Currency | Rwandan franc |
369
+ | Saint Kitts and Nevis | Currency | East Caribbean dollar |
370
+ | Saint Lucia | Currency | East Caribbean dollar |
371
+ | Saint Vincent and the Grenadines | Currency | East Caribbean dollar |
372
+ | Samoa | Currency | Tala |
373
+ | San Marino | Currency | Euro |
374
+ | Sao Tome and Principe | Currency | Dobra |
375
+ | Saudi Arabia | Currency | Saudi riyal |
376
+ | Senegal | Currency | CFA franc |
377
+ | Serbia | Currency | Serbian dinar |
378
+ | Seychelles | Currency | Seychellois rupee |
379
+ | Sierra Leone | Currency | Leone |
380
+ | Singapore | Currency | Singapore Dollar |
381
+ | Slovakia | Currency | Euro ( |
382
+ | Slovenia | Currency | Euro |
383
+ | Solomon Islands | Currency | Solomon Islands dollar |
384
+ | Somalia | Currency | Somali shilling |
385
+ | South Africa | Currency | Rand |
386
+ | South Sudan | Currency | South Sudanese pound |
387
+ | Spain | Currency | Euro |
388
+ | Sri Lanka | Currency | Sri Lankan Rupee |
389
+ | Sudan | Currency | Sudanese pound |
390
+ | Suriname | Currency | Surinamese dollar |
391
+ | Swaziland | Currency | Lilangeni |
392
+ | Sweden | Currency | Swedish krona |
393
+ | Switzerland | Currency | Swiss franc |
394
+ | Syria | Currency | Syrian pound |
395
+ | Taiwan | Currency | Taiwan New Dollar |
396
+ | Tajikistan | Currency | Somoni |
397
+ | Tanzania | Currency | Tanzanian shilling |
398
+ | Thailand | Currency | Baht |
399
+ | Togo | Currency | CFA franc |
400
+ | Tonga | Currency | Paʻanga |
401
+ | Trinidad and Tobago | Currency | Trinidad and Tobago dollar |
402
+ | Tunisia | Currency | Tunisian dinar |
403
+ | Turkey | Currency | Turkish lira |
404
+ | Turkmenistan | Currency | Turkmen new manat |
405
+ | Tuvalu | Currency | Tuvaluan dollar |
406
+ | Uganda | Currency | Ugandan shilling |
407
+ | Ukraine | Currency | Hryvnia |
408
+ | United Arab Emirates | Currency | UAE dirham |
409
+ | United Kingdom | Currency | Pound sterling |
410
+ | United States of America | Currency | United States dollar |
411
+ | Uruguay | Currency | Uruguayan peso |
412
+ | Uzbekistan | Currency | Uzbekistan som (O'zbekiston so'mi) |
413
+ | Vanuatu | Currency | Vanuatu vatu |
414
+ | Vatican City (Holy See) | Currency | Euro (€) |
415
+ | Venezuela | Currency | Bolívar fuerte |
416
+ | Vietnam | Currency | đồng |
417
+ | Yemen | Currency | Yemeni rial |
418
+ | Zambia | Currency | Zambian kwacha |
419
+ | Zimbabwe | Currency | Various Currencies (South African Rand (R), Botswana Pula (P), British Pound (£), the United States Dollar ($) and Euro (€)) |
420
+
421
+ Scenarios: All countries and their official languages
422
+ | location | data_type | data |
423
+ | Afghanistan | Language | Dari (Persian) |
424
+ | Albania | Language | Albanian |
425
+ | Algeria | Language | Arabic |
426
+ | Andorra | Language | Catalan |
427
+ | Angola | Language | Portuguese |
428
+ | Antigua and Barbuda | Language | English |
429
+ | Argentina | Language | Spanish |
430
+ | Armenia | Language | Armenian |
431
+ | Australia | Language | None |
432
+ | Austria | Language | German |
433
+ | Azerbaijan | Language | Azerbaijani |
434
+ | The Bahamas | Language | English |
435
+ | Bahrain | Language | Arabic |
436
+ | Bangladesh | Language | Bengali |
437
+ | Barbados | Language | English |
438
+ | Belarus | Language | Belarusian |
439
+ | Belgium | Language | Dutch |
440
+ | Belize | Language | English |
441
+ | Benin | Language | French |
442
+ | Bhutan | Language | Dzongkha |
443
+ | Bolivia | Language | Spanish |
444
+ | Bosnia and Herzegovina | Language | Bosnian |
445
+ | Botswana | Language | English |
446
+ | Brazil | Language | Portuguese |
447
+ | Brunei | Language | Bahasa Melayu |
448
+ | Bulgaria | Language | Bulgarian |
449
+ | Burkina Faso | Language | French |
450
+ | Burundi | Language | Kirundi |
451
+ | Cambodia | Language | Khmer |
452
+ | Cameroon | Language | French |
453
+ | Canada | Language | English |
454
+ | Cape Verde | Language | Portuguese |
455
+ | Central African Republic | Language | French |
456
+ | Chad | Language | French |
457
+ | Chile | Language | +TBD+ |
458
+ | China | Language | Putonghua[ |
459
+ | Colombia | Language | Spanish |
460
+ | Comoros | Language | Comorian |
461
+ | Congo, Republic of the | Language | French |
462
+ | Congo, Democratic Republic of the | Language | French |
463
+ | Costa Rica | Language | Spanish |
464
+ | Cote d'Ivoire | Language | French |
465
+ | Croatia | Language | Croatian |
466
+ | Cuba | Language | Spanish |
467
+ | Cyprus | Language | Greek |
468
+ | Czech Republic | Language | Czech |
469
+ | Denmark | Language | Danish |
470
+ | Djibouti | Language | \n |
471
+ | Dominica | Language | English |
472
+ | Dominican Republic | Language | Spanish |
473
+ | East Timor | Language | Tetum |
474
+ | Ecuador | Language | Spanish |
475
+ | Egypt | Language | Arabic |
476
+ | El Salvador | Language | Spanish |
477
+ | Equatorial Guinea | Language | \n |
478
+ | Eritrea | Language | Tigrinya |
479
+ | Estonia | Language | Estonian |
480
+ | Ethiopia | Language | Amharic |
481
+ | Fiji | Language | English |
482
+ | Finland | Language | Finnish |
483
+ | France | Language | French |
484
+ | Gabon | Language | French |
485
+ | The Gambia | Language | English |
486
+ | Georgia | Language | +TBD+ |
487
+ | Germany | Language | German |
488
+ | Ghana | Language | English |
489
+ | Greece | Language | Greek |
490
+ | Grenada | Language | English |
491
+ | Guatemala | Language | Spanish |
492
+ | Guinea | Language | French |
493
+ | Guinea-Bissau | Language | Portuguese |
494
+ | Guyana | Language | English |
495
+ | Haiti | Language | French |
496
+ | Honduras | Language | Spanish |
497
+ | Hungary | Language | Hungarian |
498
+ | Iceland | Language | Icelandic |
499
+ | India | Language | \n |
500
+ | Indonesia | Language | Indonesian |
501
+ | Iran | Language | Persian |
502
+ | Iraq | Language | Arabic |
503
+ | Ireland | Language | +TBD+ |
504
+ | Israel | Language | Hebrew |
505
+ | Italy | Language | Italian |
506
+ | Jamaica | Language | English |
507
+ | Japan | Language | None |
508
+ | Jordan | Language | Arabic |
509
+ | Kazakhstan | Language | Kazakh |
510
+ | Kenya | Language | Swahili |
511
+ | Kiribati | Language | English |
512
+ | Korea, North | Language | Korean |
513
+ | Korea, South | Language | Korean |
514
+ | Kosovo | Language | +TBD+ |
515
+ | Kuwait | Language | Arabic |
516
+ | Kyrgyzstan | Language | Kyrgyz |
517
+ | Laos | Language | Lao |
518
+ | Latvia | Language | Latvian |
519
+ | Lebanon | Language | Arabic |
520
+ | Lesotho | Language | English |
521
+ | Liberia | Language | English |
522
+ | Libya | Language | Arabic |
523
+ | Liechtenstein | Language | German |
524
+ | Lithuania | Language | Lithuanian |
525
+ | Luxembourg | Language | Luxembourgish |
526
+ | Republic of Macedonia | Language | Macedonian |
527
+ | Madagascar | Language | Malagasy |
528
+ | Malawi | Language | English |
529
+ | Malaysia | Language | Bahasa Malaysia |
530
+ | Maldives | Language | Dhivehi |
531
+ | Mali | Language | French |
532
+ | Malta | Language | Maltese |
533
+ | Marshall Islands | Language | English |
534
+ | Mauritania | Language | Arabic |
535
+ | Mauritius | Language | English |
536
+ | Mexico | Language | Spanish |
537
+ | Micronesia, Federated States of | Language | English |
538
+ | Moldova | Language | Moldovan |
539
+ | Monaco | Language | French |
540
+ | Mongolia | Language | Mongolian |
541
+ | Montenegro | Language | Montenegrin |
542
+ | Morocco | Language | Arabic |
543
+ | Mozambique | Language | Portuguese |
544
+ | Myanmar (Burma) | Language | Burmese |
545
+ | Namibia | Language | English |
546
+ | Nauru | Language | English |
547
+ | Nepal | Language | Nepali |
548
+ | Netherlands | Language | Dutch |
549
+ | New Zealand | Language | Māori |
550
+ | Nicaragua | Language | Spanish |
551
+ | Niger | Language | French |
552
+ | Nigeria | Language | English |
553
+ | Norway | Language | Norwegian |
554
+ | Oman | Language | Arabic |
555
+ | Pakistan | Language | Urdu |
556
+ | Palau | Language | English |
557
+ | Panama | Language | Spanish |
558
+ | Papua New Guinea | Language | English |
559
+ | Paraguay | Language | \n |
560
+ | Peru | Language | Spanish |
561
+ | Philippines | Language | \n |
562
+ | Poland | Language | Polish |
563
+ | Portugal | Language | Portuguese |
564
+ | Puerto Rico | Language | Spanish and English |
565
+ | Qatar | Language | Arabic |
566
+ | Romania | Language | Romanian |
567
+ | Russia | Language | Russian |
568
+ | Rwanda | Language | \n |
569
+ | Saint Kitts and Nevis | Language | English |
570
+ | Saint Lucia | Language | English |
571
+ | Saint Vincent and the Grenadines | Language | English |
572
+ | Samoa | Language | Samoan |
573
+ | San Marino | Language | Italian |
574
+ | Sao Tome and Principe | Language | Portuguese |
575
+ | Saudi Arabia | Language | Arabic |
576
+ | Senegal | Language | French |
577
+ | Serbia | Language | Serbian |
578
+ | Seychelles | Language | \n |
579
+ | Sierra Leone | Language | English |
580
+ | Singapore | Language | +TBD+ |
581
+ | Slovakia | Language | Slovak |
582
+ | Slovenia | Language | Slovene |
583
+ | Solomon Islands | Language | English |
584
+ | Somalia | Language | \n |
585
+ | South Africa | Language | \n |
586
+ | South Sudan | Language | English |
587
+ | Spain | Language | Spanish |
588
+ | Sri Lanka | Language | Sinhala |
589
+ | Sudan | Language | Arabic |
590
+ | Suriname | Language | Dutch |
591
+ | Swaziland | Language | English |
592
+ | Sweden | Language | Swedish |
593
+ | Switzerland | Language | German |
594
+ | Syria | Language | Arabic |
595
+ | Taiwan | Language | +TBD+ |
596
+ | Tajikistan | Language | Tajik (Persian) |
597
+ | Tanzania | Language | Swahili |
598
+ | Thailand | Language | Thai |
599
+ | Togo | Language | French |
600
+ | Tonga | Language | English |
601
+ | Trinidad and Tobago | Language | English |
602
+ | Tunisia | Language | Arabic |
603
+ | Turkey | Language | Turkish |
604
+ | Turkmenistan | Language | Turkmen |
605
+ | Tuvalu | Language | Tuvaluan |
606
+ | Uganda | Language | English |
607
+ | Ukraine | Language | Ukrainian |
608
+ | United Arab Emirates | Language | Arabic |
609
+ | United Kingdom | Language | English |
610
+ | United States of America | Language | None at federal level |
611
+ | Uruguay | Language | Spanish |
612
+ | Uzbekistan | Language | Uzbek |
613
+ | Vanuatu | Language | Bislama |
614
+ | Vatican City | Language | Italian |
615
+ | Venezuela | Language | Spanish |
616
+ | Vietnam | Language | Vietnamese |
617
+ | Yemen | Language | Arabic |
618
+ | Zambia | Language | English |
619
+ | Zimbabwe | Language | English |
219
620
 
220
-
@@ -2,53 +2,43 @@ module Wikiloc
2
2
  class InfoGetter
3
3
  def initialize(location, data_type)
4
4
  @location, @data_type = location, data_type
5
- @agent = Mechanize.new
6
- @agent.user_agent_alias = 'Mac Safari'
7
5
  end
8
-
6
+
9
7
  def page_url
10
8
  'http://en.wikipedia.org/wiki/'
11
9
  end
12
-
13
- def get_info
14
- @data_type = @data_type.downcase
15
10
 
16
- case @data_type
11
+ def get_info
12
+ case @data_type.downcase
17
13
  #when 'link'
18
14
  # 'http://en.wikipedia.org/wiki/' + @location
19
15
  when 'capital'
20
- xpath = "//*[.='Capital']"
16
+ find_data_in_table 'Capital'
17
+ when 'currency'
18
+ find_data_in_table 'Currency'
19
+ when 'language'
20
+ find_data_in_table 'Official language'
21
21
  else
22
- return :invalid
22
+ :invalid
23
23
  end
24
-
25
- find_data_in_table(xpath)
24
+ end
26
25
 
26
+ def agent
27
+ @agent ||= Mechanize.new.tap { |agent| agent.user_agent_alias = 'Mac Safari' }
27
28
  end
28
-
29
- def find_data_in_table(xpath)
30
- page = @agent.get(page_url + @location)
31
- data = page.parser.xpath(xpath)[0].parent.parent.children[2].children[0].text
32
- if data[0..4].eql?("Motto")
33
- data = page.parser.xpath(xpath)[0].parent.parent.children[5].children[2].text
34
- data = cut_number_off(data)
35
- elsif data[0..5].eql?("Anthem")
36
- data = page.parser.xpath(xpath)[0].parent.parent.children[4].children[2].text
37
- data = cut_number_off(data)
38
- end
39
- data
29
+
30
+ def find_data_in_table(datatype)
31
+ key_row = page.parser.xpath("//tr[contains(.,'#{datatype}')]").first
32
+ cut_number_off key_row.children[2].children.first.text
33
+ end
34
+
35
+ def page
36
+ @page ||= agent.get(page_url + @location)
40
37
  end
41
38
 
42
39
  def cut_number_off(data)
43
- string = ""
44
- data.each_char do |i|
45
- if (i.eql?('0') || i.eql?('1') || i.eql?('2') || i.eql?('3') || i.eql?('4') || i.eql?('5') || i.eql?('6') || i.eql?('7') || i.eql?('8') || i.eql?('9'))
46
- break
47
- else
48
- string = string + i
49
- end
50
- end
51
- string
40
+ data.gsub /[0-9]+.*/, ""
52
41
  end
42
+
53
43
  end
54
44
  end
@@ -1,3 +1,3 @@
1
1
  module Wikiloc
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -0,0 +1,6 @@
1
+ require 'wikiloc'
2
+
3
+ RSpec.configure do |config|
4
+ config.filter_run :focus => true
5
+ config.run_all_when_everything_filtered = true
6
+ end
@@ -0,0 +1 @@
1
+ require 'codebreaker'
@@ -0,0 +1,65 @@
1
+ require 'spec_helper'
2
+
3
+ module Wikiloc
4
+ describe InfoGetter do
5
+
6
+ context "Cutting off numbers (and the rest of the string) from strings" do
7
+ subject { InfoGetter.new nil, nil}
8
+
9
+ context "Cutting off the end of the string 'Hello123' (from the number on)" do
10
+ it "string 'Hello123' cut off from the number on ===> 'Hello'" do
11
+ subject.cut_number_off('Hello123').should == 'Hello'
12
+ end
13
+ end
14
+
15
+ context "Cutting off the end of the string 'Hello123 (from the number on)" do
16
+ it "string 'Hello123aaa' cut off from the number on ===> 'Hello'" do
17
+ subject.cut_number_off('Hello123aaa').should == 'Hello'
18
+ end
19
+ end
20
+
21
+ context "Cutting off the end of the string '123' (from the number on)" do
22
+ it "string '123' cut off from the number on ===> ''" do
23
+ subject.cut_number_off('123').should == ''
24
+ end
25
+ end
26
+ end
27
+
28
+ context "looking for the capital" do
29
+ subject { InfoGetter.new country, "capital" }
30
+
31
+ context "Countries that are being found on the first attempt" do
32
+ context "of France" do
33
+ let(:country) { 'France' }
34
+
35
+ its(:get_info) { should == "Paris" }
36
+
37
+ it "finds the capital of France on the wikipedia table" do
38
+ subject.find_data_in_table('Capital').should == "Paris"
39
+ end
40
+ end
41
+
42
+
43
+ context "of Israel" do
44
+ let(:country) { 'Israel' }
45
+
46
+ its(:get_info) { should == "Jerusalem" }
47
+
48
+ it "finds the capital of Israel on the wikipedia table" do
49
+ subject.find_data_in_table('Capital').should == "Jerusalem"
50
+ end
51
+ end
52
+
53
+ context "Germany" do
54
+ let(:country) { 'Germany' }
55
+
56
+ its(:get_info) { should == "Berlin" }
57
+
58
+ it "finds the capital of Germany on the wikipedia table" do
59
+ subject.find_data_in_table('Capital').should == "Berlin"
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ module Wikiloc
4
+ describe Interactor do
5
+
6
+ end
7
+ end
data/wikiloc.gemspec CHANGED
@@ -26,4 +26,5 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency %q<guard>, [">= 0.9.0"]
27
27
  s.add_development_dependency %q<guard-rspec>, [">= 0"]
28
28
  s.add_development_dependency %q<ruby_gntp>, [">= 0"]
29
+ s.add_development_dependency %q<guard-rspec>, [">= 0"]
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikiloc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
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: 2012-02-29 00:00:00.000000000 Z
12
+ date: 2012-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &17807560 !ruby/object:Gem::Requirement
16
+ requirement: &16598820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17807560
24
+ version_requirements: *16598820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &17807000 !ruby/object:Gem::Requirement
27
+ requirement: &16598280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *17807000
35
+ version_requirements: *16598280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &17806480 !ruby/object:Gem::Requirement
38
+ requirement: &16597740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.7.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *17806480
46
+ version_requirements: *16597740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cucumber
49
- requirement: &17806080 !ruby/object:Gem::Requirement
49
+ requirement: &16597220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *17806080
57
+ version_requirements: *16597220
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: aruba
60
- requirement: &17805460 !ruby/object:Gem::Requirement
60
+ requirement: &16596240 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *17805460
68
+ version_requirements: *16596240
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: &17804320 !ruby/object:Gem::Requirement
71
+ requirement: &16574820 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *17804320
79
+ version_requirements: *16574820
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: guard
82
- requirement: &17782760 !ruby/object:Gem::Requirement
82
+ requirement: &16573640 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.9.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *17782760
90
+ version_requirements: *16573640
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: guard-rspec
93
- requirement: &17781700 !ruby/object:Gem::Requirement
93
+ requirement: &16572620 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *17781700
101
+ version_requirements: *16572620
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: ruby_gntp
104
- requirement: &17780480 !ruby/object:Gem::Requirement
104
+ requirement: &16571380 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,7 +109,18 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *17780480
112
+ version_requirements: *16571380
113
+ - !ruby/object:Gem::Dependency
114
+ name: guard-rspec
115
+ requirement: &16570420 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *16570420
113
124
  description: ''
114
125
  email:
115
126
  - raffivar@gmail.com
@@ -120,7 +131,9 @@ extensions: []
120
131
  extra_rdoc_files: []
121
132
  files:
122
133
  - .gitignore
134
+ - .rspec
123
135
  - Gemfile
136
+ - Guardfile
124
137
  - README
125
138
  - Rakefile
126
139
  - bin/wikiloc
@@ -132,6 +145,10 @@ files:
132
145
  - lib/wikiloc/info_getter.rb
133
146
  - lib/wikiloc/interactor.rb
134
147
  - lib/wikiloc/version.rb
148
+ - spec/spec_helper.rb
149
+ - spec/spec_helper.rb~
150
+ - spec/wikiloc/info_getter_spec.rb
151
+ - spec/wikiloc/interactor_spec.rb
135
152
  - wikiloc.gemspec
136
153
  homepage: https://github.com/raffivar/wikiloc
137
154
  licenses: []