HornsAndHooves-moribus 0.9.1 → 0.10.0

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: 54e52262da75d0c70f93a440dab8adbebc1c9ccb23d8bf9eff905572ca9028ae
4
- data.tar.gz: a4c982838e5ea190585f1e8d8bfe776574584bb669136f372506fec7d9e5e38e
3
+ metadata.gz: 39ad765918ae1ca73efc10e704346476936df1793e19f25089d27910089871d7
4
+ data.tar.gz: 0b579beea800b1b5987e9b7996137efc9dfa5c3e12f70fb04c53f7a5e113ea84
5
5
  SHA512:
6
- metadata.gz: 7b1bbadc5517c5309af3dd7f8dcc358e9966f5c7ef0ba6bbf3ee47b466d1771ab27620a3204ac45635bcd71f9619e16010eb5559d3b651adc951663cadeec101
7
- data.tar.gz: 268eab60e758cc9f5f4dee5c44d8d60dfc6b5ec0f471d7108b73ba1bafe62b963b09724929fa3e65b5a07a400f9024545cb9a26bbc626ba944d1d4a75f65fa22
6
+ metadata.gz: bf6c76a8ae0260b424abefe0de61c9b5bb11cfd2b6c00d604db9144bf92b911363f7a5bbaed5f22bd403e218ba9a3db0c92ef1b372430cbdb0f155fba200f9f5
7
+ data.tar.gz: c54c2c7fd4f356dadb559bb41ac262c00d54f8e4ae5f8999f53be79b0bf6a651f5ea2c797f9dcff2f2d1a149df5ea4494250bf728bd27411910fbf4f049ae9a3
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.7.6
@@ -26,7 +26,7 @@ module Moribus
26
26
  # the lookup succeeds, we don't want the original #save to be executed.
27
27
  # But if +false+ is returned by the callback, it will also be returned
28
28
  # by the #save method, wrongly indicating the result of saving.
29
- def save(*)
29
+ def save(**)
30
30
  @updated_as_aggregated = false
31
31
  run_callbacks(:save) do
32
32
  return (lookup_self_and_replace or super) if new_record?
@@ -47,8 +47,8 @@ module Moribus
47
47
  end
48
48
 
49
49
  # Bang version of #save.
50
- def save!(*args)
51
- save(*args) or raise_record_not_saved_error
50
+ def save!(**kwargs)
51
+ save(**kwargs) or raise_record_not_saved_error
52
52
  end
53
53
 
54
54
  # Raise "record not saved".
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Moribus # :nodoc:
2
- VERSION = "0.9.1" # :nodoc:
4
+ VERSION = "0.10.0" # :nodoc:
3
5
  end
@@ -47,8 +47,7 @@ def MoribusSpecModel(column_definition = {})
47
47
  end
48
48
  options[:default] = 0 if name == :lock_version
49
49
  args = [type, name]
50
- args << options unless options.empty?
51
- t.send(*args)
50
+ t.send(*args, **options)
52
51
  end
53
52
  end
54
53
  end
@@ -56,4 +55,4 @@ def MoribusSpecModel(column_definition = {})
56
55
  end
57
56
  end
58
57
  end
59
- end
58
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-moribus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - HornsAndHooves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-08-24 00:00:00.000000000 Z
14
+ date: 2024-01-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.0.8
211
+ rubygems_version: 3.1.6
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Introduces Aggregated and Tracked behavior to ActiveRecord::Base models