rapleaf_api 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/Rakefile +1 -1
- data/lib/rapleaf_api.rb +2 -2
- data/rapleaf_api.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('rapleaf_api', '1.2.
|
5
|
+
Echoe.new('rapleaf_api', '1.2.2') do |p|
|
6
6
|
p.author = 'Rapleaf'
|
7
7
|
p.description = "A library for interacting with Rapleaf's Personalization API."
|
8
8
|
p.email = 'developer @nospam@ rapleaf.com'
|
data/lib/rapleaf_api.rb
CHANGED
@@ -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.
|
27
|
+
HEADERS = {'User-Agent' => 'RapleafApi/Ruby/1.2.2'}
|
28
28
|
|
29
29
|
class Api
|
30
30
|
def initialize(api_key, options = {})
|
@@ -42,7 +42,7 @@ module RapleafApi
|
|
42
42
|
# account is not subscribed to but for which Rapleaf has data
|
43
43
|
def query_by_email(email, options = {})
|
44
44
|
if options[:hash_email]
|
45
|
-
query_by_sha1(Digest::SHA1.hexdigest(email), :show_available => options[:show_available])
|
45
|
+
query_by_sha1(Digest::SHA1.hexdigest(email.downcase), :show_available => options[:show_available])
|
46
46
|
else
|
47
47
|
get_json_response("#{@BASE_PATH}&email=#{url_encode(email)}", options[:show_available])
|
48
48
|
end
|
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.
|
5
|
+
s.version = "1.2.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-
|
9
|
+
s.date = %q{2011-05-16}
|
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,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapleaf_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 2
|
10
|
+
version: 1.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rapleaf
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-16 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|