tangledwires-audited 6.0.0

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.
Files changed (34) hide show
  1. checksums.yaml +7 -0
  2. data/Appraisals +37 -0
  3. data/CHANGELOG.md +539 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +19 -0
  6. data/README.md +447 -0
  7. data/Rakefile +16 -0
  8. data/audited.gemspec +38 -0
  9. data/lib/audited/audit.rb +204 -0
  10. data/lib/audited/audit_associate.rb +8 -0
  11. data/lib/audited/auditor.rb +564 -0
  12. data/lib/audited/railtie.rb +16 -0
  13. data/lib/audited/rspec_matchers.rb +228 -0
  14. data/lib/audited/sweeper.rb +42 -0
  15. data/lib/audited/version.rb +5 -0
  16. data/lib/audited-rspec.rb +6 -0
  17. data/lib/audited.rb +60 -0
  18. data/lib/generators/audited/install_generator.rb +27 -0
  19. data/lib/generators/audited/migration.rb +25 -0
  20. data/lib/generators/audited/migration_helper.rb +11 -0
  21. data/lib/generators/audited/templates/add_association_to_audits.rb +13 -0
  22. data/lib/generators/audited/templates/add_comment_to_audits.rb +11 -0
  23. data/lib/generators/audited/templates/add_remote_address_to_audits.rb +12 -0
  24. data/lib/generators/audited/templates/add_request_uuid_to_audits.rb +12 -0
  25. data/lib/generators/audited/templates/add_version_to_auditable_index.rb +23 -0
  26. data/lib/generators/audited/templates/create_audit_associates.rb +26 -0
  27. data/lib/generators/audited/templates/install.rb +39 -0
  28. data/lib/generators/audited/templates/rename_association_to_associated.rb +25 -0
  29. data/lib/generators/audited/templates/rename_changes_to_audited_changes.rb +11 -0
  30. data/lib/generators/audited/templates/rename_parent_to_association.rb +13 -0
  31. data/lib/generators/audited/templates/revert_polymorphic_indexes_order.rb +22 -0
  32. data/lib/generators/audited/upgrade_generator.rb +74 -0
  33. data/shell.nix +8 -0
  34. metadata +241 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5485123721bdbee8d46bff50c20540d004d4bb3695b77f6d05ad38e99aef06a6
4
+ data.tar.gz: c79c1a39709a194769d6447b3cc6b4d4d535ac71cae0ab097f6d4979fcbbadf8
5
+ SHA512:
6
+ metadata.gz: 44761235ca5a8f155aca224a54219ac57007845d0d423564cf069f89c8963516aa91c5159b70fc0d7ccf78addfced41ef3aec56a652a41c83651375bec79c9d6
7
+ data.tar.gz: 8b251ff47be7d415ccfdf093ba2b55e02dc117d54ed7692d291cd9ce00d47392e92a21689c997aac7e0389f3ba6432df97ef48b82dda83ac56eaac7cc873a41c
data/Appraisals ADDED
@@ -0,0 +1,37 @@
1
+ # Include DB adapters matching the version requirements in
2
+ # rails/activerecord/lib/active_record/connection_adapters/*adapter.rb
3
+
4
+ appraise "rails70" do
5
+ gem "rails", "~> 7.0.8"
6
+ gem "mysql2", ">= 0.4.4"
7
+ gem "pg", ">= 1.1"
8
+ gem "sqlite3", "~> 1.4"
9
+ end
10
+
11
+ appraise "rails71" do
12
+ gem "rails", "~> 7.1.3"
13
+ gem "mysql2", ">= 0.4.4"
14
+ gem "pg", ">= 1.1"
15
+ gem "sqlite3", "~> 1.4"
16
+ end
17
+
18
+ appraise "rails72" do
19
+ gem "rails", "~> 7.2.0"
20
+ gem "mysql2", "~> 0.5"
21
+ gem "pg", "~> 1.1"
22
+ gem "sqlite3", ">= 1.4"
23
+ end
24
+
25
+ appraise "rails80" do
26
+ gem "rails", "~> 8.0.0"
27
+ gem "mysql2", "~> 0.5"
28
+ gem "pg", "~> 1.1"
29
+ gem "sqlite3", ">= 1.4"
30
+ end
31
+
32
+ appraise "rails_main" do
33
+ gem "rails", github: "rails/rails", branch: "main"
34
+ gem "mysql2", "~> 0.5"
35
+ gem "pg", "~> 1.1"
36
+ gem "sqlite3", ">= 2.0"
37
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,539 @@
1
+ # Audited ChangeLog
2
+
3
+ ### 5.8.0 (2024-11-08)
4
+ - Allow calling audited multiple times - @mohammednasser-32
5
+ [734](https://github.com/collectiveidea/audited/pull/734)
6
+ - Relax gemspec to allow Rails 8.1 - @BranLiang
7
+ [738](https://github.com/collectiveidea/audited/pull/738)
8
+
9
+ ### 5.7.0 (2024-08-13)
10
+
11
+ - Support for Rails 7.2 and Ruby 3.3, and testing cleanups - @mattbrictson
12
+ [#723](https://github.com/collectiveidea/audited/pull/723)
13
+ - Allow max_audits to be a proc or symbol - @gmhawash
14
+ [#718](https://github.com/collectiveidea/audited/pull/718)
15
+ - Support Rails 8 - @fernandomenolli
16
+ [#717](https://github.com/collectiveidea/audited/pull/717)
17
+
18
+
19
+ ### 5.6.0 (2024-04-05)
20
+
21
+ - Removed support for Rails 5.0 and 5.1.
22
+ - Replace RequestStore with ActiveSupport::CurrentAttributes - @punkisdead
23
+ [#702](https://github.com/collectiveidea/audited/pull/702)
24
+
25
+ ### 5.5.0 (2024-04-02)
26
+
27
+ - Bad release. Same code as 5.4.1. Use 5.6.0 for updated features.
28
+
29
+ ### 5.4.3 (2024-01-11)
30
+
31
+ - Ignore readonly columns in audit - @sriddbs
32
+ [#692](https://github.com/collectiveidea/audited/pull/692)
33
+ - Robustify Rails version checks - @blaet
34
+ [#689](https://github.com/collectiveidea/audited/pull/689)
35
+ - Ignore callbacks if not specifed on the model
36
+ [#679](https://github.com/collectiveidea/audited/pull/679)
37
+
38
+ ## 5.4.2 (2023-11-30)
39
+
40
+ - Revert replacing RequetStore with ActiveSupport::CurrentAttributes until it is fully tested.
41
+
42
+ ## 5.4.1 (2023-11-30)
43
+
44
+ - Replace RequestStore with ActiveSupport::CurrentAttributes - @the-spectator
45
+ [#673](https://github.com/collectiveidea/audited/pull/673/)
46
+ - Don't require railtie when used outside of Rails - @nicduke38degrees
47
+ [#665](https://github.com/collectiveidea/audited/pull/665)
48
+
49
+ ## 5.4.0 (2023-09-30)
50
+
51
+ - Add Rails 7.1 support - @yuki24
52
+ [#686](https://github.com/collectiveidea/audited/pull/686)
53
+
54
+ ## 5.3.3 (2023-03-24)
55
+
56
+ - Use RequestStore instead of Thread.current for thread-safe requests - @tiagocassio
57
+ [#669](https://github.com/c ollectiveidea/audited/pull/669)
58
+ - Clean up Touch audits - @mcyoung, @akostadinov
59
+ [#668](https://github.com/collectiveidea/audited/pull/668)
60
+
61
+ ## 5.3.2 (2023-02-22)
62
+
63
+ - Touch audit bug fixes - @mcyoung
64
+ [#662](https://github.com/collectiveidea/audited/pull/662)
65
+
66
+ ## 5.3.1 (2023-02-21)
67
+
68
+ - Ensure touch support doesn't cause double audits - @mcyoung
69
+ [#660](https://github.com/collectiveidea/audited/pull/660)
70
+ - Testing Improvements - @vlad-psh
71
+ [#628](https://github.com/collectiveidea/audited/pull/628)
72
+ - Testing Improvements - @mcyoung
73
+ [#658](https://github.com/collectiveidea/audited/pull/658)
74
+
75
+ ## 5.3.0 (2023-02-14)
76
+
77
+ - Audit touch calls - @mcyoung
78
+ [#657](https://github.com/collectiveidea/audited/pull/657)
79
+ - Allow using with Padrino and other non-Rails projects - @nicduke38degrees
80
+ [#655](https://github.com/collectiveidea/audited/pull/655)
81
+ - Testing updates - @jdufresne
82
+ [#652](https://github.com/collectiveidea/audited/pull/652)
83
+ [#653](https://github.com/collectiveidea/audited/pull/653)
84
+
85
+ ## 5.2.0 (2023-01-23)
86
+
87
+ Improved
88
+
89
+ - config.audit_class can take a string or constant - @rocket-turtle
90
+ Fixes overzealous change in 5.1.0 where it only took a string.
91
+ [#648](https://github.com/collectiveidea/audited/pull/648)
92
+ - README link fix - @jeremiahlukus
93
+ [#646](https://github.com/collectiveidea/audited/pull/646)
94
+ - Typo fix in GitHub Actions - @jdufresne
95
+ [#644](https://github.com/collectiveidea/audited/pull/644)
96
+
97
+ ## 5.1.0 (2022-12-23)
98
+
99
+ Changed
100
+
101
+ - config.audit_class takes a string - @simmerz
102
+ [#609](https://github.com/collectiveidea/audited/pull/609)
103
+ - Filter encrypted attributes automatically - @vlad-psh
104
+ [#630](https://github.com/collectiveidea/audited/pull/630)
105
+
106
+ Improved
107
+
108
+ - README improvements - @jess, @mstroming
109
+ [#605](https://github.com/collectiveidea/audited/pull/605)
110
+ [#640](https://github.com/collectiveidea/audited/issues/640)
111
+ - Ignore deadlocks in concurrent audit combinations - @Crammaman
112
+ [#621](https://github.com/collectiveidea/audited/pull/621)
113
+ - Fix timestamped_migrations deprecation warning - @shouichi
114
+ [#624](https://github.com/collectiveidea/audited/pull/624)
115
+ - Ensure audits are re-enabled after blocks - @dcorlett
116
+ [#632](https://github.com/collectiveidea/audited/pull/632)
117
+ - Replace raw string where clause with query methods - @macowie
118
+ [#642](https://github.com/collectiveidea/audited/pull/642)
119
+ - Test against more Ruby/Rails Versions - @enomotodev, @danielmorrison
120
+ [#610](https://github.com/collectiveidea/audited/pull/610)
121
+ [#643](https://github.com/collectiveidea/audited/pull/643)
122
+
123
+ ## 5.0.2 (2021-09-16)
124
+
125
+ Added
126
+
127
+ - Relax ActiveRecord version constraint to support Rails 7
128
+ [#597](https://github.com/collectiveidea/audited/pull/597)
129
+
130
+ Improved
131
+
132
+ - Improve loading - @mvastola
133
+ [#592](https://github.com/collectiveidea/audited/pull/592)
134
+ - Update README - @danirod, @clement1234
135
+ [#596](https://github.com/collectiveidea/audited/pull/596)
136
+ [#594](https://github.com/collectiveidea/audited/pull/594)
137
+
138
+
139
+ ## 5.0.1 (2021-06-11)
140
+
141
+ Improved
142
+
143
+ - Don't load associated model when auditing is disabled - @nut4k1
144
+ [#584](https://github.com/collectiveidea/audited/pull/584)
145
+
146
+ ## 5.0.0 (2021-06-10)
147
+
148
+ Improved
149
+
150
+ - Fixes an issue where array attributes were not deserialized properly - @cfeckardt, @yuki24
151
+ [#448](https://github.com/collectiveidea/audited/pull/448)
152
+ [#576](https://github.com/collectiveidea/audited/pull/576)
153
+ - Improve error message on audit_comment and allow for i18n override - @james
154
+ [#523](https://github.com/collectiveidea/audited/pull/523/)
155
+ - Don't require a comment if only non-audited fields are changed - @james
156
+ [#522](https://github.com/collectiveidea/audited/pull/522/)
157
+ - Readme updates - @gourshete
158
+ [#525](https://github.com/collectiveidea/audited/pull/525)
159
+ - Allow restoring previous enum behavior with flag - @travisofthenorth
160
+ [#526](https://github.com/collectiveidea/audited/pull/526)
161
+ - Follow Rails Autoloading conventions - @duncanjbrown
162
+ [#532](https://github.com/collectiveidea/audited/pull/532)
163
+ - Fix own_and_associated_audits for STI Models - @eric-hemasystems
164
+ [#533](https://github.com/collectiveidea/audited/pull/533)
165
+ - Rails 6.1 Improvements - @okuramasafumi, @marcrohloff
166
+ [#563](https://github.com/collectiveidea/audited/pull/563)
167
+ [#544](https://github.com/collectiveidea/audited/pull/544)
168
+ - Use Thread local variables instead of Fibers - @arathunku
169
+ [#568](https://github.com/collectiveidea/audited/pull/568)
170
+
171
+ Changed
172
+
173
+ - Drop support for Rails 4 - @travisofthenorth
174
+ [#527](https://github.com/collectiveidea/audited/pull/527)
175
+
176
+ ## 4.10.0 (2021-01-07)
177
+
178
+ Added
179
+
180
+ - Add redacted option
181
+ [#485](https://github.com/collectiveidea/audited/pull/485)
182
+ - Rails 6.1. support
183
+ [#554](https://github.com/collectiveidea/audited/pull/554)
184
+ [#559](https://github.com/collectiveidea/audited/pull/559)
185
+
186
+ Improved
187
+
188
+ - Avoid extra query on first audit version
189
+ [#513](https://github.com/collectiveidea/audited/pull/513)
190
+
191
+
192
+ ## 4.9.0 (2019-07-17)
193
+
194
+ Breaking changes
195
+
196
+ - removed block support for `Audit.reconstruct_attributes`
197
+ [#437](https://github.com/collectiveidea/audited/pull/437)
198
+ - removed `audited_columns`, `non_audited_columns`, `auditing_enabled=` instance methods,
199
+ use class methods instead
200
+ [#424](https://github.com/collectiveidea/audited/pull/424)
201
+ - removed rails 4.1 and 4.0 support
202
+ [#431](https://github.com/collectiveidea/audited/pull/431)
203
+
204
+ Added
205
+
206
+ - Add `with_auditing` methods to enable temporarily
207
+ [#502](https://github.com/collectiveidea/audited/pull/502)
208
+ - Add `update_with_comment_only` option to control audit creation with only comments
209
+ [#327](https://github.com/collectiveidea/audited/pull/327)
210
+ - Support for Rails 6.0 and Ruby 2.6
211
+ [#494](https://github.com/collectiveidea/audited/pull/494)
212
+
213
+ Changed
214
+
215
+ - None
216
+
217
+ Fixed
218
+
219
+ - Ensure enum changes are stored consistently
220
+ [#429](https://github.com/collectiveidea/audited/pull/429)
221
+
222
+ ## 4.8.0 (2018-08-19)
223
+
224
+ Breaking changes
225
+
226
+ - None
227
+
228
+ Added
229
+
230
+ - Add ability to globally disable auditing
231
+ [#426](https://github.com/collectiveidea/audited/pull/426)
232
+ - Add `own_and_associated_audits` method to auditable models
233
+ [#428](https://github.com/collectiveidea/audited/pull/428)
234
+ - Ability to nest `as_user` within itself
235
+ [#450](https://github.com/collectiveidea/audited/pull/450)
236
+ - Private methods can now be used for conditional auditing
237
+ [#454](https://github.com/collectiveidea/audited/pull/454)
238
+
239
+ Changed
240
+
241
+ - Add version to `auditable_index`
242
+ [#427](https://github.com/collectiveidea/audited/pull/427)
243
+ - Rename audited resource revision `version` attribute to `audit_version` and deprecate `version` attribute
244
+ [#443](https://github.com/collectiveidea/audited/pull/443)
245
+
246
+ Fixed
247
+
248
+ - None
249
+
250
+ ## 4.7.1 (2018-04-10)
251
+
252
+ Breaking changes
253
+
254
+ - None
255
+
256
+ Added
257
+
258
+ - None
259
+
260
+ Changed
261
+
262
+ - None
263
+
264
+ Fixed
265
+
266
+ - Allow use with Rails 5.2 final
267
+
268
+ ## 4.7.0 (2018-03-14)
269
+
270
+ Breaking changes
271
+
272
+ - None
273
+
274
+ Added
275
+
276
+ - Add `inverse_of: auditable` definition to audit relation
277
+ [#413](https://github.com/collectiveidea/audited/pull/413)
278
+ - Add functionality to conditionally audit models
279
+ [#414](https://github.com/collectiveidea/audited/pull/414)
280
+ - Allow limiting number of audits stored
281
+ [#405](https://github.com/collectiveidea/audited/pull/405)
282
+
283
+ Changed
284
+
285
+ - Reduced db calls in `#revisions` method
286
+ [#402](https://github.com/collectiveidea/audited/pull/402)
287
+ [#403](https://github.com/collectiveidea/audited/pull/403)
288
+ - Update supported Ruby and Rails versions
289
+ [#404](https://github.com/collectiveidea/audited/pull/404)
290
+ [#409](https://github.com/collectiveidea/audited/pull/409)
291
+ [#415](https://github.com/collectiveidea/audited/pull/415)
292
+ [#416](https://github.com/collectiveidea/audited/pull/416)
293
+
294
+ Fixed
295
+
296
+ - Ensure that `on` and `except` options jive with `comment_required: true`
297
+ [#419](https://github.com/collectiveidea/audited/pull/419)
298
+ - Fix RSpec matchers
299
+ [#420](https://github.com/collectiveidea/audited/pull/420)
300
+
301
+ ## 4.6.0 (2018-01-10)
302
+
303
+ Breaking changes
304
+
305
+ - None
306
+
307
+ Added
308
+
309
+ - Add functionality to undo specific audit
310
+ [#381](https://github.com/collectiveidea/audited/pull/381)
311
+
312
+ Changed
313
+
314
+ - Removed duplicate declaration of `non_audited_columns` method
315
+ [#365](https://github.com/collectiveidea/audited/pull/365)
316
+ - Updated `audited_changes` calculation to support Rails>=5.1 change syntax
317
+ [#377](https://github.com/collectiveidea/audited/pull/377)
318
+ - Improve index ordering for polymorphic indexes
319
+ [#385](https://github.com/collectiveidea/audited/pull/385)
320
+ - Update CI to test on newer versions of Ruby and Rails
321
+ [#386](https://github.com/collectiveidea/audited/pull/386)
322
+ [#387](https://github.com/collectiveidea/audited/pull/387)
323
+ [#388](https://github.com/collectiveidea/audited/pull/388)
324
+ - Simplify `audited_columns` calculation
325
+ [#391](https://github.com/collectiveidea/audited/pull/391)
326
+ - Simplify `audited_changes` calculation
327
+ [#389](https://github.com/collectiveidea/audited/pull/389)
328
+ - Normalize options passed to `audited` method
329
+ [#397](https://github.com/collectiveidea/audited/pull/397)
330
+
331
+ Fixed
332
+
333
+ - Fixed typo in rspec causing incorrect test failure
334
+ [#360](https://github.com/collectiveidea/audited/pull/360)
335
+ - Allow running specs using rake
336
+ [#390](https://github.com/collectiveidea/audited/pull/390)
337
+ - Passing an invalid version to `revision` returns `nil` instead of last version
338
+ [#384](https://github.com/collectiveidea/audited/pull/384)
339
+ - Fix duplicate deceleration warnings
340
+ [#399](https://github.com/collectiveidea/audited/pull/399)
341
+
342
+
343
+ ## 4.5.0 (2017-05-22)
344
+
345
+ Breaking changes
346
+
347
+ - None
348
+
349
+ Added
350
+
351
+ - Support for `user_id` column to be a `uuid` type
352
+ [#333](https://github.com/collectiveidea/audited/pull/333)
353
+
354
+ Fixed
355
+
356
+ - Fix retrieval of user from controller when populated in before callbacks
357
+ [#336](https://github.com/collectiveidea/audited/issues/336)
358
+ - Fix column type check in serializer for Oracle DB adapter
359
+ [#335](https://github.com/collectiveidea/audited/pull/335)
360
+ - Fix `non_audited_columns` to allow symbol names
361
+ [#351](https://github.com/collectiveidea/audited/pull/351)
362
+
363
+ ## 4.4.1 (2017-03-29)
364
+
365
+ Fixed
366
+
367
+ - Fix ActiveRecord gem dependency to permit 5.1
368
+ [#332](https://github.com/collectiveidea/audited/pull/332)
369
+
370
+ ## 4.4.0 (2017-03-29)
371
+
372
+ Breaking changes
373
+
374
+ - None
375
+
376
+ Added
377
+
378
+ - Support for `audited_changes` to be a `json` or `jsonb` column in PostgreSQL
379
+ [#216](https://github.com/collectiveidea/audited/issues/216)
380
+ - Allow `Audited::Audit` to be subclassed by configuring `Audited.audit_class`
381
+ [#314](https://github.com/collectiveidea/audited/issues/314)
382
+ - Support for Ruby on Rails 5.1
383
+ [#329](https://github.com/collectiveidea/audited/issues/329)
384
+ - Support for Ruby 2.4
385
+ [#329](https://github.com/collectiveidea/audited/issues/329)
386
+
387
+ Changed
388
+
389
+ - Remove rails-observer dependency
390
+ [#325](https://github.com/collectiveidea/audited/issues/325)
391
+ - Undeprecated `Audited.audit_class` reader
392
+ [#314](https://github.com/collectiveidea/audited/issues/314)
393
+
394
+ Fixed
395
+
396
+ - SQL error in Rails Conditional GET (304 caching)
397
+ [#295](https://github.com/collectiveidea/audited/pull/295)
398
+ - Fix missing non_audited_columns= configuration setter
399
+ [#320](https://github.com/collectiveidea/audited/issues/320)
400
+ - Fix migration generators to specify AR migration version
401
+ [#329](https://github.com/collectiveidea/audited/issues/329)
402
+
403
+ ## 4.3.0 (2016-09-17)
404
+
405
+ Breaking changes
406
+
407
+ - None
408
+
409
+ Added
410
+
411
+ - Support singular arguments for options: `on` and `only`
412
+
413
+ Fixed
414
+
415
+ - Fix auditing instance attributes if "only" option specified
416
+ - Allow private / protected callback declarations
417
+ - Do not eagerly connect to database
418
+
419
+ ## 4.2.2 (2016-08-01)
420
+
421
+ - Correct auditing_enabled for STI models
422
+ - Properly set table name for mongomapper
423
+
424
+ ## 4.2.1 (2016-07-29)
425
+
426
+ - Fix bug when only: is a single field.
427
+ - update gemspec to use mongomapper 0.13
428
+ - sweeper need not run observer for mongomapper
429
+ - Make temporary disabling of auditing threadsafe
430
+ - Centralize `Audited.store` as thread safe variable store
431
+
432
+ ## 4.2.0 (2015-03-31)
433
+
434
+ Not yet documented.
435
+
436
+ ## 4.0.0 (2014-09-04)
437
+
438
+ Not yet documented.
439
+
440
+ ## 4.0.0.rc1 (2014-07-30)
441
+
442
+ Not yet documented.
443
+
444
+ ## 3.0.0 (2012-09-25)
445
+
446
+ Not yet documented.
447
+
448
+ ## 3.0.0.rc2 (2012-07-09)
449
+
450
+ Not yet documented.
451
+
452
+ ## 3.0.0.rc1 (2012-04-25)
453
+
454
+ Not yet documented.
455
+
456
+ ## 2012-04-10
457
+
458
+ - Add Audit scopes for creates, updates and destroys [chriswfx]
459
+
460
+ ## 2011-10-25
461
+
462
+ - Made ignored_attributes configurable [senny]
463
+
464
+ ## 2011-09-09
465
+
466
+ - Rails 3.x support
467
+ - Support for associated audits
468
+ - Support for remote IP address storage
469
+ - Plenty of bug fixes and refactoring
470
+ - [kennethkalmer, ineu, PatrickMa, jrozner, dwarburton, bsiggelkow, dgm]
471
+
472
+ ## 2009-01-27
473
+
474
+ - Store old and new values for updates, and store all attributes on destroy.
475
+ - Refactored revisioning methods to work as expected
476
+
477
+ ## 2008-10-10
478
+
479
+ - changed to make it work in development mode
480
+
481
+ ## 2008-09-24
482
+
483
+ - Add ability to record parent record of the record being audited [Kenneth Kalmer]
484
+
485
+ ## 2008-04-19
486
+
487
+ - refactored to make compatible with dirty tracking in edge rails
488
+ and to stop storing both old and new values in a single audit
489
+
490
+ ## 2008-04-18
491
+
492
+ - Fix NoMethodError when trying to access the :previous revision
493
+ on a model that doesn't have previous revisions [Alex Soto]
494
+
495
+ ## 2008-03-21
496
+
497
+ - added #changed_attributes to get access to the changes before a
498
+ save [Chris Parker]
499
+
500
+ ## 2007-12-16
501
+
502
+ - Added #revision_at for retrieving a revision from a specific
503
+ time [Jacob Atzen]
504
+
505
+ ## 2007-12-16
506
+
507
+ - Fix error when getting revision from audit with no changes
508
+ [Geoffrey Wiseman]
509
+
510
+ ## 2007-12-16
511
+
512
+ - Remove dependency on acts_as_list
513
+
514
+ ## 2007-06-17
515
+
516
+ - Added support getting previous revisions
517
+
518
+ ## 2006-11-17
519
+
520
+ - Replaced use of singleton User.current_user with cache sweeper
521
+ implementation for auditing the user that made the change
522
+
523
+ ## 2006-11-17
524
+
525
+ - added migration generator
526
+
527
+ ## 2006-08-14
528
+
529
+ - incorporated changes from Michael Schuerig to write_attribute
530
+ that saves the new value after every change and not just the
531
+ first, and performs proper type-casting before doing comparisons
532
+
533
+ ## 2006-08-14
534
+
535
+ - The "changes" are now saved as a serialized hash
536
+
537
+ ## 2006-07-21
538
+
539
+ - initial version
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec name: "tangledwires-audited"
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright © 2010 Brandon Keepers - Collective Idea
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.