household_people_and_contributions 0.0.5 → 0.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d477f050e7bebcb918117d9a6ed003e6d40399e5
|
4
|
+
data.tar.gz: a96366e4f066b03ae5f8c15a148b18e77c0174f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65f5be9c25e69deeb39c70f7b953f0cc573c93473796e1cb20380214030bcf3502bdeb92b4c82fd5f0dafc871985f2e3a07f5f7e94066aa48fd67c0ad9905e0
|
7
|
+
data.tar.gz: cbc9e39e194a85e8673cee49cb3d2243e76ea9a823da6a8a4a829b739c1aa55e9e3837914326cf33ccf9ee98eb19dd11cf6590deea8e1abaf2d8d73a4d1c1df6
|
@@ -130,11 +130,11 @@ module HouseholdPeopleAndContributions
|
|
130
130
|
while loop_again
|
131
131
|
paged_path = key.nil? ? path : "#{path}&page=#{current_page_number}"
|
132
132
|
|
133
|
-
warn "GET'ing: #{paged_path.inspect}..."
|
133
|
+
#warn "GET'ing: #{paged_path.inspect}..."
|
134
134
|
response = access_token.get(paged_path)
|
135
135
|
|
136
136
|
response_body = response.body
|
137
|
-
warn "BODY: #{response_body.inspect}..."
|
137
|
+
#warn "BODY: #{response_body.inspect}..."
|
138
138
|
json_body = JSON.parse(response_body)
|
139
139
|
|
140
140
|
results = key.nil? ? json_body : json_body[key]
|
@@ -238,7 +238,7 @@ module HouseholdPeopleAndContributions
|
|
238
238
|
tmp_record["transmit_date"] = contribution_record["transmitDate"]
|
239
239
|
tmp_record["created_at"] = contribution_record["createdDate"]
|
240
240
|
|
241
|
-
tmp_record["
|
241
|
+
tmp_record["updated_at"] = contribution_record["lastUpdatedDate"]
|
242
242
|
memo << tmp_record.dup
|
243
243
|
memo
|
244
244
|
}
|
@@ -351,9 +351,9 @@ module HouseholdPeopleAndContributions
|
|
351
351
|
def get_people_email_for(people=[], options = {})
|
352
352
|
n_at_a_time = options[:recordsPerPage] || 200
|
353
353
|
@emailable_people = []
|
354
|
-
warn "\n\n\t------------------> HERE\n\n"
|
354
|
+
#warn "\n\n\t------------------> HERE\n\n"
|
355
355
|
parents = people.select { |person| PARENT_STATUS == person["status"].downcase }
|
356
|
-
warn "\n\tparents: #{parents.inspect}\n\n\n"
|
356
|
+
#warn "\n\tparents: #{parents.inspect}\n\n\n"
|
357
357
|
extra_params = "recordsPerPage=#{n_at_a_time}"
|
358
358
|
while !parents.empty?
|
359
359
|
parent_id_list = parents.pop(n_at_a_time).map {|s| s["key"] }
|
@@ -367,9 +367,9 @@ module HouseholdPeopleAndContributions
|
|
367
367
|
def get_scholar_grades_for(people=[], options = {})
|
368
368
|
n_at_a_time = options[:recordsPerPage] || 200
|
369
369
|
@attributed_scholars = []
|
370
|
-
warn "\n\n\t------------------> HERE\n\n"
|
370
|
+
#warn "\n\n\t------------------> HERE\n\n"
|
371
371
|
scholars = people.select { |person| SCHOLAR_STATUS == person["status"].downcase }
|
372
|
-
warn "\n\tscholars: #{scholars.inspect}\n\n\n"
|
372
|
+
#warn "\n\tscholars: #{scholars.inspect}\n\n\n"
|
373
373
|
extra_params = "recordsPerPage=#{n_at_a_time}"
|
374
374
|
while !scholars.empty?
|
375
375
|
scholar_id_list = scholars.pop(n_at_a_time).map {|s| s["key"] }
|
@@ -417,7 +417,7 @@ module HouseholdPeopleAndContributions
|
|
417
417
|
query = "%"
|
418
418
|
path = "#{HOUSEHOLD_SEARCH_PATH_PREFIX}#{query}"
|
419
419
|
household_records_path = "#{path}&recordsPerPage=200"
|
420
|
-
warn "-> Search Households for #{query}..."
|
420
|
+
#warn "-> Search Households for #{query}..."
|
421
421
|
@hh = household_records(household_records_path)
|
422
422
|
end
|
423
423
|
@hh
|
@@ -457,15 +457,15 @@ module HouseholdPeopleAndContributions
|
|
457
457
|
|
458
458
|
def report
|
459
459
|
as # get people, add grades to them...
|
460
|
-
warn "\n--> people and scholars: "
|
460
|
+
#warn "\n--> people and scholars: "
|
461
461
|
File.write(OUTPUT_DIR + "/" + "people.json", pp.to_json)
|
462
462
|
puts pp.to_json
|
463
463
|
|
464
|
-
warn "\n--> contributions: "
|
464
|
+
#warn "\n--> contributions: "
|
465
465
|
File.write(OUTPUT_DIR + "/" + "contributions.json", contributions_by_household.to_json)
|
466
466
|
puts contributions_by_household.to_json
|
467
467
|
|
468
|
-
warn "--> hh: "
|
468
|
+
#warn "--> hh: "
|
469
469
|
File.write(OUTPUT_DIR + "/" + "households.json", hh.to_json)
|
470
470
|
puts hh.to_json
|
471
471
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: household_people_and_contributions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Tee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|