soft_deletion 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig CHANGED
Binary file
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
  gemspec
3
3
 
4
4
  gem 'activerecord'
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- soft_deletion (0.3.0)
4
+ soft_deletion (0.4.0)
5
5
 
6
6
  GEM
7
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
8
8
  specs:
9
9
  activemodel (3.2.7)
10
10
  activesupport (= 3.2.7)
@@ -89,7 +89,7 @@ module SoftDeletion
89
89
 
90
90
  def _run_soft_delete(&block)
91
91
  self.class.transaction do
92
- result = nil
92
+ result = false
93
93
  if ActiveRecord::VERSION::MAJOR > 2
94
94
  run_callbacks :soft_delete do
95
95
  mark_as_deleted
@@ -1,3 +1,3 @@
1
1
  module SoftDeletion
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -63,7 +63,7 @@ describe SoftDeletion do
63
63
  category.should_receive(:foo).and_return(false)
64
64
  category.should_not_receive(:bar)
65
65
 
66
- category.soft_delete!
66
+ category.soft_delete!.should == false
67
67
  category.reload
68
68
  category.should_not be_deleted
69
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soft_deletion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,7 +36,7 @@ cert_chain:
36
36
  VHNmKzZNYWVud0FNa0FnSGRzd0dzSnp0T25ObkJhM0YKeTBrQ1NXbUs2RCt4
37
37
  L1NiZlM2cjdLZTA3TVJxemlKZEI5R3VFMSswY0lSdUZoOEVRK0xONkhYQ0tN
38
38
  NXBvbi9HVQp5Y3dNWGZsMAotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2013-02-19 00:00:00.000000000 Z
39
+ date: 2013-03-03 00:00:00.000000000 Z
40
40
  dependencies: []
41
41
  description:
42
42
  email: michael@grosser.it
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -3470966134953021274
81
+ hash: 2665204581756557410
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -3470966134953021274
90
+ hash: 2665204581756557410
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.24
metadata.gz.sig CHANGED
Binary file