geo_point 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,13 +1,12 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "geo_calc", '~> 0.7.5'
4
- gem "geo_units", '~> 0.2.1'
3
+ gem "geo_calc", '>= 0.7.7.1'
4
+ # gem "geo_units", '>= 0.3.1'
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
9
  gem "rspec", ">= 2.6.0"
10
- gem "bundler", "~> 1.0.6"
11
- gem "jeweler", "~> 1.6.2"
12
- gem "rcov", ">= 0"
10
+ gem "bundler", ">= 1.0.6"
11
+ gem "jeweler", ">= 1.6.2"
13
12
  end
data/README.textile CHANGED
@@ -17,6 +17,10 @@ Gemfile:
17
17
 
18
18
  $ bundle
19
19
 
20
+ h2. Status Sept 2012
21
+
22
+ Currently a few of the specs break. Please help Fix. They might be related to geo_calc and/or geo_units gems.
23
+
20
24
  h2. Quick start (Usage)
21
25
 
22
26
  First define the points on the globe you want to work with.
data/Rakefile CHANGED
@@ -31,19 +31,5 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
31
31
  spec.pattern = FileList['spec/**/*_spec.rb']
32
32
  end
33
33
 
34
- RSpec::Core::RakeTask.new(:rcov) do |spec|
35
- spec.pattern = 'spec/**/*_spec.rb'
36
- spec.rcov = true
37
- end
38
-
39
34
  task :default => :spec
40
35
 
41
- require 'rake/rdoctask'
42
- Rake::RDocTask.new do |rdoc|
43
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
-
45
- rdoc.rdoc_dir = 'rdoc'
46
- rdoc.title = "geo_point #{version}"
47
- rdoc.rdoc_files.include('README*')
48
- rdoc.rdoc_files.include('lib/**/*.rb')
49
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
data/geo_point.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{geo_point}
8
- s.version = "0.2.5"
7
+ s.name = "geo_point"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Kristian Mandrup}]
12
- s.date = %q{2011-06-20}
13
- s.description = %q{Allows for easy parsing of Strings, Hashes and Arrays into a GeoPoint with lat/long}
14
- s.email = %q{kmandrup@gmail.com}
11
+ s.authors = ["Kristian Mandrup"]
12
+ s.date = "2012-09-21"
13
+ s.description = "Allows for easy parsing of Strings, Hashes and Arrays into a GeoPoint with lat/long"
14
+ s.email = "kmandrup@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.textile"
@@ -37,37 +37,31 @@ Gem::Specification.new do |s|
37
37
  "spec/geo_point_spec.rb",
38
38
  "spec/spec_helper.rb"
39
39
  ]
40
- s.homepage = %q{http://github.com/kristianmandrup/geo_point}
41
- s.licenses = [%q{MIT}]
42
- s.require_paths = [%q{lib}]
43
- s.rubygems_version = %q{1.8.5}
44
- s.summary = %q{A GeoPoint encapsulates latitude, longitude and various geo calculations relative to itself}
40
+ s.homepage = "http://github.com/kristianmandrup/geo_point"
41
+ s.licenses = ["MIT"]
42
+ s.require_paths = ["lib"]
43
+ s.rubygems_version = "1.8.24"
44
+ s.summary = "A GeoPoint encapsulates latitude, longitude and various geo calculations relative to itself"
45
45
 
46
46
  if s.respond_to? :specification_version then
47
47
  s.specification_version = 3
48
48
 
49
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<geo_calc>, ["~> 0.7.5"])
51
- s.add_runtime_dependency(%q<geo_units>, ["~> 0.2.1"])
50
+ s.add_runtime_dependency(%q<geo_calc>, [">= 0.7.7.1"])
52
51
  s.add_development_dependency(%q<rspec>, [">= 2.6.0"])
53
- s.add_development_dependency(%q<bundler>, ["~> 1.0.6"])
54
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
55
- s.add_development_dependency(%q<rcov>, [">= 0"])
52
+ s.add_development_dependency(%q<bundler>, [">= 1.0.6"])
53
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.2"])
56
54
  else
57
- s.add_dependency(%q<geo_calc>, ["~> 0.7.5"])
58
- s.add_dependency(%q<geo_units>, ["~> 0.2.1"])
55
+ s.add_dependency(%q<geo_calc>, [">= 0.7.7.1"])
59
56
  s.add_dependency(%q<rspec>, [">= 2.6.0"])
60
- s.add_dependency(%q<bundler>, ["~> 1.0.6"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
62
- s.add_dependency(%q<rcov>, [">= 0"])
57
+ s.add_dependency(%q<bundler>, [">= 1.0.6"])
58
+ s.add_dependency(%q<jeweler>, [">= 1.6.2"])
63
59
  end
64
60
  else
65
- s.add_dependency(%q<geo_calc>, ["~> 0.7.5"])
66
- s.add_dependency(%q<geo_units>, ["~> 0.2.1"])
61
+ s.add_dependency(%q<geo_calc>, [">= 0.7.7.1"])
67
62
  s.add_dependency(%q<rspec>, [">= 2.6.0"])
68
- s.add_dependency(%q<bundler>, ["~> 1.0.6"])
69
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
70
- s.add_dependency(%q<rcov>, [">= 0"])
63
+ s.add_dependency(%q<bundler>, [">= 1.0.6"])
64
+ s.add_dependency(%q<jeweler>, [">= 1.6.2"])
71
65
  end
72
66
  end
73
67
 
data/lib/geo_point.rb CHANGED
@@ -128,6 +128,8 @@ class GeoPoint
128
128
 
129
129
  def to_coords points
130
130
  meth = :"to_#{coord_mode}"
131
+ puts "to_coords #{points.inspect} - #{coord_mode} - #{points.class}"
132
+ # return points.send(meth) if points.first.kind_of? String
131
133
  points.send(meth)
132
134
  end
133
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_point
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-20 00:00:00.000000000Z
12
+ date: 2012-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: geo_calc
16
- requirement: &2156427880 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.5
21
+ version: 0.7.7.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156427880
25
- - !ruby/object:Gem::Dependency
26
- name: geo_units
27
- requirement: &2156426420 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
- - - ~>
27
+ - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
- version: 0.2.1
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *2156426420
29
+ version: 0.7.7.1
36
30
  - !ruby/object:Gem::Dependency
37
31
  name: rspec
38
- requirement: &2156424900 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
34
  requirements:
41
35
  - - ! '>='
@@ -43,40 +37,44 @@ dependencies:
43
37
  version: 2.6.0
44
38
  type: :development
45
39
  prerelease: false
46
- version_requirements: *2156424900
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.6.0
47
46
  - !ruby/object:Gem::Dependency
48
47
  name: bundler
49
- requirement: &2156420900 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
50
49
  none: false
51
50
  requirements:
52
- - - ~>
51
+ - - ! '>='
53
52
  - !ruby/object:Gem::Version
54
53
  version: 1.0.6
55
54
  type: :development
56
55
  prerelease: false
57
- version_requirements: *2156420900
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.6
58
62
  - !ruby/object:Gem::Dependency
59
63
  name: jeweler
60
- requirement: &2156420160 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
61
65
  none: false
62
66
  requirements:
63
- - - ~>
67
+ - - ! '>='
64
68
  - !ruby/object:Gem::Version
65
69
  version: 1.6.2
66
70
  type: :development
67
71
  prerelease: false
68
- version_requirements: *2156420160
69
- - !ruby/object:Gem::Dependency
70
- name: rcov
71
- requirement: &2156419480 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
72
73
  none: false
73
74
  requirements:
74
75
  - - ! '>='
75
76
  - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *2156419480
77
+ version: 1.6.2
80
78
  description: Allows for easy parsing of Strings, Hashes and Arrays into a GeoPoint
81
79
  with lat/long
82
80
  email: kmandrup@gmail.com
@@ -120,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
118
  version: '0'
121
119
  segments:
122
120
  - 0
123
- hash: 2765007894958462153
121
+ hash: -3803070209572080734
124
122
  required_rubygems_version: !ruby/object:Gem::Requirement
125
123
  none: false
126
124
  requirements:
@@ -129,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
127
  version: '0'
130
128
  requirements: []
131
129
  rubyforge_project:
132
- rubygems_version: 1.8.5
130
+ rubygems_version: 1.8.24
133
131
  signing_key:
134
132
  specification_version: 3
135
133
  summary: A GeoPoint encapsulates latitude, longitude and various geo calculations