drifter 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/drifter.gemspec CHANGED
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_dependency 'json', '~> 1.4.6'
21
+ s.add_development_dependency 'fakeweb'
21
22
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Drifter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -20,7 +20,7 @@ class LocatableTest < Test::Unit::TestCase
20
20
 
21
21
 
22
22
  # nodoc
23
- def test_location
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 test_location_setter
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: 27
5
- prerelease: false
4
+ hash: 25
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-22 00:00:00 +00:00
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.3.7
119
+ rubygems_version: 1.4.2
106
120
  signing_key:
107
121
  specification_version: 3
108
122
  summary: Simple geocoding library for ruby