mongoid-paranoid 1.0.0.alpha → 1.0.0.alpha1

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
  SHA256:
3
- metadata.gz: 28bbc803d6c6b67fea2a8527ebec4ea8bb3b817be73916b09f0abce81ce1c7b7
4
- data.tar.gz: b3e778365975307e088f7c85537ca92e3f7618f5b23e714823a744515d4b09cf
3
+ metadata.gz: bc1bc02fa06b71ef4c4f69007920ef083ae0928c861394acb9cc10a872e849b1
4
+ data.tar.gz: 29909691de0c70641bebbf69dbf4580916300cf619931d838502c92b7dcdaa0a
5
5
  SHA512:
6
- metadata.gz: 1c59874463392caf7582133963fdbcd62de2f9a9a180717e3c6cfe6da471d0d21e204d04b9af96b87b93a8d207ce0ad082a19ce26002697b712fa963246d6a44
7
- data.tar.gz: aefa367bfc5e53a0960b9c3651b5c65d16aaed00f7b8e60d4601ce27e00a117ca6b6bb55605e3a7724de380c18a3b7fbf52c5a20d7ff10a7e6bd3839fcaf4eac
6
+ metadata.gz: a03d514985f4d6ba647837c9672fd648f47407a5cbcc5265d6451fe231ce31a4d5a3065fe94fb87b34a070aae7d0ead8505a9bc9aa2aec4fa6cfbd89bca43b81
7
+ data.tar.gz: 77d1ac02f7a9499b2e0b2fe5e862dabcedf626d7affcf914036f562f07676afcaead293fca146ddc58a93139b0cc397025d4c190bb36073fb5eecb1c9d4fc376
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Mongoid::Paranoid
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mongoid/paranoid`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
3
  ## Installation
8
4
 
9
5
  Add this line to your application's Gemfile:
@@ -26,14 +22,10 @@ TODO: Write usage instructions here
26
22
 
27
23
  ## Development
28
24
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
25
  ## Contributing
34
26
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mongoid-paranoid.
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Fudoshiki/mongoid-paranoid/issues
36
28
 
37
29
  ## License
38
30
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
31
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT)
@@ -46,6 +46,10 @@ class Paranoid
46
46
  end
47
47
  end
48
48
 
49
+ def persisted?
50
+ !new_record?
51
+ end
52
+
49
53
  def destroyed?
50
54
  (@destroyed ||= false) || deleted_at?
51
55
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mongoid
4
4
  module Paranoid
5
- VERSION = '1.0.0.alpha'
5
+ VERSION = '1.0.0.alpha1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-paranoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha
4
+ version: 1.0.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri S.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-23 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid