mvtk 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mvtk/menu.rb +7 -2
- data/lib/mvtk/version.rb +1 -1
- data/mvtk.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3405c3bd9f95eb692f304135dec213e2819f877
|
4
|
+
data.tar.gz: a47c5ad483b2756edbd8bd6dbd839685382f96f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4be1be9eee661a6999c6ab14a89b678b4b85fd0b7376b3f1fa40cbae5be2d8b96dcee51ad8fd62901c62cce1925df83b62cec58e3de3e4991dc5d744ed0ac0f
|
7
|
+
data.tar.gz: e814439b5eb3f275c2f90ab40d8337bc86aa26638fed86529c5d1ef0c047172b8d6fa7c6a702be6e8380435b3e0c65458c8003b6bccdc253c11b97b1a0f0435f
|
data/lib/mvtk/menu.rb
CHANGED
@@ -6,7 +6,9 @@ module Mvtk
|
|
6
6
|
def self.mediamenu
|
7
7
|
prompt = TTY::Prompt.new
|
8
8
|
choices = self.listfiles
|
9
|
-
choice = prompt.select("Movie to copy ?",
|
9
|
+
choice = prompt.select("Movie to copy ?", per_page: 25) do |menu|
|
10
|
+
choices.each {|key, value| menu.choice key, value }
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
def self.listfiles
|
@@ -48,7 +50,10 @@ module Mvtk
|
|
48
50
|
foutput.push("[Manual] (Do a manual search)")
|
49
51
|
foutput.push("[Return] (Back to file menu)")
|
50
52
|
prompt2 = TTY::Prompt.new
|
51
|
-
choice = prompt2.select("Your choice ?",
|
53
|
+
choice = prompt2.select("Your choice ?", per_page: 15) do |menu|
|
54
|
+
foutput.each {|key| menu.choice key }
|
55
|
+
end
|
56
|
+
|
52
57
|
if choice == "[Manual] (Do a manual search)" then
|
53
58
|
return self.manualscrap
|
54
59
|
end
|
data/lib/mvtk/version.rb
CHANGED
data/mvtk.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_dependency "iniparse", ">= 1.4.1"
|
30
30
|
spec.add_dependency "nokogiri", ">= 1.6.6.4"
|
31
|
-
spec.add_dependency "tty-prompt", ">= 0.
|
31
|
+
spec.add_dependency "tty-prompt", ">= 0.11.0"
|
32
32
|
spec.add_dependency "ruby-progressbar", ">= 1.7.5"
|
33
33
|
spec.add_dependency "filesize", "~> 0.1.1"
|
34
34
|
spec.add_dependency "streamio-ffmpeg", ">= 1.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mvtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Celedhrim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iniparse
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.11.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.11.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: ruby-progressbar
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|