omnicontacts 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omnicontacts (0.2.1)
4
+ omnicontacts (0.2.2)
5
5
  json
6
6
  rack
7
7
 
@@ -9,7 +9,7 @@ GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.1.3)
12
- json (1.7.0)
12
+ json (1.7.3)
13
13
  multi_json (1.1.0)
14
14
  rack (1.4.1)
15
15
  rack-test (0.6.1)
@@ -1,6 +1,6 @@
1
1
  module OmniContacts
2
2
 
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
 
5
5
  autoload :Builder, "omnicontacts/builder"
6
6
  autoload :Importer, "omnicontacts/importer"
@@ -13,4 +13,4 @@ module OmniContacts
13
13
  IntegrationTest.instance
14
14
  end
15
15
 
16
- end
16
+ end
@@ -15,6 +15,7 @@ module OmniContacts
15
15
  @scope = "https://www.google.com/m8/feeds"
16
16
  @contacts_host = "www.google.com"
17
17
  @contacts_path = "/m8/feeds/contacts/default/full"
18
+ @max_results = (args[3] && args[3][:max_results]) || 100
18
19
  end
19
20
 
20
21
  def fetch_contacts_using_access_token access_token, token_type
@@ -25,7 +26,7 @@ module OmniContacts
25
26
  private
26
27
 
27
28
  def contacts_req_params
28
- {"max-results" => "100"}
29
+ {"max-results" => @max_results.to_s}
29
30
  end
30
31
 
31
32
  def contacts_req_headers token, token_type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnicontacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-25 00:00:00.000000000 Z
12
+ date: 2012-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack