fellowshipone 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fellowshipone.gemspec +1 -1
- data/lib/fellowshipone/resources/contribution.rb +1 -1
- data/lib/fellowshipone/resources/person.rb +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b7cb75f07e493516ff3716e6dd4725340869957
|
4
|
+
data.tar.gz: 5e12892e3050d5eb3fe4faa667ccd9a23a633031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 397d4e6af0184f3cc8032025b3f0334b4fc8b3791c83b28ad9e814f70a7161506bc84be4504cdab15387f428cfa635f163dd8f2b8472f3f787585d426f323c01
|
7
|
+
data.tar.gz: c4865b3ba9cbf3c695c9932b40feb55278a8ff8a5ba9dc88f51f2b9956c02aedb51c213a6d801c31fd90780a61c574039723170d91b8ce3cbbf5d5dced344fea
|
data/fellowshipone.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'fellowshipone'
|
5
|
-
s.version = '1.3.
|
5
|
+
s.version = '1.3.4'
|
6
6
|
s.authors = ['Taylor Brooks']
|
7
7
|
s.email = ['tbrooks@gmail.com']
|
8
8
|
s.homepage = 'https://github.com/taylorbrooks/fellowshipone'
|
@@ -28,7 +28,7 @@ module Fellowshipone
|
|
28
28
|
options.merge!(endReceivedDate: end_date) if end_date
|
29
29
|
|
30
30
|
params = Addressable::URI.form_encode(options)
|
31
|
-
get("/giving/v1/contributionreceipts/search.json?#{params}")
|
31
|
+
get("/giving/v1/contributionreceipts/search.json?#{params}").results
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
@@ -18,8 +18,17 @@ module Fellowshipone
|
|
18
18
|
post("/v1/People.json", person_params.to_json)
|
19
19
|
end
|
20
20
|
|
21
|
-
def search_for_person(name, email)
|
22
|
-
|
21
|
+
def search_for_person(name: nil, email: nil)
|
22
|
+
options = {}
|
23
|
+
options.merge!(searchfor: name) if name
|
24
|
+
options.merge!(communication: email) if email
|
25
|
+
|
26
|
+
params = Addressable::URI.form_encode(options)
|
27
|
+
get("/v1/People/Search.json?#{params}").results
|
28
|
+
end
|
29
|
+
|
30
|
+
def search_people_by_date(created_at)
|
31
|
+
get("/v1/People/Search.json?createdDate=#{created_at}").results
|
23
32
|
end
|
24
33
|
|
25
34
|
def search_for_person_by_household(household_id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fellowshipone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|