xing_api 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xing_api/response.rb +20 -0
- data/lib/xing_api/response_handler.rb +4 -3
- data/lib/xing_api/version.rb +1 -1
- data/lib/xing_api.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34c9fc211d757ecb17987b8d907fdc465d6ca803
|
4
|
+
data.tar.gz: 60c44eb5cb7b1acfee80ede5a90101954b2e95d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fcecb506f7808e59c9f12f1f25e3189fb0c7142ff6ac03f8f89ef5f3d12af8a05963a4a0dc18719137ccaf162dee282a86654dc3af8c8623240ce17f3ca408e
|
7
|
+
data.tar.gz: a7725b1b51bde1e576848cd7290430c4f4abd0e5a3eae8c1431aa5654020e0f10effbb2f1d907a8788912652d2d6366a2a8f720b25dc9a72ad08c655be36f5bf
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'delegate'
|
2
|
+
|
3
|
+
module XingApi
|
4
|
+
class Response < SimpleDelegator
|
5
|
+
attr_reader :headers
|
6
|
+
|
7
|
+
def initialize(body, headers)
|
8
|
+
@headers = headers
|
9
|
+
|
10
|
+
body =
|
11
|
+
begin
|
12
|
+
JSON.parse(body, symbolize_names: true)
|
13
|
+
rescue JSON::ParserError
|
14
|
+
{}
|
15
|
+
end
|
16
|
+
|
17
|
+
super(body)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/xing_api/version.rb
CHANGED
data/lib/xing_api.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xing_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Schmidt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/xing_api/news/page/article.rb
|
125
125
|
- lib/xing_api/profile_message.rb
|
126
126
|
- lib/xing_api/profile_visit.rb
|
127
|
+
- lib/xing_api/response.rb
|
127
128
|
- lib/xing_api/response_handler.rb
|
128
129
|
- lib/xing_api/user.rb
|
129
130
|
- lib/xing_api/user/birth_date.rb
|