evostream-event 0.2.7.pre.45 → 0.2.7.pre.47

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: 82fdefeb366413c3f31d9268dae79e8d0b56952e
4
- data.tar.gz: 03bd68889b09bd26dc3ebe3c406ae265a001913b
3
+ metadata.gz: 8cfc871e51eb351d8e48bc54430d1af139698d3e
4
+ data.tar.gz: ec42c49f2151a6535a452951eaa40beaa82dc190
5
5
  SHA512:
6
- metadata.gz: 029f338ad9ca3a80e3e90d20a4d787900e198b0d757a9d55be11339d973890e91296e0d4b259cb0e7e8e17c41a7506a6d5a9cd63815fe81aae1f06914bc029fe
7
- data.tar.gz: bab214053fde0b1eb0f5286fc3301b0d4ba4f645ed00cac5a46bb2dcffc25921f59ec5b290ea89fb9c910e3b4b68d60a0aa0cec4af08589eba1cf7ee35be2752
6
+ metadata.gz: dae3cec594d4a3075ef73e008ec43ed587837d96730c554a78cd724a13b5040d3b71af92046380a7ce22a37e5349ed6437e656f0e674793e1f789c2566ec0f22
7
+ data.tar.gz: ff2ed318bdfaa0b24418ef9c59fe99bce8b05d0b77d9a60c7c46f603802c994ff84597e07f8546d7cf1d9ecf222618571bd3f014ad41084d8e2377edc568d2d7
@@ -3,7 +3,7 @@
3
3
  module Evostream
4
4
  # Send an action to evostream server
5
5
  class Action
6
- def initialize(payload)
6
+ def initialize(payload = {})
7
7
  @payload = payload
8
8
  end
9
9
 
@@ -18,3 +18,4 @@ end
18
18
  require 'evostream/event/commands/create'
19
19
  require 'evostream/event/commands/destroy'
20
20
  require 'evostream/event/commands/push_stream'
21
+ require 'evostream/event/commands/list_config'
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Evostream
4
+ module Commands
5
+ # Returns a list with all push/pull configurations.
6
+ #
7
+ # Whenever the pullStream or pushStream interfaces are called, a record
8
+ # containing the details of the pull or push is created in the
9
+ # pullpushconfig.xml file. Then, the next time the EMS is started, the
10
+ # pullpushconfig.xml file is read, and the EMS attempts to reconnect all of
11
+ # the previous pulled or pushed streams.
12
+ #
13
+ # This function has no parameters.
14
+ class ListConfig < Command
15
+ def initialize(commands = {})
16
+ super(commands)
17
+ end
18
+
19
+ def cmd
20
+ 'listConfig'
21
+ end
22
+ end
23
+ end
24
+ end
@@ -11,7 +11,7 @@ module Evostream
11
11
  end
12
12
 
13
13
  def cmd
14
- "pushStream?params=#{Base64.urlsafe_encode64(command.join)}"
14
+ "pushStream?params=#{Base64.strict_encode64(command.join)}"
15
15
  end
16
16
 
17
17
  private
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: 0.2.7.pre.45
4
+ version: 0.2.7.pre.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
@@ -269,6 +269,7 @@ files:
269
269
  - lib/evostream/event/commands/create/dash.rb
270
270
  - lib/evostream/event/commands/create/hls.rb
271
271
  - lib/evostream/event/commands/destroy.rb
272
+ - lib/evostream/event/commands/list_config.rb
272
273
  - lib/evostream/event/commands/push_stream.rb
273
274
  - lib/evostream/event/event.rb
274
275
  - lib/evostream/event/event/events.rb