boxxspring 2.4.12 → 2.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7de90fe201441257f1d05a20ab18881d4efd4ec1
4
- data.tar.gz: 71b03fa38f666eb8e339bf44086e2ef2354cc4af
3
+ metadata.gz: fca622744832c972009f66b87c714e8d0ebab08b
4
+ data.tar.gz: 6f20a4961eb6c95dce6d685da8a0159cf2b1b0e8
5
5
  SHA512:
6
- metadata.gz: 17e37ce660b3de951c7bfba88483ece33d9d6d642cf613348f39e886925af3ebc8233742afd80e8760d5771a8e482bc1beb74a96d014c34deaa92f964b1c8097
7
- data.tar.gz: 6d4695450ed5af38b52d0b271f8a7851479c2c154d3473db2b22ca5942a13cbbb36037d42400c83a3c8f0dda2f0448408d65553ce8f10fa995758bad8642d18e
6
+ metadata.gz: 9b682b1bd689d5c4d38fe9360ad570859ad80d689613ff2866379667089377562af97b7b489025afaf649ac0d84d9332652016b5c17f91c74b481f780d5ad110
7
+ data.tar.gz: b8c255bde8dc02c6bc81f3ce905226b1216200f666951cf0de197d79935142ceb5972aacfcba41ead09fb5883ee1562587f2f069fb447b593b00ed547ebca2d4
@@ -0,0 +1,12 @@
1
+ module Boxxspring
2
+
3
+ class StreamRecordingIngestionTask < Task
4
+
5
+ field :name
6
+ field :description
7
+ field :file_name
8
+ field :artifact_id
9
+
10
+ end
11
+
12
+ end
@@ -15,6 +15,7 @@ module Boxxspring
15
15
  field :alternate_provider
16
16
  field :alternate_provider_url
17
17
  field :auto_publish
18
+ field :video_article_artifact_id
18
19
  field :artifact_id
19
20
 
20
21
  end
@@ -13,20 +13,19 @@ module Boxxspring
13
13
  @code = http_response.code
14
14
  @resources = []
15
15
 
16
- content = decode_response_body( http_response )
17
- if ( content && content.respond_to?( :keys ) )
18
- Boxxspring::Parser.new( content ) do | parser |
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: "An unknown error occured (#{@code})."
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
- response = nil
43
-
44
- body = http_response.body;
45
- unless body.nil? || body.empty?
46
- response =
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
@@ -1,3 +1,3 @@
1
1
  module Boxxspring
2
- VERSION = '2.4.12'
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.12
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-09 00:00:00.000000000 Z
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.2.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.