kenyacodes 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ file.reference.kenyacodes-lib=F:\\kenyacodes\\lib
2
+ file.reference.kenyacodes-test=F:\\kenyacodes\\test
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project-private xmlns="http://www.netbeans.org/ns/project-private/1">
3
+ <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
4
+ </project-private>
@@ -0,0 +1,6 @@
1
+ file.reference.kenyacodes-lib=lib
2
+ file.reference.kenyacodes-test=test
3
+ main.file=
4
+ source.encoding=UTF-8
5
+ src.dir=${file.reference.kenyacodes-lib}
6
+ test.src.dir=${file.reference.kenyacodes-test}
@@ -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
+