hobby-test 0.0.11 → 0.0.12
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/hobby/test.rb +2 -2
- 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: 345b2ca21a09e7b7bfddc7a9f471ec35d70d7757
|
|
4
|
+
data.tar.gz: fb0cc3b3f3ba980270d7bb1e6fca2844c316e757
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5866f177d8e6f4d743ecd9fda1b23617e82a5b6c084bda21afea1d00e6a13c30fb8b7664ffb7b26a741d3cec9e71864930f975b10511fbc622b005fa95e56ab1
|
|
7
|
+
data.tar.gz: 3b2d1d8c4d53e61e31f55a488d218e4d3c369da3988e276d21d25ec2b3875ab2fa19d29e13b8e6a4abb760900f7c21c2c426c2829902eea291296832718cb6be
|
data/lib/hobby/test.rb
CHANGED
|
@@ -203,7 +203,7 @@ module Hobby
|
|
|
203
203
|
|
|
204
204
|
if local_format = params.delete('format')
|
|
205
205
|
@format = case local_format
|
|
206
|
-
when 'json' then JSON
|
|
206
|
+
when 'json' then ::JSON
|
|
207
207
|
when 'text' then nil
|
|
208
208
|
else
|
|
209
209
|
raise "Wrong format #{local_format}."
|
|
@@ -269,7 +269,7 @@ module Hobby
|
|
|
269
269
|
|
|
270
270
|
def format= string
|
|
271
271
|
case string
|
|
272
|
-
when 'json' then JSON
|
|
272
|
+
when 'json' then ::JSON
|
|
273
273
|
when 'text' then nil
|
|
274
274
|
else
|
|
275
275
|
raise "Wrong format #{string}."
|