geokit 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === 1.4.1 / 2009-06-15
2
+ * Fixed Ruby 1.9.1 compat and load order (thanks Niels Ganser)
3
+
1
4
  === 1.4.0 / 2009-05-27
2
5
  * Added country code/viewport biasing to GoogleGeocoder. Added Bounds#to_span method
3
6
  * Added suggested_bounds (Geokit::Bounds) property to GeoLoc. (Google geocoder only)
data/Manifest.txt CHANGED
@@ -1,4 +1,3 @@
1
- .project
2
1
  History.txt
3
2
  Manifest.txt
4
3
  README.markdown
data/geokit.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{geokit}
5
- s.version = "1.4.0"
5
+ s.version = "1.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andre Lewis and Bill Eisenhauer"]
9
- s.date = %q{2009-04-11}
9
+ s.date = %q{2009-06-15}
10
10
  s.description = %q{Geokit Gem}
11
11
  s.email = ["andre@earthcode.com / bill_eisenhauer@yahoo.com"]
12
12
  s.extra_rdoc_files = ["Manifest.txt", "README.markdown"]
data/lib/geokit.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Geokit
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
4
4
  @@default_units = :miles
5
5
  @@default_formula = :sphere
@@ -22,7 +22,7 @@ module Geokit
22
22
  end
23
23
 
24
24
  path = File.expand_path(File.dirname(__FILE__))
25
- $: << path unless $:.include?(path)
25
+ $:.unshift path unless $:.include?(path)
26
26
  require 'geokit/geocoders'
27
27
  require 'geokit/mappable'
28
28
 
@@ -81,7 +81,7 @@ module Geokit
81
81
 
82
82
  def self.__define_accessors
83
83
  class_variables.each do |v|
84
- sym = v.delete("@").to_sym
84
+ sym = v.to_s.delete("@").to_sym
85
85
  unless self.respond_to? sym
86
86
  module_eval <<-EOS, __FILE__, __LINE__
87
87
  def self.#{sym}
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'test/unit'
2
4
  require 'lib/geokit'
3
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Lewis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-08 00:00:00 -07:00
12
+ date: 2009-06-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,6 @@ extra_rdoc_files:
33
33
  - History.txt
34
34
  - Manifest.txt
35
35
  files:
36
- - .project
37
36
  - History.txt
38
37
  - Manifest.txt
39
38
  - README.markdown
data/.project DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>geokit</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.rubypeople.rdt.core.rubybuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>org.rubypeople.rdt.core.rubynature</nature>
16
- </natures>
17
- </projectDescription>