rock_rms 7.0.2 → 7.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rock_rms/response/attribute.rb +0 -1
- data/lib/rock_rms/response/attribute_value.rb +0 -1
- data/lib/rock_rms/response/base.rb +11 -3
- data/lib/rock_rms/response/batch.rb +0 -1
- data/lib/rock_rms/response/block.rb +0 -1
- data/lib/rock_rms/response/block_type.rb +0 -1
- data/lib/rock_rms/response/campus.rb +0 -1
- data/lib/rock_rms/response/defined_type.rb +0 -1
- data/lib/rock_rms/response/defined_value.rb +0 -1
- data/lib/rock_rms/response/fund.rb +0 -1
- data/lib/rock_rms/response/gateway.rb +0 -1
- data/lib/rock_rms/response/group.rb +0 -1
- data/lib/rock_rms/response/group_location.rb +0 -1
- data/lib/rock_rms/response/history.rb +0 -1
- data/lib/rock_rms/response/location.rb +0 -1
- data/lib/rock_rms/response/page.rb +0 -1
- data/lib/rock_rms/response/payment_detail.rb +0 -1
- data/lib/rock_rms/response/person.rb +0 -1
- data/lib/rock_rms/response/phone_number.rb +0 -1
- data/lib/rock_rms/response/recurring_donation.rb +0 -1
- data/lib/rock_rms/response/recurring_donation_details.rb +0 -1
- data/lib/rock_rms/response/registration.rb +0 -1
- data/lib/rock_rms/response/registration_instance.rb +0 -1
- data/lib/rock_rms/response/saved_payment_method.rb +0 -1
- data/lib/rock_rms/response/service_job.rb +0 -1
- data/lib/rock_rms/response/transaction.rb +0 -1
- data/lib/rock_rms/response/transaction_detail.rb +0 -1
- data/lib/rock_rms/response/workflow_activity_type.rb +0 -1
- data/lib/rock_rms/response/workflow_type.rb +0 -1
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/response/attribute_value_spec.rb +1 -1
- data/spec/rock_rms/response/recurring_donation_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d50622be87ae69275c27c620dcc9e21d5e473c700554219f7ac4eb29b854ba6e
|
4
|
+
data.tar.gz: 01d46085478582b1add636fa558932a7df8f0f99546c66f29f0494de38353c6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09895f32647c2cf61724fdc79d11965da9294a253eaa95544a53d29bcfd877c41f9976150dd91b311f41b45ac32795586ae83b93a448ff073b8a502eadecc4a7'
|
7
|
+
data.tar.gz: 520aa2aaf064a0a5efecfd6b418b48fbb1559a30b94584f77a59a6675b7156d905fb6ae9b25534c11601c8ecd11fe7bed8f95d74caf747c58a7cf4ad1c10e39b
|
@@ -3,6 +3,12 @@ module RockRMS
|
|
3
3
|
class Base
|
4
4
|
attr_reader :data
|
5
5
|
|
6
|
+
BASE_MAPPING = {
|
7
|
+
id: 'Id',
|
8
|
+
created_date_time: 'CreatedDateTime',
|
9
|
+
modified_date_time: 'ModifiedDateTime'
|
10
|
+
}.freeze
|
11
|
+
|
6
12
|
def self.format(data)
|
7
13
|
new(data).format
|
8
14
|
end
|
@@ -22,9 +28,11 @@ module RockRMS
|
|
22
28
|
def to_h(dict, data)
|
23
29
|
return {} if data.nil?
|
24
30
|
|
25
|
-
dict
|
26
|
-
|
27
|
-
|
31
|
+
dict
|
32
|
+
.merge(BASE_MAPPING)
|
33
|
+
.each_with_object({}) do |(l, r), object|
|
34
|
+
object[l] = data[r]
|
35
|
+
end
|
28
36
|
end
|
29
37
|
end
|
30
38
|
end
|
data/lib/rock_rms/version.rb
CHANGED
@@ -15,7 +15,6 @@ RSpec.describe RockRMS::Response::RecurringDonation, type: :model do
|
|
15
15
|
it 'has the following keys' do
|
16
16
|
response = result.first
|
17
17
|
expected_keys = %i[
|
18
|
-
id
|
19
18
|
active
|
20
19
|
financial_gateway_id
|
21
20
|
foreign_key
|
@@ -30,6 +29,9 @@ RSpec.describe RockRMS::Response::RecurringDonation, type: :model do
|
|
30
29
|
transaction_code
|
31
30
|
transaction_type_id
|
32
31
|
summary
|
32
|
+
id
|
33
|
+
created_date_time
|
34
|
+
modified_date_time
|
33
35
|
]
|
34
36
|
|
35
37
|
expect(response.keys).to eq(expected_keys)
|
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: 7.0.
|
4
|
+
version: 7.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|