vidispine 1.5.2 → 1.5.3

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: b57220a13423aaf8fab088c32d0f837222ed74f2
4
- data.tar.gz: f853f25d95937d7ef4b58d8b4236156e9f67437d
3
+ metadata.gz: 7e06f7c248d0a30185075abb17cc5c77a713051d
4
+ data.tar.gz: 435188fd53cf0ea96f5cfbb325ff3199d1b421e7
5
5
  SHA512:
6
- metadata.gz: e1b99aa261d29fcbcd41f270762d174b4f98222554504f45e8a5e047153e7ea46926a03d5d77a5b4cfc116f86a4ffb80b7f992890dda387c6be9fbb1ab35050f
7
- data.tar.gz: 43e181f59a8e2ace6afd9a4ddcdf0a06b1efa496a7bc2d8ca60b28ca2d0371b39b6c0256decbbfac3664437dc8639862c346b06ac6fa6b52a37e6aa288e40f6c
6
+ metadata.gz: 6f889f18c5e2a7a59bb2a6de00babe0e04801db3f49d4ca3fc8cee0eb7dafe56131844d3792fb54b2eb747df107654c15f6eb630d04d6beb754a1c3f096e4714
7
+ data.tar.gz: 54f602dc6e2d51ae693d9104b77a413183242c43f8035db473271938d2d6deb21dd515ba0af94597de7d37213453f5543b516c4dfa5690df54d9918e2ded8764
@@ -9,22 +9,27 @@ module Vidispine::API::Client::Requests
9
9
  PARAMETERS = [
10
10
  { :name => :item_id, :required => true, :send_in => :path },
11
11
  { :name => :item_type, :required => true, :send_in => :path },
12
- :uri,
13
- :fileId,
14
- :tag,
15
- :original,
16
- :createPosters,
12
+
13
+ :allowReimport,
17
14
  :createThumbnails,
18
- :overrideFastStart,
19
- :requireFastStart,
20
15
  :fastStartLength,
16
+ :fileId,
21
17
  :growing,
18
+ :index,
19
+ :jobmetadata,
20
+ 'no-transcode',
22
21
  :notification,
23
22
  :notificationDta,
23
+ :original,
24
+ :overrideFastStart,
24
25
  :priority,
25
- :jobmetadata,
26
+ :resourceId,
27
+ :requireFastStart,
26
28
  :settings,
27
- :index
29
+ :shapeId,
30
+ :tag,
31
+ :thumbnailService,
32
+ :uri
28
33
  ]
29
34
 
30
35
  def after_process_parameters
@@ -537,11 +537,13 @@ module Vidispine
537
537
  # @option args [String] :file_id
538
538
  # @option args [Boolean] :create_thumbnails (true)
539
539
  # @option args [Integer|false] :create_posters (3)
540
+ # @option args [Hash] :import_args ({})
540
541
  #
541
542
  # @param [Hash] options
542
543
  # @option options [Boolean] :add_item_to_collection
543
544
  # @option options [Boolean] :wait_for_transcode_job (false)
544
545
  # @option options [Boolean] :skip_transcode_if_shape_with_tag_exists (true)
546
+ # @option options [Boolean] :use_placeholder_import (true)
545
547
  #
546
548
  # @return [Hash]
547
549
  def item_add_using_file_path(args = { }, options = { })
@@ -668,10 +670,21 @@ module Vidispine
668
670
  create_posters = args.fetch(:create_posters, 3)
669
671
 
670
672
  unless shape
673
+ import_args_in = args[:import_args]
674
+
675
+ import_args = { :item_id => item_id, :file_id => file_id, :tag => original_shape_tag_name }
676
+ import_args.merge!(symbolize_keys(import_args_in, false)) if import_args_in.is_a?(Hash)
677
+
678
+ use_placeholder_import = options.fetch(:use_placeholder_import, true)
679
+ if use_placeholder_import
680
+ import_args[:item_type] ||= 'container'
681
+ end
682
+
671
683
  # 6. Add the file as the original shape
672
684
  logger.debug { 'Adding the file as the Original Shape.' }
673
- item_shape_import_response = import_placeholder_item(:item_id => item_id, :file_id => file_id, :tag => original_shape_tag_name)
674
- # item_shape_import_response = item_shape_import(:item_id => item_id, :file_id => file_id, :tag => original_shape_tag_name)
685
+ item_shape_import_response = use_placeholder_import ?
686
+ import_placeholder_item(import_args) :
687
+ item_shape_import(import_args)
675
688
  _response[:item_shape_import] = item_shape_import_response
676
689
 
677
690
  job_id = item_shape_import_response['jobId']
@@ -1,3 +1,3 @@
1
1
  module Vidispine
2
- VERSION = '1.5.2'
2
+ VERSION = '1.5.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidispine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Whitson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-29 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler