jbuilder 2.3.2 → 2.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: 3fd6ceffeb8702bf3239431ba2d2938500937d57
4
- data.tar.gz: 35822ade1066472dd5d4bd241b40d677fa6e1234
3
+ metadata.gz: 0d81b1f225c9a1a5434a32b5860caf0c700fc84d
4
+ data.tar.gz: ae62a5c52ee9a478edbbed2e932c6909430c1959
5
5
  SHA512:
6
- metadata.gz: 331609bd2b08cca7f6dc8e23ca3bfc5c1ac2bf740ae0874375024c4624caebdc84643c0cbad5b839555ce0057dc4753a6c01e28031b63c05c1452e9b3b1c0785
7
- data.tar.gz: 043a81f2ae16fa51913bb21e8e0ded28b981ecde782338a47a6974c8ae0509d828e87cd83734831fb37fb9dca81c1ea90218ec31b933ca634e9031d03a1e7878
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/rails_edge.gemfile
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/rails_edge.gemfile
33
+ gemfile: gemfiles/rails_5_0.gemfile
33
34
  - rvm: 2.0
34
- gemfile: gemfiles/rails_edge.gemfile
35
+ gemfile: gemfiles/rails_5_0.gemfile
35
36
  - rvm: 2.1
36
- gemfile: gemfiles/rails_edge.gemfile
37
+ gemfile: gemfiles/rails_5_0.gemfile
37
38
  - rvm: jruby-19mode
38
- gemfile: gemfiles/rails_edge.gemfile
39
+ gemfile: gemfiles/rails_5_0.gemfile
39
40
  - rvm: rbx
40
- gemfile: gemfiles/rails_edge.gemfile
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-edge" do
41
- gem "rails", ">= 5.0.0.alpha", github: "rails/rails"
42
- gem "arel", ">= 7.0.0.alpha", github: "rails/arel"
43
- gem "rack", ">= 2.0.0.alpha", github: "rack/rack"
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
- [![Build Status](https://travis-ci.org/rails/jbuilder.svg?branch=master)]()
5
- [![Gem Version](http://img.shields.io/gem/v/jbuilder.svg)]()
6
- [![Code Climate](http://img.shields.io/codeclimate/github/rails/jbuilder.svg)]()
7
- [![Dependencies Status](http://img.shields.io/gemnasium/rails/jbuilder.svg)]()
4
+ [![Build Status](https://api.travis-ci.org/rails/jbuilder.svg?branch=master)][travis]
5
+ [![Gem Version](http://img.shields.io/gem/v/jbuilder.svg)][gem]
6
+ [![Code Climate](http://img.shields.io/codeclimate/github/rails/jbuilder.svg)][codeclimate]
7
+ [![Dependencies Status](http://img.shields.io/gemnasium/rails/jbuilder.svg)][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.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.3.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-09-30 00:00:00.000000000 Z
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.4.8
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