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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/jbuilder.gemspec +7 -6
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b0b628cdf50af7a4e659568d35ff32f8012c95f
4
- data.tar.gz: b11afc7dbd0b7dde47149238490f8599dc0e1d80
3
+ metadata.gz: 47936732d4887c511042bf1504e9b8062c1ee555
4
+ data.tar.gz: 13b65badc0d39e8a282b8294462fbe55e194d5a2
5
5
  SHA512:
6
- metadata.gz: a1809fd60109a55c20893f0349837c809e83892d3b0e116a280b1cac9bf493c0902ad43ede7b5530b12daae854349ba03194056b0d3e3ae0b9803604ac6be461
7
- data.tar.gz: aa8981b12fdf1783a9d9607d4320191c873b0cdd4de0038c90163bd88977ab82cbdbc32fb224187a5a3cd699762431fd422b23e34854420f6a8e84c97ec9a4a2
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
- Libraries similar to this in some form or another include:
201
-
202
- * Active Model Serializers: https://github.com/rails-api/active_model_serializers
203
- * RABL: https://github.com/nesquena/rabl
204
- * JsonBuilder: https://github.com/nov/jsonbuilder
205
- * JSON Builder: https://github.com/dewski/json_builder
206
- * Jsonify: https://github.com/bsiggelkow/jsonify
207
- * Representative View: https://github.com/mdub/representative_view
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
+ ```
@@ -1,10 +1,11 @@
1
1
  Gem::Specification.new do |s|
2
- s.name = 'jbuilder'
3
- s.version = '2.0.0.beta2'
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.license = 'MIT'
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.beta2
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-03 00:00:00.000000000 Z
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: 1.3.1
86
+ version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.14
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