bplgeo 0.0.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bplgeo.rb +26 -1
- data/lib/bplgeo/geonames.rb +31 -32
- data/lib/bplgeo/parser.rb +5 -5
- data/lib/bplgeo/standardizer.rb +37 -3
- data/lib/bplgeo/tgn.rb +461 -193
- data/lib/bplgeo/version.rb +1 -1
- data/test/bplgeo_test.rb +64 -21
- data/test/dummy/config/bplgeo.yml +12 -15
- data/test/dummy/config/bplgeo.yml.sample +6 -6
- data/test/dummy/log/development.log +23 -27
- data/test/dummy/log/test.log +608 -0
- data/test/tgn_test.rb +1 -1
- metadata +16 -2
data/test/tgn_test.rb
CHANGED
@@ -2,7 +2,7 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
class TGNTest < ActiveSupport::TestCase
|
4
4
|
def test_tgn_lookup_from_id
|
5
|
-
if Bplgeo::TGN.
|
5
|
+
if Bplgeo::TGN.tgn_enabled == 'true'
|
6
6
|
result = Bplgeo::TGN.get_tgn_data('2051159')
|
7
7
|
|
8
8
|
assert_equal '45', result[:coords][:latitude]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bplgeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boston Public Library
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sparql
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: sqlite3
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|