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 +4 -4
- data/jb.gemspec +2 -0
- data/lib/jb/action_view_monkeys.rb +1 -1
- data/lib/jb/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99330e1b9a45c061cc3d3f5e25c458df7ff83ccc
|
4
|
+
data.tar.gz: b0cb88236cf475aa2bfc223e495911d56b5a6bfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
44
|
+
template.respond_to?(:handler) && (template.handler == Jb::Handler) ? MultiJson.dump(super) : super
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/lib/jb/version.rb
CHANGED
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.
|
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-
|
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
|