fellowshipone-api 0.8.0 → 0.9.0

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: 49582c9647e65dfb3f5de45a11e2cd1df49db6d4
4
- data.tar.gz: fc20f7fe789ad493d27f39f9f92c96cfe0520291
3
+ metadata.gz: 97736debf84ce4d01fccd0bf084677619cbeb58f
4
+ data.tar.gz: e7918586a67d55f968cdc309a61acb28a4134fb5
5
5
  SHA512:
6
- metadata.gz: a08a4435dfc58a0023554f74ff1a25c789350c771ad59d48582275452c250267085bbff8ea3b65e59b2d9c70e295f6c687ade9b0b211293d4a5b4c6801261c8d
7
- data.tar.gz: 608715d101bec41e208101dd46bbcba61c472463897f301c35b78c0d4fe677bea62f89f2618d74bd7ce3feb2d9bc8d8554164ed33575f018e16dec43174b5f69
6
+ metadata.gz: 1d5a7dc8df96ad92e5a6a69a0cbc30f30d05eedfcb91d833118aa16bae9edf5aaba7770ad512f0a7200ab3dfc5071c7f2b285f17c30db2a4b83a43adbbde2867
7
+ data.tar.gz: 411884618429c5ea646ef44071fb4b3c4f5cbf72bdbd741627e08aef9c75f73af95f90c1778741a8af39fd29e5b9c44bb16433c0000b73183d01886620223fa4
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'fellowshipone-api'
3
- PROJECT_GEM_VERSION = '0.8.0'
3
+ PROJECT_GEM_VERSION = '0.9.0'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
@@ -12,13 +12,13 @@ module FellowshipOne
12
12
  options = {:household_id => household_id, :page => page, :per_page => per_page}
13
13
  reader = FellowshipOne::ContributionListReader.new(options)
14
14
  ContributionList.new({:reader => reader})
15
- end
15
+ end
16
16
 
17
17
  def self.search_for_contributions_by_individual_id(individual_id, page=1, per_page=500)
18
18
  options = {:individual_id => individual_id, :page => page, :per_page => per_page}
19
19
  reader = FellowshipOne::ContributionListReader.new(options)
20
20
  ContributionList.new({:reader => reader})
21
- end
21
+ end
22
22
 
23
23
  def self.search_for_person_by_name(query, page=1)
24
24
  options = {:page => page, :search_for => query}
@@ -26,29 +26,35 @@ module FellowshipOne
26
26
  PersonList.new({:reader => reader})
27
27
  end
28
28
 
29
+ def self.search_for_person_by_name_and_email(name, email, page=1)
30
+ options = {:page => page, :search_for => name, :communication => email}
31
+ reader = FellowshipOne::PersonListReader.new(options)
32
+ PersonList.new({:reader => reader})
33
+ end
34
+
29
35
  def self.search_for_person_by_household_id(query, page=1)
30
36
  options = {:page => page, :hsdid => query}
31
37
  reader = FellowshipOne::PersonListReader.new(options)
32
38
  PersonList.new({:reader => reader})
33
- end
39
+ end
34
40
 
35
41
  def self.search_for_person_by_communication(query, page=1)
36
42
  options = {:page => page, :communication => query}
37
43
  reader = FellowshipOne::PersonListReader.new(options)
38
44
  PersonList.new({:reader => reader})
39
- end
45
+ end
40
46
 
41
47
  def self.search_for_person_created_on_or_after(created_date, page=1)
42
48
  options = {:page => page, :created_date => created_date}
43
49
  reader = FellowshipOne::PersonListReader.new(options)
44
50
  PersonList.new({:reader => reader})
45
- end
51
+ end
46
52
 
47
53
  def self.search_for_person_updated_on_or_after(updated_date, page=1)
48
54
  options = {:page => page, :updated_date => updated_date}
49
55
  reader = FellowshipOne::PersonListReader.new(options)
50
56
  PersonList.new({:reader => reader})
51
- end
57
+ end
52
58
 
53
59
  def self.search_for_household_by_name(name, page=1)
54
60
  options = {:page => page, :search_for => name}
@@ -58,4 +64,4 @@ module FellowshipOne
58
64
 
59
65
  end
60
66
 
61
- end
67
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fellowshipone-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wes Hays
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-17 00:00:00.000000000 Z
13
+ date: 2015-01-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus