rest-ftp-daemon-transform-mp4split 0.0.2 → 0.0.3

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: f96a0404e8b18bf44aaa01a430acc43b5518e9ec
4
- data.tar.gz: 20dc8fe22b319871f01f00a20df08d83893e2666
3
+ metadata.gz: b0cbbd83c74af28886f895e9c765ff01fbebfd66
4
+ data.tar.gz: 7489c6f790a4e48701edb2d4d7a52f80c4d0c51f
5
5
  SHA512:
6
- metadata.gz: 61b3229600aa77895a193507023ef762633bc912d6fd9c1a94d4d02ab419cb4b8838c5d311894ab082ed6e01dc0394beacf6492de609e99e672be62fdea371ed
7
- data.tar.gz: ba3661a3d8b7bb41415d6e43d7c90002e24f4a8ba76dab937de4772a14228974eb71e6b3acb3a09864775d1a89a0093f800cbe148bbbbe644d69b18b0bb2f65d
6
+ metadata.gz: e8e80919f288353f049bc7a40fed28e453d0ddacdf04e5d18c41e9d273c69acff985dff9c4005e1f7c1979252642868dea9ca8492a4a6447f1fbfcd0155a4e0e
7
+ data.tar.gz: ba8265a847d99ad9c33a5a360a09e0bf0a3ac0638e70be08738faaf471a8316eb9c0b21b535f2c177f2d617a9216228fa3b03e33d01266c2e97e3df9a04c3689
@@ -0,0 +1,14 @@
1
+ pkg
2
+ .bundle
3
+ .DS_Store
4
+ *.log
5
+ tmp/
6
+ log/
7
+ DOC/
8
+ local.yml
9
+ .ruby-version
10
+ /.idea
11
+
12
+ Gemfile.lock
13
+ .ruby-version
14
+ .ruby-gemset
@@ -1,7 +1,10 @@
1
1
  require 'open3'
2
2
 
3
3
  module RestFtpDaemon::Transform
4
- class Mp4split < Base
4
+ class TransformVideoMissing < TransformError; end
5
+ class TransformVideoError < TransformError; end
6
+
7
+ class TransformMp4split < TaskTransform
5
8
 
6
9
  # Task attributes
7
10
  def task_icon
@@ -10,21 +13,19 @@ module RestFtpDaemon::Transform
10
13
 
11
14
  # Task operations
12
15
  def prepare
13
- super
14
-
15
16
  # Init
16
17
  @command = @config[:command]
17
18
 
18
19
  # Ensure MP4SPLIT lib is available
19
- raise RestFtpDaemon::Transform::ErrorMissingBinary, "mp4split binary not found: #{@config[:command]}" unless File.exist? (@command)
20
- raise RestFtpDaemon::Transform::ErrorMissingBinary, "mp4split binary not executable: #{@config[:command]}" unless File.executable? (@command)
20
+ raise Task::TransformMissingBinary, "mp4split binary not found: #{@config[:command]}" unless File.exist? (@command)
21
+ raise Task::TransformMissingBinary, "mp4split binary not executable: #{@config[:command]}" unless File.executable? (@command)
21
22
 
22
23
  # Ensure MP4SPLIT licence is available
23
24
  @licence = @config[:licence]
24
- raise RestFtpDaemon::Transform::ErrorMissingBinary, "mp4split licence not found: #{@config[:licence]}" unless @config[:licence]
25
+ raise Task::TransformMissingBinary, "mp4split licence not found: #{@config[:licence]}" unless @config[:licence]
25
26
 
26
27
  # Target loc should have a name
27
- raise RestFtpDaemon::TargetNameRequired, "mp4split requires target to provided a filename" unless target_loc.name
28
+ raise Task::TargetNameRequired, "mp4split requires target to provided a filename" unless target_loc.name
28
29
  end
29
30
 
30
31
  def process
@@ -70,12 +71,12 @@ module RestFtpDaemon::Transform
70
71
 
71
72
  # If we get anything on stderr => failed
72
73
  unless status.success?
73
- raise RestFtpDaemon::TaskFailed, "stderr: #{stderr}"
74
+ raise Task::AssertionFailed, "stderr: #{stderr}"
74
75
  end
75
76
 
76
77
  # Check we have the expected output file
77
78
  unless File.exist? (output_file)
78
- raise RestFtpDaemon::Transform::ErrorMissingOutput, "can't find the expected output file at: #{output_file}"
79
+ raise Task::TransformMissingOutput, "can't find the expected output file at: #{output_file}"
79
80
  end
80
81
  end
81
82
 
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  # Project version
5
- spec.version = "0.0.2"
5
+ spec.version = "0.0.3"
6
6
 
7
7
  # Project description
8
8
  spec.name = "rest-ftp-daemon-transform-mp4split"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-ftp-daemon-transform-mp4split
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-17 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,10 +44,11 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - ".gitignore"
47
48
  - Gemfile
48
49
  - README.md
49
50
  - Rakefile
50
- - lib/plugins/rest-ftp-daemon/transform/mp4split.rb
51
+ - lib/plugins/rest-ftp-daemon/transform/transform_mp4split.rb
51
52
  - rest-ftp-daemon-transform-mp4split.gemspec
52
53
  homepage: http://github.com/bmedici/rest-ftp-daemon-transform-mp4split
53
54
  licenses: