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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a715e03c86da2786e915129930915432b52202a2
4
- data.tar.gz: 1575ce1c348b96ca9bb2d840018097077946171b
3
+ metadata.gz: 7b7cb75f07e493516ff3716e6dd4725340869957
4
+ data.tar.gz: 5e12892e3050d5eb3fe4faa667ccd9a23a633031
5
5
  SHA512:
6
- metadata.gz: a3af02ed0f7663d981ba18c818b9c3556e7a3611c769989d425a4456b2e586503ef7dd8302baa5e4192829268aac8696409ca42b3533857343ed6cd0013fa4f2
7
- data.tar.gz: e0b69525f8075093ff59cd87fadccae003f4852b8b6df20d33338a5de291686e1d7cb58aad98750bc63c4a1f52eeb16aed206c36e04e54b1ae577a90d63d3dad
6
+ metadata.gz: 397d4e6af0184f3cc8032025b3f0334b4fc8b3791c83b28ad9e814f70a7161506bc84be4504cdab15387f428cfa635f163dd8f2b8472f3f787585d426f323c01
7
+ data.tar.gz: c4865b3ba9cbf3c695c9932b40feb55278a8ff8a5ba9dc88f51f2b9956c02aedb51c213a6d801c31fd90780a61c574039723170d91b8ce3cbbf5d5dced344fea
@@ -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.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
- get("/v1/People/Search.json?searchfor=#{name}&communication=#{email}").results
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.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: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2017-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler