soft-deletable 0.1.2 → 0.1.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.4
@@ -1,4 +1,6 @@
1
- module SoftDeleteable
1
+ #require 'lib/soft_delete'
2
+
3
+ module SoftDeletable
2
4
  def self.included(klass)
3
5
  klass.send(:extend, MacroMethods)
4
6
  end
@@ -37,7 +39,7 @@ module SoftDeleteable
37
39
  end
38
40
 
39
41
  module MacroMethods
40
- def acts_as_soft_deleteable(opts={})
42
+ def acts_as_soft_deletable(opts={})
41
43
  cattr_accessor :aasd_dependents, :aasd_depends_on, :table_name
42
44
 
43
45
  self.aasd_dependents = opts[:dependents] || {}
@@ -50,4 +52,5 @@ module SoftDeleteable
50
52
  scope :deleted, where("#{table_name}.deleted_at IS NOT NULL")
51
53
  end
52
54
  end
53
- end
55
+ end
56
+ ActiveRecord::Base.send(:include, SoftDeletable)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "soft-deletable"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Calhoun", "Travis Roberts"]
@@ -25,13 +25,12 @@ Gem::Specification.new do |s|
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "lib/soft-deletable.rb",
28
- "lib/soft_delete.rb",
29
28
  "soft-deletable.gemspec"
30
29
  ]
31
30
  s.homepage = "http://github.com/comike011/soft-deletable"
32
31
  s.licenses = ["MIT"]
33
32
  s.require_paths = ["lib"]
34
- s.rubygems_version = "1.8.10"
33
+ s.rubygems_version = "1.8.24"
35
34
  s.summary = "Makes items soft deletable"
36
35
 
37
36
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: soft-deletable
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Calhoun
@@ -64,7 +64,6 @@ files:
64
64
  - Rakefile
65
65
  - VERSION
66
66
  - lib/soft-deletable.rb
67
- - lib/soft_delete.rb
68
67
  - soft-deletable.gemspec
69
68
  homepage: http://github.com/comike011/soft-deletable
70
69
  licenses:
@@ -79,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
78
  requirements:
80
79
  - - ">="
81
80
  - !ruby/object:Gem::Version
82
- hash: -3934399935995541762
81
+ hash: -1652154833969997377
83
82
  segments:
84
83
  - 0
85
84
  version: "0"
@@ -92,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
91
  requirements: []
93
92
 
94
93
  rubyforge_project:
95
- rubygems_version: 1.8.10
94
+ rubygems_version: 1.8.24
96
95
  signing_key:
97
96
  specification_version: 3
98
97
  summary: Makes items soft deletable
data/lib/soft_delete.rb DELETED
@@ -1,4 +0,0 @@
1
- ActiveSupport.on_load(:active_record) do
2
- # include the SoftDeleteable module into ActiveRecord
3
- ActiveRecord::Base.send(:include, SoftDeleteable)
4
- end