rwanda 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +33 -2
- data/lib/rwanda/data.csv +14838 -0
- data/lib/rwanda/version.rb +1 -1
- data/lib/rwanda.rb +104 -56
- data/rwanda.gemspec +1 -0
- data/spec/rwanda_spec.rb +59 -3
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmVjNTg1YzM0NjIzNmY3ZTdiMDM2YjY5MTJkYThjMzhkNjlmZGNjOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjkyOWU4NmQ1NmZhNGIxNThlNDllYzFjYzE4OTY4MmMxNDNlMjg2MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGJjMTY4NjQ1NTY1NmQzZmVhMGIzN2EyNzA2NjEyMGIxMDFkNjQzZGYxNTM2
|
10
|
+
OWNmODg4NmJmM2YzYzUzZWU0YWEzZDFhNTc1MjQ1ZDczYzNjZmNhNTJkYzE5
|
11
|
+
YWIzZTBiODk0NDY3MWI3YzcxOTg0MDA5ZTlhMjVkNzBmNGM0ZTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OThiY2UzMjZhZmNiMjMzMWFiMzM5OTEwOTE4OTY0NWEyYmQxOTUyNGI0M2Ji
|
14
|
+
ZWE3Y2FiZDVmMTFjNmNiNGUzOTI3ODJlOWIwNDdkZThiMmJmMDQxY2YzYjVj
|
15
|
+
NzI2N2NkMDlkZGZmMjgwZjBiOGZkYWI0ZDllZjc1YzBhODgxZWM=
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rwanda
|
2
2
|
|
3
|
-
Access geographic information about Rwanda.
|
3
|
+
Access geographic information about administrative divisions in Rwanda, i.e. provinces, districts, sectors, cells and villages.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -26,9 +26,40 @@ rw.provinces
|
|
26
26
|
rw.sectors_of 'Gasabo'
|
27
27
|
rw.district_of 'Giheke'
|
28
28
|
rw.sector_like 'Rukuma'
|
29
|
+
rw.is_district? 'Karongi'
|
30
|
+
rw.is_sector? 'Gashari'
|
31
|
+
rw.is_cell? 'Musasa'
|
32
|
+
rw.is_village? 'Kaduha'
|
33
|
+
# Rwanda#exist?(district, sector, cell, village)
|
34
|
+
rw.exist?('Karongi','Bwishyura','Kiniha','Nyarurembo')
|
35
|
+
rw.exist?('Karongi','Bwishyura','Nyarurembo')
|
29
36
|
```
|
30
37
|
|
31
|
-
|
38
|
+
Geographic information kindly provided by MINALOC. There are some minor spelling differences between this data and other sources available at sector level (I have not had any other source to compare with at cell and village level). In particular the following sectors seem to have alternative spellings:
|
39
|
+
|
40
|
+
| This gem uses | Others may use |
|
41
|
+
----------------|-----------------
|
42
|
+
| Gashari | Gishari |
|
43
|
+
| Gishali | Gishari |
|
44
|
+
| Kabagali | Kabagari |
|
45
|
+
| Mageregere | Mageragere |
|
46
|
+
| Mimuri | Mimuli |
|
47
|
+
| Musheri | Musheli |
|
48
|
+
| Nyakaliro | Nyakariro |
|
49
|
+
| Nyakiriba | Nyakiliba |
|
50
|
+
| Nyamugari | Nyamugali |
|
51
|
+
| Rugarika | Rugalika |
|
52
|
+
| Rusarabuye | Rusarabuge |
|
53
|
+
|
54
|
+
In some cases both spellings will exist, especially at cell and village level. I haven't attempted to "clean" the data I was given, except for the case.
|
55
|
+
|
56
|
+
The province names are all in English (i.e. *Eastern Province* instead of *Iburasirazuba*).
|
57
|
+
|
58
|
+
If you are not familiar with this data set, it's worth noting the following features:
|
59
|
+
* province and district names are unique
|
60
|
+
* sector, cell and village names are often repeated: two sectors in different districts may have the same name, or a sector, cell and village may all have the same name
|
61
|
+
* cells and villages may be named after the sectors and cells that they are in
|
62
|
+
* at the cell or village level, there may be multiple villages with the same name, differentiated by a number (in roman numerals) e.g. Matimba cell has seven "Umudugudu Wa"s
|
32
63
|
|
33
64
|
## Contributing
|
34
65
|
|