kamikakushi 0.0.3 → 0.0.4

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: 5f9d22b7157df9b2d120ca3f4e9f927a9fde6716
4
- data.tar.gz: bbbec9db3d95ea4d2285333d9c59b7ff089448ee
3
+ metadata.gz: 3d57943be6dcfaafeaa6e40c9428d3ff0707c2da
4
+ data.tar.gz: ea56754ca04bfefb15b68e45e434e1ce78ec6362
5
5
  SHA512:
6
- metadata.gz: 476f7c859c78b04a719c9da4b2f7e25631bcc85e441d62b180e4994a5476d032dda359b99e8fff2b569b0ebf0144507b09b6f0738ef944bd62a9570116190a2a
7
- data.tar.gz: 122ef02c47a6bb3e13f6c071c18ae138faf5dcd6dd29de87b472a25faaa1383b3c54ad24c7ca48a76fc29990a743f137374c1a2ff0d925b7a34c146377c4cc84
6
+ metadata.gz: 498d8b86b29e8280eb58aee1f759aafa8ed1b8e83d5af097a58562854ac076b864ca02937b7ff1be650b05d9ed592756c57f143173f067203a00fcaaaf023c9e
7
+ data.tar.gz: 29073f0dceb08ffbf73e7e3f5b1d7cd192c70b71ddc5b0510141a84d51f446a930731ce771d56500450730ac8e5b60580c296cb7134b218c2dc2fe4eb1f31791
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rdoc/task'
8
8
 
9
9
  RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'Kamiakushi'
11
+ rdoc.title = 'Kamikakushi'
12
12
  rdoc.options << '--line-numbers'
13
13
  rdoc.rdoc_files.include('README.rdoc')
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,3 +1,3 @@
1
- module Kamiakushi
2
- VERSION = "0.0.3"
1
+ module Kamikakushi
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/kamikakushi.rb CHANGED
@@ -1,4 +1,4 @@
1
- module Kamiakushi
1
+ module Kamikakushi
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
@@ -20,7 +20,9 @@ module Kamiakushi
20
20
  end
21
21
 
22
22
  def destroy_with_kamikakushi
23
- update_column(:deleted_at, Time.current)
23
+ run_callbacks(:destroy) do
24
+ update_column(:deleted_at, Time.current)
25
+ end
24
26
  end
25
27
 
26
28
  def destroyed_with_kamikakushi?
@@ -31,7 +33,7 @@ module Kamiakushi
31
33
  update_column(:deleted_at, self.deleted_at = nil)
32
34
  end
33
35
 
34
- def destroy!
36
+ def purge
35
37
  destroy_without_kamikakushi
36
38
  end
37
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kamikakushi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ppworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-24 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails