geo_vectors 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,15 +1,16 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'geo_calc', '~> 0.7.0'
3
+ gem 'geo_calc', '~> 0.7.4'
4
4
  gem 'proxy_party', '~> 0.2.1'
5
- gem 'sugar-high', '>= 0.4.5'
5
+ gem 'sugar-high', '~> 0.4.6.3'
6
6
  gem 'activesupport', '>=3'
7
7
 
8
8
  # Add dependencies to develop your gem here.
9
9
  # Include everything needed to run rake, tests, features, etc.
10
10
  group :development do
11
- gem "rspec", ">= 2.4.0"
12
- gem "bundler", ">= 1.0.0"
13
- gem "jeweler", ">= 1.6.0"
14
- gem "rcov", ">= 0"
11
+ gem 'geo_point', '~> 0.2.3'
12
+ gem "rspec", ">= 2.4.0"
13
+ gem "bundler", ">= 1.0.6"
14
+ gem "jeweler", ">= 1.6.2"
15
+ gem "rcov", ">= 0"
15
16
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{geo_vectors}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Kristian Mandrup}]
12
- s.date = %q{2011-06-11}
12
+ s.date = %q{2011-06-19}
13
13
  s.description = %q{Works with geo_calc and other geo libraries}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -80,26 +80,28 @@ Gem::Specification.new do |s|
80
80
  s.specification_version = 3
81
81
 
82
82
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
83
- s.add_runtime_dependency(%q<geo_calc>, ["~> 0.7.0"])
83
+ s.add_runtime_dependency(%q<geo_calc>, ["~> 0.7.4"])
84
84
  s.add_runtime_dependency(%q<proxy_party>, ["~> 0.2.1"])
85
- s.add_runtime_dependency(%q<sugar-high>, [">= 0.4.5"])
85
+ s.add_runtime_dependency(%q<sugar-high>, ["~> 0.4.6.3"])
86
86
  s.add_runtime_dependency(%q<activesupport>, [">= 3"])
87
+ s.add_development_dependency(%q<geo_point>, ["~> 0.2.3"])
87
88
  s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
88
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
89
- s.add_development_dependency(%q<jeweler>, [">= 1.6.0"])
89
+ s.add_development_dependency(%q<bundler>, [">= 1.0.6"])
90
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.2"])
90
91
  s.add_development_dependency(%q<rcov>, [">= 0"])
91
92
  s.add_runtime_dependency(%q<proxy_party>, [">= 0.2.1"])
92
93
  s.add_runtime_dependency(%q<sugar-high>, [">= 0.4.1"])
93
94
  s.add_runtime_dependency(%q<geo_calc>, [">= 0.5.4"])
94
95
  s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
95
96
  else
96
- s.add_dependency(%q<geo_calc>, ["~> 0.7.0"])
97
+ s.add_dependency(%q<geo_calc>, ["~> 0.7.4"])
97
98
  s.add_dependency(%q<proxy_party>, ["~> 0.2.1"])
98
- s.add_dependency(%q<sugar-high>, [">= 0.4.5"])
99
+ s.add_dependency(%q<sugar-high>, ["~> 0.4.6.3"])
99
100
  s.add_dependency(%q<activesupport>, [">= 3"])
101
+ s.add_dependency(%q<geo_point>, ["~> 0.2.3"])
100
102
  s.add_dependency(%q<rspec>, [">= 2.4.0"])
101
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
102
- s.add_dependency(%q<jeweler>, [">= 1.6.0"])
103
+ s.add_dependency(%q<bundler>, [">= 1.0.6"])
104
+ s.add_dependency(%q<jeweler>, [">= 1.6.2"])
103
105
  s.add_dependency(%q<rcov>, [">= 0"])
104
106
  s.add_dependency(%q<proxy_party>, [">= 0.2.1"])
105
107
  s.add_dependency(%q<sugar-high>, [">= 0.4.1"])
@@ -107,13 +109,14 @@ Gem::Specification.new do |s|
107
109
  s.add_dependency(%q<rspec>, [">= 2.5.0"])
108
110
  end
109
111
  else
110
- s.add_dependency(%q<geo_calc>, ["~> 0.7.0"])
112
+ s.add_dependency(%q<geo_calc>, ["~> 0.7.4"])
111
113
  s.add_dependency(%q<proxy_party>, ["~> 0.2.1"])
112
- s.add_dependency(%q<sugar-high>, [">= 0.4.5"])
114
+ s.add_dependency(%q<sugar-high>, ["~> 0.4.6.3"])
113
115
  s.add_dependency(%q<activesupport>, [">= 3"])
116
+ s.add_dependency(%q<geo_point>, ["~> 0.2.3"])
114
117
  s.add_dependency(%q<rspec>, [">= 2.4.0"])
115
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
116
- s.add_dependency(%q<jeweler>, [">= 1.6.0"])
118
+ s.add_dependency(%q<bundler>, [">= 1.0.6"])
119
+ s.add_dependency(%q<jeweler>, [">= 1.6.2"])
117
120
  s.add_dependency(%q<rcov>, [">= 0"])
118
121
  s.add_dependency(%q<proxy_party>, [">= 0.2.1"])
119
122
  s.add_dependency(%q<sugar-high>, [">= 0.4.1"])
@@ -1,3 +1,4 @@
1
+ # extends GeoPoint with methods to add and subtract vectors etc.
1
2
  class GeoPoint
2
3
  include GeoCalc
3
4
 
@@ -28,6 +29,5 @@ class GeoPoint
28
29
 
29
30
  def geo_point
30
31
  self
31
- end
32
-
32
+ end
33
33
  end
@@ -4,6 +4,8 @@ require 'proxy_party'
4
4
  require 'geo_vectors/point_vector/vector_ops'
5
5
  require 'geo_vectors/point_vector/point_ops'
6
6
 
7
+ require 'geo_point'
8
+
7
9
  class PointVector < GeoVector
8
10
  include GeoCalc
9
11
  include VectorOps
@@ -20,7 +22,7 @@ class PointVector < GeoVector
20
22
  @point = GeoPoint.new *args
21
23
  end
22
24
  end
23
-
25
+
24
26
  def self.origin
25
27
  [0, 0].geo_point
26
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_vectors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-11 00:00:00.000000000Z
12
+ date: 2011-06-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: geo_calc
16
- requirement: &2160020880 !ruby/object:Gem::Requirement
16
+ requirement: &2153864920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.0
21
+ version: 0.7.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160020880
24
+ version_requirements: *2153864920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: proxy_party
27
- requirement: &2160020360 !ruby/object:Gem::Requirement
27
+ requirement: &2153864420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,21 +32,21 @@ dependencies:
32
32
  version: 0.2.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2160020360
35
+ version_requirements: *2153864420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sugar-high
38
- requirement: &2160019780 !ruby/object:Gem::Requirement
38
+ requirement: &2153863940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ! '>='
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 0.4.5
43
+ version: 0.4.6.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2160019780
46
+ version_requirements: *2153863940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: activesupport
49
- requirement: &2160019220 !ruby/object:Gem::Requirement
49
+ requirement: &2153863460 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,21 @@ dependencies:
54
54
  version: '3'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2160019220
57
+ version_requirements: *2153863460
58
+ - !ruby/object:Gem::Dependency
59
+ name: geo_point
60
+ requirement: &2153862900 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 0.2.3
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *2153862900
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: rspec
60
- requirement: &2160018540 !ruby/object:Gem::Requirement
71
+ requirement: &2153862380 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ! '>='
@@ -65,32 +76,32 @@ dependencies:
65
76
  version: 2.4.0
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *2160018540
79
+ version_requirements: *2153862380
69
80
  - !ruby/object:Gem::Dependency
70
81
  name: bundler
71
- requirement: &2160017920 !ruby/object:Gem::Requirement
82
+ requirement: &2153861840 !ruby/object:Gem::Requirement
72
83
  none: false
