soft-deletable 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,17 +1,8 @@
1
1
  = soft-deletable
2
+ This allows for models to have 'acts_as_soft_deletable' which opens it up to the soft_delete!, recover!, and deleted? methods.
2
3
 
3
- Description goes here.
4
-
5
- == Contributing to soft-deletable
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
4
+ requires a migration to add a "deleted_at" timestamp for tracking when the item "soft deleted".
5
+
15
6
  == Copyright
16
7
 
17
8
  Copyright (c) 2012 Mike Calhoun. See LICENSE.txt for
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
18
18
  gem.homepage = "http://github.com/comike011/soft-deletable"
19
19
  gem.license = "MIT"
20
20
  gem.summary = %Q{Makes items soft deletable}
21
- gem.description = %Q{coming soon}
21
+ gem.description = %Q{Allows for a model to have 'acts_as_soft_deletable' which adds soft_delete! and recover to be used inplace of delete}
22
22
  gem.email = "mikedcalhoun@gmail.com"
23
23
  gem.authors = ["Mike Calhoun", "Travis Roberts"]
24
24
  # dependencies defined in Gemfile
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -0,0 +1,4 @@
1
+ ActiveSupport.on_load(:active_record) do
2
+ # include the SoftDeleteable module into ActiveRecord
3
+ ActiveRecord::Base.send(:include, SoftDeleteable)
4
+ end
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "soft-deletable"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
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"]
12
12
  s.date = "2012-08-11"
13
- s.description = "coming soon"
13
+ s.description = "Allows for a model to have 'acts_as_soft_deletable' which adds soft_delete! and recover to be used inplace of delete"
14
14
  s.email = "mikedcalhoun@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "lib/soft-deletable.rb",
28
+ "lib/soft_delete.rb",
28
29
  "soft-deletable.gemspec"
29
30
  ]
30
31
  s.homepage = "http://github.com/comike011/soft-deletable"
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.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Calhoun
@@ -46,7 +46,7 @@ dependencies:
46
46
  type: :development
47
47
  prerelease: false
48
48
  version_requirements: *id003
49
- description: coming soon
49
+ description: Allows for a model to have 'acts_as_soft_deletable' which adds soft_delete! and recover to be used inplace of delete
50
50
  email: mikedcalhoun@gmail.com
51
51
  executables: []
52
52
 
@@ -64,6 +64,7 @@ files:
64
64
  - Rakefile
65
65
  - VERSION
66
66
  - lib/soft-deletable.rb
67
+ - lib/soft_delete.rb
67
68
  - soft-deletable.gemspec
68
69
  homepage: http://github.com/comike011/soft-deletable
69
70
  licenses:
@@ -78,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
79
  requirements:
79
80
  - - ">="
80
81
  - !ruby/object:Gem::Version
81
- hash: 1881861382980005845
82
+ hash: -3934399935995541762
82
83
  segments:
83
84
  - 0
84
85
  version: "0"