mongoid-archivable 0.1.0 → 1.0.0

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: 6884c5262a2c208fab8f3aaaf43b288808af75dd
4
- data.tar.gz: 6439757f1e6f56fb6570caacbb131f52cdf6405a
3
+ metadata.gz: f5d3c5c5b690a5f2b6d113ac0ce5a76c3ae127c8
4
+ data.tar.gz: 4670145aace8e5f856be1bb33997b3ef096b466e
5
5
  SHA512:
6
- metadata.gz: 9a416d10f5b1f9d95bac4fb29f9ed2d874bc56f625d26a07534bdea5f174032a2b09e7fc6efc1ca7f8a788ad76164c475a8e966753cc21a5f570731539abbadb
7
- data.tar.gz: e98623dc5345f837b34443e445904223104259d0cffc885c710ca369ba590d7578bc6d0d4b8c5807bb62f80c9fc8edb7f1c0f7b7d8c2aa1952f843bfbb223c35
6
+ metadata.gz: 67483355fd3743415f9de3b31d22e7dfd0162ce418a4da9d5df647fa9a28d0db24efb2fd25fb687e29d6bf07fea1b7ab39b4da0a6751d4cfeaa69e0c47615541
7
+ data.tar.gz: ff304197b3a196c1c2549b3c58549832ad7de27adfd932f6b90d17b6363de66c1bf16feaf8ad4bd6faa2811ecfd3e2a22408cbd0a957f9a75aa21b7174dd1801
data/README.md CHANGED
@@ -26,18 +26,18 @@ In any Mongoid document, do this:
26
26
  include Mongoid::Archivable
27
27
  ```
28
28
 
29
- Now a `destroy` of a document will move the document to an Archive collection.
29
+ Now a `destroy` of a document will move the document to an Archive collection, namespaced under the document you're destroying.
30
30
 
31
- ## Development
31
+ ## Example
32
32
 
33
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ ```
34
+ user = User.create! name: "Example User"
35
+ user.destroy
34
36
 
35
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+ User.count # => 0
38
+ User::Archive.count # => 1
39
+ ```
36
40
 
37
- ## Contributing
41
+ ## Development
38
42
 
39
- 1. Fork it ( https://github.com/[my-github-username]/mongoid-archivable/fork )
40
- 2. Create your feature branch (`git checkout -b my-new-feature`)
41
- 3. Commit your changes (`git commit -am 'Add some feature'`)
42
- 4. Push to the branch (`git push origin my-new-feature`)
43
- 5. Create a new Pull Request
43
+ Please report any issues to the [GitHub issue tracker](https://github.com/Sign2Pay/mongoid-archivable/issues).
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Archivable
3
- VERSION = "0.1.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-archivable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joost Baaij