hobby-json 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d820dab743e7615d8575ea8c36f0944c0de0066b
4
- data.tar.gz: 2678eab42ae8a006a4af0d897cc6d0ebb37febeb
3
+ metadata.gz: c8c9105de691a61333c00bafcd8e091629efeacd
4
+ data.tar.gz: f96cc5d2b3a9ff2e4e7d042d25058ea73baf045d
5
5
  SHA512:
6
- metadata.gz: eb668c9b7cea4277a4ba83fb52b07a128b22d4bf23361b772361c4ab9577d45fb01c69289fa58fadef586a16062367cf289978381032ad3072a6f8ae8f12aaca
7
- data.tar.gz: bec59290b437cb99e38e6cdae6e22f03d72eeab8a52087fdc14b33b5095bcb37ec15ef0faa0ffe2ca59a33cea0bc3f8735bd26d759955a60bbaffdc891cb6452
6
+ metadata.gz: 0c200130a301b2f49b92f418ac046ddd04509ebafc4663bf20ef9a2e4ce3e902e5c83bee7cd9b48955a092d738a226e8b50e32f701e14477929b69baf0e4107b
7
+ data.tar.gz: c53adad858bee2d592aa1d84e1112b53ab7a3181ed77c8a948bd38206521df5db498e711e28496f5feadb06a21f19910fd4e7b996292d131b216129ca12ddea3
data/hobby-json.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'hobby-json'
3
3
  g.files = `git ls-files`.split($/)
4
- g.version = '0.0.0'
4
+ g.version = '0.0.1'
5
5
  g.summary = 'A way to work with JSON in Hobby without too much verbosity.'
6
6
  g.authors = ['Anatoly Cherno']
7
7
  end
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.extend Write
7
+ app.response = Response
8
8
  end
9
9
 
10
- module Write
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.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-12 00:00:00.000000000 Z
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.1
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.