whos_using_what 0.2.9 → 0.2.10
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/lib/whos_using_what/api_clients/base_api_client.rb +3 -1
- data/lib/whos_using_what/api_clients/google_locations_client.rb +2 -1
- data/lib/whos_using_what/api_clients/linkedin_client.rb +1 -0
- data/lib/whos_using_what/api_clients/search_client.rb +3 -1
- data/lib/whos_using_what/base.rb +16 -0
- data/lib/whos_using_what/data_gatherers/gather_companies.rb +3 -1
- data/lib/whos_using_what/data_gatherers/geo_tagger.rb +7 -5
- data/lib/whos_using_what/data_searchers/companies_searcher.rb +3 -1
- metadata +2 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
class Base
|
2
|
+
|
3
|
+
def self.set_paths
|
4
|
+
$:.unshift(File.expand_path('../data_gatherers', __FILE__))
|
5
|
+
$:.unshift(File.expand_path('../data_searchers', __FILE__))
|
6
|
+
$:.unshift(File.expand_path('../api_clients', __FILE__))
|
7
|
+
$:.unshift(File.expand_path('../no_sql', __FILE__))
|
8
|
+
$:.unshift(File.expand_path('../util', __FILE__))
|
9
|
+
$:.unshift(File.expand_path('../logging', __FILE__))
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
set_paths
|
14
|
+
|
15
|
+
|
16
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
|
-
|
2
|
-
require 'map_data_extraction_util'
|
3
|
-
require 'google_locations_client'
|
1
|
+
require_relative "../base"
|
4
2
|
|
5
|
-
|
3
|
+
class GeoTagger < Base
|
6
4
|
|
7
|
-
|
5
|
+
require 'mongo_helper'
|
6
|
+
require 'map_data_extraction_util'
|
7
|
+
require 'google_locations_client'
|
8
|
+
|
9
|
+
require "rest-client"
|
8
10
|
|
9
11
|
def initialize log
|
10
12
|
@log = log
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whos_using_what
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/whos_using_what/data_gatherers/gather_companies.rb
|
124
124
|
- lib/whos_using_what/data_gatherers/geo_tagger.rb
|
125
125
|
- lib/whos_using_what/no_sql/mongo_helper.rb
|
126
|
+
- lib/whos_using_what/base.rb
|
126
127
|
homepage: http://rubygems.org/gems/whos_using_what
|
127
128
|
licenses: []
|
128
129
|
post_install_message:
|