velocity_audited 5.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +115 -0
  3. data/.gitignore +17 -0
  4. data/.standard.yml +5 -0
  5. data/.yardopts +3 -0
  6. data/Appraisals +44 -0
  7. data/CHANGELOG.md +419 -0
  8. data/Gemfile +3 -0
  9. data/LICENSE +19 -0
  10. data/README.md +433 -0
  11. data/Rakefile +18 -0
  12. data/gemfiles/rails50.gemfile +10 -0
  13. data/gemfiles/rails51.gemfile +10 -0
  14. data/gemfiles/rails52.gemfile +10 -0
  15. data/gemfiles/rails60.gemfile +10 -0
  16. data/gemfiles/rails61.gemfile +10 -0
  17. data/gemfiles/rails70.gemfile +10 -0
  18. data/lib/audited/audit.rb +198 -0
  19. data/lib/audited/auditor.rb +476 -0
  20. data/lib/audited/railtie.rb +16 -0
  21. data/lib/audited/rspec_matchers.rb +228 -0
  22. data/lib/audited/sweeper.rb +67 -0
  23. data/lib/audited/version.rb +5 -0
  24. data/lib/audited-rspec.rb +6 -0
  25. data/lib/audited.rb +49 -0
  26. data/lib/generators/audited/install_generator.rb +27 -0
  27. data/lib/generators/audited/migration.rb +17 -0
  28. data/lib/generators/audited/migration_helper.rb +11 -0
  29. data/lib/generators/audited/templates/add_association_to_audits.rb +13 -0
  30. data/lib/generators/audited/templates/add_comment_to_audits.rb +11 -0
  31. data/lib/generators/audited/templates/add_remote_address_to_audits.rb +12 -0
  32. data/lib/generators/audited/templates/add_request_uuid_to_audits.rb +12 -0
  33. data/lib/generators/audited/templates/add_version_to_auditable_index.rb +23 -0
  34. data/lib/generators/audited/templates/install.rb +32 -0
  35. data/lib/generators/audited/templates/rename_association_to_associated.rb +25 -0
  36. data/lib/generators/audited/templates/rename_changes_to_audited_changes.rb +11 -0
  37. data/lib/generators/audited/templates/rename_parent_to_association.rb +13 -0
  38. data/lib/generators/audited/templates/revert_polymorphic_indexes_order.rb +22 -0
  39. data/lib/generators/audited/upgrade_generator.rb +70 -0
  40. data/lib/velocity_audited.rb +5 -0
  41. data/spec/audited/audit_spec.rb +357 -0
  42. data/spec/audited/auditor_spec.rb +1097 -0
  43. data/spec/audited/rspec_matchers_spec.rb +69 -0
  44. data/spec/audited/sweeper_spec.rb +133 -0
  45. data/spec/audited_spec.rb +18 -0
  46. data/spec/audited_spec_helpers.rb +32 -0
  47. data/spec/rails_app/app/assets/config/manifest.js +2 -0
  48. data/spec/rails_app/config/application.rb +13 -0
  49. data/spec/rails_app/config/database.yml +26 -0
  50. data/spec/rails_app/config/environment.rb +5 -0
  51. data/spec/rails_app/config/environments/test.rb +47 -0
  52. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  53. data/spec/rails_app/config/initializers/inflections.rb +2 -0
  54. data/spec/rails_app/config/initializers/secret_token.rb +3 -0
  55. data/spec/rails_app/config/routes.rb +3 -0
  56. data/spec/spec_helper.rb +24 -0
  57. data/spec/support/active_record/models.rb +151 -0
  58. data/spec/support/active_record/postgres/1_change_audited_changes_type_to_json.rb +11 -0
  59. data/spec/support/active_record/postgres/2_change_audited_changes_type_to_jsonb.rb +11 -0
  60. data/spec/support/active_record/schema.rb +90 -0
  61. data/test/db/version_1.rb +17 -0
  62. data/test/db/version_2.rb +18 -0
  63. data/test/db/version_3.rb +18 -0
  64. data/test/db/version_4.rb +19 -0
  65. data/test/db/version_5.rb +17 -0
  66. data/test/db/version_6.rb +19 -0
  67. data/test/install_generator_test.rb +62 -0
  68. data/test/test_helper.rb +18 -0
  69. data/test/upgrade_generator_test.rb +97 -0
  70. metadata +260 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 85abfc76692b0c1589b8eb88a9fe1f0a1c61a1358b0cdac7162aba1db6fcd378
4
+ data.tar.gz: 406aba88f38de68ad349f16e2974b4fe6038c21375eea770553dd2c84723c7f1
5
+ SHA512:
6
+ metadata.gz: 3b3939af3b5ff73712d16be3e6d6d9aa95ed05cc824a2513a1910eb7c0aece70d25e2787e11f59dda56344e24c989af5d777136313beca1feac70bfc8d436a2f
7
+ data.tar.gz: 47a2c5a2cc3a3faae48abc00e5ae12118ebdd024d28016903434243a47763b78f1b458f6bde7886e28ab3c3c9a9dff39849bb15a4cfa89fb2b8dc2c1129088e5
@@ -0,0 +1,115 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - master
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
16
+ appraisal:
17
+ - rails50
18
+ - rails51
19
+ - rails52
20
+ - rails60
21
+ - rails61
22
+ - rails70
23
+ db: [POSTGRES, MYSQL, SQLITE]
24
+ exclude:
25
+ # MySQL has issues on Ruby 2.3
26
+ # https://github.com/ruby/setup-ruby/issues/150
27
+ - ruby: 2.3
28
+ db: MYSQL
29
+
30
+ # Rails 5.0 supports Ruby 2.2-2.4
31
+ - appraisal: rails50
32
+ ruby: 2.5
33
+ - appraisal: rails50
34
+ ruby: 2.6
35
+ - appraisal: rails50
36
+ ruby: 2.7
37
+ - appraisal: rails50
38
+ ruby: 3.0
39
+
40
+ # Rails 5.1 supports Ruby 2.2-2.5
41
+ - appraisal: rails51
42
+ ruby: 2.6
43
+ - appraisal: rails51
44
+ ruby: 2.7
45
+ - appraisal: rails51
46
+ ruby: 3.0
47
+
48
+ # Rails 5.2 supports Ruby 2.2-2.5
49
+ - appraisal: rails52
50
+ ruby: 2.6
51
+ - appraisal: rails52
52
+ ruby: 2.7
53
+ - appraisal: rails52
54
+ ruby: 3.0
55
+
56
+ # Rails 6.0 supports Ruby 2.5-2.7
57
+ - appraisal: rails60
58
+ ruby: 2.3
59
+ - appraisal: rails60
60
+ ruby: 2.4
61
+ - appraisal: rails60
62
+ ruby: 3.0
63
+
64
+ # Rails 6.1 supports Ruby 2.5+
65
+ - appraisal: rails61
66
+ ruby: 2.3
67
+ - appraisal: rails61
68
+ ruby: 2.4
69
+
70
+ # Rails 7 supports Ruby 2.7+
71
+ - appraisal: rails70
72
+ ruby: 2.3
73
+ - appraisal: rails70
74
+ ruby: 2.4
75
+ - appraisal: rails70
76
+ ruby: 2.5
77
+ - appraisal: rails70
78
+ ruby: 2.6
79
+
80
+ services:
81
+ postgres:
82
+ image: postgres
83
+ env:
84
+ POSTGRES_USER: postgres
85
+ POSTGRES_PASSWORD: postgres
86
+ POSTGRES_DB: audited_test
87
+ ports:
88
+ - 5432:5432
89
+ # needed because the postgres container does not provide a healthcheck
90
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
91
+
92
+ env:
93
+ DB_DATABASE: audited_test
94
+ DB_USER: root
95
+ DB_PASSWORD: 'root'
96
+ DB_HOST: localhost
97
+
98
+ steps:
99
+ - name: Setup MySQL
100
+ run: |
101
+ sudo /etc/init.d/mysql start
102
+ mysql -e 'CREATE DATABASE audited_test;' -uroot -proot
103
+ mysql -e 'SHOW DATABASES;' -uroot -proot
104
+ - uses: actions/checkout@v2
105
+ - name: Copy Gemfile
106
+ run: sed 's/\.\././' gemfiles/${{ matrix.appraisal }}.gemfile > Gemfile
107
+ - name: Set up Ruby ${{ matrix.ruby }}
108
+ uses: ruby/setup-ruby@v1
109
+ with:
110
+ ruby-version: ${{ matrix.ruby }}
111
+ bundler-cache: true
112
+ - name: Run tests
113
+ env:
114
+ DB: ${{ matrix.db }}
115
+ run: bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.iml
2
+ *.ipr
3
+ *.iws
4
+ *.log
5
+ *.swp
6
+ .bundle
7
+ .rakeTasks
8
+ .ruby-gemset
9
+ .ruby-version
10
+ .rvmrc
11
+ .yardoc
12
+ doc/
13
+ Gemfile.lock
14
+ gemfiles/*.lock
15
+ pkg
16
+ tmp/*
17
+ audited_test.sqlite3.db
data/.standard.yml ADDED
@@ -0,0 +1,5 @@
1
+ ruby_version: 2.3
2
+ ignore:
3
+ - lib/generators/audited/templates/**/*
4
+ - vendor/bundle/**/*
5
+ - gemfiles/vendor/bundle/**/*
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --no-private
2
+ --title acts_as_audited
3
+ --exclude lib/generators
data/Appraisals ADDED
@@ -0,0 +1,44 @@
1
+ # Include DB adapters matching the version requirements in
2
+ # rails/activerecord/lib/active_record/connection_adapters/*adapter.rb
3
+
4
+ appraise "rails50" do
5
+ gem "rails", "~> 5.0.0"
6
+ gem "mysql2", ">= 0.3.18", "< 0.6.0"
7
+ gem "pg", ">= 0.18", "< 2.0"
8
+ gem "sqlite3", "~> 1.3.6"
9
+ end
10
+
11
+ appraise "rails51" do
12
+ gem "rails", "~> 5.1.4"
13
+ gem "mysql2", ">= 0.3.18", "< 0.6.0"
14
+ gem "pg", ">= 0.18", "< 2.0"
15
+ gem "sqlite3", "~> 1.3.6"
16
+ end
17
+
18
+ appraise "rails52" do
19
+ gem "rails", ">= 5.2.0", "< 5.3"
20
+ gem "mysql2", ">= 0.4.4", "< 0.6.0"
21
+ gem "pg", ">= 0.18", "< 2.0"
22
+ gem "sqlite3", "~> 1.3.6"
23
+ end
24
+
25
+ appraise "rails60" do
26
+ gem "rails", ">= 6.0.0", "< 6.1"
27
+ gem "mysql2", ">= 0.4.4"
28
+ gem "pg", ">= 0.18", "< 2.0"
29
+ gem "sqlite3", "~> 1.4"
30
+ end
31
+
32
+ appraise "rails61" do
33
+ gem "rails", ">= 6.1.0", "< 6.2"
34
+ gem "mysql2", ">= 0.4.4"
35
+ gem "pg", ">= 1.1", "< 2.0"
36
+ gem "sqlite3", "~> 1.4"
37
+ end
38
+
39
+ appraise "rails70" do
40
+ gem "rails", ">= 7.0.0.alpha2", "< 7.1"
41
+ gem "mysql2", ">= 0.4.4"
42
+ gem "pg", ">= 1.1"
43
+ gem "sqlite3", ">= 1.4"
44
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,419 @@
1
+ # Audited ChangeLog
2
+
3
+ ## 5.0.2 (2021-09-16)
4
+
5
+ Added
6
+
7
+ - Relax ActiveRecord version constraint to support Rails 7
8
+ [#597](https://github.com/collectiveidea/audited/pull/597)
9
+
10
+ Improved
11
+
12
+ - Improve loading - @mvastola
13
+ [#592](https://github.com/collectiveidea/audited/pull/592)
14
+ - Update README - @danirod, clement1234
15
+ [#596](https://github.com/collectiveidea/audited/pull/596)
16
+ [#594](https://github.com/collectiveidea/audited/pull/594)
17
+
18
+
19
+ ## 5.0.1 (2021-06-11)
20
+
21
+ Improved
22
+
23
+ - Don't load associated model when auditing is disabled - @nut4k1
24
+ [#584](https://github.com/collectiveidea/audited/pull/584)
25
+
26
+ ## 5.0.0 (2021-06-10)
27
+
28
+ Improved
29
+
30
+ - Fixes an issue where array attributes were not deserialized properly - @cfeckardt, @yuki24
31
+ [#448](https://github.com/collectiveidea/audited/pull/448)
32
+ [#576](https://github.com/collectiveidea/audited/pull/576)
33
+ - Improve error message on audit_comment and allow for i18n override - @james
34
+ [#523](https://github.com/collectiveidea/audited/pull/523/)
35
+ - Don't require a comment if only non-audited fields are changed - @james
36
+ [#522](https://github.com/collectiveidea/audited/pull/522/)
37
+ - Readme updates - @gourshete
38
+ [#525](https://github.com/collectiveidea/audited/pull/525)
39
+ - Allow restoring previous enum behavior with flag - @travisofthenorth
40
+ [#526](https://github.com/collectiveidea/audited/pull/526)
41
+ - Follow Rails Autoloading conventions - @duncanjbrown
42
+ [#532](https://github.com/collectiveidea/audited/pull/532)
43
+ - Fix own_and_associated_audits for STI Models - @eric-hemasystems
44
+ [#533](https://github.com/collectiveidea/audited/pull/533)
45
+ - Rails 6.1 Improvements - @okuramasafumi, @marcrohloff
46
+ [#563](https://github.com/collectiveidea/audited/pull/563)
47
+ [#544](https://github.com/collectiveidea/audited/pull/544)
48
+ - Use Thread local variables instead of Fibers - @arathunku
49
+ [#568](https://github.com/collectiveidea/audited/pull/568)
50
+
51
+ Changed
52
+
53
+ - Drop support for Rails 4 - @travisofthenorth
54
+ [#527](https://github.com/collectiveidea/audited/pull/527)
55
+
56
+ ## 4.10.0 (2021-01-07)
57
+
58
+ Added
59
+
60
+ - Add redacted option
61
+ [#485](https://github.com/collectiveidea/audited/pull/485)
62
+ - Rails 6.1. support
63
+ [#554](https://github.com/collectiveidea/audited/pull/554)
64
+ [#559](https://github.com/collectiveidea/audited/pull/559)
65
+
66
+ Improved
67
+
68
+ - Avoid extra query on first audit version
69
+ [#513](https://github.com/collectiveidea/audited/pull/513)
70
+
71
+
72
+ ## 4.9.0 (2019-07-17)
73
+
74
+ Breaking changes
75
+
76
+ - removed block support for `Audit.reconstruct_attributes`
77
+ [#437](https://github.com/collectiveidea/audited/pull/437)
78
+ - removed `audited_columns`, `non_audited_columns`, `auditing_enabled=` instance methods,
79
+ use class methods instead
80
+ [#424](https://github.com/collectiveidea/audited/pull/424)
81
+ - removed rails 4.1 and 4.0 support
82
+ [#431](https://github.com/collectiveidea/audited/pull/431)
83
+
84
+ Added
85
+
86
+ - Add `with_auditing` methods to enable temporarily
87
+ [#502](https://github.com/collectiveidea/audited/pull/502)
88
+ - Add `update_with_comment_only` option to control audit creation with only comments
89
+ [#327](https://github.com/collectiveidea/audited/pull/327)
90
+ - Support for Rails 6.0 and Ruby 2.6
91
+ [#494](https://github.com/collectiveidea/audited/pull/494)
92
+
93
+ Changed
94
+
95
+ - None
96
+
97
+ Fixed
98
+
99
+ - Ensure enum changes are stored consistently
100
+ [#429](https://github.com/collectiveidea/audited/pull/429)
101
+
102
+ ## 4.8.0 (2018-08-19)
103
+
104
+ Breaking changes
105
+
106
+ - None
107
+
108
+ Added
109
+
110
+ - Add ability to globally disable auditing
111
+ [#426](https://github.com/collectiveidea/audited/pull/426)
112
+ - Add `own_and_associated_audits` method to auditable models
113
+ [#428](https://github.com/collectiveidea/audited/pull/428)
114
+ - Ability to nest `as_user` within itself
115
+ [#450](https://github.com/collectiveidea/audited/pull/450)
116
+ - Private methods can now be used for conditional auditing
117
+ [#454](https://github.com/collectiveidea/audited/pull/454)
118
+
119
+ Changed
120
+
121
+ - Add version to `auditable_index`
122
+ [#427](https://github.com/collectiveidea/audited/pull/427)
123
+ - Rename audited resource revision `version` attribute to `audit_version` and deprecate `version` attribute
124
+ [#443](https://github.com/collectiveidea/audited/pull/443)
125
+
126
+ Fixed
127
+
128
+ - None
129
+
130
+ ## 4.7.1 (2018-04-10)
131
+
132
+ Breaking changes
133
+
134
+ - None
135
+
136
+ Added
137
+
138
+ - None
139
+
140
+ Changed
141
+
142
+ - None
143
+
144
+ Fixed
145
+
146
+ - Allow use with Rails 5.2 final
147
+
148
+ ## 4.7.0 (2018-03-14)
149
+
150
+ Breaking changes
151
+
152
+ - None
153
+
154
+ Added
155
+
156
+ - Add `inverse_of: auditable` definition to audit relation
157
+ [#413](https://github.com/collectiveidea/audited/pull/413)
158
+ - Add functionality to conditionally audit models
159
+ [#414](https://github.com/collectiveidea/audited/pull/414)
160
+ - Allow limiting number of audits stored
161
+ [#405](https://github.com/collectiveidea/audited/pull/405)
162
+
163
+ Changed
164
+
165
+ - Reduced db calls in `#revisions` method
166
+ [#402](https://github.com/collectiveidea/audited/pull/402)
167
+ [#403](https://github.com/collectiveidea/audited/pull/403)
168
+ - Update supported Ruby and Rails versions
169
+ [#404](https://github.com/collectiveidea/audited/pull/404)
170
+ [#409](https://github.com/collectiveidea/audited/pull/409)
171
+ [#415](https://github.com/collectiveidea/audited/pull/415)
172
+ [#416](https://github.com/collectiveidea/audited/pull/416)
173
+
174
+ Fixed
175
+
176
+ - Ensure that `on` and `except` options jive with `comment_required: true`
177
+ [#419](https://github.com/collectiveidea/audited/pull/419)
178
+ - Fix RSpec matchers
179
+ [#420](https://github.com/collectiveidea/audited/pull/420)
180
+
181
+ ## 4.6.0 (2018-01-10)
182
+
183
+ Breaking changes
184
+
185
+ - None
186
+
187
+ Added
188
+
189
+ - Add functionality to undo specific audit
190
+ [#381](https://github.com/collectiveidea/audited/pull/381)
191
+
192
+ Changed
193
+
194
+ - Removed duplicate declaration of `non_audited_columns` method
195
+ [#365](https://github.com/collectiveidea/audited/pull/365)
196
+ - Updated `audited_changes` calculation to support Rails>=5.1 change syntax
197
+ [#377](https://github.com/collectiveidea/audited/pull/377)
198
+ - Improve index ordering for polymorphic indexes
199
+ [#385](https://github.com/collectiveidea/audited/pull/385)
200
+ - Update CI to test on newer versions of Ruby and Rails
201
+ [#386](https://github.com/collectiveidea/audited/pull/386)
202
+ [#387](https://github.com/collectiveidea/audited/pull/387)
203
+ [#388](https://github.com/collectiveidea/audited/pull/388)
204
+ - Simplify `audited_columns` calculation
205
+ [#391](https://github.com/collectiveidea/audited/pull/391)
206
+ - Simplify `audited_changes` calculation
207
+ [#389](https://github.com/collectiveidea/audited/pull/389)
208
+ - Normalize options passed to `audited` method
209
+ [#397](https://github.com/collectiveidea/audited/pull/397)
210
+
211
+ Fixed
212
+
213
+ - Fixed typo in rspec causing incorrect test failure
214
+ [#360](https://github.com/collectiveidea/audited/pull/360)
215
+ - Allow running specs using rake
216
+ [#390](https://github.com/collectiveidea/audited/pull/390)
217
+ - Passing an invalid version to `revision` returns `nil` instead of last version
218
+ [#384](https://github.com/collectiveidea/audited/pull/384)
219
+ - Fix duplicate deceleration warnings
220
+ [#399](https://github.com/collectiveidea/audited/pull/399)
221
+
222
+
223
+ ## 4.5.0 (2017-05-22)
224
+
225
+ Breaking changes
226
+
227
+ - None
228
+
229
+ Added
230
+
231
+ - Support for `user_id` column to be a `uuid` type
232
+ [#333](https://github.com/collectiveidea/audited/pull/333)
233
+
234
+ Fixed
235
+
236
+ - Fix retrieval of user from controller when populated in before callbacks
237
+ [#336](https://github.com/collectiveidea/audited/issues/336)
238
+ - Fix column type check in serializer for Oracle DB adapter
239
+ [#335](https://github.com/collectiveidea/audited/pull/335)
240
+ - Fix `non_audited_columns` to allow symbol names
241
+ [#351](https://github.com/collectiveidea/audited/pull/351)
242
+
243
+ ## 4.4.1 (2017-03-29)
244
+
245
+ Fixed
246
+
247
+ - Fix ActiveRecord gem dependency to permit 5.1
248
+ [#332](https://github.com/collectiveidea/audited/pull/332)
249
+
250
+ ## 4.4.0 (2017-03-29)
251
+
252
+ Breaking changes
253
+
254
+ - None
255
+
256
+ Added
257
+
258
+ - Support for `audited_changes` to be a `json` or `jsonb` column in PostgreSQL
259
+ [#216](https://github.com/collectiveidea/audited/issues/216)
260
+ - Allow `Audited::Audit` to be subclassed by configuring `Audited.audit_class`
261
+ [#314](https://github.com/collectiveidea/audited/issues/314)
262
+ - Support for Ruby on Rails 5.1
263
+ [#329](https://github.com/collectiveidea/audited/issues/329)
264
+ - Support for Ruby 2.4
265
+ [#329](https://github.com/collectiveidea/audited/issues/329)
266
+
267
+ Changed
268
+
269
+ - Remove rails-observer dependency
270
+ [#325](https://github.com/collectiveidea/audited/issues/325)
271
+ - Undeprecated `Audited.audit_class` reader
272
+ [#314](https://github.com/collectiveidea/audited/issues/314)
273
+
274
+ Fixed
275
+
276
+ - SQL error in Rails Conditional GET (304 caching)
277
+ [#295](https://github.com/collectiveidea/audited/pull/295)
278
+ - Fix missing non_audited_columns= configuration setter
279
+ [#320](https://github.com/collectiveidea/audited/issues/320)
280
+ - Fix migration generators to specify AR migration version
281
+ [#329](https://github.com/collectiveidea/audited/issues/329)
282
+
283
+ ## 4.3.0 (2016-09-17)
284
+
285
+ Breaking changes
286
+
287
+ - None
288
+
289
+ Added
290
+
291
+ - Support singular arguments for options: `on` and `only`
292
+
293
+ Fixed
294
+
295
+ - Fix auditing instance attributes if "only" option specified
296
+ - Allow private / protected callback declarations
297
+ - Do not eagerly connect to database
298
+
299
+ ## 4.2.2 (2016-08-01)
300
+
301
+ - Correct auditing_enabled for STI models
302
+ - Properly set table name for mongomapper
303
+
304
+ ## 4.2.1 (2016-07-29)
305
+
306
+ - Fix bug when only: is a single field.
307
+ - update gemspec to use mongomapper 0.13
308
+ - sweeper need not run observer for mongomapper
309
+ - Make temporary disabling of auditing threadsafe
310
+ - Centralize `Audited.store` as thread safe variable store
311
+
312
+ ## 4.2.0 (2015-03-31)
313
+
314
+ Not yet documented.
315
+
316
+ ## 4.0.0 (2014-09-04)
317
+
318
+ Not yet documented.
319
+
320
+ ## 4.0.0.rc1 (2014-07-30)
321
+
322
+ Not yet documented.
323
+
324
+ ## 3.0.0 (2012-09-25)
325
+
326
+ Not yet documented.
327
+
328
+ ## 3.0.0.rc2 (2012-07-09)
329
+
330
+ Not yet documented.
331
+
332
+ ## 3.0.0.rc1 (2012-04-25)
333
+
334
+ Not yet documented.
335
+
336
+ ## 2012-04-10
337
+
338
+ - Add Audit scopes for creates, updates and destroys [chriswfx]
339
+
340
+ ## 2011-10-25
341
+
342
+ - Made ignored_attributes configurable [senny]
343
+
344
+ ## 2011-09-09
345
+
346
+ - Rails 3.x support
347
+ - Support for associated audits
348
+ - Support for remote IP address storage
349
+ - Plenty of bug fixes and refactoring
350
+ - [kennethkalmer, ineu, PatrickMa, jrozner, dwarburton, bsiggelkow, dgm]
351
+
352
+ ## 2009-01-27
353
+
354
+ - Store old and new values for updates, and store all attributes on destroy.
355
+ - Refactored revisioning methods to work as expected
356
+
357
+ ## 2008-10-10
358
+
359
+ - changed to make it work in development mode
360
+
361
+ ## 2008-09-24
362
+
363
+ - Add ability to record parent record of the record being audited [Kenneth Kalmer]
364
+
365
+ ## 2008-04-19
366
+
367
+ - refactored to make compatible with dirty tracking in edge rails
368
+ and to stop storing both old and new values in a single audit
369
+
370
+ ## 2008-04-18
371
+
372
+ - Fix NoMethodError when trying to access the :previous revision
373
+ on a model that doesn't have previous revisions [Alex Soto]
374
+
375
+ ## 2008-03-21
376
+
377
+ - added #changed_attributes to get access to the changes before a
378
+ save [Chris Parker]
379
+
380
+ ## 2007-12-16
381
+
382
+ - Added #revision_at for retrieving a revision from a specific
383
+ time [Jacob Atzen]
384
+
385
+ ## 2007-12-16
386
+
387
+ - Fix error when getting revision from audit with no changes
388
+ [Geoffrey Wiseman]
389
+
390
+ ## 2007-12-16
391
+
392
+ - Remove dependency on acts_as_list
393
+
394
+ ## 2007-06-17
395
+
396
+ - Added support getting previous revisions
397
+
398
+ ## 2006-11-17
399
+
400
+ - Replaced use of singleton User.current_user with cache sweeper
401
+ implementation for auditing the user that made the change
402
+
403
+ ## 2006-11-17
404
+
405
+ - added migration generator
406
+
407
+ ## 2006-08-14
408
+
409
+ - incorporated changes from Michael Schuerig to write_attribute
410
+ that saves the new value after every change and not just the
411
+ first, and performs proper type-casting before doing comparisons
412
+
413
+ ## 2006-08-14
414
+
415
+ - The "changes" are now saved as a serialized hash
416
+
417
+ ## 2006-07-21
418
+
419
+ - initial version
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec name: "velocity_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.