whos_using_what 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,9 +14,14 @@ class LinkedinClient < BaseApiClient
14
14
  def initialize(api_key, api_secret, user_token, user_secret, url)
15
15
  super()
16
16
 
17
- consumer = OAuth::Consumer.new(api_key, api_secret, {:site => url})
17
+ @consumer = OAuth::Consumer.new(api_key, api_secret, {
18
+ :site => url,
19
+ # :scope => "r_basicprofile+r_emailaddress+r_network"
20
+ })
18
21
 
19
- @access_token = OAuth::AccessToken.new(consumer, user_token, user_secret)
22
+ @consumer.options[:request_token_path] = @consumer.options[:request_token_path] << "?scope=r_fullprofile+r_emailaddress+r_network"
23
+
24
+ @access_token = OAuth::AccessToken.new(@consumer, user_token, user_secret)
20
25
 
21
26
  end
22
27
 
@@ -73,7 +73,6 @@ class DataPopulators
73
73
 
74
74
  t2 = Thread.new do
75
75
 
76
- # def site_url, search_keyword
77
76
  generate_google_url = lambda { |site_url, search_keyword|
78
77
  query_url = [
79
78
  "http://www.google.com/search?",
@@ -85,8 +84,6 @@ class DataPopulators
85
84
  url = BaseApiClient.arry_to_str_delim query_url, ""
86
85
  }
87
86
 
88
-
89
- # def site_url, search_keyword
90
87
  generate_duckduckgo_url= lambda { |site_url, search_keyword|
91
88
  query_url = [
92
89
  "http://duckduckgo.com/?",
@@ -101,7 +98,7 @@ class DataPopulators
101
98
 
102
99
  begin
103
100
 
104
- # @@tech_ad_tagger.tag_company_with_technologies @@programming_languages, generate_duckduckgo_url
101
+ # @@tech_ad_tagger.tag_company_with_technologies @@programming_languages, generate_duckduckgo_url
105
102
 
106
103
  rescue Exception => e
107
104
  puts e.message
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: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: