mts-autojoin 0.1.0 → 0.1.1
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 +4 -4
- data/Gemfile.lock +7 -1
- data/lib/mts/autojoin.rb +8 -7
- data/lib/mts/autojoin/version.rb +1 -1
- data/mts-autojoin-0.1.0.gem +0 -0
- data/mts-autojoin.gemspec +2 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65d853e41a4224e1675e10be9cbc6df889c75bf170057064d55a8a26dcc5deb3
|
4
|
+
data.tar.gz: 404fcd869ced2b673b07fbf6642cb43d14e1d1329716bfeee6d00fa5b5b075e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb039f3c4e92b50bd6f6e3c655bd1774b0672d6481d1518ce89d6268f9878637f72c3113591397e9f7c74e9947e4a89c30bd6de0ef56c040ec53de390c9e8e94
|
7
|
+
data.tar.gz: 81d07f5069bfeebe14a73e7a75bb1b217243eeca48fde2458742404e3ca6c66cd5b080dc04f0a1185f58ba11a717de7b2ae8b8fac1b4215624351c64aeb6992d
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mts-autojoin (0.1.
|
4
|
+
mts-autojoin (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
coderay (1.1.2)
|
9
10
|
diff-lcs (1.3)
|
11
|
+
method_source (0.9.0)
|
12
|
+
pry (0.11.3)
|
13
|
+
coderay (~> 1.1.0)
|
14
|
+
method_source (~> 0.9.0)
|
10
15
|
rake (10.5.0)
|
11
16
|
rspec (3.8.0)
|
12
17
|
rspec-core (~> 3.8.0)
|
@@ -28,6 +33,7 @@ PLATFORMS
|
|
28
33
|
DEPENDENCIES
|
29
34
|
bundler (~> 1.16)
|
30
35
|
mts-autojoin!
|
36
|
+
pry (~> 0.11.3)
|
31
37
|
rake (~> 10.0)
|
32
38
|
rspec (~> 3.0)
|
33
39
|
|
data/lib/mts/autojoin.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "mts/autojoin/version"
|
2
2
|
require "tempfile"
|
3
|
+
require "pry"
|
3
4
|
|
4
5
|
module Mts
|
5
6
|
module Autojoin
|
@@ -12,26 +13,26 @@ module Mts
|
|
12
13
|
attr_reader :video_files, :max_file_size, :grouped_video_files
|
13
14
|
|
14
15
|
def initialize(path)
|
15
|
-
@full_path = File.expand_path(path)
|
16
|
+
@full_path = File.expand_path(path || '/')
|
16
17
|
@video_files = []
|
17
18
|
@max_file_size = TWO_GIGABYTES
|
18
19
|
@grouped_video_files = Hash.new { |h,k| h[k] = [] }
|
19
20
|
end
|
20
21
|
|
21
22
|
def check_folder
|
22
|
-
if File.directory?(
|
23
|
-
puts "
|
23
|
+
if File.directory?(full_path)
|
24
|
+
puts "MTS files will be checked at '#{full_path}'"
|
24
25
|
else
|
25
|
-
|
26
|
-
exit
|
26
|
+
abort 'You did not provide a valid folder'
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
30
|
def check_video_files
|
31
|
-
Dir.foreach(
|
32
|
-
next if (file == '.'
|
31
|
+
Dir.foreach(full_path) do |file|
|
32
|
+
next if (file == '.' || file == '..' || !['.mts','.MTS','.ts','.TS'].include?(File.extname(file)))
|
33
33
|
@video_files << [file, File.size(File.expand_path(file, full_path))]
|
34
34
|
end
|
35
|
+
abort "No MTS files found at '#{full_path}'" if @video_files.empty?
|
35
36
|
end
|
36
37
|
|
37
38
|
# Check if there are 4 gigabyte files
|
data/lib/mts/autojoin/version.rb
CHANGED
Binary file
|
data/mts-autojoin.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mts-autojoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hugo Borges - agaelebe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.11.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.11.3
|
55
69
|
description: Command line tool used to join mts files from AVCHD camcorders using
|
56
70
|
ffmpeg without reencoding the video.
|
57
71
|
email:
|
@@ -74,6 +88,7 @@ files:
|
|
74
88
|
- exe/mts-autojoin
|
75
89
|
- lib/mts/autojoin.rb
|
76
90
|
- lib/mts/autojoin/version.rb
|
91
|
+
- mts-autojoin-0.1.0.gem
|
77
92
|
- mts-autojoin.gemspec
|
78
93
|
homepage: https://github.com/agaelebe/mts-autojoin/
|
79
94
|
licenses:
|