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 CHANGED
@@ -1,3 +1,5 @@
1
+ v1.2.2. Downcase emails before hashing
2
+
1
3
  v1.2.1. Support ca_file instead of ca_path in constructor
2
4
 
3
5
  v1.2.0. Bump version number to match User-Agent
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.1') do |p|
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.0'}
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.1"
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-03-22}
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
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-03-22 00:00:00 -07:00
18
+ date: 2011-05-16 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency