acts_as_removable 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Changelog.md +3 -0
- data/lib/acts_as_removable.rb +7 -1
- data/lib/acts_as_removable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40034410cd08fcf4834c5887a8f376acc3a014eed7e2d3d97337f96008c72084
|
4
|
+
data.tar.gz: 1374f4b5cd4da3d0acb5127cdeed92993bfe726e383ffc7f99fef1bc6b4a6634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8836c4e7faeb99e54f04c6d021b9d06848557d73b9f7d61c3a5cf6e069a771867a4c29b753bea462fbd16c0094000df48dcc2ccd0757f3b5beb50abacddae38
|
7
|
+
data.tar.gz: e615ea16131b0e0584366a89c23a644b2066068cf4d49fdd0c32685ee3a0b3ae5da13d2b318ad7dcee1c49e79ed7ebcc3ffef2950ac9edd90c205073b1ccb7de
|
data/.travis.yml
CHANGED
@@ -6,6 +6,7 @@ rvm:
|
|
6
6
|
- 2.5.8
|
7
7
|
- 2.6.6
|
8
8
|
- 2.7.2
|
9
|
+
- 3.0.0
|
9
10
|
|
10
11
|
gemfile:
|
11
12
|
- gemfiles/rails52
|
@@ -18,6 +19,8 @@ matrix:
|
|
18
19
|
gemfile: gemfiles/rails61
|
19
20
|
- rvm: 2.7.2
|
20
21
|
gemfile: gemfiles/rails52
|
22
|
+
- rvm: 3.0.0
|
23
|
+
gemfile: gemfiles/rails52
|
21
24
|
|
22
25
|
script: bundle exec rake spec
|
23
26
|
|
data/Changelog.md
CHANGED
data/lib/acts_as_removable.rb
CHANGED
@@ -70,7 +70,13 @@ module ActsAsRemovable
|
|
70
70
|
self.class.transaction do
|
71
71
|
run_callbacks callback.to_sym do
|
72
72
|
send("#{self.class._acts_as_removable_options[:column_name]}=", value)
|
73
|
-
|
73
|
+
|
74
|
+
# workaround for new argument handling
|
75
|
+
if RUBY_VERSION.to_i < 3
|
76
|
+
with_bang ? save!(options) : save(options)
|
77
|
+
else
|
78
|
+
with_bang ? save!(**options) : save(**options)
|
79
|
+
end
|
74
80
|
end
|
75
81
|
end
|
76
82
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_removable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Schwab
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.2.3
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Simplifies handling of pseudo removed records.
|