tww 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tww.rb +7 -1
- data/lib/tww/client.rb +2 -2
- data/lib/tww/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: 59c8c99e1eb3d3a0fc42449db0b84a8aa7d2aef2
|
4
|
+
data.tar.gz: ea0314a02f6e28f1b824ef2a9293aaccea6214e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d41e585ec0d1c5f812868d3c81c032bda2c4a5f4a4006054cddb77a2f049e1663cf6e49ebc00c5cd7c3a3f46784fe67d1cc70f6899ab1941d92d76ae1283f63
|
7
|
+
data.tar.gz: b819ce7be98649e6b39e51aa4d133995db6225f2302ac184b7a987e21163d978ab5364435a287f280f9bee775bafc11ada8ef4f7ac5bf9edbd98acc9148aedba
|
data/lib/tww.rb
CHANGED
@@ -12,16 +12,22 @@ module TWW
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def client
|
15
|
-
@factory.new
|
15
|
+
@client ||= @factory.new
|
16
16
|
end
|
17
17
|
|
18
18
|
def enable_testing!
|
19
|
+
reset_client
|
19
20
|
@factory = TWW::Testing
|
20
21
|
end
|
21
22
|
|
22
23
|
def disable_testing!
|
24
|
+
reset_client
|
23
25
|
@factory = TWW::REST
|
24
26
|
end
|
27
|
+
|
28
|
+
def reset_client
|
29
|
+
@client = nil
|
30
|
+
end
|
25
31
|
end
|
26
32
|
|
27
33
|
disable_testing!
|
data/lib/tww/client.rb
CHANGED
data/lib/tww/version.rb
CHANGED