serialist 1.3.1 → 1.3.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -73,9 +73,10 @@ module Serialist
73
73
  super
74
74
  end
75
75
 
76
+ alias :old_method_missing :method_missing
76
77
  def method_missing(method, *args, &block)
77
78
  begin
78
- super
79
+ old_method_missing(method, *args, &block)
79
80
  rescue NoMethodError
80
81
  self.class.define_access_method(method.to_s)
81
82
  self.send(method, *args, &block)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{serialist}
8
- s.version = "1.3.1"
8
+ s.version = "1.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benoit B\303\251n\303\251zech"]
12
- s.date = %q{2010-02-15}
12
+ s.date = %q{2010-02-22}
13
13
  s.description = %q{Serialize any data, set and fetch it like any column attributes}
14
14
  s.email = %q{benoit.benezech@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -1,8 +1,8 @@
1
1
  require 'test/unit'
2
2
 
3
3
  require 'rubygems'
4
- gem 'activerecord'
5
4
  require 'active_record'
5
+ require 'active_support'
6
6
  RAILS_ROOT = File.dirname(__FILE__)
7
7
  $: << File.join(File.dirname(__FILE__), '../lib')
8
8
  require File.join(File.dirname(__FILE__), '../init')
@@ -174,10 +174,7 @@ class SerialistTest < Test::Unit::TestCase
174
174
  end
175
175
 
176
176
  def test_lazily_serialist_should_not_try_to_override_existing_methods_and_columns
177
- assert_raise ActiveRecord::UnknownAttributeError do
178
- LazyRegressionTestClass.create!({:foo => "foo", :bar => "bar", :title => "hoho", :title_fun => "haha"})
179
- end
180
- @serialisted = LazyRegressionTestClass.create!({:foo => "foo", :bar => "bar", :title => "hoho"})
177
+ @serialisted = LazyRegressionTestClass.create!({ :foo => "foo", :bar => "bar", :title => "hoho" })
181
178
  assert_nil @serialisted.slug[:title]
182
179
  assert_equal @serialisted.title, "hoho"
183
180
  assert_equal @serialisted.title_fun, "ohoh"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Benoit B\xC3\xA9n\xC3\xA9zech"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-15 00:00:00 +01:00
12
+ date: 2010-02-22 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15