evostream-event 1.0.3.pre.83 → 1.0.3.pre.91

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: fbac064df1e2262b5fa3dfeb0b2edfa8dae5138069269d9f752562c73b966de8
4
- data.tar.gz: 235146ccab9ec9948e41f92480094264a388e012324b75f8f523262b45977582
3
+ metadata.gz: 641319bf5baffc8eb3ce74146bdc55e98e13781e0f76b947d3460f3948ee9a02
4
+ data.tar.gz: 3abe357e7ef949772a69f5ea9d4f923317503444a3a4b4594f7d5ccce44113ae
5
5
  SHA512:
6
- metadata.gz: a9f67ed1f3a71522605db6eca34ed39538d8f0d275adeea1745c6c0b13e271aca252ccdfb93c754a35ad07c220aa7fe189b9d9177deef9fcf3bd13c4bdbe4786
7
- data.tar.gz: e048f67c8c7dfe9e34571aac9f5e01c9f808627b236a6f8019e76b343ae466a10a8aaafd4ac06794e7adaa86674d19443a796f0059e6c772e9df88cd7ed71628
6
+ metadata.gz: c1c745bb56a24e514662d24bac0a7342a0c24425ae01d3de259bedd4560965069847f85d862766489132654ceadaba128c47f5a2db4306a202921799a9df37fe
7
+ data.tar.gz: 8d302f6d6e68eee5fce371d5fe0e8ea9e8f9128c2b0e5fc9b513e5e1656bed040e364c0a058fb5f97676b1f4c7796e46d02a1328f97e1b7e487f28caf3c897e9
@@ -45,8 +45,8 @@ module Evostream
45
45
  101
46
46
  rescue CodeError::Syntax::OptionInvalid
47
47
  100
48
- rescue Evostream::Commands::Errors::MissingMandatory => error
49
- $stdout.puts error.message.red
48
+ rescue Evostream::Commands::Errors::MissingMandatory => e
49
+ $stdout.puts e.message.red
50
50
  50
51
51
  rescue CodeError::Finished
52
52
  0
@@ -41,8 +41,6 @@ module Evostream
41
41
  end
42
42
 
43
43
  class << self
44
- private_class_method
45
-
46
44
  def request_test(command)
47
45
  json = JSON.parse(File.read(find_fixture(command)))
48
46
  Net::HTTPSuccess.mock(json)
@@ -26,7 +26,7 @@ module Evostream
26
26
  # Define a long description to gem
27
27
  DESCRIPTION = <<-DESC
28
28
  Manipulate event evostream and send actions to evostream server.
29
- DESC
29
+ DESC
30
30
 
31
31
  # Define homepage
32
32
  HOMEPAGE = 'https://github.com/Dev-Crea/evostream-event'
@@ -6,7 +6,7 @@ describe Evostream::Commands::CreateDASH do
6
6
  let(:command) { Evostream::Commands::CreateDASH }
7
7
 
8
8
  context 'manifest_name' do
9
- let(:arg_value) { Faker::Pokemon.name }
9
+ let(:arg_value) { Faker::Games::Pokemon.name }
10
10
  let(:argument) { 'manifest_name' }
11
11
 
12
12
  include_examples 'command raise'
@@ -15,7 +15,7 @@ describe Evostream::Commands::CreateDASH do
15
15
  context 'with mandatory argument(s)' do
16
16
  let(:cmd) do
17
17
  {
18
- local_stream_names: Faker::Pokemon.name,
18
+ local_stream_names: Faker::Games::Pokemon.name,
19
19
  target_folder: Faker::File.file_name('/path/to')
20
20
  }
21
21
  end
@@ -13,7 +13,7 @@ describe Evostream::Commands::CreateHLS do
13
13
  end
14
14
 
15
15
  context 'playlist_name' do
16
- let(:arg_value) { Faker::Pokemon.name }
16
+ let(:arg_value) { Faker::Games::Pokemon.name }
17
17
  let(:argument) { 'playlist_name' }
18
18
 
19
19
  include_examples 'command raise'
@@ -27,14 +27,14 @@ describe Evostream::Commands::CreateHLS do
27
27
  end
28
28
 
29
29
  context 'chunk_base_name' do
30
- let(:arg_value) { Faker::Pokemon.name }
30
+ let(:arg_value) { Faker::Games::Pokemon.name }
31
31
  let(:argument) { 'chunk_base_name' }
32
32
 
33
33
  include_examples 'command raise'
34
34
  end
35
35
 
36
36
  context 'drm_type' do
