sailthru-client 1.03 → 1.04

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/README.md +1 -1
  2. data/lib/sailthru.rb +4 -4
  3. metadata +4 -4
data/README.md CHANGED
@@ -22,7 +22,7 @@ It can make requests to following [API calls](http://docs.sailthru.com/api):
22
22
 
23
23
  Examples
24
24
  --------
25
- require 'lib/sailthru'
25
+ require 'sailthru' #if using as gem
26
26
 
27
27
  api_key = "api_key";
28
28
  api_secret = 'secret';
data/lib/sailthru.rb CHANGED
@@ -3,11 +3,11 @@ require 'uri'
3
3
  require 'cgi'
4
4
  require 'rubygems'
5
5
  require 'json'
6
- require 'md5'
6
+ require 'digest/md5'
7
7
 
8
8
  module Sailthru
9
9
 
10
- Version = VERSION = '1.03'
10
+ Version = VERSION = '1.04'
11
11
 
12
12
  class SailthruClientException < Exception
13
13
  end
@@ -57,7 +57,7 @@ module Sailthru
57
57
  #
58
58
  # Returns an MD5 hash of the signature string for an API call.
59
59
  def get_signature_hash(params, secret)
60
- MD5.md5(get_signature_string(params, secret)).to_s # debuggin
60
+ Digest::MD5.hexdigest(get_signature_string(params, secret)).to_s
61
61
  end
62
62
 
63
63
 
@@ -673,4 +673,4 @@ module Sailthru
673
673
  end
674
674
  end
675
675
  end
676
- end
676
+ end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sailthru-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 3
9
- version: "1.03"
8
+ - 4
9
+ version: "1.04"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Prajwal Tuladhar
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-03 00:00:00 -05:00
17
+ date: 2011-02-08 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency