active_record_auditor 0.1.1

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 (3) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +55 -0
  3. metadata +59 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a2509d33705274b7693741399b15f890fade975
4
+ data.tar.gz: 545fb6e363dd0fb5697d746e8e7a055432fbf16a
5
+ SHA512:
6
+ metadata.gz: 3d9b6e5ff08aec15762f7b2561a3e6aad8be9408215fc82e81d745baf4afee752105a574addb6a78da98b22e516d91f2c87e50fab3db6ffaaf2125fb51865af1
7
+ data.tar.gz: e818738275d8f290d245abf9217930f000ad94aa12005d466269eda29751fb193430db4ab5ecc1dd9789af49ee10bb737b0d99b7d3a9f58182725a3e2c925707
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # ActiveRecordAuditor
2
+
3
+ Audit Framework For ActiveRecord
4
+
5
+ so general idea, is
6
+ the project will extend active record
7
+ each table, will have a duplicate table, with version name, action, username fields added
8
+ once the table is setup, all changes to the table will be wrapped in a transaction
9
+ which copies the previous version with the username, an incrementing version number, and the action (create update delete).
10
+ as well as making the changes to the specified row
11
+ it records all the previous version
12
+ there should be a flag that either blocks changes with no user or records them.
13
+ and the ability to split the audit tables into a table per monthly tables
14
+ so that you can eventually trim tables from older months for size preservation
15
+ so if your table name is titles you'll have titles, titles_audit_april_2014, titles_audit_may_2014, etc.
16
+ and if you only want to keep record for so long
17
+
18
+
19
+ TODO: Delete this and the text above, and describe your gem
20
+
21
+ ## Installation
22
+
23
+ Add this line to your application's Gemfile:
24
+
25
+ ```ruby
26
+ gem 'active_record_auditor'
27
+ ```
28
+
29
+ And then execute:
30
+
31
+ $ bundle
32
+
33
+ Or install it yourself as:
34
+
35
+ $ gem install active_record_auditor
36
+
37
+ ## Usage
38
+
39
+ TODO: Write usage instructions here
40
+
41
+ ## Development
42
+
43
+ Put your Ruby code in the file `lib/active_record_auditor`. To experiment with that code, run `bin/console` for an interactive prompt.
44
+
45
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
46
+
47
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
48
+
49
+ ## Contributing
50
+
51
+ 1. Fork it ( https://github.com/[my-github-username]/active_record_auditor/fork )
52
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
53
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
54
+ 4. Push to the branch (`git push origin my-new-feature`)
55
+ 5. Create a new Pull Request
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_record_auditor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Nic Wilson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ description: I should really do this at some point
28
+ email:
29
+ - wilsonic89@yahoo.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - README.md
35
+ homepage: https://github.com/nbwilson/active_record_auditor
36
+ licenses:
37
+ - MIT
38
+ metadata: {}
39
+ post_install_message:
40
+ rdoc_options: []
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ requirements: []
54
+ rubyforge_project:
55
+ rubygems_version: 2.4.6
56
+ signing_key:
57
+ specification_version: 4
58
+ summary: Framework for auditing user actions in ActiveRecord
59
+ test_files: []