the_pirate_bay 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/the_pirate_bay/version.rb +1 -1
- data/lib/the_pirate_bay.rb +8 -8
- metadata +2 -2
data/lib/the_pirate_bay.rb
CHANGED
@@ -6,27 +6,27 @@ require "the_pirate_bay/model"
|
|
6
6
|
require "the_pirate_bay/client"
|
7
7
|
|
8
8
|
module ThePirateBay
|
9
|
-
|
10
|
-
ENDPOINT = "http://thepiratebay.
|
11
|
-
|
9
|
+
|
10
|
+
ENDPOINT = "http://thepiratebay.is".freeze
|
11
|
+
|
12
12
|
class << self
|
13
|
-
|
13
|
+
|
14
14
|
# Handle for the client instance
|
15
15
|
attr_accessor :api_client
|
16
|
-
|
16
|
+
|
17
17
|
def new(options={}, &block)
|
18
18
|
@api_client = ThePirateBay::Client.new(options, &block)
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
# Delegate to ThePirateBay::Client
|
22
22
|
def method_missing(method, *args, &block)
|
23
23
|
return super unless new.respond_to?(method)
|
24
24
|
new.send(method, *args, &block)
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
def respond_to?(method, include_private = false)
|
28
28
|
new.respond_to?(method, include_private) || super(method, include_private)
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
end # Self
|
32
32
|
end # ThePirateBay
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_pirate_bay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|