unimatrix 2.8.0 → 2.9.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: 3b8851c0c59e5587aec42a017edac543dc7e35a5
4
- data.tar.gz: b90b695322bba20c0b266627a3c13a7e81f5d5d8
3
+ metadata.gz: 65a1bfb24d46b588eac2edb5671df43c98de1656
4
+ data.tar.gz: a9ee431261fed4cd050913a52aa35c9cdf7bd166
5
5
  SHA512:
6
- metadata.gz: ffd85037206500beca3543f21533743cf7155938bc57242e9f8d03da54727d61f29f4095dce57055455a49c31d9602182c21df0a8605e7d3ba2a600b319fa2f2
7
- data.tar.gz: 540247f643c40af799dd919386329b92a04da8f3d131f8f8a5ab885b0f52bdf812de88607c1e8f0957ac71e3413256ffd155e176bdcb04ca925324485fd057b8
6
+ metadata.gz: 6ba8df20d0fb3a46d8f57396a051f173996fc4001d21b6b4ebbfee7fb29072a94ffe58850f89cee09d81e714668f276d25b859e9161b43f25e76dd6ab2ad825d
7
+ data.tar.gz: fc16202719fd231eae1768958705fcf414959213b44b2658416f7ecb217a45168e7826adf572234a68a3a35399c3f91ccd846c1c96996f1efb881d791c6bb3c0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.8.0
1
+ 2.9.0
data/lib/unimatrix.rb CHANGED
@@ -50,6 +50,7 @@ require 'unimatrix/alchemist/text_storage_activity_proxy'
50
50
  require 'unimatrix/alchemist/video_encoding_activity_proxy'
51
51
  require 'unimatrix/alchemist/video_picture_activity_proxy'
52
52
  require 'unimatrix/alchemist/video_rendition'
53
+ require 'unimatrix/alchemist/video_rendition_interrogation_activity_proxy'
53
54
  require 'unimatrix/alchemist/video_sprite_activity_proxy'
54
55
  require 'unimatrix/alchemist/video_storage_interrogation_picture_activity_proxy'
55
56
 
@@ -3,6 +3,12 @@ module Unimatrix::Alchemist
3
3
  class AwsRenditionProfile < RenditionProfile
4
4
 
5
5
  field :preset_id
6
+ field :transcoder
7
+ field :encryption
8
+ field :encryption_system_id
9
+ field :encryption_url
10
+ field :encryption_static_key
11
+ field :encryption_static_url
6
12
 
7
13
  end
8
14
 
@@ -20,6 +20,7 @@ module Unimatrix::Alchemist
20
20
  field :profile
21
21
  field :height
22
22
  field :width
23
+ field :rotation
23
24
  field :resolution
24
25
  field :bit_rate
25
26
  field :level
@@ -40,4 +41,4 @@ module Unimatrix::Alchemist
40
41
 
41
42
  end
42
43
 
43
- end
44
+ end
@@ -3,6 +3,25 @@ module Unimatrix::Alchemist
3
3
  class VideoRendition < Rendition
4
4
 
5
5
  field :bit_rate
6
+ field :codec
7
+ field :codec_long
8
+ field :pixel_format
9
+ field :profile
10
+ field :resolution
11
+ field :rotation
12
+ field :bit_rate
13
+ field :level
14
+ field :frame_rate
15
+ field :duration
16
+ field :display_aspect_ratio
17
+ field :storage_aspect_ratio
18
+ field :audio_codec
19
+ field :audio_codec_long
20
+ field :audio_channels
21
+ field :audio_channel_layout
22
+ field :audio_bit_rate
23
+ field :audio_sample_rate
24
+ field :transcoder
6
25
 
7
26
  end
8
27
 
@@ -0,0 +1,9 @@
1
+ module Unimatrix::Alchemist
2
+
3
+ class VideoRenditionInterrogationActivityProxy < ActivityProxy
4
+
5
+ field :rendition_uuid
6
+
7
+ end
8
+
9
+ end
@@ -0,0 +1,17 @@
1
+ module Unimatrix::Iris
2
+
3
+ class StreamTransformer < Unimatrix::Resource
4
+
5
+ field :id
6
+ field :created_at
7
+ field :updated_at
8
+ field :uuid
9
+ field :state
10
+ field :url
11
+ field :url_in
12
+ field :stream_id
13
+ field :stream_uuid
14
+
15
+ end
16
+
17
+ end
@@ -104,6 +104,7 @@ module Unimatrix
104
104
  def write( node, objects, &block )
105
105
  result = nil
106
106
  Request.new.tap do | request |
107
+
107
108
  serializer = Unimatrix::Serializer.new( objects )
108
109
  response = request.post( @path, @parameters, serializer.serialize( node ) )
109
110
  if response.present?
@@ -16,47 +16,54 @@ module Unimatrix
16
16
  end
17
17
 
18
18
  def destroy( path, parameters = {} )
19
-
20
- begin
19
+ attempt_request do
21
20
  request = Net::HTTP::Delete.new(
22
21
  compose_request_path( path, parameters ),
23
22
  { 'Content-Type' =>'application/json' }
24
23
  )
25
- response = Response.new( @http.request( request ) )
26
- rescue Timeout::Error
27
- response = nil
28
- end
29
24
 
30
- response
25
+ Response.new( @http.request( request ) )
26
+ end
31
27
  end
32
28
 
33
29
  def get( path, parameters = {} )
34
- response = nil
35
-
36
- begin
37
- response = Response.new(
30
+ attempt_request do
31
+ Response.new(
38
32
  @http.get( compose_request_path( path, parameters ) )
39
33
  )
40
- rescue Timeout::Error
41
- response = nil
42
34
  end
43
-
44
- response
45
35
  end
46
36
 
47
37
  def post( path, parameters = {}, body = {} )
48
- response = nil
49
-
50
- begin
38
+ attempt_request do
51
39
  request = Net::HTTP::Post.new(
52
40
  compose_request_path( path, parameters ),
53
41
  { 'Content-Type' =>'application/json' }
54
42
  )
55
43
  request.body = body.to_json
56
44
 
57
- response = Response.new( @http.request( request ) )
58
- rescue Timeout::Error
59
- response = nil
45
+ Response.new( @http.request( request ) )
46
+ end
47
+ end
48
+
49
+ protected; def attempt_request
50
+ response = nil
51
+ retry_codes = [ '500', '502', '503', '504' ]
52
+
53
+ 3.times do
54
+ response =
55
+ begin
56
+ yield
57
+ rescue Timeout::Error => error
58
+ error
59
+ end
60
+
61
+ unless response.nil? || ( response.is_a?( Response ) && retry_codes.include?( response.code ) )
62
+
63
+ response = nil if response.is_a?( Timeout::Error )
64
+
65
+ break
66
+ end
60
67
  end
61
68
 
62
69
  response
@@ -0,0 +1,9 @@
1
+ module Unimatrix::Zephyrus
2
+
3
+ class TransformationOutput < Output
4
+
5
+ field :url_in
6
+
7
+ end
8
+
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unimatrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jackson Souza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-17 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -106,6 +106,7 @@ files:
106
106
  - lib/unimatrix/alchemist/video_encoding_activity_proxy.rb
107
107
  - lib/unimatrix/alchemist/video_picture_activity_proxy.rb
108
108
  - lib/unimatrix/alchemist/video_rendition.rb
109
+ - lib/unimatrix/alchemist/video_rendition_interrogation_activity_proxy.rb
109
110
  - lib/unimatrix/alchemist/video_sprite_activity_proxy.rb
110
111
  - lib/unimatrix/alchemist/video_storage_interrogation_picture_activity_proxy.rb
111
112
  - lib/unimatrix/analyst/rule.rb
@@ -156,6 +157,7 @@ files:
156
157
  - lib/unimatrix/iris/stream_output.rb
157
158
  - lib/unimatrix/iris/stream_recorder.rb
158
159
  - lib/unimatrix/iris/stream_transcriber.rb
160
+ - lib/unimatrix/iris/stream_transformer.rb
159
161
  - lib/unimatrix/iris/stream_transmutator.rb
160
162
  - lib/unimatrix/malformed_parameter_error.rb
161
163
  - lib/unimatrix/missing_parameter_error.rb
@@ -180,6 +182,7 @@ files:
180
182
  - lib/unimatrix/zephyrus/transcoding_output.rb
181
183
  - lib/unimatrix/zephyrus/transcoding_rendition.rb
182
184
  - lib/unimatrix/zephyrus/transcribing_output.rb
185
+ - lib/unimatrix/zephyrus/transformation_output.rb
183
186
  - lib/unimatrix/zephyrus/transmutation_output.rb
184
187
  - lib/unimatrix/zephyrus/transmutation_rendition.rb
185
188
  homepage: http://sportsrocket.com
@@ -202,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
205
  version: '0'
203
206
  requirements: []
204
207
  rubyforge_project:
205
- rubygems_version: 2.5.2
208
+ rubygems_version: 2.4.8
206
209
  signing_key:
207
210
  specification_version: 4
208
211
  summary: Unimatrix is used to communicate with Unimatrix APIs.