linkedin2 0.0.17 → 0.0.18

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: 97c526507b2313e93d3e8f8774e21ddac5b9a64b
4
- data.tar.gz: 59b303455324238c1d9328d7e20cb165ea982218
3
+ metadata.gz: 4b91ad730b6dace1d2e3d1b804396ba7387fcfbc
4
+ data.tar.gz: 222c7594fe699e48e6623b6c1fa9eae3acc0ca23
5
5
  SHA512:
6
- metadata.gz: b48333d3d41d0ecb1ac40cb11853ea92378822cb30e7c1906eba0841851d6f7b11ee630853d472ec91193284b2d703fb6741696f8c4bb5fcb31e3c8667f2a69e
7
- data.tar.gz: 8d3f033c03d7232f64825b7a0b3bb8577e33e4d2455506298c9ae07de9b9389a2ad6dca4f10f5bf43c2236f1f7c906635ad2684f87fe78d6a3a4ca36f535e319
6
+ metadata.gz: 0df0f6f7ffaca68a381502a219406a0b5045d37a3c3c68ba6540b25df3dd3024152f2fb3d1fbea29f9127583da8063f1c166f47b62db1e844b9dd039efc7bd2f
7
+ data.tar.gz: 533671f2963b4dc7df510008c968d5b5c4fba3aa15e4bd3aa9cc17f336cc8aa391aeb415d38c70902c276ddaa2968fdc3c28bf35390271816c0aa1fe29b23d55
@@ -3,8 +3,8 @@ module LinkedIn
3
3
  module Invitation
4
4
  def connect_with(recipient_selector, subject, message, type: :friend, x_auth_token: nil)
5
5
  if x_auth_token.blank?
6
- target_profile = profile recipient_selector, Fields::PROFILE_API_STD_PROFILE_REQ
7
- x_auth_token = target_profile.body.apiStandardProfileRequest_.headers_.values_.first.value
6
+ target_profile = profile recipient_selector, fields: Fields::PROFILE_API_STD_PROFILE_REQ
7
+ x_auth_token = target_profile.apiStandardProfileRequest_.headers_.values_.first.value
8
8
  end
9
9
 
10
10
  x_auth_name, x_auth_value = *x_auth_token.split(':')
@@ -2,7 +2,7 @@ module LinkedIn
2
2
  module API
3
3
  module People
4
4
  def profile(selector = '~', **opts)
5
- execute 'people', opts.merge(selector: selector)
5
+ execute 'people', { selector: selector }.merge(opts)
6
6
  end
7
7
 
8
8
  def connections(selector = '~', **opts)
@@ -1,19 +1,17 @@
1
1
  module LinkedIn
2
- class Response < Hashie::Mash
2
+ class Response
3
3
  attr_reader :_response
4
4
 
5
5
  def initialize(response)
6
- super response.body
7
6
  @_response = response
8
7
  end
9
8
 
9
+ def _status
10
+ _response.status
11
+ end
12
+
10
13
  def method_missing(method, *args, &block)
11
- case method.to_s
12
- when /^_(.+)/
13
- _response.send $1.to_sym, *args, &block
14
- else
15
- super
16
- end
14
+ _response.body.send method, *args, &block
17
15
  end
18
16
  end
19
17
  end
@@ -1,3 +1,3 @@
1
1
  module LinkedIn
2
- VERSION = '0.0.17'
2
+ VERSION = '0.0.18'
3
3
  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.17
4
+ version: 0.0.18
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-09-22 00:00:00.000000000 Z
12
+ date: 2014-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2