locationary 0.0.4 → 0.0.5

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c215fa57cb29cb5b8ab87800cb33e166c57b3511
4
+ data.tar.gz: 7dd68d9f96ca0013c30cb651e5d6d41e4621cea8
5
+ SHA512:
6
+ metadata.gz: d08b5a0e8e727d329910d7a5275a5ae90197f8d3273505e0fd4c9ff032a1203879b1c0c84ad80b44321b02ba6602cbc1293fb2bdb2087bd707f73f96b6a2201e
7
+ data.tar.gz: 9d9bd855e4e38d6e50e1baef79eebdca73f15e64910eb18bd9c92cc062088eeb75d2aa30bb19fb6ae770e19c7008cf102e3e46134373a7bf53c957fb7a6857d6
@@ -0,0 +1,3 @@
1
+
2
+ �!��Rs��~�ف�N(|V�}����>�!&3��/��I'�K�T[)%-{z�H�y���/���
3
+ H�X3=��dŞ�1��Q.��?�eWF�ު2��?�������<�O�@��,���0vEi�Kci�j>�(�
4
+ ���G�&_���de2���"��@�e��E
@@ -0,0 +1,2 @@
1
+ ��� \#A~�F����}���V����-�FXQ��2v��'.`y�Y^k����2�c�i�����k��Y�*/
2
+ �,�`K�Ďz��J/�V���rbtQm����
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ tmp/allCountries.txt
17
17
  tmp/allCountries.zip
18
18
  db/kdtree.bin
19
19
  db/lookup.txt
20
+ Gemfile.lock
@@ -2,4 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0
5
6
 
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Locationary
2
2
 
3
- TODO: Write a gem description
3
+ Gem to normalize and auto-correct location information
4
+
5
+ [![Build Status](https://travis-ci.org/Shopify/locationary.png)](https://travis-ci.org/Shopify/locationary)
4
6
 
5
7
  ## Installation
6
8
 
@@ -4,17 +4,17 @@ require "snappy"
4
4
 
5
5
  module Locationary
6
6
 
7
- def Locationary.find(query)
8
- Locationary.data[query]
7
+ def self.find(query)
8
+ data[query]
9
9
  end
10
10
 
11
11
  private
12
12
 
13
- def Locationary.data
14
- @data ||= Locationary.load_data
13
+ def self.data
14
+ @data ||= load_data
15
15
  end
16
16
 
17
- def Locationary.load_data
17
+ def self.load_data
18
18
  raw = File.read("#{File.dirname(__FILE__)}/../db/geonames.bin")
19
19
  MessagePack.unpack(Snappy.inflate(raw))
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Locationary
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Locationary::VERSION
9
9
  spec.authors = ["Oren Mazor"]
10
10
  spec.email = ["oren.mazor@gmail.com"]
11
- spec.description = "Ruby Gem to normalize and auto-correct location information"
12
- spec.summary = "Ruby Gem to normalize and auto-correct location information"
13
- spec.homepage = ""
11
+ spec.description = "Gem to normalize and auto-correct location information"
12
+ spec.summary = "Gem to normalize and auto-correct location information"
13
+ spec.homepage = "https://github.com/Shopify/locationary"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "bundler", "~> 1.3"
21
+ spec.add_runtime_dependency "bundler"
22
22
  spec.add_runtime_dependency "rake"
23
23
  spec.add_runtime_dependency "msgpack"
24
24
  spec.add_runtime_dependency "minitest"
@@ -0,0 +1,15 @@
1
+ dependencies:
2
+ override:
3
+ - bundle install --path=./data/bundler
4
+
5
+ deploy:
6
+ override:
7
+ - |
8
+ BUILD=`bundle exec rake build`
9
+ if [ $? != 0 ]; then
10
+ echo $BUILD;
11
+ exit 1;
12
+ fi
13
+ PKG=`echo $BUILD | cut -d" " -f5 | sed -e s/\.$//`;
14
+ VERSION=`echo $BUILD | cut -d" " -f2`;
15
+ gem push $PKG
metadata CHANGED
@@ -1,84 +1,96 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locationary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Oren Mazor
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain: []
12
- date: 2014-02-03 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
14
+ bnMxFzAVBgoJkiaJk/IsZAEZFgdzaG9waWZ5MRMwEQYKCZImiZPyLGQBGRYDY29t
15
+ MB4XDTE0MDUxNTIwMzM0OFoXDTE1MDUxNTIwMzM0OFowPzEPMA0GA1UEAwwGYWRt
16
+ aW5zMRcwFQYKCZImiZPyLGQBGRYHc2hvcGlmeTETMBEGCgmSJomT8ixkARkWA2Nv
17
+ bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0/81O3e1vh5smcwp2G
18
+ MpLQ6q0kejQLa65bPYPxdzWA1SYOKyGfw+yR9LdFzsuKpwWzKq6zX35lj1IckWS4
19
+ bNBEQzxmufUxU0XPM02haFB8fOfDJzdXsWte9Ge4IFwahwn68gpMqN+BvxL+KMYz
20
+ Iut9YmN44d4LZdsENEIO5vmybuG2vYDz7R56qB0PA+Q2P2CdhymsBad2DQs69FBo
21
+ uico9V6VMYYctL9lCYdzu9IXrOYNTt88suKIVzzAlHOKeN0Ng5qdztFoTR8sfxDr
22
+ Ydg3KHl5n47wlpgd8R0f/4b5gGxW+v9pyJCgQnLlRu7DedVSvv7+GMtj3g9r3nhJ
23
+ KqECAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFI/o
24
+ maf34HXbUOQsdoLHacEKQgunMB0GA1UdEQQWMBSBEmFkbWluc0BzaG9waWZ5LmNv
25
+ bTAdBgNVHRIEFjAUgRJhZG1pbnNAc2hvcGlmeS5jb20wDQYJKoZIhvcNAQEFBQAD
26
+ ggEBADkK9aj5T0HPExsov4EoMWFnO+G7RQ28C30VAfKxnL2UxG6i4XMHVs6Xi94h
27
+ qXFw1ec9Y2eDUqaolT3bviOk9BB197+A8Vz/k7MC6ci2NE+yDDB7HAC8zU6LAx8Y
28
+ Iqvw7B/PSZ/pz4bUVFlTATif4mi1vO3lidRkdHRtM7UePSn2rUpOi0gtXBP3bLu5
29
+ YjHJN7wx5cugMEyroKITG5gL0Nxtu21qtOlHX4Hc4KdE2JqzCPOsS4zsZGhgwhPs
30
+ fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
31
+ TConQSX2BnZdhIEYW+cKzEC/bLc=
32
+ -----END CERTIFICATE-----
33
+ date: 2014-05-20 00:00:00.000000000 Z
13
34
  dependencies:
14
35
  - !ruby/object:Gem::Dependency
15
36
  name: bundler
16
37
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
38
  requirements:
19
- - - ~>
39
+ - - ">="
20
40
  - !ruby/object:Gem::Version
21
- version: '1.3'
41
+ version: '0'
22
42
  type: :runtime
23
43
  prerelease: false
24
44
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
45
  requirements:
27
- - - ~>
46
+ - - ">="
28
47
  - !ruby/object:Gem::Version
29
- version: '1.3'
48
+ version: '0'
30
49
  - !ruby/object:Gem::Dependency
31
50
  name: rake
32
51
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
52
  requirements:
35
- - - ! '>='
53
+ - - ">="
36
54
  - !ruby/object:Gem::Version
37
55
  version: '0'
38
56
  type: :runtime
39
57
  prerelease: false
40
58
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
59
  requirements:
43
- - - ! '>='
60
+ - - ">="
44
61
  - !ruby/object:Gem::Version
45
62
  version: '0'
46
63
  - !ruby/object:Gem::Dependency
47
64
  name: msgpack
48
65
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
66
  requirements:
51
- - - ! '>='
67
+ - - ">="
52
68
  - !ruby/object:Gem::Version
53
69
  version: '0'
54
70
  type: :runtime
55
71
  prerelease: false
56
72
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
73
  requirements:
59
- - - ! '>='
74
+ - - ">="
60
75
  - !ruby/object:Gem::Version
61
76
  version: '0'
62
77
  - !ruby/object:Gem::Dependency
63
78
  name: minitest
64
79
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
80
  requirements:
67
- - - ! '>='
81
+ - - ">="
68
82
  - !ruby/object:Gem::Version
69
83
  version: '0'
70
84
  type: :runtime
71
85
  prerelease: false
72
86
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
87
  requirements:
75
- - - ! '>='
88
+ - - ">="
76
89
  - !ruby/object:Gem::Version
77
90
  version: '0'
78
91
  - !ruby/object:Gem::Dependency
79
92
  name: zipruby
80
93
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
94
  requirements:
83
95
  - - '='
84
96
  - !ruby/object:Gem::Version
@@ -86,7 +98,6 @@ dependencies:
86
98
  type: :runtime
87
99
  prerelease: false
88
100
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
101
  requirements:
91
102
  - - '='
92
103
  - !ruby/object:Gem::Version
@@ -94,46 +105,41 @@ dependencies:
94
105
  - !ruby/object:Gem::Dependency
95
106
  name: snappy
96
107
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
108
  requirements:
99
- - - ! '>='
109
+ - - ">="
100
110
  - !ruby/object:Gem::Version
101
111
  version: '0'
102
112
  type: :runtime
103
113
  prerelease: false
104
114
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
115
  requirements:
107
- - - ! '>='
116
+ - - ">="
108
117
  - !ruby/object:Gem::Version
109
118
  version: '0'
110
119
  - !ruby/object:Gem::Dependency
111
120
  name: pry
112
121
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
122
  requirements:
115
- - - ! '>='
123
+ - - ">="
116
124
  - !ruby/object:Gem::Version
117
125
  version: '0'
118
126
  type: :runtime
119
127
  prerelease: false
120
128
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
129
  requirements:
123
- - - ! '>='
130
+ - - ">="
124
131
  - !ruby/object:Gem::Version
125
132
  version: '0'
126
- description: Ruby Gem to normalize and auto-correct location information
133
+ description: Gem to normalize and auto-correct location information
127
134
  email:
128
135
  - oren.mazor@gmail.com
129
136
  executables: []
130
137
  extensions: []
131
138
  extra_rdoc_files: []
132
139
  files:
133
- - .gitignore
134
- - .travis.yml
140
+ - ".gitignore"
141
+ - ".travis.yml"
135
142
  - Gemfile
136
- - Gemfile.lock
137
143
  - LICENSE.txt
138
144
  - README.md
139
145
  - Rakefile
@@ -141,38 +147,36 @@ files:
141
147
  - lib/locationary.rb
142
148
  - lib/locationary/version.rb
143
149
  - locationary.gemspec
150
+ - shipit.rubygems.yml
144
151
  - tasks/geonames.rake
145
- - tasks/publish.rake
146
152
  - tasks/test.rake
147
153
  - tests/integration/locationary_lookup_test.rb
148
154
  - tests/performance/locationary_test.rb
149
155
  - tests/test_helper.rb
150
156
  - tests/unit/locationary_test.rb
151
157
  - tmp/.gitignore
152
- homepage: ''
158
+ homepage: https://github.com/Shopify/locationary
153
159
  licenses:
154
160
  - MIT
161
+ metadata: {}
155
162
  post_install_message:
156
163
  rdoc_options: []
157
164
  require_paths:
158
165
  - lib
159
166
  required_ruby_version: !ruby/object:Gem::Requirement
160
- none: false
161
167
  requirements:
162
- - - ! '>='
168
+ - - ">="
163
169
  - !ruby/object:Gem::Version
164
170
  version: '0'
165
171
  required_rubygems_version: !ruby/object:Gem::Requirement
166
- none: false
167
172
  requirements:
168
- - - ! '>='
173
+ - - ">="
169
174
  - !ruby/object:Gem::Version
170
175
  version: '0'
171
176
  requirements: []
172
177
  rubyforge_project:
173
- rubygems_version: 1.8.23
178
+ rubygems_version: 2.2.0
174
179
  signing_key:
175
- specification_version: 3
176
- summary: Ruby Gem to normalize and auto-correct location information
180
+ specification_version: 4
181
+ summary: Gem to normalize and auto-correct location information
177
182
  test_files: []
178
- has_rdoc:
Binary file
@@ -1,45 +0,0 @@
1
- GIT
2
- remote: git://github.com/CodeMonkeySteve/fast_xor.git
3
- revision: 85b79ec6d116f9680f23bd2c5c8c2c2039d477d8
4
- ref: 85b79ec6d116f9680f23bd2c5c8c2c2039d477d8
5
- specs:
6
- fast_xor (1.1.2)
7
- rake
8
- rake-compiler
9
-
10
- PATH
11
- remote: .
12
- specs:
13
- locationary (0.0.3)
14
- bundler (~> 1.3)
15
- minitest
16
- msgpack
17
- pry
18
- rake
19
- snappy
20
- zipruby (= 0.3.6)
21
-
22
- GEM
23
- remote: https://rubygems.org/
24
- specs:
25
- coderay (1.0.9)
26
- method_source (0.8.2)
27
- minitest (5.0.7)
28
- msgpack (0.5.5)
29
- pry (0.9.12.2)
30
- coderay (~> 1.0.5)
31
- method_source (~> 0.8)
32
- slop (~> 3.4)
33
- rake (10.1.0)
34
- rake-compiler (0.9.1)
35
- rake
36
- slop (3.4.6)
37
- snappy (0.0.8)
38
- zipruby (0.3.6)
39
-
40
- PLATFORMS
41
- ruby
42
-
43
- DEPENDENCIES
44
- fast_xor!
45
- locationary!
@@ -1,5 +0,0 @@
1
- desc 'publish this gem to rubygems'
2
- task :publish do
3
- system("gem build locationary.gemspec")
4
- system("gem push locationary-#{Locationary::VERSION}.gem")
5
- end