json_rspec_match_maker 1.1.1 → 1.1.2

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: da8c31ca87eb5968a7eb9af6468fcb23dafdf02878de1c87c3eae3a9745c44e7
4
- data.tar.gz: 4b7795030a65db461b48b47d70b063e1ce470405a985853d74a6c41fd846c78c
3
+ metadata.gz: ea2a29e3eca4659b3fb4f34124d0e5ea6735f8f1aee631d1fb10a0c721eb77fd
4
+ data.tar.gz: 783b6f2a9727f3d3e21236aa53559c4c6c70ed0389b3e477c57a23b92a5d8134
5
5
  SHA512:
6
- metadata.gz: 62c0ecd65475d523323f5335afb5ca6984791a0d05cbe3a196c0430382281c6fd8c096687e4a0625ab2c0ad6569a9668b12ceaa5d0cc19be7cddf1b0c9c1c3dd
7
- data.tar.gz: 03abf446057c35528d45a579dc22a11a8d8efea7788820d1e6266747d8794868e36b98cbb4383bef467fe56ab85b4b637aa0f307227345bf6a14b5b43968a75e
6
+ metadata.gz: 1b83709309ab2736353d258955d650e500e35a370a96aa4519e19e7c94416b005bf8e7a19de09913aa5717601dd9919769db0d36ccf9f6c83262786e25f6e6ae
7
+ data.tar.gz: '04564927c70ac727a3a3c28e19fea5c3f144541acd639b5ec8413c6eb0ec4cc97a1b1c6efa6bc3ac7032a5feddb82e5559eecfeb83954b29416712d24bc42095'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json_rspec_match_maker (1.1.1)
4
+ json_rspec_match_maker (1.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,6 +18,7 @@ module JsonRspecMatchMaker
18
18
  def fetch_expected_value(instance, function, key, prefix)
19
19
  if function == :default
20
20
  key.split('.').inject(instance) do |expected, method_name|
21
+ method_name = method_name.chomp('_attributes')
21
22
  method_name == prefix ? expected : expected&.send(method_name)
22
23
  rescue NoMethodError
23
24
  nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonRspecMatchMaker
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_rspec_match_maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McGee