geonames 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/geonames-0.2.2.gem +0 -0
- data/geonames.gemspec +1 -1
- data/lib/postal_code_search_criteria.rb +6 -1
- metadata +47 -40
- data/geonames-0.1.0.gem +0 -0
- data/geonames-0.2.0.gem +0 -0
data/geonames-0.2.2.gem
ADDED
File without changes
|
data/geonames.gemspec
CHANGED
@@ -27,10 +27,11 @@ module Geonames
|
|
27
27
|
attr :style
|
28
28
|
attr :max_rows
|
29
29
|
attr :is_or_operator
|
30
|
+
attr :radius
|
30
31
|
|
31
32
|
attr_writer :postal_code, :place_name, :country_code
|
32
33
|
attr_writer :latitude, :longitude, :style
|
33
|
-
attr_writer :max_rows, :is_or_operator
|
34
|
+
attr_writer :max_rows, :is_or_operator, :radius
|
34
35
|
|
35
36
|
def initialize
|
36
37
|
@is_or_operator = false
|
@@ -66,6 +67,10 @@ module Geonames
|
|
66
67
|
if !@max_rows.nil?
|
67
68
|
url = url + "&maxRows=" + CGI::escape( @max_rows )
|
68
69
|
end
|
70
|
+
|
71
|
+
if !@radius.nil?
|
72
|
+
url = url + "&radius=" + CGI::escape( @radius.to_s )
|
73
|
+
end
|
69
74
|
|
70
75
|
if @is_or_operator
|
71
76
|
url = url + "&operator=OR"
|
metadata
CHANGED
@@ -1,41 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.0
|
3
|
-
specification_version: 1
|
4
2
|
name: geonames
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date: 2007-04-02 00:00:00 -04:00
|
8
|
-
summary: Ruby library for Geonames Web Services (http://www.geonames.org/export/)
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: adamw@tbcn.ca
|
12
|
-
homepage: http://www.tbcn.ca/ruby_geonames
|
13
|
-
rubyforge_project:
|
14
|
-
description:
|
15
|
-
autorequire:
|
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: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.2.2
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Adam Wisniewski
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-01-09 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: adamw@tbcn.ca
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
31
24
|
files:
|
32
|
-
- geonames-0.
|
33
|
-
- geonames-0.2.0.gem
|
25
|
+
- geonames-0.2.2.gem
|
34
26
|
- geonames.gemspec
|
35
27
|
- lib
|
36
|
-
- nbproject
|
37
|
-
- README
|
38
|
-
- test
|
39
28
|
- lib/address.rb
|
40
29
|
- lib/country_subdivision.rb
|
41
30
|
- lib/geonames.rb
|
@@ -50,22 +39,40 @@ files:
|
|
50
39
|
- lib/toponym_search_result.rb
|
51
40
|
- lib/web_service.rb
|
52
41
|
- lib/wikipedia_article.rb
|
42
|
+
- nbproject
|
53
43
|
- nbproject/private
|
54
|
-
- nbproject/project.properties
|
55
|
-
- nbproject/project.xml
|
56
44
|
- nbproject/private/private.properties
|
57
45
|
- nbproject/private/private.xml
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
extra_rdoc_files:
|
46
|
+
- nbproject/private/profiler
|
47
|
+
- nbproject/project.properties
|
48
|
+
- nbproject/project.xml
|
63
49
|
- README
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
- test
|
51
|
+
has_rdoc: true
|
52
|
+
homepage: http://www.tbcn.ca/ruby_geonames
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
67
55
|
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: "0"
|
63
|
+
version:
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
version:
|
68
70
|
requirements: []
|
69
71
|
|
70
|
-
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 0.9.5
|
74
|
+
signing_key:
|
75
|
+
specification_version: 2
|
76
|
+
summary: Ruby library for Geonames Web Services (http://www.geonames.org/export/)
|
77
|
+
test_files: []
|
71
78
|
|
data/geonames-0.1.0.gem
DELETED
Binary file
|
data/geonames-0.2.0.gem
DELETED
Binary file
|