rock_rms 8.15.2 → 8.16.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: fabbd87cb73da755e1129084b0415a4d07d5c0ffbe30e284ac1f161554e69c49
4
- data.tar.gz: d905c31fcb034d59a3e3dced699ab813bc3f2f31d72dda7873b766c77c8d262f
3
+ metadata.gz: 5c0a94190def4023aaec70bf13cd3691534982a338ea21e9a4e8a73bf99183d9
4
+ data.tar.gz: d349931b6b325f1be9fc634cdaf0d5af69778804c3622eb6344c9579b32385cd
5
5
  SHA512:
6
- metadata.gz: 4142b69ddcd05a9e29af8e1c0bc31fc516895fe58d5ad7c00ee989de5e615cfeaa7ca91a44bd800f562d6fd86fab22cca9bdfeb81790e434454c781433c2ad89
7
- data.tar.gz: 5fcaff19783f8d4f36db980bfa9b92b56530c6d6db8cf9ec988167d9fe67002ab2a54a33b9e774c03f535f85ef1f1518c7f50c6af93b4a1c942ab3cefb81443e
6
+ metadata.gz: 052ae0fb7b862b3f3a65e9b718f9eeae3e1bab8d3cb2a38f9aab9b5896bd891b1dc591b2775ffbd14cabc08085e8dbda47207be1207e56aa1657314100626944
7
+ data.tar.gz: 8225f87526939f7e0f4d90c676c2e08291059591782575eadad8ebe81893dab8f0cc6b0dc3e95bcd1ff1fdc79ca41e7b29869d41056ce2d8dbecae7b170b50e1
@@ -73,7 +73,7 @@ module RockRMS
73
73
  options['EndDate'] = end_date if end_date
74
74
  options['Summary'] = summary if summary
75
75
  options['Status'] = status if status
76
- options['StatusMessage'] = status_message if status_message
76
+ options['StatusMessage'] = status_message if status_message || status_message == ''
77
77
 
78
78
  patch(recurring_donation_path(id), options)
79
79
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.15.2'.freeze
2
+ VERSION = '8.16.0'.freeze
3
3
  end
@@ -66,6 +66,25 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
66
66
  expect(resource).to be_nil
67
67
  end
68
68
 
69
+ it 'updates status_message with nil' do
70
+ expect(client).to receive(:patch)
71
+ .with(
72
+ 'FinancialScheduledTransactions/123',
73
+ {
74
+ 'NextPaymentDate' => '2018-01-01',
75
+ 'StatusMessage' => ''
76
+ }
77
+ ).and_call_original
78
+
79
+ resource = client.update_recurring_donation(
80
+ 123,
81
+ next_payment_date: '2018-01-01',
82
+ status_message: ''
83
+ )
84
+
85
+ expect(resource).to be_nil
86
+ end
87
+
69
88
  context 'arguments' do
70
89
  it 'require `id`' do
71
90
  expect { client.update_recurring_donation }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_rms
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.15.2
4
+ version: 8.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-24 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday