jbuilder 0.8.1 → 0.8.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.
Binary file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jbuilder'
3
- s.version = '0.8.1'
3
+ s.version = '0.8.2'
4
4
  s.author = 'David Heinemeier Hansson'
5
5
  s.email = 'david@37signals.com'
6
6
  s.summary = 'Create JSON structures via a Builder-style DSL'
@@ -9,9 +9,9 @@ class JbuilderTemplate < Jbuilder
9
9
  when ::Hash
10
10
  options[:locals] ||= {}
11
11
  options[:locals].merge!(:json => self)
12
- @context.render(options)
13
- else
14
- @context.render(options, locals.merge(:json => self))
12
+ @context.render(options.reverse_merge(:formats => [:json]))
13
+ else # String
14
+ @context.render(:partial => options, :locals => locals.merge(:json => self), :formats => [:json])
15
15
  end
16
16
  end
17
17
 
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: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-04 00:00:00.000000000 Z
12
+ date: 2012-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -35,7 +35,7 @@ extra_rdoc_files: []
35
35
  files:
36
36
  - ./Gemfile
37
37
  - ./Gemfile.lock
38
- - ./jbuilder-0.4.0.gem
38
+ - ./jbuilder-0.5.0.gem
39
39
  - ./jbuilder.gemspec
40
40
  - ./lib/jbuilder.rb
41
41
  - ./lib/jbuilder_template.rb
Binary file