timestamped_column 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.md +6 -3
- data/lib/timestamped_column/version.rb +1 -1
- data/spec/dummy/log/test.log +61 -0
- metadata +12 -12
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,18 @@
|
|
1
|
-
# timestamped_column
|
1
|
+
# timestamped_column
|
2
|
+
[![Build Status](https://secure.travis-ci.org/JamesBrooks/timestamped_column.png)](http://travis-ci.org/JamesBrooks/timestamped_column>) [![Dependency Status](https://gemnasium.com/JamesBrooks/timestamped_column.png)](https://gemnasium.com/JamesBrooks/timestamped_column)
|
2
3
|
|
3
4
|
Records the modification time for specific database columns on individual records (using ActiveRecord).
|
4
5
|
|
5
6
|
|
6
|
-
##
|
7
|
+
## Requirements
|
7
8
|
|
8
|
-
Tested and
|
9
|
+
Tested and working correctly with:
|
9
10
|
|
10
11
|
* Ruby: 1.8.7, 1.9.2, 1.9.3 and REE.
|
11
12
|
* Rails: 3.0, 3.1, 3.2 and edge.
|
12
13
|
|
14
|
+
View the [test results for the most recent commit](http://travis-ci.org/JamesBrooks/timestamped_column) using these Ruby and Rails version combinations (thanks to Travis CI).
|
15
|
+
|
13
16
|
|
14
17
|
## Installation
|
15
18
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -131,3 +131,64 @@
|
|
131
131
|
[1m[36m (0.4ms)[0m [1mUPDATE "users" SET "name_updated_at" = '2012-05-07 15:59:54.026696', "updated_at" = '2012-05-08 15:59:54.030661' WHERE "users"."id" = 1[0m
|
132
132
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
133
133
|
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
134
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
135
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
138
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
140
|
+
[1m[36mSQL (47.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", nil], ["email_updated_at", nil], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", nil], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
141
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
142
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
144
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
146
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
147
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", nil], ["email_updated_at", nil], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", nil], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
148
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
149
|
+
[1m[35m (6.3ms)[0m rollback transaction
|
150
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
151
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
152
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", "joe.user@email.com"], ["email_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", "123-456-7890"], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
153
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
154
|
+
[1m[36m (2.3ms)[0m [1mrollback transaction[0m
|
155
|
+
[1m[35m (0.1ms)[0m begin transaction
|
156
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
157
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", "joe.user@email.com"], ["email_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", "123-456-7890"], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
158
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
159
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
160
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "users" SET "phone" = '000-000-0000', "updated_at" = '2012-05-08 22:21:26.172472' WHERE "users"."id" = 1[0m
|
161
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
162
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
164
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
165
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", "joe.user@email.com"], ["email_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", "123-456-7890"], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
166
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
167
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
168
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "users" SET "phone" = '000-000-0000', "updated_at" = '2012-05-08 22:21:26.183439' WHERE "users"."id" = 1[0m
|
169
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
170
|
+
[1m[36m (2.2ms)[0m [1mrollback transaction[0m
|
171
|
+
[1m[35m (0.1ms)[0m begin transaction
|
172
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
173
|
+
[1m[35mSQL (4.7ms)[0m INSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", "joe.user@email.com"], ["email_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", "123-456-7890"], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
174
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
175
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
176
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "users" SET "name" = 'John Blogs', "name_updated_at" = '2012-05-08 23:21:26.199024', "updated_at" = '2012-05-08 23:21:26.201185' WHERE "users"."id" = 1[0m
|
177
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
[1m[36m (28.7ms)[0m [1mrollback transaction[0m
|
179
|
+
[1m[35m (0.1ms)[0m begin transaction
|
180
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
181
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", "joe.user@email.com"], ["email_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", "123-456-7890"], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
182
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
183
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
184
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "users" SET "name" = 'John Blogs', "name_updated_at" = '2012-05-08 23:21:26.238934', "updated_at" = '2012-05-08 23:21:26.242259' WHERE "users"."id" = 1[0m
|
185
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
186
|
+
[1m[36m (26.1ms)[0m [1mrollback transaction[0m
|
187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
188
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
189
|
+
[1m[35mSQL (16.6ms)[0m INSERT INTO "users" ("created_at", "email", "email_updated_at", "name", "name_updated_at", "phone", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["email", "joe.user@email.com"], ["email_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["name", "Joe User"], ["name_updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00], ["phone", "123-456-7890"], ["updated_at", Tue, 08 May 2012 22:21:26 UTC +00:00]]
|
190
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
191
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
192
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "users" SET "name_updated_at" = '2012-05-07 22:21:26.292994', "updated_at" = '2012-05-08 22:21:26.339935' WHERE "users"."id" = 1[0m
|
193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
194
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timestamped_column
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,18 +13,18 @@ date: 2012-05-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70259977635780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3
|
21
|
+
version: '3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70259977635780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70259977632900 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.3.6
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70259977632900
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec-rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &70259977630980 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.10'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70259977630980
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: factory_girl_rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70259977629240 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 3.2.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70259977629240
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: timecop
|
60
|
-
requirement: &
|
60
|
+
requirement: &70259977627280 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 0.3.5
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70259977627280
|
69
69
|
description: Records modification time for specified database columns on a per-row
|
70
70
|
basis (ActiveRecord).
|
71
71
|
email:
|