recorder 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/recorder/templates/add_index_by_user_id_to_recorder_revisions.rb +1 -1
- data/lib/generators/recorder/templates/add_number_column_to_recorder_revisions.rb +3 -2
- data/lib/recorder/observer.rb +0 -3
- data/lib/recorder/version.rb +1 -1
- data/recorder.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b40f8e1148a15c6e4c6d0508e261bed4d5598ec6
|
4
|
+
data.tar.gz: 116d424d93ccd6d48970ae7aa096e7a82c5339cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3385d877627bc748095ea1f8c1a5ac1167d1ab44a7d8efb293c5294e97103b879589459e83c2ed451e5015a81294f597339e0bfa55b32088e3252bb5f5c377f
|
7
|
+
data.tar.gz: fd38d008407ab370bcd9b0bdca1c66b7d106f2078d26983d90a9048735fd755369b5d31ee030383441eed82fa4f8ec94a3121bbe2ca9953f1e297d96ba27ce35
|
@@ -22,8 +22,9 @@ $BODY$ LANGUAGE plpgsql;
|
|
22
22
|
SQL
|
23
23
|
|
24
24
|
execute <<-SQL
|
25
|
-
CREATE TRIGGER update_recorder_revisions_number
|
26
|
-
|
25
|
+
CREATE TRIGGER update_recorder_revisions_number
|
26
|
+
BEFORE INSERT ON recorder_revisions FOR EACH ROW
|
27
|
+
EXECUTE PROCEDURE get_recorder_revisions_number();
|
27
28
|
SQL
|
28
29
|
end
|
29
30
|
|
data/lib/recorder/observer.rb
CHANGED
@@ -28,21 +28,18 @@ module Recorder
|
|
28
28
|
options
|
29
29
|
end
|
30
30
|
|
31
|
-
# after_commit :on => :create do
|
32
31
|
after_create do
|
33
32
|
if self.recorder_dirty?
|
34
33
|
Recorder::Tape.new(self).record_create
|
35
34
|
end
|
36
35
|
end
|
37
36
|
|
38
|
-
# after_commit :on => :update do
|
39
37
|
after_update do
|
40
38
|
if self.recorder_dirty?
|
41
39
|
Recorder::Tape.new(self).record_update
|
42
40
|
end
|
43
41
|
end
|
44
42
|
|
45
|
-
# after_commit :on => :destroy do
|
46
43
|
after_destroy do
|
47
44
|
if self.recorder_dirty?
|
48
45
|
Recorder::Tape.new(self).record_destroy
|
data/lib/recorder/version.rb
CHANGED
data/recorder.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'rake', "~> 10.0"
|
29
29
|
spec.add_development_dependency 'rspec-rails', "~> 3.5"
|
30
30
|
spec.add_development_dependency 'generator_spec'
|
31
|
+
spec.add_development_dependency 'database_cleaner'
|
31
32
|
spec.add_development_dependency 'rubocop', "~> 0.41.2"
|
32
33
|
spec.add_development_dependency 'timecop', "~> 0.8.1"
|
33
34
|
spec.add_development_dependency 'yard'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recorder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Alexandrov
|
@@ -134,6 +134,20 @@ dependencies:
|
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: database_cleaner
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
137
151
|
- !ruby/object:Gem::Dependency
|
138
152
|
name: rubocop
|
139
153
|
requirement: !ruby/object:Gem::Requirement
|