multi_video_streaming 1.0.0.beta4 → 1.0.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
  SHA256:
3
- metadata.gz: 6214bfc2510cc8ff7505d337b1bba056166885780013b6f63fcda015b3fb00dd
4
- data.tar.gz: 126b70be46b9c501e73b744f46aa224c4ff392b743935b0d08cff5d850cbfe53
3
+ metadata.gz: 8eb82448880f2f8cf028c589410cd6d5c61cc7f2f54143ce55595d57367f9321
4
+ data.tar.gz: 9dddf0c708085972d920eb9918535a654244b4ea299d39d2e9c8b3ed3dc1d036
5
5
  SHA512:
6
- metadata.gz: 1add05cefbd4a34d1eba73dad3b2f8c51581a4335cf5210a4a277a59cca36c48aed7bb789981935c7a413963822e76f987c4a47eaa9086b9ec9261b3bc8fd809
7
- data.tar.gz: 57d7ba6966c5394c83b636cc6749ccb93351420aed76fbade17af4375d64411b4eb052b8f1e06aed143565a42163f2839447ef93306d1741111a65c054290fb3
6
+ metadata.gz: 22683688bad4a4e3f83c88d2949f1d180df47276b314d2a60b5f1ba308ecacb0c689cb4387392da8c971a45cbab65dcebe55de12a7c926d9f8f2c8df7e9253d2
7
+ data.tar.gz: d74439ec0be81eaa16da7f1038d0af02f19b096b2977760bde5f75869ec0526b987f15d8241830010c4686a798741ce3a96c7b0f676f806a765e4c4b82871034
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MultiVideoStreaming
4
- VERSION = "1.0.0.beta4"
4
+ VERSION = "1.0.0"
5
5
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'thread'
4
- require 'thwait'
5
3
  require "uri"
6
4
  require "net/http"
7
5
  require "openssl"
@@ -22,8 +20,6 @@ require "multi_video_streaming/validators"
22
20
 
23
21
  module MultiVideoStreaming
24
22
  def self.upload(url, *platforms)
25
- threads = []
26
-
27
23
  MultiVideoStreaming::Validators::PlatformsArrayValidator.validate(platforms_array: platforms)
28
24
  MultiVideoStreaming::Validators::PlatformsHashValidator.validate(platforms_hash: platforms, method: :create, number_of_platforms: platforms.length)
29
25
 
@@ -32,19 +28,16 @@ module MultiVideoStreaming
32
28
  https_service_instance = MultiVideoStreaming::Services::Https.new
33
29
 
34
30
  platforms.each do |platform|
35
- threads << Thread.new {
36
- platform_instance = MultiVideoStreaming::Factories::Drive.get_platform_instance(
37
- platform_name: platform[:platform_name],
38
- dependency_params: platform[:dependency_params],
39
- response_instance: response_instance,
40
- required_fields_validator_instance: required_fields_validator_instance,
41
- https_service_instance: https_service_instance
42
- )
43
- platform_instance.upload_video(url: url)
44
- }
31
+ platform_instance = MultiVideoStreaming::Factories::Drive.get_platform_instance(
32
+ platform_name: platform[:platform_name],
33
+ dependency_params: platform[:dependency_params],
34
+ response_instance: response_instance,
35
+ required_fields_validator_instance: required_fields_validator_instance,
36
+ https_service_instance: https_service_instance
37
+ )
38
+ platform_instance.upload_video(url: url)
45
39
  end
46
40
 
47
- ThreadsWait.all_waits(*threads)
48
41
  response_instance.get_all_response
49
42
  end
50
43
 
@@ -77,8 +70,6 @@ module MultiVideoStreaming
77
70
  end
78
71
 
79
72
  def self.delete(*platforms)
80
- threads = []
81
-
82
73
  MultiVideoStreaming::Validators::PlatformsArrayValidator.validate(platforms_array: platforms)
83
74
  MultiVideoStreaming::Validators::PlatformsHashValidator.validate(platforms_hash: platforms, method: :get, number_of_platforms: platforms.length)
84
75
 
@@ -87,19 +78,15 @@ module MultiVideoStreaming
87
78
  https_service_instance = MultiVideoStreaming::Services::Https.new
88
79
 
89
80
  platforms.each do |platform|
90
- threads << Thread.new {
91
- platform_instance = MultiVideoStreaming::Factories::Drive.get_platform_instance(
92
- platform_name: platform[:platform_name],
93
- dependency_params: platform[:dependency_params],
94
- response_instance: response_instance,
95
- required_fields_validator_instance: required_fields_validator_instance,
96
- https_service_instance: https_service_instance
97
- )
98
- platform_instance.delete_video
99
- }
81
+ platform_instance = MultiVideoStreaming::Factories::Drive.get_platform_instance(
82
+ platform_name: platform[:platform_name],
83
+ dependency_params: platform[:dependency_params],
84
+ response_instance: response_instance,
85
+ required_fields_validator_instance: required_fields_validator_instance,
86
+ https_service_instance: https_service_instance
87
+ )
88
+ platform_instance.delete_video
100
89
  end
101
-
102
- ThreadsWait.all_waits(*threads)
103
90
  response_instance.get_all_response
104
91
  end
105
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_video_streaming
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Schmeller
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-10-04 00:00:00.000000000 Z
13
+ date: 2022-10-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -123,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ">"
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: 1.3.1
128
+ version: '0'
129
129
  requirements: []
130
130
  rubygems_version: 3.0.3
131
131
  signing_key: