RackMotion 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/project/RackMotion.rb +10 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e25151d74f5c7f014686ffc00f30f9cea8f4c643
4
- data.tar.gz: a9899dde82b707925d9127c85c3fe3d76b51f7eb
3
+ metadata.gz: fb2494f20c65313b1700f2617b6c5b11da36a2df
4
+ data.tar.gz: a747d75245919048c09797bf184b37f123c995e0
5
5
  SHA512:
6
- metadata.gz: 6f7445f78ca154d1b7e3335aadcac83e89411df6d463827e603acb67fce62fbd7b436065e3ca49a4e46972a8f2d20af5b836f08685fac32dafb1e7ea532a9df9
7
- data.tar.gz: e41097ff6c25e8c29538ec36b11bd45efdd5724727974e27061daba058092b2fc23c09b81c0a3966fedb8a110cf765d8079dccba757213c4f14e9ecb5c48b56b
6
+ metadata.gz: c064c8046f25d695fb8c5478e97836ea94d438670342782c1f8fb8d2f222f3fc654247dc7f54529c25b7424fb63f29c10153aa58aeabf2676080832a303c0fcc
7
+ data.tar.gz: 5a51befbadc837d6b5fbc6427a573d69b6b37dd1be2c856672d287e9b6efea31236ea295c58a9dc1023859cb77535c486b997922990426ace072de5fe1e1654c
@@ -4,6 +4,16 @@ module RackMotion
4
4
  URLProtocol.middlewares << middleware
5
5
  end
6
6
 
7
+ def self.cease(middleware)
8
+ URLProtocol.middlewares.delete middleware
9
+ NSURLProtocol.unregisterClass URLProtocol if URLProtocol.middlewares.empty?
10
+ end
11
+
12
+ def self.cease_all
13
+ URLProtocol.middlewares = []
14
+ NSURLProtocol.unregisterClass URLProtocol
15
+ end
16
+
7
17
  class URLProtocol < NSURLProtocol
8
18
  @@middlewares = []
9
19
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RackMotion
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Carey Buglione
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-15 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake