card-mod-history 0.19.1 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 657059fa91b51247f993ba950866998d050de850d26a93c6a09ddcaf00db00ca
4
- data.tar.gz: aa516afaa78b852815f601fdd2acb989a428ad5a14311c057d4c212619cf2984
3
+ metadata.gz: 47c8a479935134cd357f86a3b5149c9bfa248183211d7229fc942aa9f260312f
4
+ data.tar.gz: 5eacfb56f384b1c73b84d2b5ae0df8c00db54504eac9f766ff5cc03aae1006d8
5
5
  SHA512:
6
- metadata.gz: afb143b65aceb603b1cb2e833919d4b1c11b8780011fb5a32cbfd6dd33275ac51068941bdfb6b563d64f68de940f6a9ea108a4a7c07dcc1910b793940ad086c3
7
- data.tar.gz: c1ff8ee19037ce71b323e69ba7054fc7d97f0f9ce9108def8745285a24e390ce2fc9b629c247bd57c3ac0e690b396105cb4066df736d78bd9216ef0303ea90d6
6
+ metadata.gz: 6dae95d20a71f5dcfbcb2e90592b3cbbbfeb46488c6e7fb592a2ff42cd79a40c0f5b74955672c97d0861530d116b307d99198aea5f4e54f3368f5762706da2f6
7
+ data.tar.gz: 42e71445b5517ddd1000c8d7c5080ddec3caaeed9a2cf6bd77f605fef41198905775c1add72d6a16bfc3b61b6627a87583cde439e2b106f822e1d1da79afe87d
@@ -13,11 +13,11 @@ class Card
13
13
 
14
14
  include Card::Bootstrapper
15
15
 
16
- def method_missing method_name, *args, &block
16
+ def method_missing(method_name, *, &)
17
17
  if block_given?
18
- @format.send(method_name, *args, &block)
18
+ @format.send(method_name, *, &)
19
19
  else
20
- @format.send(method_name, *args)
20
+ @format.send(method_name, *)
21
21
  end
22
22
  end
23
23
 
@@ -13,11 +13,12 @@ class Card
13
13
  end
14
14
 
15
15
  include Card::Bootstrapper
16
- def method_missing method_name, *args, &block
16
+
17
+ def method_missing(method_name, *, &)
17
18
  if block_given?
18
- @format.send(method_name, *args, &block)
19
+ @format.send(method_name, *, &)
19
20
  else
20
- @format.send(method_name, *args)
21
+ @format.send(method_name, *)
21
22
  end
22
23
  end
23
24
 
@@ -107,15 +107,9 @@ end
107
107
 
108
108
  def store_each_history_field action_id, fields=nil
109
109
  fields ||= Card::Change::TRACKED_FIELDS
110
- if false # Card::Change.supports_import?
111
- # attach.feature fails with this
112
- values = fields.map.with_index { |field, index| [index, yield(field), action_id] }
113
- Card::Change.import %i[field value card_action_id], values # , validate: false
114
- else
115
- fields.each do |field|
116
- Card::Change.create field: field,
117
- value: yield(field),
118
- card_action_id: action_id
119
- end
110
+ fields.each do |field|
111
+ Card::Change.create field: field,
112
+ value: yield(field),
113
+ card_action_id: action_id
120
114
  end
121
115
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.109.1
20
+ version: 1.110.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.109.1
27
+ version: 1.110.0
28
28
  description: ''
29
29
  email:
30
30
  - info@decko.org
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.6.8
90
+ rubygems_version: 3.7.2
91
91
  specification_version: 4
92
92
  summary: Revision histories in acts, actions, and changes
93
93
  test_files: []