unimatrix 2.3.1 → 2.4.2

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: 3d3e2a1fbf8ecd5a6aed641bc96082a03073a941
4
- data.tar.gz: 8b74c9770faa1cc09ce0a2abff7379535164a146
3
+ metadata.gz: ed292811a1941eaed362b535c42f65fb5e567e98
4
+ data.tar.gz: 0971b1f61add81fb08c2e818942495994cf18759
5
5
  SHA512:
6
- metadata.gz: a00a806353e993ccbc4ab872792d14757e1e2dd974e084df429cd7142c00c4c9123854fe30a219eec5072cff59557cba7a41ac9fd2acc178d320773e60e49342
7
- data.tar.gz: 766f98f696db873f4e4d899c36595b754296396740c3d16cf50299e23e9906621422439e975472054cf114434ace190bff68832df471dbb4ccc3279bcbf73122
6
+ metadata.gz: 15a014c4b463d4a1b8a984f79b9bc592613e7690dbefd5395a223a92883e6499a8f68cdc77f7df60cdd873764eedfd366b5e418f333c00ce063921d8d910aeae
7
+ data.tar.gz: 72b534d6c49cb4e2c6e3e065fddbf19cee5defeed7c786fe6b9ddf2c05fbc45d3af4bebe91f419ede755e7f252d4d550f637b9d483ae3b20a0850d9b1246b020
data/lib/unimatrix.rb CHANGED
@@ -98,6 +98,10 @@ require 'unimatrix/iris/stream_recorder'
98
98
  require 'unimatrix/iris/stream_transcriber'
99
99
  require 'unimatrix/iris/stream_transmutator'
100
100
 
101
+ # regent
102
+ require 'unimatrix/regent/realm'
103
+ require 'unimatrix/regent/setting'
104
+
101
105
  # zephyrus
102
106
  require 'unimatrix/zephyrus/input'
103
107
  require 'unimatrix/zephyrus/output'
@@ -116,4 +120,4 @@ require 'unimatrix/curator/source'
116
120
 
117
121
  # quartermaster
118
122
  require 'unimatrix/quartermaster/binary'
119
- require 'unimatrix/quartermaster/binaries_ingressor'
123
+ require 'unimatrix/quartermaster/binary_ingressor'
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Alchemist
2
2
 
3
- class ActivityProxy < Unimatrix::DynamicResource
3
+ class ActivityProxy < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :uuid
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Alchemist
2
2
 
3
- class Rendition < Unimatrix::DynamicResource
3
+ class Rendition < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :uuid
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Alchemist
2
2
 
3
- class RenditionProfile < Unimatrix::DynamicResource
3
+ class RenditionProfile < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :uuid
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Alchemist
2
2
 
3
- class Text < Unimatrix::DynamicResource
3
+ class Text < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :uuid
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Alchemist
2
2
 
3
- class Video < Unimatrix::DynamicResource
3
+ class Video < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :uuid
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Alchemist
2
2
 
3
- class VideoEncoder < Unimatrix::DynamicResource
3
+ class VideoEncoder < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :uuid
@@ -22,7 +22,7 @@ module Unimatrix::Archivist
22
22
  field :uuid
23
23
  field :realm_uuid
24
24
  field :component_uuids
25
- field relationships: [ :category, :cast, :season, :asset, :athlete ]
25
+ field relationships: [ :category, :person, :season, :asset, :athlete ]
26
26
  field :name
27
27
  field :created_at
28
28
  field :updated_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class Stream < Unimatrix::DynamicResource
3
+ class Stream < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class StreamEncoder < Unimatrix::DynamicResource
3
+ class StreamEncoder < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class StreamInput < Unimatrix::DynamicResource
3
+ class StreamInput < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class StreamOutput < Unimatrix::DynamicResource
3
+ class StreamOutput < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class StreamRecorder < Unimatrix::DynamicResource
3
+ class StreamRecorder < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class StreamTranscriber < Unimatrix::DynamicResource
3
+ class StreamTranscriber < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Iris
2
2
 
3
- class StreamTransmutator < Unimatrix::DynamicResource
3
+ class StreamTransmutator < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,19 +1,17 @@
1
1
  module Unimatrix::Quartermaster
2
2
 
3
- class Binary < Unimatrix::DynamicResource
3
+ class Binary < Unimatrix::Resource
4
4
 
5
- field :id
6
5
  field :filename
7
6
  field :content_length
8
7
  field :content_type
9
- field :realm_uuid
10
- field :created_at
11
- field :updated_at
12
- field :properties
8
+ field :realm_uuid, read_only: true
9
+ field :created_at, read_only: true
10
+ field :updated_at, read_only: true
13
11
  field :uuid
14
12
  field :storage_key
15
13
 
16
- has_many :binaries_ingressors
14
+ has_one :binary_ingressor
17
15
 
18
16
  end
19
17
 
@@ -0,0 +1,15 @@
1
+ module Unimatrix::Quartermaster
2
+
3
+ class BinaryIngressor < Unimatrix::Resource
4
+
5
+ field :binary_uuid, read_only: true
6
+ field :state, read_only: true
7
+ field :created_at, read_only: true
8
+ field :updated_at, read_only: true
9
+ field :uuid
10
+ field :url
11
+ field :realm_uuid, read_only: true
12
+
13
+ end
14
+
15
+ end
@@ -0,0 +1,17 @@
1
+ module Unimatrix::Regent
2
+
3
+ class Realm < Unimatrix::DynamicResource
4
+
5
+ field :id
6
+ field :uuid
7
+ field :name
8
+ field :code_name
9
+ field :created_at
10
+ field :updated_at
11
+ field :domain_name
12
+
13
+ has_many :settings
14
+
15
+ end
16
+
17
+ end
@@ -0,0 +1,14 @@
1
+ module Unimatrix::Regent
2
+
3
+ class Setting < Unimatrix::DynamicResource
4
+
5
+ field :id
6
+ field :realm_id
7
+ field :name
8
+ field :content
9
+ field :created_at
10
+ field :updated_at
11
+
12
+ end
13
+
14
+ end
@@ -38,7 +38,6 @@ module Unimatrix
38
38
  end
39
39
 
40
40
  self.fields[ name.to_sym ] = options.merge( name: name )
41
-
42
41
  class_eval(
43
42
  "def #{ name }(); " +
44
43
  "@#{ name }.is_a?( FalseClass ) ? @#{ name } : (" +
@@ -18,15 +18,17 @@ module Unimatrix
18
18
  )
19
19
  if object.respond_to?( :fields )
20
20
  object.fields.each do | name, options |
21
- value = object.send( name ) if object.respond_to?( name )
22
- if value.is_a?( Struct )
23
- nested_attributes = value.members
24
- nested_attributes.each do | nested_attribute |
25
- key = "#{ name }.#{ nested_attribute }"
26
- node_object[ key.to_sym ] = value.send( nested_attribute )
21
+ unless options[ :read_only ]
22
+ value = object.send( name ) if object.respond_to?( name )
23
+ if value.is_a?( Struct )
24
+ nested_attributes = value.members
25
+ nested_attributes.each do | nested_attribute |
26
+ key = "#{ name }.#{ nested_attribute }"
27
+ node_object[ key.to_sym ] = value.send( nested_attribute )
28
+ end
29
+ else
30
+ node_object[ name.to_sym ] = value
27
31
  end
28
- else
29
- node_object[ name.to_sym ] = value
30
32
  end
31
33
  end
32
34
  end
@@ -37,4 +39,4 @@ module Unimatrix
37
39
 
38
40
  end
39
41
 
40
- end
42
+ end
@@ -1,3 +1,3 @@
1
1
  module Unimatrix
2
- VERSION = "2.3.1"
2
+ VERSION = "2.4.2"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Zephyrus
2
2
 
3
- class Input < Unimatrix::DynamicResource
3
+ class Input < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Zephyrus
2
2
 
3
- class Output < Unimatrix::DynamicResource
3
+ class Output < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,6 @@
1
1
  module Unimatrix::Zephyrus
2
2
 
3
- class Rendition < Unimatrix::DynamicResource
3
+ class Rendition < Unimatrix::Resource
4
4
 
5
5
  field :id
6
6
  field :created_at
@@ -1,6 +1,9 @@
1
1
  module Unimatrix::Zephyrus
2
2
 
3
3
  class TransmutationOutput < Output
4
+
5
+ field :url
6
+
4
7
  end
5
8
 
6
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.3.1
4
+ version: 2.4.2
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-03-01 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -157,9 +157,11 @@ files:
157
157
  - lib/unimatrix/not_found_error.rb
158
158
  - lib/unimatrix/operation.rb
159
159
  - lib/unimatrix/parser.rb
160
- - lib/unimatrix/quartermaster/binaries_ingressor.rb
161
160
  - lib/unimatrix/quartermaster/binary.rb
161
+ - lib/unimatrix/quartermaster/binary_ingressor.rb
162
162
  - lib/unimatrix/realm.rb
163
+ - lib/unimatrix/regent/realm.rb
164
+ - lib/unimatrix/regent/setting.rb
163
165
  - lib/unimatrix/request.rb
164
166
  - lib/unimatrix/resource.rb
165
167
  - lib/unimatrix/response.rb
@@ -196,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
198
  version: '0'
197
199
  requirements: []
198
200
  rubyforge_project:
199
- rubygems_version: 2.5.2
201
+ rubygems_version: 2.4.8
200
202
  signing_key:
201
203
  specification_version: 4
202
204
  summary: Unimatrix is used to communicate with Unimatrix APIs.
@@ -1,18 +0,0 @@
1
- module Unimatrix::Quartermaster
2
-
3
- class BinariesIngressor < Unimatrix::DynamicResource
4
-
5
- field :id
6
- field :binary_uuid
7
- field :activity_id
8
- field :state
9
- field :properties
10
- field :created_at
11
- field :updated_at
12
- field :uuid
13
- field :binary_id
14
- field :url
15
-
16
- end
17
-
18
- end