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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d557a05ec2e7126a9d457da8e5797ed784ab1337
4
- data.tar.gz: 31d77ec632e98b9b0137f79336e7587654a7ceca
3
+ metadata.gz: a3405c3bd9f95eb692f304135dec213e2819f877
4
+ data.tar.gz: a47c5ad483b2756edbd8bd6dbd839685382f96f2
5
5
  SHA512:
6
- metadata.gz: 4c03f32ddfe1bd46bfba3b706bbb1ed414839bf663af1e89eca6d8bcb054491976690f60a509c8d98a4733bc3228b8d42442301a87fd2cfc94cd6f47162f9d23
7
- data.tar.gz: fc2a8933c13f98bad78d43b4c5b64e1c0e77b5fe103c14d349d03a45299e54b7e2e0280b5091f4934672887554fb54dcb8f92f81e4cf56fc308db899bb84dc2a
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 ?", choices)
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 ?", foutput)
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
@@ -1,3 +1,3 @@
1
1
  module Mvtk
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.2.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.5
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-07 00:00:00.000000000 Z
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.2.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.2.0
54
+ version: 0.11.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: ruby-progressbar
57
57
  requirement: !ruby/object:Gem::Requirement