fossil 0.4.6 → 0.4.7

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.6
1
+ 0.4.7
data/fossil.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fossil}
8
- s.version = "0.4.6"
8
+ s.version = "0.4.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Patrick Lardin, Daniel Sudol"]
@@ -112,7 +112,7 @@ module ActiveSupport #:nodoc:
112
112
  module Array #:nodoc:
113
113
  module Conversions
114
114
  def to_fos_json(options = {})
115
- collect{|v| v.to_fos_json({:only=>[]}.merge(options)) }
115
+ to_json({:only=>[]}.merge(options))
116
116
  end
117
117
  end
118
118
  end
@@ -20,7 +20,7 @@ describe "Sequel::Serializer" do
20
20
  it "handles an array of sequel models" do
21
21
  add_test_table_data({:id=>1, :'goofy name col' => 123})
22
22
  array = [TestTable.first]
23
- array.to_fos_json(:methods=>[:'goofy name col']).should==["{\"goofy name col\":123}"]
23
+ array.to_fos_json(:methods=>[:'goofy name col']).should=="[{\"goofy name col\":123}]"
24
24
  end
25
25
 
26
26
  it "shows methods which are dynamically delegated" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 6
9
- version: 0.4.6
8
+ - 7
9
+ version: 0.4.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Patrick Lardin, Daniel Sudol