linkedin2 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linkedin/api/profiles.rb +4 -4
- data/lib/linkedin/client.rb +1 -1
- data/lib/linkedin/version.rb +1 -1
- data/linkedin.gemspec +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac298d199dd70fa33629431f471bd38f7247ce8c
|
4
|
+
data.tar.gz: 0487998919736006a7dcc828a1d847a29cf138f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db8a53f200a4d425ac735d6f92fc2521b3caaf6d6fb878069abd874d7114b719797e1b63bbc5f15240fdce1a1035ae1179d3c30199af46e02dcb8acfe3b9fa5
|
7
|
+
data.tar.gz: 9472503155331275a6ae09f763a887b9985f65c48950c38f02b5beb0375625a9c37f66e5a4c2a89854694941b02c7841c5de4e95f4569d09d407c39c6c50a43f
|
@@ -13,12 +13,12 @@ module LinkedIn
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
def connections(selector = '~')
|
17
|
-
profile [selector, 'connections'].join
|
16
|
+
def connections(selector = '~', fields = nil)
|
17
|
+
profile [selector, 'connections'].join('/'), fields
|
18
18
|
end
|
19
19
|
|
20
|
-
def shared_connections(selector, offset = 0, limit = 10, token = nil)
|
21
|
-
query = "#{selector.to_param}:(#{Permissions.render_permissions
|
20
|
+
def shared_connections(selector, fields = Permissions::RELATION, offset = 0, limit = 10, token = nil)
|
21
|
+
query = "#{selector.to_param}:(#{Permissions.render_permissions fields})"
|
22
22
|
get "v1/people/#{query}" do |req|
|
23
23
|
req.params.merge! start: offset, count: limit
|
24
24
|
req.headers.merge! 'x-li-auth-token' => token unless token.blank?
|
data/lib/linkedin/client.rb
CHANGED
data/lib/linkedin/version.rb
CHANGED
data/linkedin.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_dependency 'oauth2', '~> 0.9'
|
22
|
-
spec.add_dependency 'hashie', '
|
22
|
+
spec.add_dependency 'hashie', '> 2.1.1'
|
23
23
|
spec.add_dependency 'activesupport', '>= 3.2'
|
24
24
|
spec.add_dependency 'faraday_middleware', '~> 0.9.1'
|
25
25
|
|
data/spec/spec_helper.rb
CHANGED
@@ -21,7 +21,7 @@ RSpec.configure do |c|
|
|
21
21
|
c.treat_symbols_as_metadata_keys_with_true_values = true
|
22
22
|
end
|
23
23
|
|
24
|
-
LinkedIn.load('spec/test_app.yml')
|
24
|
+
LinkedIn::Client.load('spec/test_app.yml')
|
25
25
|
LinkedIn::Client.configure do |config|
|
26
26
|
config.access_token = 'AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkedin2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Breznak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|
@@ -29,14 +29,14 @@ dependencies:
|
|
29
29
|
name: hashie
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 2.1.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 2.1.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
251
|
rubyforge_project:
|
252
|
-
rubygems_version: 2.2.
|
252
|
+
rubygems_version: 2.2.2
|
253
253
|
signing_key:
|
254
254
|
specification_version: 4
|
255
255
|
summary: Ruby wrapper for the LinkedIn API
|