73
84
  requirements:
74
85
  - - ! '>='
75
86
  - !ruby/object:Gem::Version
76
- version: 1.0.0
87
+ version: 1.0.6
77
88
  type: :development
78
89
  prerelease: false
79
- version_requirements: *2160017920
90
+ version_requirements: *2153861840
80
91
  - !ruby/object:Gem::Dependency
81
92
  name: jeweler
82
- requirement: &2160017300 !ruby/object:Gem::Requirement
93
+ requirement: &2153861320 !ruby/object:Gem::Requirement
83
94
  none: false
84
95
  requirements:
85
96
  - - ! '>='
86
97
  - !ruby/object:Gem::Version
87
- version: 1.6.0
98
+ version: 1.6.2
88
99
  type: :development
89
100
  prerelease: false
90
- version_requirements: *2160017300
101
+ version_requirements: *2153861320
91
102
  - !ruby/object:Gem::Dependency
92
103
  name: rcov
93
- requirement: &2160016780 !ruby/object:Gem::Requirement
104
+ requirement: &2153860820 !ruby/object:Gem::Requirement
94
105
  none: false
95
106
  requirements:
96
107
  - - ! '>='
@@ -98,10 +109,10 @@ dependencies:
98
109
  version: '0'
99
110
  type: :development
100
111
  prerelease: false
101
- version_requirements: *2160016780
112
+ version_requirements: *2153860820
102
113
  - !ruby/object:Gem::Dependency
103
114
  name: proxy_party
104
- requirement: &2160016080 !ruby/object:Gem::Requirement
115
+ requirement: &2153860340 !ruby/object:Gem::Requirement
105
116
  none: false
106
117
  requirements:
107
118
  - - ! '>='
@@ -109,10 +120,10 @@ dependencies:
109
120
  version: 0.2.1
110
121
  type: :runtime
111
122
  prerelease: false
112
- version_requirements: *2160016080
123
+ version_requirements: *2153860340
113
124
  - !ruby/object:Gem::Dependency
114
125
  name: sugar-high
115
- requirement: &2160015500 !ruby/object:Gem::Requirement
126
+ requirement: &2153859820 !ruby/object:Gem::Requirement
116
127
  none: false
117
128
  requirements:
118
129
  - - ! '>='
@@ -120,10 +131,10 @@ dependencies:
120
131
  version: 0.4.1
121
132
  type: :runtime
122
133
  prerelease: false
123
- version_requirements: *2160015500
134
+ version_requirements: *2153859820
124
135
  - !ruby/object:Gem::Dependency
125
136
  name: geo_calc
126
- requirement: &2160014940 !ruby/object:Gem::Requirement
137
+ requirement: &2153859300 !ruby/object:Gem::Requirement
127
138
  none: false
128
139
  requirements:
129
140
  - - ! '>='
@@ -131,10 +142,10 @@ dependencies:
131
142
  version: 0.5.4
132
143
  type: :runtime
133
144
  prerelease: false
134
- version_requirements: *2160014940
145
+ version_requirements: *2153859300
135
146
  - !ruby/object:Gem::Dependency
136
147
  name: rspec
137
- requirement: &2160014420 !ruby/object:Gem::Requirement
148
+ requirement: &2153858800 !ruby/object:Gem::Requirement
138
149
  none: false
139
150
  requirements:
140
151
  - - ! '>='
@@ -142,7 +153,7 @@ dependencies:
142
153
  version: 2.5.0
143
154
  type: :development
144
155
  prerelease: false
145
- version_requirements: *2160014420
156
+ version_requirements: *2153858800
146
157
  description: Works with geo_calc and other geo libraries
147
158
  email: kmandrup@gmail.com
148
159
  executables: []
@@ -218,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
229
  version: '0'
219
230
  segments:
220
231
  - 0
221
- hash: 1014612265415982158
232
+ hash: -2574814434983014796
222
233
  required_rubygems_version: !ruby/object:Gem::Requirement
223
234
  none: false
224
235
  requirements: