dirty_history 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dirty_history}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gavin Todes"]
@@ -11,7 +11,7 @@ class DirtyHistoryRecord < ActiveRecord::Base
11
11
  val_to_col_type(attribute)
12
12
  end
13
13
  define_method "#{attribute}=" do |val|
14
- self[attribute] = val.to_s
14
+ self[attribute] = val.nil? ? nil : val.to_s
15
15
  instance_variable_set "@#{attribute}", val
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dirty_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: shoulda
17
- requirement: &2152602180 !ruby/object:Gem::Requirement
17
+ requirement: &2152590320 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *2152602180
25
+ version_requirements: *2152590320
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2152690100 !ruby/object:Gem::Requirement
28
+ requirement: &2152681080 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2152690100
36
+ version_requirements: *2152681080
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &2152883280 !ruby/object:Gem::Requirement
39
+ requirement: &2152866140 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.5.2
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2152883280
47
+ version_requirements: *2152866140
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rcov
50
- requirement: &2153025260 !ruby/object:Gem::Requirement
50
+ requirement: &2153006040 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2153025260
58
+ version_requirements: *2153006040
59
59
  description: Dirty History is a simple gem that allows you to keep track of changes
60
60
  to specific fields in your Rails models using the ActiveRecord::Dirty module.
61
61
  email: gavin.todes@gmail.com
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: 3022031599709161522
101
+ hash: 962306299498158067
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements: