drifter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/drifter.gemspec +1 -0
- data/lib/drifter/location/locatable.rb +0 -20
- data/lib/drifter/version.rb +1 -1
- data/test/locatable_test.rb +2 -2
- metadata +20 -6
data/drifter.gemspec
CHANGED
@@ -10,26 +10,6 @@ module Drifter
|
|
10
10
|
end
|
11
11
|
|
12
12
|
|
13
|
-
# returns an empty Drifter:;Location object with lat and lng
|
14
|
-
def location
|
15
|
-
loc = Drifter::Location.new
|
16
|
-
loc.lat = lat
|
17
|
-
loc.lng = lng
|
18
|
-
return loc
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
# sets lat and lng on the receiver using value. value can be any
|
23
|
-
# object that responds to lat() and lng() or a two-item [lat,lng] Array
|
24
|
-
# if value is nil, lat and lng are both set to nil
|
25
|
-
def location=(value)
|
26
|
-
lat, lng = nil, nil
|
27
|
-
lat, lng = Drifter.extract_latlng!(value) unless value.nil?
|
28
|
-
self.lat = lat
|
29
|
-
self.lng = lng
|
30
|
-
return value
|
31
|
-
end
|
32
|
-
|
33
13
|
end
|
34
14
|
end
|
35
15
|
end
|
data/lib/drifter/version.rb
CHANGED
data/test/locatable_test.rb
CHANGED
@@ -20,7 +20,7 @@ class LocatableTest < Test::Unit::TestCase
|
|
20
20
|
|
21
21
|
|
22
22
|
# nodoc
|
23
|
-
def
|
23
|
+
def dont_test_location
|
24
24
|
@widget.lat = 10
|
25
25
|
@widget.lng = 20
|
26
26
|
loc = @widget.location
|
@@ -35,7 +35,7 @@ class LocatableTest < Test::Unit::TestCase
|
|
35
35
|
|
36
36
|
|
37
37
|
# nodoc
|
38
|
-
def
|
38
|
+
def dont_test_location_setter
|
39
39
|
loc = Drifter::Location.new
|
40
40
|
loc.lat = 10
|
41
41
|
loc.lng = 20
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drifter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ahmed Adam
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-23 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -34,6 +34,20 @@ dependencies:
|
|
34
34
|
version: 1.4.6
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: fakeweb
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
37
51
|
description:
|
38
52
|
email:
|
39
53
|
executables: []
|
@@ -102,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
116
|
requirements: []
|
103
117
|
|
104
118
|
rubyforge_project: drifter
|
105
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.4.2
|
106
120
|
signing_key:
|
107
121
|
specification_version: 3
|
108
122
|
summary: Simple geocoding library for ruby
|