jbuilder 2.2.14 → 2.2.16

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: 8a60b857eac6c1b2059ad61636a8929b6c6ef6be
4
- data.tar.gz: 48234dc178d3336434a4911eb2edde2bb59cc3cc
3
+ metadata.gz: 79566456f0f777b15fdab405ea286da70467e78c
4
+ data.tar.gz: 73ac0f91316aea81448cca1e2d414d4b1c20fde4
5
5
  SHA512:
6
- metadata.gz: dea7079d397c923ae895a5da9c59e728750c4aae47f2a95234c14d0083d77373a9df7cb579f6b7234e6d7c5e0daa0b16135d8be67d4e177a5c1f26e1f4f943f2
7
- data.tar.gz: 089f9a14f9e73fdd8f73b15e343273c6093b005413c8bc42a378644d9f002683506aa47c22c98e8dc3eb0d2e261b6f58974c8bcc63e76ed350597a80a5b033b1
6
+ metadata.gz: cef291a3f61cd86b1f36bbf171dcea06bc4388cb23cde5a309cf4c9217d6dad9b3641b6d3cc2994fcee3b6b21018763a53d0d3358d938570b1e5b274f356dafd
7
+ data.tar.gz: 4b4e043b1b7a029bebecf8f90bc9f9fb46c5ed6be43e0cdefca0711ef292302651b126ae6c033f02c15c715c7f65a0f86c3bb1248375083cf0e09dd117bb639f
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ 2.2.16
4
+ ------
5
+
6
+ * [Fix NoMethodError around `api_only` in railtie](https://github.com/rails/jbuilder/commit/b08d1da10b14720b46d383b2917e336060fd9ffa)
7
+
3
8
  2.2.14
4
9
  ------
5
10
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jbuilder'
3
- s.version = '2.2.14'
3
+ s.version = '2.2.16'
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 @@ class Jbuilder
9
9
  require 'jbuilder/dependency_tracker'
10
10
  end
11
11
 
12
- if app.config.try(:api_only)
12
+ if app.config.respond_to?(:api_only) && app.config.api_only
13
13
  ActiveSupport.on_load :action_controller do
14
14
  include ActionView::Rendering
15
15
  end
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  class JbuilderTest < ActiveSupport::TestCase
54
54
  setup do
55
- Jbuilder.send :class_variable_set, '@@key_formatter', Jbuilder::KeyFormatter.new
55
+ Jbuilder.send :class_variable_set, '@@key_formatter', nil
56
56
  end
57
57
 
58
58
  test 'single key' do
@@ -571,6 +571,7 @@ class JbuilderTest < ActiveSupport::TestCase
571
571
  end
572
572
 
573
573
  test 'do not use default key formatter directly' do
574
+ Jbuilder.key_format
574
575
  jbuild{ |json| json.key 'value' }
575
576
  formatter = Jbuilder.send(:class_variable_get, '@@key_formatter')
576
577
  cache = formatter.instance_variable_get('@cache')
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.2.14
4
+ version: 2.2.16
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-05-17 00:00:00.000000000 Z
12
+ date: 2015-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport