jbuilder 2.6.1 → 2.6.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4b4939ae1d814cadb9d44ab80a4489d59b4c8a5
4
- data.tar.gz: ae232631e1f37a815ae5e46cb45c88706c803da8
3
+ metadata.gz: 480dacfaafb41be4517c97fe4feaac06ca419a0a
4
+ data.tar.gz: 743ad605818ab2e8c7d1fe9656ce417f6ac19db6
5
5
  SHA512:
6
- metadata.gz: b0e4fb3d778a25514a6b82f6bdca2519690fe85719a902ec95c72ae5f7016f796e7567ca847cc369752077525d47f38344edff9f97d03a3a9dbe47b195c88d39
7
- data.tar.gz: 24e1713528b9d0bfaa2d90c32f1432440c58acb7e6619c75d1956d23c041ef66672162dc97888af8f7558cd17024f33234102a285001a3188ba97bf39e6fd5ef
6
+ metadata.gz: d87af4a001cd83a919991616c7f5ed825ec84c80a2552c1b7e135b154f758ba62155acc343b0ff6a4fe97ce670f46f093468a86a84335679afeff319d0ecc278
7
+ data.tar.gz: 7156d387cd06d96bde5ae5f0fe1768eb283868e4e964a88c1b138357ddfeda1b51ca1eecba7f2bde75bbf157773c02fa117f722ee3a4bdb0281ecd054ff441e1
@@ -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
@@ -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!][https://github.com/rails/jbuilder/pull/370]
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 ala show.json.jbuilder
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
@@ -9,5 +9,6 @@ gem "pry"
9
9
  gem "railties", "~> 4.2.0"
10
10
  gem "actionpack", "~> 4.2.0"
11
11
  gem "activemodel", "~> 4.2.0"
12
+ gem "nokogiri", "< 1.7" if RUBY_VERSION < "2.1"
12
13
 
13
14
  gemspec :path => "../"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jbuilder'
3
- s.version = '2.6.1'
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'
@@ -6,7 +6,7 @@ module Rails
6
6
  class ScaffoldControllerGenerator
7
7
  source_paths << File.expand_path('../templates', __FILE__)
8
8
 
9
- hook_for :jbuilder, default: true
9
+ hook_for :jbuilder, type: :boolean, default: true
10
10
  end
11
11
  end
12
12
  end
@@ -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 %>
@@ -11,6 +11,7 @@ class JbuilderTemplate < Jbuilder
11
11
 
12
12
  def initialize(context, *args)
13
13
  @context = context
14
+ @cached_root = nil
14
15
  super(*args)
15
16
  end
16
17
 
@@ -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.1
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: 2016-11-28 00:00:00.000000000 Z
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.8
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