appoxy_rails 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/api/client.rb +16 -5
  2. metadata +3 -3
data/lib/api/client.rb CHANGED
@@ -66,14 +66,25 @@ module Appoxy
66
66
  end
67
67
 
68
68
 
69
- def add_params(command_path, hash)
69
+ # old way
70
+ def add_params(command_path, hash)
70
71
  ts = Appoxy::Api::Signatures.generate_timestamp(Time.now.gmtime)
71
- #p "hash_to s" + command_path + Appoxy::Api::Signatures.hash_to_s(hash)
72
- sig = Appoxy::Api::Signatures.generate_signature(command_path + Appoxy::Api::Signatures.hash_to_s(hash), ts, secret_key)
73
- extra_params = {'sigv'=>"0.2", 'sig' => sig, 'timestamp' => ts, 'access_key' => access_key}
72
+ # puts 'timestamp = ' + ts
73
+ sig = Appoxy::Api::Signatures.generate_signature(command_path, ts, secret_key)
74
+
75
+ extra_params = {'sigv'=>"0.1", 'sig' => sig, 'timestamp' => ts, 'access_key' => access_key}
74
76
  hash.merge!(extra_params)
75
77
 
76
- end
78
+ end
79
+
80
+ # def add_params(command_path, hash)
81
+ # ts = Appoxy::Api::Signatures.generate_timestamp(Time.now.gmtime)
82
+ # #p "hash_to s" + command_path + Appoxy::Api::Signatures.hash_to_s(hash)
83
+ # sig = Appoxy::Api::Signatures.generate_signature(command_path + Appoxy::Api::Signatures.hash_to_s(hash), ts, secret_key)
84
+ # extra_params = {'sigv'=>"0.2", 'sig' => sig, 'timestamp' => ts, 'access_key' => access_key}
85
+ # hash.merge!(extra_params)
86
+ #
87
+ # end
77
88
 
78
89
 
79
90
  def append_params(host, params)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 9
9
- version: 0.0.9
8
+ - 10
9
+ version: 0.0.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-28 00:00:00 -08:00
17
+ date: 2010-12-29 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency