rock_rms 8.13.0 → 8.14.0

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: 649e1d24170934d84f7d7e88d5863dae3f12d3dafccf56a286006640d702639d
4
- data.tar.gz: 82011ea372ec0249c0f80fc6ae84b91ed3f90ae5d860c86bd9c694e020702e50
3
+ metadata.gz: 92beee8a5c17475ed71b6bf688ae9f31dcb32348bb2a9d62ed4ba4702e9d82cc
4
+ data.tar.gz: 43634e5e1f99308672c93b2630fedfc0f5a4883dc8b34d83a75edbff17c5b0cc
5
5
  SHA512:
6
- metadata.gz: 004d12722b2bfd537e67402ac6dd7ab8216aca1af3657c04e736687cf498bc6ff2b1885e6a7a832feeeee33ee800a4e2b2c772d4513ded1a18795cce2b17a9d3
7
- data.tar.gz: c5528cdaeecbe9cab916789c48809c698bab47039d52ef76484a22ed7adc5abea750c83f6275d80ae4316c0c6c513a3c9ffe955d9eff6587d298a0f9f01f9b80
6
+ metadata.gz: 64abb56ec232a60dd1c79f76c8a378dd5c2124006d59d2e6e9f7c1936d47f5a66357564b43826f0160b243cd15a47bf0a1cbd7a8f2d48a492008e9052fb201a8
7
+ data.tar.gz: 2672b0a568e05a81c6607a74cb0391446ad629bf3c9099512a630e6a87f26049c61dd8ab2ea0ea7c77b80dc5e33d477237d78500ee24d35b4e9628ec9105a036
@@ -21,10 +21,12 @@ module RockRMS
21
21
  include RockRMS::Client::Campus
22
22
  include RockRMS::Client::DefinedType
23
23
  include RockRMS::Client::DefinedValue
24
+ include RockRMS::Client::ExceptionLog
24
25
  include RockRMS::Client::Gateway
25
26
  include RockRMS::Client::Group
26
27
  include RockRMS::Client::GroupMember
27
28
  include RockRMS::Client::History
29
+ include RockRMS::Client::LavaShortcode
28
30
  include RockRMS::Client::Page
29
31
  include RockRMS::Client::PaymentDetail
30
32
  include RockRMS::Client::Person
@@ -0,0 +1,17 @@
1
+ module RockRMS
2
+ class Client
3
+ module ExceptionLog
4
+ def list_exception_logs(options = {})
5
+ Response::ExceptionLog.format(
6
+ get(exception_logs_path, options)
7
+ )
8
+ end
9
+
10
+ private
11
+
12
+ def exception_logs_path
13
+ 'ExceptionLogs'.freeze
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,67 @@
1
+ module RockRMS
2
+ class Client
3
+ module LavaShortcode
4
+ def list_lava_shortcodes(options = {})
5
+ res = get(lava_shortcodes_path, options)
6
+ Response::LavaShortcode.format(res)
7
+ end
8
+
9
+ def find_lava_shortcode(id)
10
+ res = get(lava_shortcodes_path(id))
11
+ Response::LavaShortcode.format(res)
12
+ end
13
+
14
+ def create_lava_shortcode(
15
+ name:,
16
+ description:,
17
+ documentation:,
18
+ active:,
19
+ is_system:,
20
+ markup:,
21
+ parameters:
22
+ )
23
+ options = {
24
+ 'Name' => name,
25
+ 'Description' => description,
26
+ 'Documentation' => documentation,
27
+ 'IsActive' => active,
28
+ 'IsSystem' => is_system,
29
+ 'Markup' => markup,
30
+ 'Parameters' => parameters
31
+ }
32
+
33
+ post(lava_shortcodes_path, options)
34
+ end
35
+
36
+ def update_lava_shortcode(
37
+ id,
38
+ name: nil,
39
+ description: nil,
40
+ documentation: nil,
41
+ active: nil,
42
+ is_system: nil,
43
+ markup: nil,
44
+ parameters: nil
45
+ )
46
+
47
+ options = {}
48
+
49
+ options['Name'] = name if name
50
+ options['Description'] = description if description
51
+ options['Documentation'] = documentation if documentation
52
+ options['IsActive'] = active if active
53
+ options['IsSystem'] = is_system if is_system
54
+ options['Markup'] = markup if markup
55
+ options['Parameters'] = parameters if parameters
56
+
57
+ patch(lava_shortcodes_path(id), options)
58
+ end
59
+
60
+ private
61
+
62
+ def lava_shortcodes_path(id = nil)
63
+ id ? "LavaShortcodes/#{id}" : 'LavaShortcodes'
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,17 @@
1
+ module RockRMS
2
+ module Response
3
+ class ExceptionLog < Base
4
+ MAP = {
5
+ exception_type: 'ExceptionType',
6
+ description: 'Description',
7
+ stack_trace: 'StackTrace',
8
+ page_url: 'PageUrl',
9
+ source: 'Source',
10
+ }.freeze
11
+
12
+ def format_single(data)
13
+ to_h(MAP, data)
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ module RockRMS
2
+ module Response
3
+ class LavaShortcode < Base
4
+ MAP = {
5
+ name: 'Name',
6
+ description: 'Description',
7
+ documentation: 'Documentation',
8
+ active: 'IsActive',
9
+ is_system: 'IsSystem',
10
+ tag_name: 'TagName',
11
+ markup: 'Markup',
12
+ parameters: 'Parameters'
13
+ }.freeze
14
+
15
+ def format_single(data)
16
+ to_h(MAP, data)
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.13.0'.freeze
2
+ VERSION = '8.14.0'.freeze
3
3
  end
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.13.0
4
+ version: 8.14.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-08-30 00:00:00.000000000 Z
11
+ date: 2023-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -196,11 +196,13 @@ files:
196
196
  - lib/rock_rms/resources/campus.rb
197
197
  - lib/rock_rms/resources/defined_type.rb
198
198
  - lib/rock_rms/resources/defined_value.rb
199
+ - lib/rock_rms/resources/exception_log.rb
199
200
  - lib/rock_rms/resources/fund.rb
200
201
  - lib/rock_rms/resources/gateway.rb
201
202
  - lib/rock_rms/resources/group.rb
202
203
  - lib/rock_rms/resources/group_member.rb
203
204
  - lib/rock_rms/resources/history.rb
205
+ - lib/rock_rms/resources/lava_shortcodes.rb
204
206
  - lib/rock_rms/resources/page.rb
205
207
  - lib/rock_rms/resources/payment_detail.rb
206
208
  - lib/rock_rms/resources/person.rb
@@ -231,12 +233,14 @@ files:
231
233
  - lib/rock_rms/response/campus.rb
232
234
  - lib/rock_rms/response/defined_type.rb
233
235
  - lib/rock_rms/response/defined_value.rb
236
+ - lib/rock_rms/response/exception_log.rb
234
237
  - lib/rock_rms/response/fund.rb
235
238
  - lib/rock_rms/response/gateway.rb
236
239
  - lib/rock_rms/response/group.rb
237
240
  - lib/rock_rms/response/group_location.rb
238
241
  - lib/rock_rms/response/group_member.rb
239
242
  - lib/rock_rms/response/history.rb
243
+ - lib/rock_rms/response/lava_shortcode.rb
240
244
  - lib/rock_rms/response/location.rb
241
245
  - lib/rock_rms/response/page.rb
242
246
  - lib/rock_rms/response/payment_detail.rb