rapleaf_api 1.2.3.2 → 1.2.3.3

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.
data/README.md CHANGED
@@ -71,3 +71,4 @@ Contributors
71
71
  ============
72
72
  - Greg Poulos [greg at rapleaf dot com]
73
73
  - Sean Carr [sean at rapleaf dot com]
74
+ - Vlad Shulman [vlad at rapleaf dot com]
data/lib/rapleaf_api.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2010 Rapleaf
1
+ # Copyright 2011 Rapleaf
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ include ERB::Util
24
24
  module RapleafApi
25
25
  HOST = "personalize.rapleaf.com"
26
26
  PORT = 443
27
- HEADERS = {'User-Agent' => 'RapleafApi/Ruby/1.2.3', 'Content-Type' => 'application/json'}
27
+ HEADERS = {'User-Agent' => 'RapleafApi/Ruby/1.2.3'}
28
28
 
29
29
  class Api
30
30
  def initialize(api_key, options = {})
@@ -111,9 +111,9 @@ module RapleafApi
111
111
  def get_bulk_response(path, data)
112
112
  response = Timeout::timeout(@BULK_TIMEOUT) do
113
113
  begin
114
- http_client.post(path, data, HEADERS)
114
+ http_client.post(path, data, HEADERS.merge('Content-Type' => 'application/json'))
115
115
  rescue EOFError # Connection cut out. Just try a second time.
116
- http_client.post(path, data, HEADERS)
116
+ http_client.post(path, data, HEADERS.merge('Content-Type' => 'application/json'))
117
117
  end
118
118
  end
119
119
 
data/rapleaf_api.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rapleaf_api}
5
- s.version = "1.2.3.2"
5
+ s.version = "1.2.3.3"
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"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapleaf_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
5
- prerelease: false
4
+ hash: 69
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 3
10
- - 2
11
- version: 1.2.3.2
10
+ - 3
11
+ version: 1.2.3.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Rapleaf
@@ -16,8 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-29 00:00:00 -07:00
20
- default_executable:
19
+ date: 2011-08-29 00:00:00 Z
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: json
@@ -66,7 +65,6 @@ files:
66
65
  - Rakefile
67
66
  - lib/rapleaf_api.rb
68
67
  - rapleaf_api.gemspec
69
- has_rdoc: true
70
68
  homepage: http://www.rapleaf.com
71
69
  licenses: []
72
70
 
@@ -102,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
100
  requirements: []
103
101
 
104
102
  rubyforge_project: rapleaf_api
105
- rubygems_version: 1.3.7
103
+ rubygems_version: 1.8.11
106
104
  signing_key:
107
105
  specification_version: 3
108
106
  summary: A library for interacting with Rapleaf's Personalization API.