linkedin2 0.0.17 → 0.0.18
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.
- checksums.yaml +4 -4
- data/lib/linkedin/api/invitation.rb +2 -2
- data/lib/linkedin/api/people.rb +1 -1
- data/lib/linkedin/response.rb +6 -8
- data/lib/linkedin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b91ad730b6dace1d2e3d1b804396ba7387fcfbc
|
4
|
+
data.tar.gz: 222c7594fe699e48e6623b6c1fa9eae3acc0ca23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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(':')
|
data/lib/linkedin/api/people.rb
CHANGED
data/lib/linkedin/response.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
1
|
module LinkedIn
|
2
|
-
class Response
|
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
|
-
|
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
|
data/lib/linkedin/version.rb
CHANGED
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.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-
|
12
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|