kenyacodes 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/Manifest.txt +7 -0
- data/README.txt +56 -0
- data/Rakefile +18 -0
- data/bin/kenyacodes +0 -0
- data/doc/classes/Kenyacodes.html +139 -0
- data/doc/classes/Kenyacodes/Postcodes.html +234 -0
- data/doc/classes/Kenyacodes/Postcodes.src/M000004.html +19 -0
- data/doc/classes/Kenyacodes/Postcodes.src/M000005.html +20 -0
- data/doc/classes/Kenyacodes/Postcodes.src/M000006.html +18 -0
- data/doc/classes/Kenyacodes/Postcodes.src/M000007.html +20 -0
- data/doc/classes/Kenyacodes/Postcodes.src/M000008.html +18 -0
- data/doc/classes/KenyacodesTest.html +167 -0
- data/doc/classes/KenyacodesTest.src/M000001.html +19 -0
- data/doc/classes/KenyacodesTest.src/M000002.html +19 -0
- data/doc/classes/KenyacodesTest.src/M000003.html +21 -0
- data/doc/created.rid +1 -0
- data/doc/files/lib/kenyacodes_rb.html +101 -0
- data/doc/files/test/test_kenyacodes_rb.html +109 -0
- data/doc/fr_class_index.html +29 -0
- data/doc/fr_file_index.html +28 -0
- data/doc/fr_method_index.html +34 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/kenyacodes.gemspec +14 -0
- data/lib/kenyacodes.rb +232 -0
- data/nbproject/private/private.properties +2 -0
- data/nbproject/private/private.xml +4 -0
- data/nbproject/project.properties +6 -0
- data/nbproject/project.xml +15 -0
- data/test/test_kenyacodes.rb +21 -0
- metadata +90 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project xmlns="http://www.netbeans.org/ns/project/1">
|
3
|
+
<type>org.netbeans.modules.ruby.rubyproject</type>
|
4
|
+
<configuration>
|
5
|
+
<data xmlns="http://www.netbeans.org/ns/ruby-project/1">
|
6
|
+
<name>kenyacodes</name>
|
7
|
+
<source-roots>
|
8
|
+
<root id="src.dir"/>
|
9
|
+
</source-roots>
|
10
|
+
<test-roots>
|
11
|
+
<root id="test.src.dir"/>
|
12
|
+
</test-roots>
|
13
|
+
</data>
|
14
|
+
</configuration>
|
15
|
+
</project>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'kenyacodes'
|
3
|
+
class KenyacodesTest < Test::Unit::TestCase
|
4
|
+
def test_postoffice
|
5
|
+
mycodes = Kenyacodes::Postcodes.new
|
6
|
+
assert_equal 'Kerugoya',mycodes.postoffice('10300')
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_postcode
|
10
|
+
mycodes = Kenyacodes::Postcodes.new
|
11
|
+
assert_equal '10300', mycodes.postcode('Kerugoya')
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_othercodes
|
15
|
+
provinces = Kenyacodes::Total_provinces
|
16
|
+
kenyacode = Kenyacodes::Kenya_international_code
|
17
|
+
assert_equal 254, kenyacode
|
18
|
+
assert_equal 8, provinces
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: kenyacodes
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 1.0.0
|
7
|
+
date: 2007-11-09 00:00:00 +03:00
|
8
|
+
summary: A library of Kenyan standard codes. This release contains postoffice codes for 670 postoffices and towns.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: georgkam@gmail.com
|
12
|
+
homepage:
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire: kenyacodes
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.8.2
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- george githinji
|
31
|
+
files:
|
32
|
+
- bin
|
33
|
+
- bin/kenyacodes
|
34
|
+
- doc
|
35
|
+
- doc/classes
|
36
|
+
- doc/classes/Kenyacodes
|
37
|
+
- doc/classes/Kenyacodes/Postcodes.html
|
38
|
+
- doc/classes/Kenyacodes/Postcodes.src
|
39
|
+
- doc/classes/Kenyacodes/Postcodes.src/M000004.html
|
40
|
+
- doc/classes/Kenyacodes/Postcodes.src/M000005.html
|
41
|
+
- doc/classes/Kenyacodes/Postcodes.src/M000006.html
|
42
|
+
- doc/classes/Kenyacodes/Postcodes.src/M000007.html
|
43
|
+
- doc/classes/Kenyacodes/Postcodes.src/M000008.html
|
44
|
+
- doc/classes/Kenyacodes.html
|
45
|
+
- doc/classes/KenyacodesTest.html
|
46
|
+
- doc/classes/KenyacodesTest.src
|
47
|
+
- doc/classes/KenyacodesTest.src/M000001.html
|
48
|
+
- doc/classes/KenyacodesTest.src/M000002.html
|
49
|
+
- doc/classes/KenyacodesTest.src/M000003.html
|
50
|
+
- doc/created.rid
|
51
|
+
- doc/files
|
52
|
+
- doc/files/lib
|
53
|
+
- doc/files/lib/kenyacodes_rb.html
|
54
|
+
- doc/files/test
|
55
|
+
- doc/files/test/test_kenyacodes_rb.html
|
56
|
+
- doc/fr_class_index.html
|
57
|
+
- doc/fr_file_index.html
|
58
|
+
- doc/fr_method_index.html
|
59
|
+
- doc/index.html
|
60
|
+
- doc/rdoc-style.css
|
61
|
+
- History.txt
|
62
|
+
- kenyacodes.gemspec
|
63
|
+
- lib
|
64
|
+
- lib/kenyacodes.rb
|
65
|
+
- Manifest.txt
|
66
|
+
- nbproject
|
67
|
+
- nbproject/private
|
68
|
+
- nbproject/private/private.properties
|
69
|
+
- nbproject/private/private.xml
|
70
|
+
- nbproject/project.properties
|
71
|
+
- nbproject/project.xml
|
72
|
+
- pkg
|
73
|
+
- Rakefile
|
74
|
+
- README.txt
|
75
|
+
- test
|
76
|
+
- test/test_kenyacodes.rb
|
77
|
+
test_files: []
|
78
|
+
|
79
|
+
rdoc_options: []
|
80
|
+
|
81
|
+
extra_rdoc_files: []
|
82
|
+
|
83
|
+
executables: []
|
84
|
+
|
85
|
+
extensions: []
|
86
|
+
|
87
|
+
requirements: []
|
88
|
+
|
89
|
+
dependencies: []
|
90
|
+
|