kat 2.0.4 → 2.0.5

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: 04b05fa2b57136f63c50ead52700b2ee2fe04fbf
4
- data.tar.gz: d803a95f59ec6ad55f641522bb29c0de1a54bc9c
3
+ metadata.gz: d11aee9f32fb16ec8fc1c4927eeeb2561bab56f1
4
+ data.tar.gz: 9e2a9bc6ffa80b85424ee74f2617da798c1e6ba4
5
5
  SHA512:
6
- metadata.gz: 93af094dda2fbffe8742accaa2b63f7dd3a63e814241d1bf930ef0bb4c94e46b78253bd36bd84035d20c8b3aadf9bbc16a261713a9c63dea8b522043047ba318
7
- data.tar.gz: fcfdc9e820d7009422441cb824ebfaa72db696db5db563898732c3a018e60be4bce4ebb05ae77d227063637fd89a7a56acb0eabb40618861bdb73a7f577b98aa
6
+ metadata.gz: 1ccc89e6bcfd9e9a9e88a0cc97b210a79b5a9250e72071aa4a1e23a3203275d3d9785f870be21da77adea98cca34cb55c63efd8835ffec3259b6c87a57786454
7
+ data.tar.gz: a7cf13cf4d2300a6d4616e49c17afe7688089109ee0d346de8f5ba8d60a48cccb5399da78e5d69b9e5491f828974a4cf5c788a1cd9ac957c8c6027c96631f7dd
data/lib/kat.rb CHANGED
@@ -1,2 +1 @@
1
1
  require File.dirname(__FILE__) + '/kat/search'
2
- require File.dirname(__FILE__) + '/kat/version'
data/lib/kat/search.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require File.dirname(__FILE__) + '/version'
1
2
  require File.dirname(__FILE__) + '/field_map'
2
3
  require 'nokogiri'
3
4
  require 'net/http'
@@ -152,7 +153,7 @@ module Kat
152
153
  #
153
154
  def query=(search_term)
154
155
  @search_term = case search_term
155
- when nil then []
156
+ when nil, '' then []
156
157
  when String, Symbol then [search_term]
157
158
  when Array then search_term.flatten.select { |e| [String, Symbol].include? e.class }
158
159
  else fail ArgumentError, "search_term must be a String, Symbol or Array. " <<
data/lib/kat/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Kat
2
2
  NAME = 'Kickass Torrents Search'
3
- VERSION = '2.0.4'
3
+ VERSION = '2.0.5'
4
4
  MALEVOLENT_DICTATOR_FOR_LIFE = 'Fission Xuiptz'
5
5
  AUTHOR = MALEVOLENT_DICTATOR_FOR_LIFE
6
6
  VERSION_STR = "#{NAME} #{VERSION} (c) 2013 #{MALEVOLENT_DICTATOR_FOR_LIFE}"
data/test/kat/test_app.rb CHANGED
@@ -93,7 +93,6 @@ describe Kat::App do
93
93
  list.must_be_instance_of Array
94
94
  list.wont_be_empty
95
95
 
96
- list[1].must_be_nil
97
96
  list.last.must_be_nil
98
97
 
99
98
  (2..list.size - 2).each { |i|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fission Xuiptz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri