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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ed0d9964504808f9ad92a224be57910bf2fec5e
4
- data.tar.gz: ad1944da598335b45a0319ca1fe6173142723dc9
3
+ metadata.gz: ac298d199dd70fa33629431f471bd38f7247ce8c
4
+ data.tar.gz: 0487998919736006a7dcc828a1d847a29cf138f4
5
5
  SHA512:
6
- metadata.gz: 39a36402e07ecba9482274b71e007e9b23e5f387f3fae62595a484ee6674b7daacf3d879b907e8eb715024b3119b531af45b74ca4de25dad4975c138598ad36d
7
- data.tar.gz: 5300575a1d637e30e7663be02d83024d4f43050af73e3c5df17c62b3ef06df293b5cb913a0720685e497dc7ab5fb74eab1ea8b0fd2aeaf207a5230c43cc6e452
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 Permissions::RELATION})"
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?
@@ -69,7 +69,7 @@ module LinkedIn
69
69
  secret: nil,
70
70
  access_token: nil,
71
71
 
72
- scope: 'r_basicprofile',
72
+ scope: ['r_basicprofile'],
73
73
  state: Utils.generate_random_state,
74
74
  redirect_uri: 'http://localhost',
75
75
 
@@ -1,3 +1,3 @@
1
1
  module LinkedIn
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
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', '~> 2.1.1'
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.15
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-05-28 00:00:00.000000000 Z
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.0
252
+ rubygems_version: 2.2.2
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: Ruby wrapper for the LinkedIn API