strawberry_api 0.6.1 → 0.6.2

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
  SHA256:
3
- metadata.gz: d7ed65dec2e0d12b35e196211043d163656d8218730bf4f2f185994df024cf07
4
- data.tar.gz: 318b4c3a4686acfcd0cca58e90c2c9305fe3b05f217fb47960bd3c98607d1c28
3
+ metadata.gz: 02a14014b6f9a7330a1118c2343625cbb00b4062944e4a92e59d7e714b189ae9
4
+ data.tar.gz: 99158a39274a733acebe158963264f142a938699530bb6c53b6f413d4b0049c9
5
5
  SHA512:
6
- metadata.gz: a1ee989d095109f025e782f229d3b819d0f1d1a9e949bedd0bee7932bca9a60da30a7028292f687ce15f3295867dc08af02cf590c19287ec043d7c952457df81
7
- data.tar.gz: ac7c22c8f356d6ec012913bcb4db16dbb8eac66a7e4dc6d4b67bbd8d7266833b7a36d3b7a2d595537469be3a19bd39c5982c169f5e48de37456d323f1426ebed
6
+ metadata.gz: 85ddaa4131e9ce54af2f7dfed720a9c9bc39c61d41c82777e830f446a9640ad7245ea7ee14e09c177d4ed8979d71f6f55a55739a99645565ad938d54a2a73fd1
7
+ data.tar.gz: f6c0b225e8ae206982eda661dd9730314a59964ec221051c99c5f6641e027622dc1added62b5393151f59d8b9da9175f28b10dd21c5f0aaec974f9d7a1096160
@@ -6,7 +6,7 @@ module StrawberryAPI
6
6
  #
7
7
  #
8
8
  # @return [Array<StrawberryAPI::Library>] A list of libraries
9
- #
9
+ #
10
10
  def libraries
11
11
  get("/library_ingests").parse['array']&.map do |library|
12
12
  Library.new(library)
@@ -18,7 +18,7 @@ module StrawberryAPI
18
18
  # @param [Integer] id Id of the library to retrieve
19
19
  #
20
20
  # @return [StrawberryAPI::Library] The fetched library
21
- #
21
+ #
22
22
  def library(id: nil, project_id: nil)
23
23
  libraries.find do |library|
24
24
  library.id == id.to_i || library.project_id == project_id.to_i
@@ -34,7 +34,7 @@ module StrawberryAPI
34
34
  # @param [<type>] options {mxf_handling: false} Hash of options
35
35
  #
36
36
  # @return [StrawberryAPI::Library] The created library
37
- #
37
+ #
38
38
  def create_library(project_id:, ingest_storage: 'media_1', ingest_path:, external: false, options: {mxf_handling: false})
39
39
  update_project(id: project_id, options: {is_library_project: true, encoding_priority: 'high'})
40
40
 
@@ -45,8 +45,8 @@ module StrawberryAPI
45
45
  external: external,
46
46
  options: options
47
47
  }.to_json
48
-
49
- data = post("/library_ingests", body: body).parse['libraryingest']
48
+
49
+ data = post("/library_ingests", body: body).parse['job']
50
50
  data.nil? ? nil : Library.new(data)
51
51
  end
52
52
 
@@ -55,7 +55,7 @@ module StrawberryAPI
55
55
  # @param [Integer] id Id of the library to delete
56
56
  #
57
57
  # @return [Boolean] Success
58
- #
58
+ #
59
59
  def delete_library(id:)
60
60
  delete("/library_ingests/#{id}").success?
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module StrawberryAPI
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strawberry_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Lebrun