jb 0.3.0 → 0.4.0

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: 04fdf2c5bbc180bc3741903401967e5ddae04a75
4
- data.tar.gz: 4c05db1fb1ff97a1a4030d8446495c833746699d
3
+ metadata.gz: 99330e1b9a45c061cc3d3f5e25c458df7ff83ccc
4
+ data.tar.gz: b0cb88236cf475aa2bfc223e495911d56b5a6bfa
5
5
  SHA512:
6
- metadata.gz: e046dd884938c4438a604e685376f498c963fa5a546a87440be4344593f42a8e2344a84a68dc22af4b7d64b5ae0e71d2c25568493cd518e422eeb450e4342ece
7
- data.tar.gz: d4b1b3a2e9c18129b9a91a333b5cb328946eecabb995a98373f8c84937b125450d5034c7ce6a8169695307905343217e301ff0e1fb1a7d5634988d41310e2a7c
6
+ metadata.gz: 0d919a4c75278e24704ef2c927a3dab80f980496baaac7974cd3ff5643a1f9d00428800549caf9c72e1096b0bf7a486f81fe0bd5c73c180ef6e40b4627662aa1
7
+ data.tar.gz: c92b98d29d4f91f6e3e59ecf6130728082b5d2caab4f6cccbbb9f38a4da2c6f7329098488733e05f6429d4a690fe4284a9be3650a2868966757e3355d1c7d1be
data/jb.gemspec CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ spec.add_dependency 'multi_json'
23
+
22
24
  spec.add_development_dependency "bundler", "~> 1.12"
23
25
  spec.add_development_dependency "rake", "~> 10.0"
24
26
  spec.add_development_dependency 'test-unit-rails'
@@ -41,7 +41,7 @@ module Jb
41
41
  module TemplateRenderer
42
42
  module JSONizer
43
43
  def render_template(template, *)
44
- template.respond_to?(:handler) && (template.handler == Jb::Handler) ? super.to_json : super
44
+ template.respond_to?(:handler) && (template.handler == Jb::Handler) ? MultiJson.dump(super) : super
45
45
  end
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Jb
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement