RackMotion 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/project/RackMotion.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2494f20c65313b1700f2617b6c5b11da36a2df
|
4
|
+
data.tar.gz: a747d75245919048c09797bf184b37f123c995e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c064c8046f25d695fb8c5478e97836ea94d438670342782c1f8fb8d2f222f3fc654247dc7f54529c25b7424fb63f29c10153aa58aeabf2676080832a303c0fcc
|
7
|
+
data.tar.gz: 5a51befbadc837d6b5fbc6427a573d69b6b37dd1be2c856672d287e9b6efea31236ea295c58a9dc1023859cb77535c486b997922990426ace072de5fe1e1654c
|
data/lib/project/RackMotion.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|