permanent_records 3.1.5 → 3.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -5
- data/README.markdown +1 -1
- data/VERSION +1 -1
- data/permanent_records.gemspec +0 -1
- data/spec/permanent_records_spec.rb +10 -3
- data/spec/support/comment.rb +2 -8
- metadata +2 -3
- data/MIT-LICENSE +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78b0fb28d98b7b5a68bb591b23eaded91bba6f87
|
4
|
+
data.tar.gz: 756981d277d14d61780c49250f6c9893e01f6a6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915ccc96b2ad16475d21349ac09649227816947f66044eaf023a0dec6f561887cd5fb3295dcd73f979a61ae964239c3ff96336c3bfed58086e0deeb148233134
|
7
|
+
data.tar.gz: 7e2723e413ceb80205bfa2256d50ff26383efa77db256f6013c3c7e40c34a1b2cda204ea0d0e363cbd9635513c4d84e474a5ac9622b8c3059f9ad81f79cd21a3
|
data/Gemfile
CHANGED
@@ -3,11 +3,14 @@ source 'https://rubygems.org'
|
|
3
3
|
ver = ENV['AR_TEST_VERSION']
|
4
4
|
ver = ver.dup.chomp if ver
|
5
5
|
|
6
|
-
gem 'pg'
|
7
6
|
gem 'activerecord', ver
|
8
7
|
gem 'activesupport', ver
|
9
|
-
gem 'rake'
|
10
8
|
|
11
|
-
|
12
|
-
gem '
|
13
|
-
gem '
|
9
|
+
group :test do
|
10
|
+
gem 'rake'
|
11
|
+
gem 'pg'
|
12
|
+
gem 'pry'
|
13
|
+
gem 'awesome_print'
|
14
|
+
gem 'database_cleaner'
|
15
|
+
gem 'rspec'
|
16
|
+
end
|
data/README.markdown
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
This gem prevents any of your ActiveRecord data from being destroyed.
|
6
6
|
Any model that you've given a "deleted_at" datetime column will have that column set rather than let the record be deleted.
|
7
7
|
|
8
|
-
## Compatibility: This gem is for Rails 3
|
8
|
+
## Compatibility: This gem is for Rails 3+
|
9
9
|
|
10
10
|
## Does it make a lot of sense?
|
11
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.6
|
data/permanent_records.gemspec
CHANGED
@@ -120,11 +120,18 @@ describe PermanentRecords do
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
context 'as default scope' do
|
123
|
+
let(:load_comments) { Comment.unscoped.find_all_by_hole_id(subject.id) }
|
123
124
|
context 'with :has_many cardinality' do
|
124
|
-
|
125
|
+
before {
|
126
|
+
load_comments.size.should == 2
|
127
|
+
}
|
125
128
|
it 'deletes them' do
|
126
|
-
|
127
|
-
|
129
|
+
load_comments.all?(&:deleted?).should be_true
|
130
|
+
# Doesn't change the default scope
|
131
|
+
# (in versions with non-broken default scope)
|
132
|
+
if ActiveRecord::VERSION::STRING > '3.0.0'
|
133
|
+
subject.comments.should be_blank
|
134
|
+
end
|
128
135
|
end
|
129
136
|
end
|
130
137
|
context 'with :has_one cardinality' do
|
data/spec/support/comment.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: permanent_records
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Danger Canty
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-08-
|
14
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activerecord
|
@@ -53,7 +53,6 @@ files:
|
|
53
53
|
- .document
|
54
54
|
- Gemfile
|
55
55
|
- LICENSE
|
56
|
-
- MIT-LICENSE
|
57
56
|
- README.markdown
|
58
57
|
- Rakefile
|
59
58
|
- VERSION
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2008 [name of plugin creator]
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|