glw 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/glw.rb +2 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7e0f7398adeb038e08845ff62060b8e9261c9d8
|
4
|
+
data.tar.gz: 39b18ca199a24b490f95549146da09d8ea8f62ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 434833abef38f57ab3d0de92575a51fb51c41326302193956d85e7b5fcf4aa5960c6669cfa1672c8d5ae3c9afd7feec8882e0797d81262949259beba56cdc6cb
|
7
|
+
data.tar.gz: b0b0ee0ff955057ae9d31651b22a3342d18eb969eb4fd4a2f45a82e4894975bd44680b98c6d8b36ec4692d4b1e1cd2b74723fafab0a43fb03345ba076ae0f32b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/glw.rb
CHANGED
@@ -8,6 +8,7 @@ require 'geodesic'
|
|
8
8
|
require 'recordx_sqlite'
|
9
9
|
|
10
10
|
|
11
|
+
|
11
12
|
class Glw
|
12
13
|
|
13
14
|
def initialize(dbfile='glw.db')
|
@@ -38,7 +39,7 @@ class Glw
|
|
38
39
|
street_number types)
|
39
40
|
|
40
41
|
h = fields.inject({}) {|hash, x| hash.merge(x => loc.method(x).call) }
|
41
|
-
h.merge({relative_distance: d, relative_bearing: b})
|
42
|
+
OpenStruct.new h.merge({relative_distance: d, relative_bearing: b}).freeze
|
42
43
|
|
43
44
|
end
|
44
45
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|