no_brainer_soft_delete 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 044d0cb771a1ae6291d91dd63763d9e2361f30ed
4
- data.tar.gz: bd57665a669a82646c38c141eddd5f55a3904639
3
+ metadata.gz: ab721bed2d4e52e288186a1ee34b317022ba1bec
4
+ data.tar.gz: a184c0edff84082d16431ad5c7d989eed650f805
5
5
  SHA512:
6
- metadata.gz: 49c98211a5ea03bbbb9b2d68e235e6a371c41e07ccad9d6eb63ee3c8cad665c598ef1d4d16742679a25ff603f31dd23ed93c618a4b04f8e61ad07b6ae8897952
7
- data.tar.gz: 6e7c7970d59f43807668678b6e30b90d7108f6ac9be97aa688c143f4522644e34dbafd76ff3a401a951aa65411d9056601bf761f4b260e24965e9e4bc36c87d2
6
+ metadata.gz: a5a8786b6e64047d83c8a5da5be33b1a94ded860035d0faa83f629a7930ca82c98dad75f5ff69f4999f652a481ed40ea8d089ace26111d8aeedbe9f643f1463a
7
+ data.tar.gz: dc79e9eca72e4c1b2699d4235eb214e223d21e882686442cb317e9659606f3bfd42f3811b70b4f26cca49c94d15f2d65465aea010059e978a48b12a41784febc
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # NoBrainer Soft Delete Changelog
2
2
 
3
+ ## 0.1.1
4
+ _Fixes_
5
+ Cleans up some documentation. First public release
6
+
3
7
  ## 0.1.0 (unreleased)
4
8
  _Features_
9
+ Adds basic functionality for soft delete on both models and instances.
@@ -47,6 +47,7 @@ module NoBrainerSoftDelete
47
47
  end
48
48
 
49
49
  # Sets the deleted_at value to nil, thus no longer marking the document as deleted
50
+ # TODO: add a recursive option restore that restores soft deleted associations as well.
50
51
  def restore(options = {})
51
52
  update(deleted_at: nil)
52
53
  end
@@ -1,3 +1,3 @@
1
1
  module NoBrainerSoftDelete
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/andrewtpoe/no_brainer_soft_delete"
15
15
  spec.license = "MIT"
16
16
 
17
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
- # delete this section to allow pushing this gem to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
- # end
24
-
25
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
18
 
27
19
  spec.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no_brainer_soft_delete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew T. poe