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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22925e0ec658bb8e50a6ea65d011262140a38c65
4
- data.tar.gz: a76fc070527205e42c8fa1f11e5301ccbbbf1714
3
+ metadata.gz: ec472e6d1cff75d30ea407a1bb5337d3e27c4de2
4
+ data.tar.gz: 69749b49c7da89be44588b604ef1da4771c2e2b3
5
5
  SHA512:
6
- metadata.gz: a25bed9dcceef38e527a6f0ad81fe4b4cb8631708dd17dc79e12c1a00f6f18f78d876e320215cef70eecdf1cb18ed98d83e95a27647d3925f4083b30c97fccd5
7
- data.tar.gz: 8e37b48be9946574693e61970521d3c3065b599b101d7fe4137a49a09b794cfa1692e3910179a5e1e44c2f7afc85278b4a2e983862e8440f220ca70b4aab9d3f
6
+ metadata.gz: 70d927c6eba15ebd5f0cc6afd820772e7805b5bcb0f51ca31bc4b86da375fa183b9183e63e7ce7edacfbf2a7dba2a15c2dfaa25dae1a2e0bfb001be2ff7c79e0
7
+ data.tar.gz: 7396d8f62d7028725c68fc14c65cd958c945e047f6a1ca6c5247318509c6bcc2e27475eb962a4904af6f01b6caae4a21061e536fcfa3d1e35b6d728b38ab677c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afmotion-rocket (0.0.1)
4
+ afmotion-rocket (0.0.2)
5
5
  afmotion (~> 2.0)
6
6
 
7
7
  GEM
@@ -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
- alias_method "headers_without_wrapper", "headers"
42
-
43
- def headers
46
+ def headers_with_wrapper
44
47
  @headers_wrapper ||= HeaderWrapper.new(self)
45
48
  end
46
49
  end
@@ -1,5 +1,5 @@
1
1
  module AFMotion
2
2
  module Rocket
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afmotion-rocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clay Allsopp