peerflixrb 3.0.1 → 3.1.0
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/exe/peerflixrb +3 -0
- data/lib/peerflixrb/commands.rb +12 -0
- data/lib/peerflixrb/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9f531495ee4697820b4ab84995c99a00af42f04
|
|
4
|
+
data.tar.gz: 2e324e228ad57c3b11ed36382ea19e353023485f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46e4adff132e84970d1eeffb89638291ec78f9dc618f5e9ed98f0384cfa65f7c2cb1a1800cc4ab3eb3f1d663ce2d2ab77bbcd2b9b7be2816c6d7373a27ba8225
|
|
7
|
+
data.tar.gz: 08fe87363da4b15508b418dd1663ce132b1bbbae8755d5762b8b61d9da422dced907c793c9c0517e7fc743e0908d81b00ce0af1f2db701cc6ac7c5cbab43ea9a
|
data/exe/peerflixrb
CHANGED
|
@@ -81,6 +81,9 @@ begin
|
|
|
81
81
|
commands = Peerflixrb::Commands.new
|
|
82
82
|
cli = commands.cli
|
|
83
83
|
|
|
84
|
+
# Check requirements
|
|
85
|
+
commands.check_requirements
|
|
86
|
+
|
|
84
87
|
# KAT Search
|
|
85
88
|
cli.say "Searching KAT for #{options[:search].blue}".yellow
|
|
86
89
|
kat_search = KatSearch::Search.new(options[:search])
|
data/lib/peerflixrb/commands.rb
CHANGED
|
@@ -10,6 +10,18 @@ module Peerflixrb
|
|
|
10
10
|
HighLine.colorize_strings
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
def check_requirements
|
|
14
|
+
unless system('node --version > /dev/null 2>&1')
|
|
15
|
+
cli.say 'Nodejs is required to make it work.'.red
|
|
16
|
+
exit
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
unless system('peerflix --version > /dev/null 2>&1')
|
|
20
|
+
cli.say 'peerflix is required. Type "npm install -g iovis9/peerflix" in your shell to install it.'.red
|
|
21
|
+
exit
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
13
25
|
def choose_video_and_subtitles(kat_search, options)
|
|
14
26
|
# Proactively declare them because they would be lost in the block scope
|
|
15
27
|
link = nil
|
data/lib/peerflixrb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: peerflixrb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Marchante
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addic7ed_downloader
|
|
@@ -259,3 +259,4 @@ specification_version: 4
|
|
|
259
259
|
summary: Wrapper for peerflix with automatic search through KickAss Torrents, Yifysubtitles
|
|
260
260
|
and Addic7ed.
|
|
261
261
|
test_files: []
|
|
262
|
+
has_rdoc:
|