rock_rms 4.11.0 → 4.12.1

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
  SHA1:
3
- metadata.gz: 1074e9a6c22ba077a329b71ab79af79235879579
4
- data.tar.gz: 5c6066b4ffef2b09b579592ae68849d0254f1532
3
+ metadata.gz: 363ceb849a34e2f98f6285fbc5ea4bbaaef109aa
4
+ data.tar.gz: 88cec56237fac808dbeca8721ed13b0c312a3536
5
5
  SHA512:
6
- metadata.gz: 6a7d0629837cfd484dfdc10b0a22c589a59b52cd4a81fe9b11374c06717d8c1251a20d4c172afa9ec6996904340578efde28db797936d17d2485dff004911425
7
- data.tar.gz: 5e5640b9451eda8e40414856aa256e12bf4a92c5aa0d539b6b3edbd9002f454a420825f3818e57e18e0d9d6daf8fc55dcee8833ea8d0dd9aa68ca602690468de
6
+ metadata.gz: 1c1f6f6b180ee29dc5b0fe393e0f882133e40804eb760a7628fa1d1f3943fd56c27d9edd22fdbb19bde338fdf411ef0bc3259b5e0e02a967c3aed78d97bdbc7b
7
+ data.tar.gz: d1b6e942c8b974319d86750ea7807de8a169925d78763a389a71dfca12aa5b8b69bcee90de983750a904541fd09eca6cd8469b2667ce00ca5a2e0a63c02b561b
@@ -13,6 +13,8 @@ module RockRMS
13
13
  include RockRMS::Client::Attribute
14
14
  include RockRMS::Client::AttributeValue
15
15
  include RockRMS::Client::Batch
16
+ include RockRMS::Client::Block
17
+ include RockRMS::Client::BlockType
16
18
  include RockRMS::Client::Fund
17
19
  include RockRMS::Client::Campus
18
20
  include RockRMS::Client::DefinedType
@@ -20,6 +22,7 @@ module RockRMS
20
22
  include RockRMS::Client::Gateway
21
23
  include RockRMS::Client::Group
22
24
  include RockRMS::Client::GroupMember
25
+ include RockRMS::Client::Page
23
26
  include RockRMS::Client::PaymentDetail
24
27
  include RockRMS::Client::Person
25
28
  include RockRMS::Client::PhoneNumber
@@ -0,0 +1,14 @@
1
+ module RockRMS
2
+ class Client
3
+ module Block
4
+ def list_blocks(options = {})
5
+ res = get(block_path, options)
6
+ Response::Block.format(res)
7
+ end
8
+
9
+ def block_path(id = nil)
10
+ id ? "Blocks/#{id}" : 'Blocks'
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module RockRMS
2
+ class Client
3
+ module BlockType
4
+ def list_block_types(options = {})
5
+ res = get(block_type_path, options)
6
+ Response::BlockType.format(res)
7
+ end
8
+
9
+ def block_type_path(id = nil)
10
+ id ? "BlockTypes/#{id}" : 'BlockTypes'
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module RockRMS
2
+ class Client
3
+ module Page
4
+ def list_pages(options = {})
5
+ res = get(page_path, options)
6
+ Response::Page.format(res)
7
+ end
8
+
9
+ def page_path(id = nil)
10
+ id ? "Pages/#{id}" : 'Pages'
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ module RockRMS
2
+ module Response
3
+ class Block < Base
4
+ MAP = {
5
+ id: 'Id',
6
+ name: 'Name',
7
+ block_type: 'BlockType',
8
+ page_id: 'PageId'
9
+ }.freeze
10
+
11
+ def format_single(data)
12
+ response = to_h(MAP, data)
13
+ response[:block_type] = BlockType.format(response[:block_type])
14
+ response
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ module RockRMS
2
+ module Response
3
+ class BlockType < Base
4
+ MAP = {
5
+ id: 'Id',
6
+ name: 'Name',
7
+ description: 'Description',
8
+ category: 'Category',
9
+ path: 'Path'
10
+ }.freeze
11
+
12
+ def format_single(data)
13
+ to_h(MAP, data)
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ module RockRMS
2
+ module Response
3
+ class Page < Base
4
+ MAP = {
5
+ id: 'Id',
6
+ name: 'InternalName',
7
+ page_title: 'PageTitle',
8
+ browser_title: 'BrowserTitle',
9
+ blocks: 'Blocks'
10
+ }.freeze
11
+
12
+ def format_single(data)
13
+ response = to_h(MAP, data)
14
+ response[:blocks] = Block.format(response[:blocks])
15
+ response
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '4.11.0'.freeze
2
+ VERSION = '4.12.1'.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: 4.11.0
4
+ version: 4.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-12 00:00:00.000000000 Z
11
+ date: 2018-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -188,6 +188,8 @@ files:
188
188
  - lib/rock_rms/resources/attribute.rb
189
189
  - lib/rock_rms/resources/attribute_value.rb
190
190
  - lib/rock_rms/resources/batch.rb
191
+ - lib/rock_rms/resources/block.rb
192
+ - lib/rock_rms/resources/block_type.rb
191
193
  - lib/rock_rms/resources/campus.rb
192
194
  - lib/rock_rms/resources/defined_type.rb
193
195
  - lib/rock_rms/resources/defined_value.rb
@@ -195,6 +197,7 @@ files:
195
197
  - lib/rock_rms/resources/gateway.rb
196
198
  - lib/rock_rms/resources/group.rb
197
199
  - lib/rock_rms/resources/group_member.rb
200
+ - lib/rock_rms/resources/page.rb
198
201
  - lib/rock_rms/resources/payment_detail.rb
199
202
  - lib/rock_rms/resources/person.rb
200
203
  - lib/rock_rms/resources/phone_number.rb
@@ -212,6 +215,8 @@ files:
212
215
  - lib/rock_rms/response/attribute_value.rb
213
216
  - lib/rock_rms/response/base.rb
214
217
  - lib/rock_rms/response/batch.rb
218
+ - lib/rock_rms/response/block.rb
219
+ - lib/rock_rms/response/block_type.rb
215
220
  - lib/rock_rms/response/campus.rb
216
221
  - lib/rock_rms/response/defined_type.rb
217
222
  - lib/rock_rms/response/defined_value.rb
@@ -220,6 +225,7 @@ files:
220
225
  - lib/rock_rms/response/group.rb
221
226
  - lib/rock_rms/response/group_location.rb
222
227
  - lib/rock_rms/response/location.rb
228
+ - lib/rock_rms/response/page.rb
223
229
  - lib/rock_rms/response/payment_detail.rb
224
230
  - lib/rock_rms/response/person.rb
225
231
  - lib/rock_rms/response/phone_number.rb