hobby-json 0.0.0 → 0.0.1
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/hobby-json.gemspec +1 -1
- data/lib/hobby/json.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8c9105de691a61333c00bafcd8e091629efeacd
|
|
4
|
+
data.tar.gz: f96cc5d2b3a9ff2e4e7d042d25058ea73baf045d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c200130a301b2f49b92f418ac046ddd04509ebafc4663bf20ef9a2e4ce3e902e5c83bee7cd9b48955a092d738a226e8b50e32f701e14477929b69baf0e4107b
|
|
7
|
+
data.tar.gz: c53adad858bee2d592aa1d84e1112b53ab7a3181ed77c8a948bd38206521df5db498e711e28496f5feadb06a21f19910fd4e7b996292d131b216129ca12ddea3
|
data/hobby-json.gemspec
CHANGED
data/lib/hobby/json.rb
CHANGED
|
@@ -4,10 +4,10 @@ module Hobby
|
|
|
4
4
|
module JSON
|
|
5
5
|
def self.included app
|
|
6
6
|
app.use Rack::ContentType, 'application/json'
|
|
7
|
-
app.response
|
|
7
|
+
app.response = Response
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
class Response < Rack::Response
|
|
11
11
|
def write object
|
|
12
12
|
super object.to_json
|
|
13
13
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hobby-json
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anatoly Cherno
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11
|
|
11
|
+
date: 2016-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|
|
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
37
37
|
version: '0'
|
|
38
38
|
requirements: []
|
|
39
39
|
rubyforge_project:
|
|
40
|
-
rubygems_version: 2.5.
|
|
40
|
+
rubygems_version: 2.5.2
|
|
41
41
|
signing_key:
|
|
42
42
|
specification_version: 4
|
|
43
43
|
summary: A way to work with JSON in Hobby without too much verbosity.
|