boxxspring 2.4.12 → 2.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca622744832c972009f66b87c714e8d0ebab08b
|
4
|
+
data.tar.gz: 6f20a4961eb6c95dce6d685da8a0159cf2b1b0e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b682b1bd689d5c4d38fe9360ad570859ad80d689613ff2866379667089377562af97b7b489025afaf649ac0d84d9332652016b5c17f91c74b481f780d5ad110
|
7
|
+
data.tar.gz: b8c255bde8dc02c6bc81f3ce905226b1216200f666951cf0de197d79935142ceb5972aacfcba41ead09fb5883ee1562587f2f069fb447b593b00ed547ebca2d4
|
data/lib/boxxspring/response.rb
CHANGED
@@ -13,20 +13,19 @@ module Boxxspring
|
|
13
13
|
@code = http_response.code
|
14
14
|
@resources = []
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
@body = decode_response_body( http_response )
|
17
|
+
|
18
|
+
if ( @body && @body.respond_to?( :keys ) )
|
19
|
+
Boxxspring::Parser.new( @body ) do | parser |
|
19
20
|
@resources = parser.resources
|
20
21
|
@success = !parser.type_name?( :error )
|
21
22
|
end
|
22
23
|
else
|
23
24
|
@success = false
|
24
25
|
@resources << Boxxspring::Error.new(
|
25
|
-
message: "
|
26
|
+
message: "#{@code}: #{http_response.message}."
|
26
27
|
)
|
27
28
|
end
|
28
|
-
@body = content
|
29
|
-
|
30
29
|
end
|
31
30
|
|
32
31
|
def success?
|
@@ -38,17 +37,13 @@ module Boxxspring
|
|
38
37
|
end
|
39
38
|
|
40
39
|
protected; def decode_response_body( http_response )
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
JSON.parse( body ) rescue nil
|
40
|
+
body = http_response.body
|
41
|
+
|
42
|
+
if body.present?
|
43
|
+
JSON.parse( body ) rescue nil
|
44
|
+
else
|
45
|
+
nil
|
48
46
|
end
|
49
|
-
|
50
|
-
response
|
51
|
-
|
52
47
|
end
|
53
48
|
|
54
49
|
end
|
data/lib/boxxspring/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Boxxspring
|
2
|
-
VERSION = '2.
|
3
|
-
end
|
2
|
+
VERSION = '2.5.0'
|
3
|
+
end
|
data/lib/boxxspring.rb
CHANGED
@@ -99,6 +99,7 @@ require 'boxxspring/resources/artifact_curation_task'
|
|
99
99
|
require 'boxxspring/resources/videos_curation_task'
|
100
100
|
require 'boxxspring/resources/video_branding_task'
|
101
101
|
require 'boxxspring/resources/clip_creation_task'
|
102
|
+
require 'boxxspring/resources/stream_recording_ingestion_task'
|
102
103
|
|
103
104
|
## Analytics
|
104
105
|
require 'boxxspring/resources/sample'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxxspring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristoph Cichocki-Romanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- lib/boxxspring/resources/social_service.rb
|
123
123
|
- lib/boxxspring/resources/sponsor.rb
|
124
124
|
- lib/boxxspring/resources/stream.rb
|
125
|
+
- lib/boxxspring/resources/stream_recording_ingestion_task.rb
|
125
126
|
- lib/boxxspring/resources/subscription.rb
|
126
127
|
- lib/boxxspring/resources/subscription_ingestion_task.rb
|
127
128
|
- lib/boxxspring/resources/task.rb
|
@@ -179,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
180
|
version: '0'
|
180
181
|
requirements: []
|
181
182
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.4.8
|
183
184
|
signing_key:
|
184
185
|
specification_version: 4
|
185
186
|
summary: Bedrocket Media Ventrures Boxxspring property API.
|