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.
@@ -1,4 +1,6 @@
1
- class BaseApiClient
1
+ require_relative "../base"
2
+
3
+ class BaseApiClient < Base
2
4
 
3
5
  def starts_with?(string, prefix)
4
6
  prefix = prefix.to_s
@@ -1,6 +1,7 @@
1
+ require_relative "../base"
1
2
  require 'map_data_extraction_util'
2
3
 
3
- class GoogleLocationsClient
4
+ class GoogleLocationsClient < Base
4
5
 
5
6
 
6
7
  def initialize
@@ -1,3 +1,4 @@
1
+
1
2
  require 'oauth'
2
3
  require 'json'
3
4
  require 'base_api_client'
@@ -1,7 +1,9 @@
1
+ require_relative "../base"
2
+
1
3
  require "uri"
2
4
  require "rest-client"
3
5
 
4
- class SearchClient
6
+ class SearchClient < Base
5
7
 
6
8
  attr :results
7
9
 
@@ -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,8 +1,10 @@
1
+ require_relative "../base"
2
+
1
3
  require 'mongo_helper'
2
4
  require 'linkedin_client'
3
5
 
4
6
  #meant to be able to be used as long-running process to save company data to DB
5
- class GatherCompanies
7
+ class GatherCompanies < Base
6
8
 
7
9
  def initialize
8
10
 
@@ -1,10 +1,12 @@
1
- require 'mongo_helper'
2
- require 'map_data_extraction_util'
3
- require 'google_locations_client'
1
+ require_relative "../base"
4
2
 
5
- require "rest-client"
3
+ class GeoTagger < Base
6
4
 
7
- class GeoTagger
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
@@ -1,4 +1,6 @@
1
- class CompaniesSearcher
1
+ require_relative "../base"
2
+
3
+ class CompaniesSearcher < Base
2
4
 
3
5
  #geo_tagger = instance of GeoTagger
4
6
  def initialize geo_tagger
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.9
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: