peerflixrb 3.0.1 → 3.1.0

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: 1dabb5543aabe558a724e40dbbb454db506f57e9
4
- data.tar.gz: b4dd44bd2739c2b7e54d0fe37bb63f741a6bd54e
3
+ metadata.gz: d9f531495ee4697820b4ab84995c99a00af42f04
4
+ data.tar.gz: 2e324e228ad57c3b11ed36382ea19e353023485f
5
5
  SHA512:
6
- metadata.gz: ebee88d511052a5ee3157339ecfb6ff133e7c6fdf67e694effc224ae9669479bf9177e97b8ddba03c45bde897c8abbcdccb84950c8f8d2505a8fe9b2acb0b7fc
7
- data.tar.gz: 1f0d7e9e8e29ed1a4240b205ec7fcaaf21beb18e29e36a685be72d30750e425be108c3f9b1b2b2eee5e637f1004d337191cd283f34b55fb4874939df22db22be
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])
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Peerflixrb
2
- VERSION = '3.0.1'.freeze
2
+ VERSION = '3.1.0'.freeze
3
3
  end
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.1
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-08 00:00:00.000000000 Z
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: