options_model 0.0.13 → 0.0.14

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: 8eaa7e2d11c4dd87d81036b30896555ffcc410b17c8ca79a291f37c33f50f7de
4
- data.tar.gz: 4db3c76e03c75cd3666b44ad5303528cd237a5e14310806bc5f389284d1f57fc
3
+ metadata.gz: b4e29ec3194ea217ff7c8a44d06c78bce83298323a7b4f55e590648b3d5da452
4
+ data.tar.gz: fff6ee9e90c32c566778effdff07899d2d41255b1ad39244efff2abd3afb4549
5
5
  SHA512:
6
- metadata.gz: 4dfdd530b69791f07c5d4b6d62f4acb4dfb4145e1e6adae8a2ad438843cdb7b3d8568ce538b80b466f85d1873c663fd34d44b5ab1ad460a6f460e63d2c8516f8
7
- data.tar.gz: 470b7b027c9a9bac80472fbc3635ebd5f8c150f5121956e6b5d31b3141e890c4a5fc64d36a3c51686f5c25e26f4800e8ae08de809e03d2fdd55a46481afc366e
6
+ metadata.gz: e32035b0d90328dc8df7974224b2b244fbe0690cbd121a83a03e0c0b931657e10e06eda4ab6a0f955225d915829172ff599211d2b33bfd95f3776589ea0eff1d
7
+ data.tar.gz: 7f292be9bde0d3c61826e87ae20a2ed4d7b99743d10f85c6c3992db0476deb84d13488d1ce5b45c017cf136dfc7d85ce3a933e8184c6883d38c8731c2324e562
@@ -15,7 +15,7 @@ module OptionsModel
15
15
  update_attributes(other)
16
16
  end
17
17
 
18
- def update(other)
18
+ def replace(other)
19
19
  return unless other
20
20
 
21
21
  raise ArgumentError, "#{other} must be respond to `to_h`" unless other.respond_to?(:to_h)
@@ -29,7 +29,7 @@ module OptionsModel
29
29
  end
30
30
  end
31
31
 
32
- alias update_attributes update
32
+ alias update_attributes replace
33
33
 
34
34
  def [](key)
35
35
  public_send(key) if respond_to?(key)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OptionsModel
4
- VERSION = "0.0.13"
4
+ VERSION = "0.0.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: options_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl