fellowshipone-api 0.7.0 → 0.8.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db8330628a969a27438a6433a93ae82834d4a8dd
4
- data.tar.gz: 616b98b6ab7d29f06154e6b89462b2e67ff0753b
3
+ metadata.gz: 49582c9647e65dfb3f5de45a11e2cd1df49db6d4
4
+ data.tar.gz: fc20f7fe789ad493d27f39f9f92c96cfe0520291
5
5
  SHA512:
6
- metadata.gz: 1a7af482228b5dfe4eb0e705b726d123a5d576c2ecfb888d86de3840b781a26fcf7d54161f93ef94665d22991844506fc2b992a5d0890754b87be3cd3c2eac80
7
- data.tar.gz: be8ee2e2416ccbc9bb12a330d6ec34ec6c1a38aebc87c44300036c910ec52c839eb46773d3c85a3b9b3072cc9c5595fea596c2d2d2af91a741776a997c944af7
6
+ metadata.gz: a08a4435dfc58a0023554f74ff1a25c789350c771ad59d48582275452c250267085bbff8ea3b65e59b2d9c70e295f6c687ade9b0b211293d4a5b4c6801261c8d
7
+ data.tar.gz: 608715d101bec41e208101dd46bbcba61c472463897f301c35b78c0d4fe677bea62f89f2618d74bd7ce3feb2d9bc8d8554164ed33575f018e16dec43174b5f69
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'fellowshipone-api'
3
- PROJECT_GEM_VERSION = '0.7.0'
3
+ PROJECT_GEM_VERSION = '0.8.0'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
data/lib/api/search.rb CHANGED
@@ -44,6 +44,12 @@ module FellowshipOne
44
44
  PersonList.new({:reader => reader})
45
45
  end
46
46
 
47
+ def self.search_for_person_updated_on_or_after(updated_date, page=1)
48
+ options = {:page => page, :updated_date => updated_date}
49
+ reader = FellowshipOne::PersonListReader.new(options)
50
+ PersonList.new({:reader => reader})
51
+ end
52
+
47
53
  def self.search_for_household_by_name(name, page=1)
48
54
  options = {:page => page, :search_for => name}
49
55
  reader = FellowshipOne::HouseholdListReader.new(options)
data/lib/common.rb CHANGED
@@ -31,7 +31,7 @@ module FellowshipOne
31
31
  end
32
32
  end
33
33
  end
34
-
34
+
35
35
  response
36
36
  end
37
37
 
@@ -20,6 +20,7 @@ module FellowshipOne
20
20
  if options[:search_for].nil? and
21
21
  options[:communication].nil? and
22
22
  options[:created_date].nil? and
23
+ options[:updated_date].nil? and
23
24
  options[:hsdid].nil?
24
25
  @url_data_path = '/v1/People'
25
26
  end
@@ -30,6 +31,7 @@ module FellowshipOne
30
31
  @url_data_params.merge!({:searchFor => options[:search_for]}) if options[:search_for]
31
32
  @url_data_params.merge!({:communication => options[:communication]}) if options[:communication]
32
33
  @url_data_params.merge!({:createdDate => options[:created_date]}) if options[:created_date]
34
+ @url_data_params.merge!({:lastUpdatedDate => options[:updated_date]}) if options[:updated_date]
33
35
  end
34
36
 
35
37
  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.7.0
4
+ version: 0.8.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-05-27 00:00:00.000000000 Z
13
+ date: 2014-12-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus