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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ff661f4b8254fc5ef1c6c3b90400432347ae864
4
- data.tar.gz: 5caf3cfc7585a2cfdef471f3b67deb6b27969eba
3
+ metadata.gz: b40f8e1148a15c6e4c6d0508e261bed4d5598ec6
4
+ data.tar.gz: 116d424d93ccd6d48970ae7aa096e7a82c5339cf
5
5
  SHA512:
6
- metadata.gz: 52f760e10c1af89cb6849569d378b0e28915581ae13a1826af1db767154edc1662c7483bc83d9deb7a50bb82e2f57815662e883eee966e1f1d51484711de0cd3
7
- data.tar.gz: 9a118f6d52bda577a412b66425782bd977d349f686eaea92dfc789c2bfb298808856d778b8e99f3ce73bcfda663937d7cbefbefe19a25ad4b07254f464d10732
6
+ metadata.gz: f3385d877627bc748095ea1f8c1a5ac1167d1ab44a7d8efb293c5294e97103b879589459e83c2ed451e5015a81294f597339e0bfa55b32088e3252bb5f5c377f
7
+ data.tar.gz: fd38d008407ab370bcd9b0bdca1c66b7d106f2078d26983d90a9048735fd755369b5d31ee030383441eed82fa4f8ec94a3121bbe2ca9953f1e297d96ba27ce35
@@ -1,6 +1,6 @@
1
1
  # This migration adds number column to the `revisions` table.
2
2
  class AddIndexByUserIdToRecorderRevisions < ActiveRecord::Migration
3
- def up
3
+ def change
4
4
  add_index :recorder_revisions, :user_id
5
5
  end
6
6
  end
@@ -22,8 +22,9 @@ $BODY$ LANGUAGE plpgsql;
22
22
  SQL
23
23
 
24
24
  execute <<-SQL
25
- CREATE TRIGGER update_recorder_revisions_number BEFORE INSERT ON recorder_revisions FOR EACH ROW
26
- EXECUTE PROCEDURE get_recorder_revisions_number();
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
 
@@ -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
@@ -3,7 +3,7 @@ module Recorder
3
3
  module VERSION
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 17
6
+ PATCH = 18
7
7
  PRE = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".").freeze
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.17
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