jbuilder 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +8 -7
- data/Appraisals +4 -4
- data/CONTRIBUTING.md +9 -4
- data/README.md +10 -1
- data/gemfiles/rails_5_0.gemfile +13 -0
- data/jbuilder.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d81b1f225c9a1a5434a32b5860caf0c700fc84d
|
4
|
+
data.tar.gz: ae62a5c52ee9a478edbbed2e932c6909430c1959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5623f106449739cdf61722fd4e29953d639290e49b055a3f41a05bbe2db23b7ac82cef05a19ef7d7b04cdb3bab1f7fbaafb3381b21955914ad64443e62daef03
|
7
|
+
data.tar.gz: fa4e9acff1b741491f768fca5aaef394068fc82dee66e98bac904bdeec3d99dc4c1cada77917d36fd0981e0f43a74eaedc9371ba2cde0cab7d3c4f54e26a16b7
|
data/.travis.yml
CHANGED
@@ -7,7 +7,8 @@ rvm:
|
|
7
7
|
- 1.9
|
8
8
|
- 2.0
|
9
9
|
- 2.1
|
10
|
-
- 2.2
|
10
|
+
- 2.2.4
|
11
|
+
- 2.3.0
|
11
12
|
- ruby-head
|
12
13
|
- jruby-19mode
|
13
14
|
- rbx
|
@@ -19,7 +20,7 @@ gemfile:
|
|
19
20
|
- gemfiles/rails_4_0.gemfile
|
20
21
|
- gemfiles/rails_4_1.gemfile
|
21
22
|
- gemfiles/rails_4_2.gemfile
|
22
|
-
- gemfiles/
|
23
|
+
- gemfiles/rails_5_0.gemfile
|
23
24
|
|
24
25
|
matrix:
|
25
26
|
allow_failures:
|
@@ -29,15 +30,15 @@ matrix:
|
|
29
30
|
fast_finish: true
|
30
31
|
exclude:
|
31
32
|
- rvm: 1.9
|
32
|
-
gemfile: gemfiles/
|
33
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
33
34
|
- rvm: 2.0
|
34
|
-
gemfile: gemfiles/
|
35
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
35
36
|
- rvm: 2.1
|
36
|
-
gemfile: gemfiles/
|
37
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
37
38
|
- rvm: jruby-19mode
|
38
|
-
gemfile: gemfiles/
|
39
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
39
40
|
- rvm: rbx
|
40
|
-
gemfile: gemfiles/
|
41
|
+
gemfile: gemfiles/rails_5_0.gemfile
|
41
42
|
|
42
43
|
notifications:
|
43
44
|
email: false
|
data/Appraisals
CHANGED
@@ -37,8 +37,8 @@ appraise "rails-4-2" do
|
|
37
37
|
gem "activemodel", "~> 4.2.0"
|
38
38
|
end
|
39
39
|
|
40
|
-
appraise "rails-
|
41
|
-
gem "
|
42
|
-
gem "
|
43
|
-
gem "
|
40
|
+
appraise "rails-5-0" do
|
41
|
+
gem "railties", ">= 5.0.0.beta1", "< 5.1"
|
42
|
+
gem "actionpack", ">= 5.0.0.beta1", "< 5.1"
|
43
|
+
gem "activemodel", ">= 5.0.0.beta1", "< 5.1"
|
44
44
|
end
|
data/CONTRIBUTING.md
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
Contributing to Jbuilder
|
2
2
|
=====================
|
3
3
|
|
4
|
-
[]
|
5
|
-
[]
|
6
|
-
[]
|
7
|
-
[]
|
4
|
+
[][travis]
|
5
|
+
[][gem]
|
6
|
+
[][codeclimate]
|
7
|
+
[][gemnasium]
|
8
|
+
|
9
|
+
[travis]: https://travis-ci.org/rails/jbuilder
|
10
|
+
[gem]: https://rubygems.org/gems/jbuilder
|
11
|
+
[codeclimate]: https://codeclimate.com/github/rails/jbuilder
|
12
|
+
[gemnasium]: https://gemnasium.com/rails/jbuilder
|
8
13
|
|
9
14
|
Jbuilder is work of [many contributors](https://github.com/rails/jbuilder/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/rails/jbuilder/pulls), [propose features and discuss issues](https://github.com/rails/jbuilder/issues).
|
10
15
|
|
data/README.md
CHANGED
@@ -196,6 +196,15 @@ json.author do
|
|
196
196
|
end
|
197
197
|
```
|
198
198
|
|
199
|
+
To prevent Jbuilder from including null values in the output, you can use the `ignore_nil!` method:
|
200
|
+
|
201
|
+
```ruby
|
202
|
+
json.ignore_nil!
|
203
|
+
json.foo nil
|
204
|
+
json.bar "bar"
|
205
|
+
# => { "bar": "bar" }
|
206
|
+
```
|
207
|
+
|
199
208
|
Fragment caching is supported, it uses `Rails.cache` and works like caching in
|
200
209
|
HTML templates:
|
201
210
|
|
@@ -251,7 +260,7 @@ MultiJson.use :yajl
|
|
251
260
|
|
252
261
|
## Contributing to Jbuilder
|
253
262
|
|
254
|
-
Jbuilder is work of many contributors. You're encouraged to submit pull requests, propose
|
263
|
+
Jbuilder is the work of many contributors. You're encouraged to submit pull requests, propose
|
255
264
|
features and discuss issues.
|
256
265
|
|
257
266
|
See [CONTRIBUTING](CONTRIBUTING.md).
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rake"
|
6
|
+
gem "mocha", :require => false
|
7
|
+
gem "appraisal"
|
8
|
+
gem "pry"
|
9
|
+
gem "railties", ">= 5.0.0.beta1", "< 5.1"
|
10
|
+
gem "actionpack", ">= 5.0.0.beta1", "< 5.1"
|
11
|
+
gem "activemodel", ">= 5.0.0.beta1", "< 5.1"
|
12
|
+
|
13
|
+
gemspec :path => "../"
|
data/jbuilder.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jbuilder'
|
3
|
-
s.version = '2.
|
3
|
+
s.version = '2.4.0'
|
4
4
|
s.authors = ['David Heinemeier Hansson', 'Pavel Pravosud']
|
5
5
|
s.email = ['david@37signals.com', 'pavel@pravosud.com']
|
6
6
|
s.summary = 'Create JSON structures via a Builder-style DSL'
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
|
10
10
|
s.required_ruby_version = '>= 1.9.3'
|
11
11
|
|
12
|
-
s.add_dependency 'activesupport', '>= 3.0.0', '< 5'
|
12
|
+
s.add_dependency 'activesupport', '>= 3.0.0', '< 5.1'
|
13
13
|
s.add_dependency 'multi_json', '~> 1.2'
|
14
14
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: 3.0.0
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '5'
|
23
|
+
version: '5.1'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: 3.0.0
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '5'
|
33
|
+
version: '5.1'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: multi_json
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- gemfiles/rails_4_0.gemfile
|
69
69
|
- gemfiles/rails_4_1.gemfile
|
70
70
|
- gemfiles/rails_4_2.gemfile
|
71
|
+
- gemfiles/rails_5_0.gemfile
|
71
72
|
- gemfiles/rails_edge.gemfile
|
72
73
|
- jbuilder.gemspec
|
73
74
|
- lib/generators/rails/jbuilder_generator.rb
|
@@ -111,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
114
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.5.1
|
115
116
|
signing_key:
|
116
117
|
specification_version: 4
|
117
118
|
summary: Create JSON structures via a Builder-style DSL
|