rock_rms 8.13.0 → 8.15.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: e2c2b021f6f7d904719857a5c0bcd860f73fa605d9eb0ce9f76e854ca5eade36
4
+ data.tar.gz: 83ceae3827a126165801aa660611a753950b12953f6401e9263d191b48deca5e
5
5
  SHA512:
6
- metadata.gz: 004d12722b2bfd537e67402ac6dd7ab8216aca1af3657c04e736687cf498bc6ff2b1885e6a7a832feeeee33ee800a4e2b2c772d4513ded1a18795cce2b17a9d3
7
- data.tar.gz: c5528cdaeecbe9cab916789c48809c698bab47039d52ef76484a22ed7adc5abea750c83f6275d80ae4316c0c6c513a3c9ffe955d9eff6587d298a0f9f01f9b80
6
+ metadata.gz: 1ae7a3defb6fda499899e46bf8e96ddd1df7ca66921cd89e20b61a7d082be3ea577b0ea2137419e39c35c6d03c4569a849208efbc42877547631d287dd91245f
7
+ data.tar.gz: 44d69ff3db93e91e6828ed3e4219514105e0d3115bf244922e9ecd4b95984b6ee7011ff23c209b44839796a33606f5f6166c0f1ed6cb832c84da7230c2a60de9
@@ -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,79 @@
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
+ enabled_lava_commands:,
22
+ parameters:,
23
+ tag_name:,
24
+ tag_type:
25
+ )
26
+ options = {
27
+ 'Name' => name,
28
+ 'Description' => description,
29
+ 'Documentation' => documentation,
30
+ 'IsActive' => active,
31
+ 'IsSystem' => is_system,
32
+ 'Markup' => markup,
33
+ 'EnabledLavaCommands' => enabled_lava_commands,
34
+ 'Parameters' => parameters,
35
+ 'TagName' => tag_name,
36
+ 'TagType' => tag_type,
37
+ }
38
+
39
+ post(lava_shortcodes_path, options)
40
+ end
41
+
42
+ def update_lava_shortcode(
43
+ id,
44
+ name: nil,
45
+ description: nil,
46
+ documentation: nil,
47
+ active: nil,
48
+ is_system: nil,
49
+ markup: nil,
50
+ enabled_lava_commands: nil,
51
+ parameters: nil,
52
+ tag_name: nil,
53
+ tag_type: nil
54
+ )
55
+
56
+ options = {}
57
+
58
+ options['Name'] = name if name
59
+ options['Description'] = description if description
60
+ options['Documentation'] = documentation if documentation
61
+ options['IsActive'] = active if active
62
+ options['IsSystem'] = is_system if is_system
63
+ options['Markup'] = markup if markup
64
+ options['Parameters'] = parameters if parameters
65
+ options['TagName'] = tag_name if tag_name
66
+ options['TagType'] = tag_type if tag_type
67
+ options['EnabledLavaCommands'] = enabled_lava_commands if enabled_lava_commands
68
+
69
+ patch(lava_shortcodes_path(id), options)
70
+ end
71
+
72
+ private
73
+
74
+ def lava_shortcodes_path(id = nil)
75
+ id ? "LavaShortcodes/#{id}" : 'LavaShortcodes'
76
+ end
77
+ end
78
+ end
79
+ 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,22 @@
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
+ enabled_lava_commands: 'EnabledLavaCommands',
11
+ tag_name: 'TagName',
12
+ tag_type: 'TagType',
13
+ markup: 'Markup',
14
+ parameters: 'Parameters'
15
+ }.freeze
16
+
17
+ def format_single(data)
18
+ to_h(MAP, data)
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.13.0'.freeze
2
+ VERSION = '8.15.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.15.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-22 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_shortcode.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