church-community-builder 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/ccb_api.gemspec +1 -1
- data/examples/api_connect.rb +3 -3
- data/lib/api/batch_list.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ODFjODJmZWExZjNmNDMzYWE2ZjliNmQ3ZjljZTBjNTU4YzQzNTk2Ng==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZGFiNDdmMjcxMTg0ODVkMGEyMDVmOTM3MzFjODY5MDU4N2YzZjM0Ng==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MTYxNDBhNDc4YWI3Mjk4Y2VjNGZkZjRmODdiNmQ3YzkyOTgyMTk5MTI4YTQ4
|
|
10
|
+
NWQ2ZThhY2Q4ZDU0OTBlZWM0NzQ3MWY2ZjlmZjg3YTlmNWU0NmY0ZTEzZGI4
|
|
11
|
+
M2Q0MGFlYTNlZDBkMjVlNzEyMDhhMmU5NmE2YzNlM2ZlY2NjZjk=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NWIwYmUzN2U4NzBlOGQwNDM4NWU4YTcxNjM3NzU5MjEzNjViZWQyYjAyNTgw
|
|
14
|
+
MjhmOTc3NGM5MGYyN2Y1YWNlMWQ5NTQxMDUyZWQyZjExYmMwYTgwYmUwZDE5
|
|
15
|
+
NGQ2MGUyYmNkNWNhOWZlYWFkYmE0NDcyZjJjNTA2MDJiMjhhY2Y=
|
data/ccb_api.gemspec
CHANGED
data/examples/api_connect.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
subdomain = '
|
|
4
|
-
username = '
|
|
5
|
-
password = '
|
|
3
|
+
subdomain = 'moviechurch'
|
|
4
|
+
username = 'mortarstone'
|
|
5
|
+
password = 'Thisisgreat1'
|
|
6
6
|
|
|
7
7
|
ChurchCommunityBuilder::Api.connect(username, password, subdomain)
|
data/lib/api/batch_list.rb
CHANGED
|
@@ -6,20 +6,21 @@ module ChurchCommunityBuilder
|
|
|
6
6
|
|
|
7
7
|
attr_reader :request_data,
|
|
8
8
|
:response_data,
|
|
9
|
-
:
|
|
9
|
+
:service_action,
|
|
10
|
+
:availability,
|
|
10
11
|
:batches,
|
|
11
12
|
:count,
|
|
12
13
|
:batch_array,
|
|
13
14
|
:json_data #for debugging
|
|
14
15
|
|
|
15
|
-
|
|
16
16
|
def initialize(json)
|
|
17
17
|
@json_data = json["ccb_api"]
|
|
18
18
|
@request_data = @json_data["request"]
|
|
19
19
|
@response_data = @json_data["response"]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@
|
|
20
|
+
|
|
21
|
+
@service = @response_data["service_action"] #CCB service type accessed
|
|
22
|
+
@availability = @response_data["availability"]
|
|
23
|
+
@batches = @response_data['batches']
|
|
23
24
|
|
|
24
25
|
@count = @batches["count"].to_i #number of records
|
|
25
26
|
@batch_array = @batches["batch"].class == Array ? @batches["batch"] : [@batches["batch"]].compact #array of each batch
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: church-community-builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wes Hays
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-11-
|
|
12
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: typhoeus
|