rapleaf_api 1.2.3.0 → 1.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rapleaf_api.rb +3 -6
- data/rapleaf_api.gemspec +1 -1
- metadata +4 -25
data/lib/rapleaf_api.rb
CHANGED
@@ -98,20 +98,17 @@ module RapleafApi
|
|
98
98
|
get_json_response(url, options[:show_available])
|
99
99
|
end
|
100
100
|
|
101
|
-
def bulk_query(set,
|
101
|
+
def bulk_query(set, show_available = false)
|
102
102
|
path = @BULK_PATH
|
103
|
-
if
|
104
|
-
path = path + "&show_available=true"
|
105
|
-
end
|
103
|
+
path += "&show_available=true" if show_available
|
106
104
|
|
107
|
-
get_bulk_response(path,JSON.generate(set))
|
105
|
+
get_bulk_response(path, JSON.generate(set))
|
108
106
|
end
|
109
107
|
|
110
108
|
private
|
111
109
|
|
112
110
|
def get_bulk_response(path, data)
|
113
111
|
response = Timeout::timeout(@TIMEOUT) do
|
114
|
-
http_client.post(path, data, HEADERS)
|
115
112
|
begin
|
116
113
|
http_client.post(path, data, HEADERS)
|
117
114
|
rescue EOFError # Connection cut out. Just try a second time.
|
data/rapleaf_api.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapleaf_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 3
|
10
|
-
- 0
|
11
|
-
version: 1.2.3.0
|
4
|
+
prerelease:
|
5
|
+
version: 1.2.3.1
|
12
6
|
platform: ruby
|
13
7
|
authors:
|
14
8
|
- Rapleaf
|
@@ -16,8 +10,7 @@ autorequire:
|
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
12
|
|
19
|
-
date: 2011-08-23 00:00:00
|
20
|
-
default_executable:
|
13
|
+
date: 2011-08-23 00:00:00 Z
|
21
14
|
dependencies:
|
22
15
|
- !ruby/object:Gem::Dependency
|
23
16
|
name: json
|
@@ -27,9 +20,6 @@ dependencies:
|
|
27
20
|
requirements:
|
28
21
|
- - ">="
|
29
22
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 3
|
31
|
-
segments:
|
32
|
-
- 0
|
33
23
|
version: "0"
|
34
24
|
type: :runtime
|
35
25
|
version_requirements: *id001
|
@@ -41,9 +31,6 @@ dependencies:
|
|
41
31
|
requirements:
|
42
32
|
- - ">="
|
43
33
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
|
-
segments:
|
46
|
-
- 0
|
47
34
|
version: "0"
|
48
35
|
type: :development
|
49
36
|
version_requirements: *id002
|
@@ -66,7 +53,6 @@ files:
|
|
66
53
|
- Rakefile
|
67
54
|
- lib/rapleaf_api.rb
|
68
55
|
- rapleaf_api.gemspec
|
69
|
-
has_rdoc: true
|
70
56
|
homepage: http://www.rapleaf.com
|
71
57
|
licenses: []
|
72
58
|
|
@@ -85,24 +71,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
71
|
requirements:
|
86
72
|
- - ">="
|
87
73
|
- !ruby/object:Gem::Version
|
88
|
-
hash: 3
|
89
|
-
segments:
|
90
|
-
- 0
|
91
74
|
version: "0"
|
92
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
76
|
none: false
|
94
77
|
requirements:
|
95
78
|
- - ">="
|
96
79
|
- !ruby/object:Gem::Version
|
97
|
-
hash: 11
|
98
|
-
segments:
|
99
|
-
- 1
|
100
|
-
- 2
|
101
80
|
version: "1.2"
|
102
81
|
requirements: []
|
103
82
|
|
104
83
|
rubyforge_project: rapleaf_api
|
105
|
-
rubygems_version: 1.
|
84
|
+
rubygems_version: 1.7.2
|
106
85
|
signing_key:
|
107
86
|
specification_version: 3
|
108
87
|
summary: A library for interacting with Rapleaf's Personalization API.
|