locationary 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NmUzNDEwN2M0NGRkMzhiOTk0NTVhZmUwZDFhYzZmYTY4YjhkZTA3Nw==
5
+ data.tar.gz: !binary |-
6
+ ODFjODBkNzc2YTQ2ZDdlNmNlNzliNjA2Y2M0ODZkNTIyOGQ0MjRkZg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZGZlYTVlM2M2MTMyZGYxODkyYWU0YjBkMGQxYzViYzIyYTlkNzNlZTkxYzEx
10
+ OGEzZDFmYTVlNGI3Y2RjZjMxZmNjNjFjNDhjNTY4YmMzNjlmNjgzMDZmZmFi
11
+ ZDJlYmFhN2M4OTVhMjY4OWMzZmI1NTJjYTA4NGNjZGY1NjAxODU=
12
+ data.tar.gz: !binary |-
13
+ OWRjMGQxMjE2ZDMwMmMxOWQ0ZWJlMDFlZDc5MDNiNTY3M2FiNzFmOTY2ZWIw
14
+ MDMyMzlhZGVhZGYwZmFmYTcyNzdhN2U1ODljNGU4YmNmNDRkNDczM2M5ZWUw
15
+ YTViYzBkMGRlNDBiMWJkMzI1ZWJhYzM4MGVhY2RiNzFmNDA4ZGE=
@@ -1,3 +1,3 @@
1
1
  module Locationary
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/locationary.rb CHANGED
@@ -45,7 +45,7 @@ module Locationary
45
45
  private
46
46
 
47
47
  def Locationary.load_data
48
- raw = File.read("#{Dir.pwd}/db/geonames_#{ENV['RACK_ENV']}.bin")
48
+ raw = File.read("#{File.dirname(__FILE__)}/../db/geonames_#{ENV['RACK_ENV']}.bin")
49
49
  @data = MessagePack.unpack(Snappy.inflate(raw))
50
50
  end
51
51
 
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locationary
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.1
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Oren Mazor
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-10 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  version_requirements: !ruby/object:Gem::Requirement
@@ -17,160 +16,140 @@ dependencies:
17
16
  - - ~>
18
17
  - !ruby/object:Gem::Version
19
18
  version: '1.3'
20
- none: false
21
- name: bundler
22
19
  type: :runtime
23
20
  prerelease: false
21
+ name: bundler
24
22
  requirement: !ruby/object:Gem::Requirement
25
23
  requirements:
26
24
  - - ~>
27
25
  - !ruby/object:Gem::Version
28
26
  version: '1.3'
29
- none: false
30
27
  - !ruby/object:Gem::Dependency
31
28
  version_requirements: !ruby/object:Gem::Requirement
32
29
  requirements:
33
30
  - - ! '>='
34
31
  - !ruby/object:Gem::Version
35
32
  version: '0'
36
- none: false
37
- name: rake
38
33
  type: :runtime
39
34
  prerelease: false
35
+ name: rake
40
36
  requirement: !ruby/object:Gem::Requirement
41
37
  requirements:
42
38
  - - ! '>='
43
39
  - !ruby/object:Gem::Version
44
40
  version: '0'
45
- none: false
46
41
  - !ruby/object:Gem::Dependency
47
42
  version_requirements: !ruby/object:Gem::Requirement
48
43
  requirements:
49
44
  - - ! '>='
50
45
  - !ruby/object:Gem::Version
51
46
  version: '0'
52
- none: false
53
- name: msgpack
54
47
  type: :runtime
55
48
  prerelease: false
49
+ name: msgpack
56
50
  requirement: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - ! '>='
59
53
  - !ruby/object:Gem::Version
60
54
  version: '0'
61
- none: false
62
55
  - !ruby/object:Gem::Dependency
63
56
  version_requirements: !ruby/object:Gem::Requirement
64
57
  requirements:
65
58
  - - ! '>='
66
59
  - !ruby/object:Gem::Version
67
60
  version: '0'
68
- none: false
69
- name: minitest
70
61
  type: :runtime
71
62
  prerelease: false
63
+ name: minitest
72
64
  requirement: !ruby/object:Gem::Requirement
73
65
  requirements:
74
66
  - - ! '>='
75
67
  - !ruby/object:Gem::Version
76
68
  version: '0'
77
- none: false
78
69
  - !ruby/object:Gem::Dependency
79
70
  version_requirements: !ruby/object:Gem::Requirement
80
71
  requirements:
81
72
  - - ! '>='
82
73
  - !ruby/object:Gem::Version
83
74
  version: '0'
84
- none: false
85
- name: zip
86
75
  type: :runtime
87
76
  prerelease: false
77
+ name: zip
88
78
  requirement: !ruby/object:Gem::Requirement
89
79
  requirements:
90
80
  - - ! '>='
91
81
  - !ruby/object:Gem::Version
92
82
  version: '0'
93
- none: false
94
83
  - !ruby/object:Gem::Dependency
95
84
  version_requirements: !ruby/object:Gem::Requirement
96
85
  requirements:
97
86
  - - ! '>='
98
87
  - !ruby/object:Gem::Version
99
88
  version: '0'
100
- none: false
101
- name: snappy
102
89
  type: :runtime
103
90
  prerelease: false
91
+ name: snappy
104
92
  requirement: !ruby/object:Gem::Requirement
105
93
  requirements:
106
94
  - - ! '>='
107
95
  - !ruby/object:Gem::Version
108
96
  version: '0'
109
- none: false
110
97
  - !ruby/object:Gem::Dependency
111
98
  version_requirements: !ruby/object:Gem::Requirement
112
99
  requirements:
113
100
  - - ! '>='
114
101
  - !ruby/object:Gem::Version
115
102
  version: '0'
116
- none: false
117
- name: pry
118
103
  type: :runtime
119
104
  prerelease: false
105
+ name: pry
120
106
  requirement: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - ! '>='
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
- none: false
126
111
  - !ruby/object:Gem::Dependency
127
112
  version_requirements: !ruby/object:Gem::Requirement
128
113
  requirements:
129
114
  - - ! '>='
130
115
  - !ruby/object:Gem::Version
131
116
  version: '0'
132
- none: false
133
- name: levenshtein-ffi
134
117
  type: :runtime
135
118
  prerelease: false
119
+ name: levenshtein-ffi
136
120
  requirement: !ruby/object:Gem::Requirement
137
121
  requirements:
138
122
  - - ! '>='
139
123
  - !ruby/object:Gem::Version
140
124
  version: '0'
141
- none: false
142
125
  - !ruby/object:Gem::Dependency
143
126
  version_requirements: !ruby/object:Gem::Requirement
144
127
  requirements:
145
128
  - - ! '>='
146
129
  - !ruby/object:Gem::Version
147
130
  version: '0'
148
- none: false
149
- name: kdtree
150
131
  type: :runtime
151
132
  prerelease: false
133
+ name: kdtree
152
134
  requirement: !ruby/object:Gem::Requirement
153
135
  requirements:
154
136
  - - ! '>='
155
137
  - !ruby/object:Gem::Version
156
138
  version: '0'
157
- none: false
158
139
  - !ruby/object:Gem::Dependency
159
140
  version_requirements: !ruby/object:Gem::Requirement
160
141
  requirements:
161
142
  - - ! '>='
162
143
  - !ruby/object:Gem::Version
163
144
  version: '0'
164
- none: false
165
- name: fast_xor
166
145
  type: :runtime
167
146
  prerelease: false
147
+ name: fast_xor
168
148
  requirement: !ruby/object:Gem::Requirement
169
149
  requirements:
170
150
  - - ! '>='
171
151
  - !ruby/object:Gem::Version
172
152
  version: '0'
173
- none: false
174
153
  description: Ruby Gem to normalize and auto-correct location information
175
154
  email:
176
155
  - oren.mazor@gmail.com
@@ -204,6 +183,7 @@ files:
204
183
  homepage: ''
205
184
  licenses:
206
185
  - MIT
186
+ metadata: {}
207
187
  post_install_message:
208
188
  rdoc_options: []
209
189
  require_paths:
@@ -213,17 +193,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
193
  - - ! '>='
214
194
  - !ruby/object:Gem::Version
215
195
  version: '0'
216
- none: false
217
196
  required_rubygems_version: !ruby/object:Gem::Requirement
218
197
  requirements:
219
198
  - - ! '>='
220
199
  - !ruby/object:Gem::Version
221
200
  version: '0'
222
- none: false
223
201
  requirements: []
224
202
  rubyforge_project:
225
- rubygems_version: 1.8.23
203
+ rubygems_version: 2.0.6
226
204
  signing_key:
227
- specification_version: 3
205
+ specification_version: 4
228
206
  summary: Ruby Gem to normalize and auto-correct location information
229
207
  test_files: []