t411 0.0.5 → 0.0.6

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: 1efd77610ac402fe8352e9eea5b43a047dc409ca
4
- data.tar.gz: 0c5d20775e48acf4683ac574e0957204eec9ae9a
3
+ metadata.gz: 455e16510d4b511aa99faa397e3340688927eabb
4
+ data.tar.gz: b234d5ec3483292422782c20055bad7926d543ea
5
5
  SHA512:
6
- metadata.gz: 72f682306353b36f149290f7dfd87be047fbdec2dbfed2823d67b3839e8d2e169766663fd8f69f8bb39b1212a774dbf8d40793bc4fa6ab5de6ed79ef8a9c29e5
7
- data.tar.gz: 3f8736ca236c9550d68c077e4ec0347da42eb574a7822f88c259f2a93fa57b8f66911956481bc91da7cf8404f0fd674e251111a3805191849efe4fd2fed2c550
6
+ metadata.gz: 08060bf357d2cf5b444aa5ab076898a7259c7ed6ea18e66da2901798d147ad753144773a4e557b708ce6db738dff497779d480792ab93394eb970c3bb9391b2c
7
+ data.tar.gz: 1fe7741b361e9702e3a64af289b6185c9b8a7d4be1264f4b13db0738f811380e3585ea3ab773ef6f361519b885f7f1595c80a837faf4d7495b2773a3f5354871
@@ -12,7 +12,7 @@ module T411
12
12
 
13
13
  def self.search(query, options={})
14
14
  options = {limit: 100, cid: nil}.merge(options)
15
- path = "/torrents/search/#{query.gsub(' ','+')}?&limit=#{options[:limit]}&cid=#{options[:cid]}" if options[:cid] != nil && options[:cid].is_a?(Integer) || "/torrents/search/#{query.gsub(' ','+')}?&limit=#{options[:limit]}"
15
+ path = "/torrents/search/#{query.gsub(' ','+')}?&limit=#{options[:limit]}&cid=#{options[:cid]}" if options[:cid] != nil && options[:cid].is_a?(Integer) || path = "/torrents/search/#{query.gsub(' ','+')}?&limit=#{options[:limit]}"
16
16
  req = Net::HTTP::Get.new(path); req['Authorization'] = T411::Api.shared_token
17
17
  Net::HTTP.new($t411_base_url.gsub('http://','')).request(req).body
18
18
  end
@@ -30,4 +30,3 @@ module T411
30
30
  end
31
31
  end
32
32
 
33
-
@@ -1,3 +1,3 @@
1
1
  module T411
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t411
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christophe Augello
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Ruby wrapper for the t411.me API
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
@@ -67,17 +67,17 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - '>='
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.0.3
80
+ rubygems_version: 2.2.2
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Ruby wrapper for the t411.me API