kat_search 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e758fc996e3383003d55a5966fab1dd7f8c5403
4
- data.tar.gz: a17aa2b7a131faad2ae54bceb0a2c8efbc80b4ce
3
+ metadata.gz: 51eae5c378a16f9b1b5ecb7554dc0351e0730a69
4
+ data.tar.gz: 40b8f3694ea76f79712beb3640ce4d4f18134732
5
5
  SHA512:
6
- metadata.gz: 37286866788b1025534adc0c65b09ed366e23d11da1560bf7e41d080a683f759574f9452dc59a15b904ebb8524481df7647856d29cf0eca04c3b88d5f5377549
7
- data.tar.gz: 6545b4d183d80140339b1a63bd03e9f34552a6f2119c752e2e38ba1e197e542b7a48b7601dfc322cdb2eaf89e8c4b46b6eb1e6278a29b7d1350bb425c8f6c0ff
6
+ metadata.gz: 55fa24eb01556e82557d10f9d0e0f4dab6a18238ae288ebeee0ac4d1f9a13b5bac28453183d6de4d009211595a3432b0233e60327129c833f22385d6e5ec8db6
7
+ data.tar.gz: 6927fe81a7be4ffef1d4314c594bcca611d58f0e5a7644cf5bb2f5e963191696f163206d40afbdf339922a96b5af867961aa4a4c9e59f5b3f24bd1f604c6cc34
data/.travis.yml CHANGED
@@ -2,4 +2,5 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.3.1
5
+ - 2.1.5
5
6
  before_install: gem install bundler -v 1.12.5
data/exe/kat_search CHANGED
@@ -72,7 +72,7 @@ begin
72
72
 
73
73
  # Download torrent or print magnet link
74
74
  if options[:magnet]
75
- cli.say torrent.magnet.green
75
+ cli.say torrent.magnet
76
76
  else
77
77
  torrent_file = torrent.download(options[:path])
78
78
  cli.say "#{torrent_file} downloaded successfully!".green
@@ -1,5 +1,4 @@
1
1
  require 'cgi'
2
- require 'open-uri'
3
2
  require 'httparty'
4
3
 
5
4
  module KatSearch
@@ -53,8 +52,7 @@ module KatSearch
53
52
 
54
53
  def extract_hash
55
54
  # Extract magnet properties to a Hash and then parse the sha1 info hash
56
- magnet_params = CGI.parse(URI.parse(magnet).query)
57
- raw_hash = magnet_params['xt'].first
55
+ raw_hash = magnet[/(xt.*?)&/, 1] # extract the xt property
58
56
  raw_hash.split(':').last.downcase
59
57
  end
60
58
 
@@ -1,3 +1,3 @@
1
1
  module KatSearch
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kat_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -213,4 +213,3 @@ signing_key:
213
213
  specification_version: 4
214
214
  summary: Search KickAss Torrents.
215
215
  test_files: []
216
- has_rdoc: