rapleaf_api 1.2.3.1 → 1.2.3.2

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.
Files changed (3) hide show
  1. data/lib/rapleaf_api.rb +2 -1
  2. data/rapleaf_api.gemspec +2 -2
  3. metadata +25 -4
data/lib/rapleaf_api.rb CHANGED
@@ -32,6 +32,7 @@ module RapleafApi
32
32
  @BASE_PATH = "/v4/dr?api_key=#{@API_KEY}"
33
33
  @BULK_PATH = "/v4/bulk?api_key=#{@API_KEY}"
34
34
  @TIMEOUT = options[:timeout] || 2
35
+ @BULK_TIMEOUT = options[:bulk_timeout] || 30
35
36
  @CA_FILE = options[:ca_file] # set to your system-wide root ca cert file
36
37
  # if you're having ssl verification issues
37
38
  end
@@ -108,7 +109,7 @@ module RapleafApi
108
109
  private
109
110
 
110
111
  def get_bulk_response(path, data)
111
- response = Timeout::timeout(@TIMEOUT) do
112
+ response = Timeout::timeout(@BULK_TIMEOUT) do
112
113
  begin
113
114
  http_client.post(path, data, HEADERS)
114
115
  rescue EOFError # Connection cut out. Just try a second time.
data/rapleaf_api.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rapleaf_api}
5
- s.version = "1.2.3.1"
5
+ s.version = "1.2.3.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rapleaf"]
9
- s.date = %q{2011-08-23}
9
+ s.date = %q{2011-08-29}
10
10
  s.description = %q{A library for interacting with Rapleaf's Personalization API.}
11
11
  s.email = %q{developer @nospam@ rapleaf.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.md", "lib/rapleaf_api.rb"]
metadata CHANGED
@@ -1,8 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapleaf_api
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.2.3.1
4
+ hash: 71
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 3
10
+ - 2
11
+ version: 1.2.3.2
6
12
  platform: ruby
7
13
  authors:
8
14
  - Rapleaf
@@ -10,7 +16,8 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2011-08-23 00:00:00 Z
19
+ date: 2011-08-29 00:00:00 -07:00
20
+ default_executable:
14
21
  dependencies:
15
22
  - !ruby/object:Gem::Dependency
16
23
  name: json
@@ -20,6 +27,9 @@ dependencies:
20
27
  requirements:
21
28
  - - ">="
22
29
  - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
23
33
  version: "0"
24
34
  type: :runtime
25
35
  version_requirements: *id001
@@ -31,6 +41,9 @@ dependencies:
31
41
  requirements:
32
42
  - - ">="
33
43
  - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
34
47
  version: "0"
35
48
  type: :development
36
49
  version_requirements: *id002
@@ -53,6 +66,7 @@ files:
53
66
  - Rakefile
54
67
  - lib/rapleaf_api.rb
55
68
  - rapleaf_api.gemspec
69
+ has_rdoc: true
56
70
  homepage: http://www.rapleaf.com
57
71
  licenses: []
58
72
 
@@ -71,17 +85,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
85
  requirements:
72
86
  - - ">="
73
87
  - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
74
91
  version: "0"
75
92
  required_rubygems_version: !ruby/object:Gem::Requirement
76
93
  none: false
77
94
  requirements:
78
95
  - - ">="
79
96
  - !ruby/object:Gem::Version
97
+ hash: 11
98
+ segments:
99
+ - 1
100
+ - 2
80
101
  version: "1.2"
81
102
  requirements: []
82
103
 
83
104
  rubyforge_project: rapleaf_api
84
- rubygems_version: 1.7.2
105
+ rubygems_version: 1.3.7
85
106
  signing_key:
86
107
  specification_version: 3
87
108
  summary: A library for interacting with Rapleaf's Personalization API.