jbuilder 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jbuilder (0.8.2)
4
+ jbuilder (0.8.3)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jbuilder'
3
- s.version = '0.8.3'
3
+ s.version = '0.9.0'
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'
@@ -291,7 +291,7 @@ class Jbuilder < ActiveSupport::BasicObject
291
291
  end
292
292
 
293
293
  def _map_collection(collection)
294
- collection.each.map do |element|
294
+ collection.map do |element|
295
295
  _scope { yield element }
296
296
  end
297
297
  end
@@ -357,6 +357,8 @@ class JbuilderTest < ActiveSupport::TestCase
357
357
  end
358
358
  end
359
359
  class RelationMock
360
+ include Enumerable
361
+
360
362
  def each(&block)
361
363
  [Person.new("Bob", 30), Person.new("Frank", 50)].each(&block)
362
364
  end
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.3
4
+ version: 0.9.0
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-11-27 00:00:00.000000000 Z
12
+ date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -35,8 +35,6 @@ extra_rdoc_files: []
35
35
  files:
36
36
  - ./Gemfile
37
37
  - ./Gemfile.lock
38
- - ./jbuilder-0.4.0.gem
39
- - ./jbuilder-0.8.1.gem
40
38
  - ./jbuilder.gemspec
41
39
  - ./lib/jbuilder.rb
42
40
  - ./lib/jbuilder_template.rb
Binary file
Binary file