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 CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2012 YOURNAME
1
+ Copyright 2012 James Brooks
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,15 +1,18 @@
1
- # timestamped_column [![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)
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
- ## Compatibility
7
+ ## Requirements
7
8
 
8
- Tested and works with:
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
 
@@ -1,3 +1,3 @@
1
1
  module TimestampedColumn
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -131,3 +131,64 @@
131
131
   (0.4ms) UPDATE "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
132
132
   (0.0ms) RELEASE SAVEPOINT active_record_1
133
133
   (0.6ms) rollback transaction
134
+  (0.5ms) begin transaction
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+  (0.1ms) rollback transaction
138
+  (0.1ms) begin transaction
139
+  (0.0ms) SAVEPOINT active_record_1
140
+ SQL (47.5ms) 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]]
141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142
+  (0.6ms) rollback transaction
143
+  (0.1ms) begin transaction
144
+  (0.0ms) rollback transaction
145
+  (0.0ms) begin transaction
146
+  (0.0ms) SAVEPOINT active_record_1
147
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
149
+  (6.3ms) rollback transaction
150
+  (0.1ms) begin transaction
151
+  (0.1ms) SAVEPOINT active_record_1
152
+ SQL (0.6ms) 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]]
153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
154
+  (2.3ms) rollback transaction
155
+  (0.1ms) begin transaction
156
+  (0.0ms) SAVEPOINT active_record_1
157
+ SQL (0.6ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
159
+  (0.1ms) SAVEPOINT active_record_1
160
+  (0.5ms) UPDATE "users" SET "phone" = '000-000-0000', "updated_at" = '2012-05-08 22:21:26.172472' WHERE "users"."id" = 1
161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
162
+  (0.6ms) rollback transaction
163
+  (0.1ms) begin transaction
164
+  (0.2ms) SAVEPOINT active_record_1
165
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
167
+  (0.0ms) SAVEPOINT active_record_1
168
+  (0.5ms) UPDATE "users" SET "phone" = '000-000-0000', "updated_at" = '2012-05-08 22:21:26.183439' WHERE "users"."id" = 1
169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
170
+  (2.2ms) rollback transaction
171
+  (0.1ms) begin transaction
172
+  (0.1ms) SAVEPOINT active_record_1
173
+ SQL (4.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
175
+  (0.1ms) SAVEPOINT active_record_1
176
+  (0.5ms) UPDATE "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
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+  (28.7ms) rollback transaction
179
+  (0.1ms) begin transaction
180
+  (0.1ms) SAVEPOINT active_record_1
181
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
183
+  (0.1ms) SAVEPOINT active_record_1
184
+  (0.6ms) UPDATE "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
185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
186
+  (26.1ms) rollback transaction
187
+  (0.1ms) begin transaction
188
+  (0.1ms) SAVEPOINT active_record_1
189
+ SQL (16.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
191
+  (0.1ms) SAVEPOINT active_record_1
192
+  (0.5ms) UPDATE "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
193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
194
+  (0.9ms) rollback transaction
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.0
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: &70095850747460 !ruby/object:Gem::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.2'
21
+ version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70095850747460
24
+ version_requirements: *70259977635780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70095850746380 !ruby/object:Gem::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: *70095850746380
35
+ version_requirements: *70259977632900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &70095850745760 !ruby/object:Gem::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: *70095850745760
46
+ version_requirements: *70259977630980
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: factory_girl_rails
49
- requirement: &70095850744840 !ruby/object:Gem::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: *70095850744840
57
+ version_requirements: *70259977629240
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: timecop
60
- requirement: &70095850744260 !ruby/object:Gem::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: *70095850744260
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: