obscene_gpt 0.1.2 → 0.1.3

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: '059e9f88337ce5353b70a7a58ca15c9c7962382cf4b532ba5fe59dca2977f11b'
4
- data.tar.gz: ed809dd449d25cc46817e1ac6ded52d6a6b5a83fa530edd208bfb85a29d43c4d
3
+ metadata.gz: bce283bc9c60f359c7f0775beacc5944fc7527d11c7c43fd17169b1e79d384a4
4
+ data.tar.gz: 6973765625142b070eef775fbe95fee391d7072b741331b8499e58153576cb55
5
5
  SHA512:
6
- metadata.gz: dadc5fab4cc61a074afe39ec58e86f67d5924b27415298a642ea1c2217b6b2d989586abcac84082eb628c385d14b5a744a7c3aa69a891f4d9c2cb7909650d042
7
- data.tar.gz: 137094bbbfa37348eb386d06036029f14b4adf4d3d25e525be7184211f043d04fdd258a478f7e2ff476afde06a5ebc9276487140bafcbfe47f585ec339458c17
6
+ metadata.gz: 1e48c7c143058f428440bb73578aeb2b647c7534a9981987d88aa7a8af4a9b518d309efaa98fcc7a0557ef09a4554c27623711cbc393dd6f4583a791fc137f01
7
+ data.tar.gz: 8fee0f4115e16246c24795f40a98f66213c0db539b2b875590068d5781543969903eed25b6d287c7a1c919c52cef987bb032a85e73ba4f3c61984e1a16419e69
@@ -22,6 +22,7 @@ if defined?(ActiveModel)
22
22
  attributes.map do |attribute|
23
23
  value = record.read_attribute_for_validation(attribute)
24
24
  next if value.nil? || value.blank?
25
+ next if record.respond_to?(:will_save_change_to_attribute?) && !record.will_save_change_to_attribute?(attribute)
25
26
 
26
27
  [attribute, prepare_value_for_validation(value, record, attribute)]
27
28
  end.compact.to_h
@@ -1,3 +1,3 @@
1
1
  module ObsceneGpt
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obscene_gpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Perez
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-07-03 00:00:00.000000000 Z
10
+ date: 2025-07-19 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ruby-openai