bridge_api 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/bridge_api/api_array.rb +4 -4
- data/lib/bridge_api/version.rb +1 -1
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
M2ZhN2ZlNTMwODNhZDYwZmE5YmM4YmI5NTVhMWMxNjJmMDE2ZmM4Zg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTRhZjM1ODg4YzMzZGVlZjYwMDYwNGQxM2YwZjc3ZTZiNjM5MjlkMA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDU3MDE0YzU3ODBhNTNkOWM2OGQ2YmMwNjUwOWExZDAzZWY5N2Y5YWI2NWQ3
|
10
|
+
ZTBlNjBlOWMyYjkwMzYxNmYzOWQyODZhNzhlY2UxZWI0MzE2MDc3OWRiYmRj
|
11
|
+
NTI5N2Q2OTA3Yjg4ZTVkYmIxNGViYTFiNzJmMjBlZDM3MDQ2ZDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzBjNzgwMjEyNjFkMDRhMDQzYzUxNmUxMzk3ZjM2ZTY5MTQxYzAxZWY0YTFk
|
14
|
+
ODZlODA3OGMzMmI2OGZiZmUxMGFmNWM5NjRkODkyZTBmZTdlZjg5ODljNjJi
|
15
|
+
Zjc5MGNmNjVhNTA4OGZmZTE1NmU5YmNmOWZjYWU5NTQ3YTIwY2E=
|
data/lib/bridge_api/api_array.rb
CHANGED
@@ -5,8 +5,6 @@ module BridgeAPI
|
|
5
5
|
|
6
6
|
@next_page = nil
|
7
7
|
@prev_page = nil
|
8
|
-
@linked = {}
|
9
|
-
@meta = {}
|
10
8
|
|
11
9
|
META_FIELDS = %w(meta linked).freeze
|
12
10
|
|
@@ -18,6 +16,8 @@ module BridgeAPI
|
|
18
16
|
|
19
17
|
def initialize(response, api_client)
|
20
18
|
@api_client = api_client
|
19
|
+
@linked = {}
|
20
|
+
@meta = {}
|
21
21
|
case response.status
|
22
22
|
when 200..206
|
23
23
|
apply_response_metadata(response)
|
@@ -119,13 +119,13 @@ module BridgeAPI
|
|
119
119
|
|
120
120
|
def init_linked(response)
|
121
121
|
if response.body.is_a?(Hash) && response.body.key?('linked')
|
122
|
-
@linked = response.body['linked']
|
122
|
+
@linked = @linked.merge(response.body['linked']){|key,oldval,newval| [*oldval].to_a + [*newval].to_a }
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
126
|
def init_meta(response)
|
127
127
|
if response.body.is_a?(Hash) && response.body.key?('meta')
|
128
|
-
@meta = response.body['meta']
|
128
|
+
@meta = @meta.merge(response.body['meta']){|key,oldval,newval| [*oldval].to_a + [*newval].to_a }
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
data/lib/bridge_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,179 +1,179 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.0'
|
34
|
-
- -
|
34
|
+
- - ! '>='
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 1.0.0
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '1.0'
|
44
|
-
- -
|
44
|
+
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 1.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '2.6'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '2.6'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: webmock
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: 1.22.6
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 1.22.6
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: pry
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ~>
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: tilt
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ! '>='
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 1.3.4
|
96
|
-
- -
|
96
|
+
- - ~>
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '1.3'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - ! '>='
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: 1.3.4
|
106
|
-
- -
|
106
|
+
- - ~>
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '1.3'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: sinatra
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- -
|
113
|
+
- - ~>
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '1.0'
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - ~>
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '1.0'
|
123
123
|
- !ruby/object:Gem::Dependency
|
124
124
|
name: byebug
|
125
125
|
requirement: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - ~>
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: 8.2.2
|
130
130
|
type: :development
|
131
131
|
prerelease: false
|
132
132
|
version_requirements: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
|
-
- -
|
134
|
+
- - ~>
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: 8.2.2
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: footrest
|
139
139
|
requirement: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- -
|
141
|
+
- - ! '>='
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: 0.5.1
|
144
144
|
type: :runtime
|
145
145
|
prerelease: false
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- -
|
148
|
+
- - ! '>='
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: 0.5.1
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: faraday
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- -
|
155
|
+
- - ~>
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: 0.9.0
|
158
158
|
type: :runtime
|
159
159
|
prerelease: false
|
160
160
|
version_requirements: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
|
-
- -
|
162
|
+
- - ~>
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: 0.9.0
|
165
165
|
- !ruby/object:Gem::Dependency
|
166
166
|
name: faraday_middleware
|
167
167
|
requirement: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - ~>
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: 0.9.0
|
172
172
|
type: :runtime
|
173
173
|
prerelease: false
|
174
174
|
version_requirements: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
|
-
- -
|
176
|
+
- - ~>
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: 0.9.0
|
179
179
|
description: Ruby gem for interacting with the bridge API
|
@@ -183,7 +183,7 @@ executables: []
|
|
183
183
|
extensions: []
|
184
184
|
extra_rdoc_files: []
|
185
185
|
files:
|
186
|
-
-
|
186
|
+
- .gitignore
|
187
187
|
- Gemfile
|
188
188
|
- Gemfile.lock
|
189
189
|
- bridge_api.gemspec
|
@@ -220,17 +220,17 @@ require_paths:
|
|
220
220
|
- lib
|
221
221
|
required_ruby_version: !ruby/object:Gem::Requirement
|
222
222
|
requirements:
|
223
|
-
- -
|
223
|
+
- - ! '>='
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
227
|
requirements:
|
228
|
-
- -
|
228
|
+
- - ! '>='
|
229
229
|
- !ruby/object:Gem::Version
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.4.7
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Bridge API
|