pg_audit_log 0.6.3 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -8
- data/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/generators/pg_audit_log/install_generator.rb +5 -5
- data/lib/pg_audit_log/version.rb +1 -1
- data/pg_audit_log.gemspec +2 -2
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39800555b4fbeb58610d4c7725ed799ff18efb63
|
4
|
+
data.tar.gz: 81c6d6c3c47ee07bb1444019308a381b33ab4b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2149585c888bd5d143c872d61d18ed8f459a9b0a77a2953a244b5c39d20e71a9a53a6486c047525e6a80d68ccb8507fc4cb4b613d78b00fa489bcf1e0e7a8e62
|
7
|
+
data.tar.gz: 3cf888d6c84efbca541ee57da5455e067744c155ebdc5bef8f669f6807951c6649761046c76e7b1a16097114efa87212a709ce6f90c64565051f4b0b321eedaf
|
data/.travis.yml
CHANGED
@@ -7,16 +7,15 @@ before_script:
|
|
7
7
|
- psql -c 'CREATE DATABASE pg_audit_log_test;' -U postgres
|
8
8
|
|
9
9
|
rvm:
|
10
|
-
- 1.9
|
11
|
-
- 2.0
|
12
|
-
- 2.1
|
10
|
+
- "1.9"
|
11
|
+
- "2.0"
|
12
|
+
- "2.1"
|
13
|
+
- "2.2"
|
13
14
|
#- jruby-19mode
|
14
15
|
- rbx-2.2
|
15
16
|
|
16
17
|
env:
|
17
|
-
|
18
|
-
#- RAILS_BRANCH="4-1-stable"
|
19
|
-
#- RAILS_BRANCH="4-0-stable"
|
18
|
+
- RAILS_VERSION="~> 4.2.0"
|
20
19
|
- RAILS_VERSION="~> 4.1.0"
|
21
20
|
- RAILS_VERSION="~> 4.0.0"
|
22
21
|
- RAILS_VERSION="~> 3.2.0"
|
@@ -24,5 +23,3 @@ env:
|
|
24
23
|
matrix:
|
25
24
|
allow_failures:
|
26
25
|
- env: RAILS_BRANCH="master"
|
27
|
-
- env: RAILS_BRANCH="4-1-stable"
|
28
|
-
- env: RAILS_BRANCH="4-0-stable"
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# pg_audit_log
|
2
2
|
|
3
3
|
[![Build Status](https://secure.travis-ci.org/Casecommons/pg_audit_log.png?branch=master)](https://travis-ci.org/Casecommons/pg_audit_log)
|
4
|
-
[![Code Climate](https://
|
5
|
-
[![Gem Version](https://
|
4
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/Casecommons/pg_audit_log.svg?style=flat)](https://codeclimate.com/github/Casecommons/pg_audit_log)
|
5
|
+
[![Gem Version](https://img.shields.io/gem/v/pg_audit_log.svg?style=flat)](https://rubygems.org/gems/pg_audit_log)
|
6
6
|
|
7
7
|
## Description
|
8
8
|
|
@@ -57,7 +57,7 @@ On a 2.93GHz i7 with PostgreSQL 9.1 the audit log has an overhead of about 0.003
|
|
57
57
|
|
58
58
|
- ActiveRecord
|
59
59
|
- PostgreSQL
|
60
|
-
- Rails 3.2
|
60
|
+
- Rails 3.2, 4.x
|
61
61
|
|
62
62
|
## LICENSE
|
63
63
|
|
@@ -2,17 +2,17 @@ require "rails/generators/active_record"
|
|
2
2
|
|
3
3
|
module PgAuditLog
|
4
4
|
module Generators
|
5
|
-
class InstallGenerator <
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
class InstallGenerator < ::ActiveRecord::Generators::Base
|
6
|
+
# ActiveRecord::Generators::Base inherits from Rails::Generators::NamedBase which requires a NAME parameter for the
|
7
|
+
# new table name. Our generator doesn't require a name, so we just set a random name here.
|
8
|
+
argument :name, type: :string, default: "random_name"
|
9
|
+
|
9
10
|
source_root File.expand_path('../templates', __FILE__)
|
10
11
|
|
11
12
|
def install
|
12
13
|
directory "lib/tasks"
|
13
14
|
migration_template "migration.rb", "db/migrate/install_pg_audit_log"
|
14
15
|
end
|
15
|
-
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/pg_audit_log/version.rb
CHANGED
data/pg_audit_log.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'pg_audit_log'
|
7
7
|
spec.version = PgAuditLog::VERSION
|
8
8
|
spec.authors = ['Case Commons, LLC']
|
9
|
-
spec.email = ['casecommons-dev@googlegroups.com']
|
9
|
+
spec.email = ['casecommons-dev@googlegroups.com', 'andrew@johnandrewmarshall.com']
|
10
10
|
spec.homepage = 'https://github.com/Casecommons/pg_audit_log'
|
11
11
|
spec.summary = %q{PostgreSQL-only database-level audit logging of all databases changes.}
|
12
12
|
spec.description = %q{A completely transparent audit logging component for your application using a stored procedure and triggers. Comes with specs for your project and a rake task to generate the reverse SQL to undo changes logged.}
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'rails', '>= 3.2', '
|
22
|
+
spec.add_dependency 'rails', '>= 3.2', '<= 4.2'
|
23
23
|
spec.add_dependency 'pg', '>= 0.9.0'
|
24
24
|
spec.add_development_dependency 'rspec', '2.14.1'
|
25
25
|
spec.add_development_dependency 'rspec-rails'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_audit_log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Case Commons, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
|
-
- - "
|
20
|
+
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '4.2'
|
23
23
|
type: :runtime
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.2'
|
30
|
-
- - "
|
30
|
+
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '4.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
@@ -91,6 +91,7 @@ description: A completely transparent audit logging component for your applicati
|
|
91
91
|
task to generate the reverse SQL to undo changes logged.
|
92
92
|
email:
|
93
93
|
- casecommons-dev@googlegroups.com
|
94
|
+
- andrew@johnandrewmarshall.com
|
94
95
|
executables: []
|
95
96
|
extensions: []
|
96
97
|
extra_rdoc_files: []
|
@@ -99,6 +100,7 @@ files:
|
|
99
100
|
- ".rspec"
|
100
101
|
- ".rvmrc"
|
101
102
|
- ".travis.yml"
|
103
|
+
- CHANGELOG.md
|
102
104
|
- Gemfile
|
103
105
|
- LICENSE
|
104
106
|
- README.md
|
@@ -144,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
146
|
version: '0'
|
145
147
|
requirements: []
|
146
148
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.4.
|
149
|
+
rubygems_version: 2.4.4
|
148
150
|
signing_key:
|
149
151
|
specification_version: 4
|
150
152
|
summary: PostgreSQL-only database-level audit logging of all databases changes.
|