37
- let(:arg_value) { Faker::Pokemon.name }
37
+ let(:arg_value) { Faker::Games::Pokemon.name }
38
38
  let(:argument) { 'drm_type' }
39
39
 
40
40
  include_examples 'command raise'
@@ -106,7 +106,7 @@ describe Evostream::Commands::CreateHLS do
106
106
  context 'with mandatory argument(s)' do
107
107
  let(:cmd) do
108
108
  {
109
- local_stream_names: Faker::Pokemon.name,
109
+ local_stream_names: Faker::Games::Pokemon.name,
110
110
  target_folder: Faker::File.file_name('/path/to')
111
111
  }
112
112
  end
@@ -13,7 +13,7 @@ describe Evostream::Commands::Create do
13
13
  end
14
14
 
15
15
  context 'group_name' do
16
- let(:arg_value) { Faker::Pokemon.name }
16
+ let(:arg_value) { Faker::Games::Pokemon.name }
17
17
  let(:argument) { 'group_name' }
18
18
 
19
19
  include_examples 'command raise'
@@ -85,7 +85,7 @@ describe Evostream::Commands::Create do
85
85
  context 'with mandatory argument(s)' do
86
86
  let(:cmd) do
87
87
  {
88
- local_stream_names: Faker::Pokemon.name,
88
+ local_stream_names: Faker::Games::Pokemon.name,
89
89
  target_folder: Faker::File.file_name('/path/to')
90
90
  }
91
91
  end
@@ -19,7 +19,7 @@ describe Evostream::Commands::Destroy do
19
19
  end
20
20
 
21
21
  context 'group_name' do
22
- let(:arg_value) { Faker::Pokemon.name }
22
+ let(:arg_value) { Faker::Games::Pokemon.name }
23
23
  let(:argument) { 'group_name' }
24
24
 
25
25
  include_examples 'command raise'
@@ -12,7 +12,7 @@ describe Evostream::Commands::GetStreamInfo do
12
12
  end
13
13
 
14
14
  context 'local_stream_name' do
15
- let(:arg_value) { Faker::Pokemon.name }
15
+ let(:arg_value) { Faker::Games::Pokemon.name }
16
16
  let(:argument) { 'local_stream_name' }
17
17
 
18
18
  include_examples 'command raise'
@@ -12,14 +12,14 @@ describe Evostream::Commands::Destroy do
12
12
  end
13
13
 
14
14
  context 'local_stream_name' do
15
- let(:arg_value) { Faker::Pokemon.name }
15
+ let(:arg_value) { Faker::Games::Pokemon.name }
16
16
  let(:argument) { 'local_stream_name' }
17
17
 
18
18
  include_examples 'command raise'
19
19
  end
20
20
 
21
21
  context 'target_stream_name' do
22
- let(:arg_value) { Faker::Pokemon.name }
22
+ let(:arg_value) { Faker::Games::Pokemon.name }
23
23
  let(:argument) { 'target_stream_name' }
24
24
 
25
25
  include_examples 'command raise'
@@ -74,8 +74,8 @@ describe Evostream::Events::InStreamClosed, type: :request do
74
74
 
75
75
  context 'payload isn\'t correct' do
76
76
  let(:body) { Faker::Lorem.paragraph }
77
- let(:type) { Faker::Zelda.character }
78
- let(:payload) { Faker::Zelda.game }
77
+ let(:type) { Faker::Games::Zelda.character }
78
+ let(:payload) { Faker::Games::Zelda.game }
79
79
 
80
80
  include_examples 'payload isn\'t correct'
81
81
  end
@@ -24,7 +24,7 @@ describe Evostream::Events::InStreamCreated, type: :request do
24
24
  farIp: Faker::Internet.ip_v4_address,
25
25
  farPort: Faker::Number.between(1, 65_536),
26
26
  ip: Faker::Internet.ip_v4_address,
27
- name: "#{Faker::Zelda.character}_#{Faker::Number.between(1, 999)}",
27
+ name: "#{Faker::Games::Zelda.character}_#{Faker::Number.between(1, 999)}",
28
28
  nearIp: Faker::Internet.ip_v4_address,
29
29
  nearPort: Faker::Number.between(1, 65_536),
30
30
  outStreamsUniqueIds: nil,
@@ -67,8 +67,8 @@ describe Evostream::Events::InStreamCreated, type: :request do
67
67
 
68
68
  context 'payload isn\'t correct' do
69
69
  let(:body) { Faker::Lorem.paragraph }
70
- let(:type) { Faker::Zelda.character }
71
- let(:payload) { Faker::Zelda.game }
70
+ let(:type) { Faker::Games::Zelda.character }
71
+ let(:payload) { Faker::Games::Zelda.game }
72
72
 
73
73
  include_examples 'payload isn\'t correct'
74
74
  end
@@ -44,9 +44,9 @@ describe Evostream::Events::OutStreamCreated do
44
44
  hlsResume: false,
45
45
  hlsVersion: 3,
46
46
  keepAlive: true,
47
- localStreamName: Faker::GameOfThrones.house,
47
+ localStreamName: Faker::TvShows::GameOfThrones.house,
48
48
  masterPlaylistPath: Faker::File.file_name(Faker::Lorem.word,
49
- Faker::GameOfThrones.city,
49
+ Faker::TvShows::GameOfThrones.city,
50
50
  Faker::Color.color_name),
51
51
  maxChunkLength: 0,
52
52
  offsetTime: 0,
@@ -58,14 +58,14 @@ describe Evostream::Events::OutStreamCreated do
58
58
  staleRetentionCount: 5,
59
59
  startOffset: 0,
60
60
  targetFolder: Faker::File.file_name(Faker::Lorem.word,
61
- Faker::GameOfThrones.city,
61
+ Faker::TvShows::GameOfThrones.city,
62
62
  Faker::Color.color_name),
63
63
  timestamp: Faker::Number.decimal(1),
64
64
  useByteRange: false,
65
65
  useSystemTime: false
66
66
  },
67
67
  ip: Faker::Internet.ip_v4_address,
68
- name: "#{Faker::Zelda.character}_#{Faker::Number.between(1, 999)}",
68
+ name: "#{Faker::Games::Zelda.character}_#{Faker::Number.between(1, 999)}",
69
69
  nearIp: Faker::Internet.ip_v4_address,
70
70
  nearPort: Faker::Number.between(1, 65_536),
71
71
  outStreamsUniqueIds: nil,
@@ -107,8 +107,8 @@ describe Evostream::Events::OutStreamCreated do
107
107
 
108
108
  context 'payload isn\'t correct' do
109
109
  let(:body) { Faker::Lorem.paragraph }
110
- let(:type) { Faker::Zelda.character }
111
- let(:payload) { Faker::Zelda.game }
110
+ let(:type) { Faker::Games::Zelda.character }
111
+ let(:payload) { Faker::Games::Zelda.game }
112
112
 
113
113
  include_examples 'payload isn\'t correct'
114
114
  end
@@ -146,7 +146,7 @@ describe Evostream::Events::OutStreamCreated do
146
146
  groupName: Faker::Lorem.word,
147
147
  groupTargetFolder: Faker::File.file_name(Faker::Lorem.word),
148
148
  keepAlive: true,
149
- localStreamName: Faker::GameOfThrones.house,
149
+ localStreamName: Faker::TvShows::GameOfThrones.house,
150
150
  manifestName: "#{Faker::Lorem.word}.#{Faker::Lorem.word}",
151
151
  operationType: 6,
152
152
  overwriteDestination: true,
@@ -154,11 +154,11 @@ describe Evostream::Events::OutStreamCreated do
154
154
  playlistType: %w[rolling appending].sample,
155
155
  staleRetentionCount: 5,
156
156
  targetFolder: Faker::File.file_name(Faker::Lorem.word,
157
- Faker::GameOfThrones.city,
157
+ Faker::TvShows::GameOfThrones.city,
158
158
  Faker::Color.color_name)
159
159
  },
160
160
  ip: Faker::Internet.ip_v4_address,
161
- name: "#{Faker::Zelda.character}_#{Faker::Number.between(1, 999)}",
161
+ name: "#{Faker::Games::Zelda.character}_#{Faker::Number.between(1, 999)}",
162
162
  nearIp: Faker::Internet.ip_v4_address,
163
163
  nearPort: Faker::Number.between(1, 65_536),
164
164
  outStreamsUniqueIds: nil,
@@ -200,8 +200,8 @@ describe Evostream::Events::OutStreamCreated do
200
200
 
201
201
  context 'payload isn\'t correct' do
202
202
  let(:body) { Faker::Lorem.paragraph }
203
- let(:type) { Faker::Zelda.character }
204
- let(:payload) { Faker::Zelda.game }
203
+ let(:type) { Faker::Games::Zelda.character }
204
+ let(:payload) { Faker::Games::Zelda.game }
205
205
 
206
206
  include_examples 'payload isn\'t correct'
207
207
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evostream-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3.pre.83
4
+ version: 1.0.3.pre.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.13'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.13'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: capybara
29
15
  requirement: !ruby/object:Gem::Requirement