jbuilder 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -0
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/gemfiles/rails_4_2.gemfile +1 -0
- data/jbuilder.gemspec +1 -1
- data/lib/generators/rails/scaffold_controller_generator.rb +1 -1
- data/lib/generators/rails/templates/index.json.jbuilder +1 -1
- data/lib/generators/rails/templates/partial.json.jbuilder +1 -1
- data/lib/generators/rails/templates/show.json.jbuilder +1 -1
- data/lib/jbuilder/jbuilder_template.rb +1 -0
- data/test/jbuilder_template_test.rb +0 -12
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 480dacfaafb41be4517c97fe4feaac06ca419a0a
|
4
|
+
data.tar.gz: 743ad605818ab2e8c7d1fe9656ce417f6ac19db6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87af4a001cd83a919991616c7f5ed825ec84c80a2552c1b7e135b154f758ba62155acc343b0ff6a4fe97ce670f46f093468a86a84335679afeff319d0ecc278
|
7
|
+
data.tar.gz: 7156d387cd06d96bde5ae5f0fe1768eb283868e4e964a88c1b138357ddfeda1b51ca1eecba7f2bde75bbf157773c02fa117f722ee3a4bdb0281ecd054ff441e1
|
data/.travis.yml
CHANGED
@@ -9,6 +9,7 @@ rvm:
|
|
9
9
|
- 2.1
|
10
10
|
- 2.2.5
|
11
11
|
- 2.3.1
|
12
|
+
- 2.4.0
|
12
13
|
- ruby-head
|
13
14
|
- jruby-19mode
|
14
15
|
- rbx
|
@@ -39,6 +40,16 @@ matrix:
|
|
39
40
|
gemfile: gemfiles/rails_5_0.gemfile
|
40
41
|
- rvm: rbx
|
41
42
|
gemfile: gemfiles/rails_5_0.gemfile
|
43
|
+
- rvm: 2.4.0
|
44
|
+
gemfile: gemfiles/rails_3_0.gemfile
|
45
|
+
- rvm: 2.4.0
|
46
|
+
gemfile: gemfiles/rails_3_1.gemfile
|
47
|
+
- rvm: 2.4.0
|
48
|
+
gemfile: gemfiles/rails_3_2.gemfile
|
49
|
+
- rvm: 2.4.0
|
50
|
+
gemfile: gemfiles/rails_4_0.gemfile
|
51
|
+
- rvm: 2.4.0
|
52
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
42
53
|
|
43
54
|
notifications:
|
44
55
|
email: false
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
2.6.2
|
4
|
+
-----
|
5
|
+
|
6
|
+
* Fix thor warnings
|
7
|
+
|
3
8
|
2.6.1
|
4
9
|
-----
|
5
10
|
|
6
|
-
* [Optimize root caches with cache_root!]
|
11
|
+
* [Optimize root caches with cache_root!](https://github.com/rails/jbuilder/pull/370)
|
7
12
|
|
8
13
|
2.6.0
|
9
14
|
-----
|
data/README.md
CHANGED
@@ -124,7 +124,7 @@ company.to_builder.target!
|
|
124
124
|
```
|
125
125
|
|
126
126
|
You can either use Jbuilder stand-alone or directly as an ActionView template
|
127
|
-
language. When required in Rails, you can create views
|
127
|
+
language. When required in Rails, you can create views a la show.json.jbuilder
|
128
128
|
(the json is already yielded):
|
129
129
|
|
130
130
|
``` ruby
|
data/gemfiles/rails_4_2.gemfile
CHANGED
data/jbuilder.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jbuilder'
|
3
|
-
s.version = '2.6.
|
3
|
+
s.version = '2.6.2'
|
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'
|
@@ -1 +1 @@
|
|
1
|
-
json.array! @<%= plural_table_name %>, partial: '<%= plural_table_name %>/<%= singular_table_name %>', as: :<%= singular_table_name %>
|
1
|
+
json.array! @<%= plural_table_name %>, partial: '<%= plural_table_name %>/<%= singular_table_name %>', as: :<%= singular_table_name %>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
json.extract! <%= singular_table_name %>, <%= attributes_list_with_timestamps %>
|
2
|
-
json.url <%= singular_table_name %>_url(<%= singular_table_name %>, format: :json)
|
2
|
+
json.url <%= singular_table_name %>_url(<%= singular_table_name %>, format: :json)
|
@@ -1 +1 @@
|
|
1
|
-
json.partial! "<%= plural_table_name %>/<%= singular_table_name %>", <%= singular_table_name %>: @<%= singular_table_name %>
|
1
|
+
json.partial! "<%= plural_table_name %>/<%= singular_table_name %>", <%= singular_table_name %>: @<%= singular_table_name %>
|
@@ -307,18 +307,6 @@ class JbuilderTemplateTest < ActionView::TestCase
|
|
307
307
|
assert_equal %w[a b c], result
|
308
308
|
end
|
309
309
|
|
310
|
-
test "fragment caching works with previous version of cache digests" do
|
311
|
-
undef_context_methods :cache_fragment_name
|
312
|
-
|
313
|
-
@context.expects :fragment_name_with_digest
|
314
|
-
|
315
|
-
jbuild <<-JBUILDER
|
316
|
-
json.cache! "cachekey" do
|
317
|
-
json.name "Cache"
|
318
|
-
end
|
319
|
-
JBUILDER
|
320
|
-
end
|
321
|
-
|
322
310
|
test "fragment caching works with current cache digests" do
|
323
311
|
undef_context_methods :fragment_name_with_digest
|
324
312
|
|
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.6.
|
4
|
+
version: 2.6.2
|
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:
|
12
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.6.
|
115
|
+
rubygems_version: 2.6.10
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Create JSON structures via a Builder-style DSL
|