jbuilder 2.0.0.beta2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/jbuilder.gemspec +7 -6
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47936732d4887c511042bf1504e9b8062c1ee555
|
4
|
+
data.tar.gz: 13b65badc0d39e8a282b8294462fbe55e194d5a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 331760ba6d93c905f70fbc6a25378e1cf6b055dce8703a204540bdc9745dd56402c9cbe0fc1d6b8a5ed86fb2c5d957e737460667621a1f0ff718c9367aa1c9aa
|
7
|
+
data.tar.gz: dbc9629031037315974d03f4def0a541522c2a85774a42ba56edc41df26acee927304756c267f3fce0130f9529b2a25533ca9bd907906a2a21cb7398dde0b677
|
data/README.md
CHANGED
@@ -197,11 +197,12 @@ You can set this globally with the class method `key_format` (from inside your e
|
|
197
197
|
Jbuilder.key_format camelize: :lower
|
198
198
|
```
|
199
199
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
200
|
+
Faster JSON backends
|
201
|
+
--------------------
|
202
|
+
|
203
|
+
Jbuilder uses MultiJson, which by default will use the JSON gem. That gem is currently tangled with ActiveSupport's all-Ruby #to_json implementation, which is slow (work is being done to correct this for a future version of Rails). For faster Jbuilder rendering, you can specify something like the Yajl JSON generator instead. You'll need to include the yajl-ruby gem in your Gemfile and then set the following configuration for MultiJson:
|
204
|
+
|
205
|
+
``` ruby
|
206
|
+
require 'multi_json'
|
207
|
+
MultiJson.use :yajl
|
208
|
+
```
|
data/jbuilder.gemspec
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
s.name
|
3
|
-
s.version
|
4
|
-
s.author
|
5
|
-
s.email
|
6
|
-
s.summary
|
7
|
-
s.
|
2
|
+
s.name = 'jbuilder'
|
3
|
+
s.version = '2.0.0'
|
4
|
+
s.author = 'David Heinemeier Hansson'
|
5
|
+
s.email = 'david@37signals.com'
|
6
|
+
s.summary = 'Create JSON structures via a Builder-style DSL'
|
7
|
+
s.homepage = 'https://github.com/rails/jbuilder'
|
8
|
+
s.license = 'MIT'
|
8
9
|
|
9
10
|
s.required_ruby_version = '>= 1.9.3'
|
10
11
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -66,7 +66,7 @@ files:
|
|
66
66
|
- test/jbuilder_template_test.rb
|
67
67
|
- test/jbuilder_test.rb
|
68
68
|
- test/scaffold_controller_generator_test.rb
|
69
|
-
homepage:
|
69
|
+
homepage: https://github.com/rails/jbuilder
|
70
70
|
licenses:
|
71
71
|
- MIT
|
72
72
|
metadata: {}
|
@@ -81,12 +81,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: 1.9.3
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- - '
|
84
|
+
- - '>='
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
86
|
+
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.1.11
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Create JSON structures via a Builder-style DSL
|