logidze 0.6.4 → 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/CHANGELOG.md +4 -0
- data/README.md +9 -0
- data/lib/logidze/version.rb +1 -1
- data/lib/logidze/versioned_association.rb +11 -0
- data/logidze.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a022058afd1c2017c10dfa802227b2b88433c5f4d103b2f07b7ce8b404887bdf
|
4
|
+
data.tar.gz: 33f96a549116e7ef695dc83605e3b90edd1eab2a6f1424bebf6310156622233b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c1f2fc5afc500af82dfc1d76399deebc573b7b571cee870ee384cd0816b121ab52b37664706137da4acbd4ec64ce95e1df9a5ccb5766998536f1744c5de582
|
7
|
+
data.tar.gz: '0925a5a4b918581b9d98c26adb5bd3121fa58e4f2037b903026e9e1fcc4f423a71df46491edbbb5892c86db6d6e5136b5649e1e52f410e2fd5c1dbf20f41648d'
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 0.6.5 (2018-08-08)
|
6
|
+
|
7
|
+
- Make compatible with Rails 5.2.1 ([@palkan][])
|
8
|
+
|
5
9
|
## 0.6.4 (2018-04-30)
|
6
10
|
|
7
11
|
- [Fixes [#70](https://github.com/palkan/logidze/issues/70)] Ignore missing (e.g. removed) columns in diffs and past versions. ([@palkan][])
|
data/README.md
CHANGED
@@ -12,6 +12,8 @@ Currently, only PostgreSQL 9.5+ is supported (for PostgreSQL 9.4 try [jsonbx](ht
|
|
12
12
|
|
13
13
|
[Read the story behind Logidze](https://evilmartians.com/chronicles/introducing-logidze?utm_source=logidze)
|
14
14
|
|
15
|
+
[How is Logidze pronounced?](https://github.com/palkan/logidze/issues/73)
|
16
|
+
|
15
17
|
Other requirements:
|
16
18
|
- Ruby ~> 2.1
|
17
19
|
- Rails >= 4.2
|
@@ -41,6 +43,13 @@ Run migrations:
|
|
41
43
|
rake db:migrate
|
42
44
|
```
|
43
45
|
|
46
|
+
**NOTE:** you **must** use SQL schema format since Logidze uses DB functions and triggers:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
# application.rb
|
50
|
+
config.active_record.schema_format = :sql
|
51
|
+
```
|
52
|
+
|
44
53
|
3. Add log column and triggers to the model:
|
45
54
|
|
46
55
|
```sh
|
data/lib/logidze/version.rb
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# `inversed` attr_accessor has been removed in Rails 5.2.1
|
4
|
+
# See https://github.com/rails/rails/commit/39e57daffb9ff24726b1e86dfacf76836dd0637b#diff-c47e1c26ae8a3d486119e0cc91f40a30
|
5
|
+
unless ::ActiveRecord::Associations::Association.instance_methods.include?(:inveresed)
|
6
|
+
using(Module.new do
|
7
|
+
refine ::ActiveRecord::Associations::Association do
|
8
|
+
attr_reader :inversed
|
9
|
+
end
|
10
|
+
end)
|
11
|
+
end
|
12
|
+
|
2
13
|
module Logidze # :nodoc: all
|
3
14
|
module VersionedAssociation
|
4
15
|
# rubocop: disable Metrics/MethodLength, Metrics/AbcSize
|
data/logidze.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "pry-byebug"
|
27
27
|
spec.add_development_dependency "rake", ">= 10.0"
|
28
28
|
spec.add_development_dependency "rspec-rails", ">= 3.4"
|
29
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
29
|
+
spec.add_development_dependency "rubocop", "~> 0.58.0"
|
30
30
|
spec.add_development_dependency "rubocop-md", "~> 0.2.0"
|
31
31
|
spec.add_development_dependency "simplecov", ">= 0.3.8"
|
32
32
|
spec.add_development_dependency "timecop", "~> 0.8"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logidze
|
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
|
- palkan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.58.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.58.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop-md
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
254
|
version: '0'
|
255
255
|
requirements: []
|
256
256
|
rubyforge_project:
|
257
|
-
rubygems_version: 2.7.
|
257
|
+
rubygems_version: 2.7.6
|
258
258
|
signing_key:
|
259
259
|
specification_version: 4
|
260
260
|
summary: PostgreSQL JSON-based auditing
|