afmotion-rocket 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/afmotion-rocket/client_patch.rb +6 -3
- data/lib/afmotion-rocket/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: ec472e6d1cff75d30ea407a1bb5337d3e27c4de2
|
4
|
+
data.tar.gz: 69749b49c7da89be44588b604ef1da4771c2e2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d927c6eba15ebd5f0cc6afd820772e7805b5bcb0f51ca31bc4b86da375fa183b9183e63e7ce7edacfbf2a7dba2a15c2dfaa25dae1a2e0bfb001be2ff7c79e0
|
7
|
+
data.tar.gz: 7396d8f62d7028725c68fc14c65cd958c945e047f6a1ca6c5247318509c6bcc2e27475eb962a4904af6f01b6caae4a21061e536fcfa3d1e35b6d728b38ab677c
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
module AFMotion
|
2
2
|
module Rocket
|
3
|
+
def self.included(klass)
|
4
|
+
klass.send(:alias_method,"headers_without_wrapper", "headers")
|
5
|
+
klass.send(:alias_method,"headers", "headers_with_wrapper")
|
6
|
+
end
|
7
|
+
|
3
8
|
def rocket_client
|
4
9
|
@rocket_client ||= begin
|
5
10
|
client = AFRocketClient.alloc.init
|
@@ -38,9 +43,7 @@ module AFMotion
|
|
38
43
|
end
|
39
44
|
end
|
40
45
|
|
41
|
-
|
42
|
-
|
43
|
-
def headers
|
46
|
+
def headers_with_wrapper
|
44
47
|
@headers_wrapper ||= HeaderWrapper.new(self)
|
45
48
|
end
|
46
49
|
end
|