packethost 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packet.rb +12 -9
- data/lib/packet/client.rb +1 -1
- data/lib/packet/entity/base.rb +2 -1
- data/lib/packet/entity/serialization.rb +1 -1
- data/lib/packet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c98c2bd2f24e9a66aedcbb98fdbabd543cea562
|
4
|
+
data.tar.gz: 4ce409f660fe4bc486051aafff5cedd42da3d9e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42987ca54bc9eb6f88c87b025a88ebb4126741bfef9b452b6e341f61bb1b45bffbd2ea187892f745aa43a17ff02f258abaf9409d6a0453e9e761755fdeef8448
|
7
|
+
data.tar.gz: c1141b24edc4e608c126e7822843c8bb085d6e5185dc1cc80ca91f920b03e83e906238dad99df0540d9d6347fa66b78c46da3c62ac2358ed1053c780bba28858
|
data/lib/packet.rb
CHANGED
@@ -25,19 +25,21 @@ module Packet
|
|
25
25
|
@client ||= Packet::Client.new
|
26
26
|
end
|
27
27
|
|
28
|
-
private
|
29
|
-
|
30
28
|
def self.reset_client!
|
31
29
|
@client = nil
|
32
30
|
end
|
31
|
+
private_class_method :reset_client!
|
33
32
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
33
|
+
if RUBY_VERSION >= '1.9'
|
34
|
+
def self.respond_to_missing?(method_name, include_private = false)
|
35
|
+
client.respond_to?(method_name, include_private)
|
36
|
+
end
|
37
|
+
private_class_method :respond_to_missing?
|
38
|
+
else
|
39
|
+
def self.respond_to?(method_name, include_private = false)
|
40
|
+
client.respond_to?(method_name, include_private) || super
|
41
|
+
end
|
42
|
+
end
|
41
43
|
|
42
44
|
def self.method_missing(method_name, *args, &block)
|
43
45
|
if client.respond_to?(method_name)
|
@@ -46,4 +48,5 @@ module Packet
|
|
46
48
|
super
|
47
49
|
end
|
48
50
|
end
|
51
|
+
private_class_method :method_missing
|
49
52
|
end
|
data/lib/packet/client.rb
CHANGED
data/lib/packet/entity/base.rb
CHANGED
data/lib/packet/version.rb
CHANGED