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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e50fc04fd2ee6847e478c891ef359c65b221e3bd95f5bbcb5b7ea10235873219
4
- data.tar.gz: 4efcf86b9ebd4334e8dba4f8c43a70d45559c671ccb41ec08e43e7bdbe5d4523
3
+ metadata.gz: 40034410cd08fcf4834c5887a8f376acc3a014eed7e2d3d97337f96008c72084
4
+ data.tar.gz: 1374f4b5cd4da3d0acb5127cdeed92993bfe726e383ffc7f99fef1bc6b4a6634
5
5
  SHA512:
6
- metadata.gz: 0c9fa4c138b9d5e0cfb9759388e7599f3802276554b918bc7688cb572007bc49a6d6f579e2e7de6e87ff7c5d55aa0aae978208c7b0a97d95e265bb338de7e025
7
- data.tar.gz: dfb8cdee8cb63d370a46f71cc377124b20901cf295e8cfa83468cab6152446fd7757b40b9073cf7e0d096c39461561b0d7df7e837336db5a5c1d1316b6c92005
6
+ metadata.gz: f8836c4e7faeb99e54f04c6d021b9d06848557d73b9f7d61c3a5cf6e069a771867a4c29b753bea462fbd16c0094000df48dcc2ccd0757f3b5beb50abacddae38
7
+ data.tar.gz: e615ea16131b0e0584366a89c23a644b2066068cf4d49fdd0c32685ee3a0b3ae5da13d2b318ad7dcee1c49e79ed7ebcc3ffef2950ac9edd90c205073b1ccb7de
@@ -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
 
@@ -3,6 +3,9 @@ Changelog
3
3
 
4
4
  #### Unreleased
5
5
 
6
+ #### 3.1.1 (2021-01-08)
7
+ * Add workaround for new argument handling in ruby 3
8
+
6
9
  #### 3.1.0 (2020-12-10)
7
10
  * Support for Rails 6.1.0
8
11
  * Update travis config
@@ -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
- with_bang ? save!(options) : save(options)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsRemovable
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  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.0
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: 2020-12-10 00:00:00.000000000 Z
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.1.4
181
+ rubygems_version: 3.2.3
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Simplifies handling of pseudo removed records.