rock_rms 5.6.0 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/lib/rock_rms/client.rb +2 -0
- data/lib/rock_rms/resources/history.rb +10 -0
- data/lib/rock_rms/resources/service_job.rb +18 -0
- data/lib/rock_rms/response/history.rb +19 -0
- data/lib/rock_rms/response/service_job.rb +17 -0
- data/lib/rock_rms/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3672084464c36f8b71dca9e9b96d294c4b97ab0935f75b62456e7f9014d77c7f
|
4
|
+
data.tar.gz: a8d2f6245f1ee91ef0239f96e3ae908b633dc780ff247227656c8921dacfa0f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee15f7c484d7ee523e3ab8c1ba92a1ab3c79b6234ed5f8a0ddc86127eeec28dc601342bf7529de46b766be80b8527441fd7cf7e23a80bc364c3379ea9d0f9496
|
7
|
+
data.tar.gz: beeae932b5ebe8e620ae0d0d20a689ba26047462ae895293fed6dd57afca57586f2e0256795d49a82afa5f005c0a66de238651ac7b090124278e77929b12a296
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
data/lib/rock_rms/client.rb
CHANGED
@@ -22,6 +22,7 @@ module RockRMS
|
|
22
22
|
include RockRMS::Client::Gateway
|
23
23
|
include RockRMS::Client::Group
|
24
24
|
include RockRMS::Client::GroupMember
|
25
|
+
include RockRMS::Client::History
|
25
26
|
include RockRMS::Client::Page
|
26
27
|
include RockRMS::Client::PaymentDetail
|
27
28
|
include RockRMS::Client::Person
|
@@ -31,6 +32,7 @@ module RockRMS
|
|
31
32
|
include RockRMS::Client::Refund
|
32
33
|
include RockRMS::Client::RefundReason
|
33
34
|
include RockRMS::Client::SavedPaymentMethod
|
35
|
+
include RockRMS::Client::ServiceJob
|
34
36
|
include RockRMS::Client::Transaction
|
35
37
|
include RockRMS::Client::TransactionDetail
|
36
38
|
include RockRMS::Client::UserLogin
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module RockRMS
|
2
|
+
class Client
|
3
|
+
module ServiceJob
|
4
|
+
def list_service_jobs(options = {})
|
5
|
+
res = get('ServiceJobs', options)
|
6
|
+
Response::ServiceJob.format(res)
|
7
|
+
end
|
8
|
+
|
9
|
+
def update_service_job(id, cron: nil)
|
10
|
+
options = {
|
11
|
+
'CronExpression': cron
|
12
|
+
}
|
13
|
+
|
14
|
+
patch("ServiceJobs/#{id}", options)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module RockRMS
|
2
|
+
module Response
|
3
|
+
class History < Base
|
4
|
+
MAP = {
|
5
|
+
id: 'Id',
|
6
|
+
verb: 'Verb',
|
7
|
+
change_type: 'ChangeType',
|
8
|
+
value_name: 'ValueName',
|
9
|
+
old_value: 'OldValue',
|
10
|
+
new_value: 'NewValue',
|
11
|
+
alias_id: 'CreatedByPersonAliasId'
|
12
|
+
}.freeze
|
13
|
+
|
14
|
+
def format_single(data)
|
15
|
+
to_h(MAP, data)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RockRMS
|
2
|
+
module Response
|
3
|
+
class ServiceJob < Base
|
4
|
+
MAP = {
|
5
|
+
id: 'Id',
|
6
|
+
name: 'Name',
|
7
|
+
active: 'IsActive',
|
8
|
+
description: 'Description',
|
9
|
+
cron: 'CronExpression'
|
10
|
+
}.freeze
|
11
|
+
|
12
|
+
def format_single(data)
|
13
|
+
to_h(MAP, data)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/rock_rms/version.rb
CHANGED
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: 5.
|
4
|
+
version: 5.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -197,6 +197,7 @@ files:
|
|
197
197
|
- lib/rock_rms/resources/gateway.rb
|
198
198
|
- lib/rock_rms/resources/group.rb
|
199
199
|
- lib/rock_rms/resources/group_member.rb
|
200
|
+
- lib/rock_rms/resources/history.rb
|
200
201
|
- lib/rock_rms/resources/page.rb
|
201
202
|
- lib/rock_rms/resources/payment_detail.rb
|
202
203
|
- lib/rock_rms/resources/person.rb
|
@@ -206,6 +207,7 @@ files:
|
|
206
207
|
- lib/rock_rms/resources/refund.rb
|
207
208
|
- lib/rock_rms/resources/refund_reason.rb
|
208
209
|
- lib/rock_rms/resources/saved_payment_method.rb
|
210
|
+
- lib/rock_rms/resources/service_job.rb
|
209
211
|
- lib/rock_rms/resources/transaction.rb
|
210
212
|
- lib/rock_rms/resources/transaction_detail.rb
|
211
213
|
- lib/rock_rms/resources/user_login.rb
|
@@ -226,6 +228,7 @@ files:
|
|
226
228
|
- lib/rock_rms/response/gateway.rb
|
227
229
|
- lib/rock_rms/response/group.rb
|
228
230
|
- lib/rock_rms/response/group_location.rb
|
231
|
+
- lib/rock_rms/response/history.rb
|
229
232
|
- lib/rock_rms/response/location.rb
|
230
233
|
- lib/rock_rms/response/page.rb
|
231
234
|
- lib/rock_rms/response/payment_detail.rb
|
@@ -234,6 +237,7 @@ files:
|
|
234
237
|
- lib/rock_rms/response/recurring_donation.rb
|
235
238
|
- lib/rock_rms/response/recurring_donation_details.rb
|
236
239
|
- lib/rock_rms/response/saved_payment_method.rb
|
240
|
+
- lib/rock_rms/response/service_job.rb
|
237
241
|
- lib/rock_rms/response/transaction.rb
|
238
242
|
- lib/rock_rms/response/transaction_detail.rb
|
239
243
|
- lib/rock_rms/response/user_login.rb
|
@@ -334,7 +338,7 @@ homepage: https://github.com/taylorbrooks/rock_rms
|
|
334
338
|
licenses:
|
335
339
|
- MIT
|
336
340
|
metadata: {}
|
337
|
-
post_install_message:
|
341
|
+
post_install_message:
|
338
342
|
rdoc_options: []
|
339
343
|
require_paths:
|
340
344
|
- lib
|
@@ -349,9 +353,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
349
353
|
- !ruby/object:Gem::Version
|
350
354
|
version: '0'
|
351
355
|
requirements: []
|
352
|
-
|
353
|
-
|
354
|
-
signing_key:
|
356
|
+
rubygems_version: 3.1.4
|
357
|
+
signing_key:
|
355
358
|
specification_version: 4
|
356
359
|
summary: A Ruby wrapper for the Rock RMS API
|
357
360
|
test_files: []
|