dbalatero-signed_request 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ user of this library.
20
20
  'param2' => 'bar' }
21
21
  signature = SignedRequest.sign(params, key)
22
22
 
23
- params['signature'] = key
23
+ params['signature'] = signature
24
24
 
25
25
  # post it to the receiver.
26
26
  req = Net::HTTP::Get.new('/secret/url')
data/Rakefile CHANGED
@@ -5,10 +5,11 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "signed_request"
8
- gem.summary = %Q{TODO}
8
+ gem.summary = %Q{A simple gem that allows you to sign HTTP requests between two parties with a shared secret key.}
9
9
  gem.email = "dbalatero@evri.com"
10
10
  gem.homepage = "http://github.com/dbalatero/signed_request"
11
11
  gem.authors = ["David Balatero"]
12
+ gem.rubyforge_project = 'evrigems'
12
13
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
14
  end
14
15
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -3,7 +3,7 @@ require 'openssl'
3
3
  require 'openssl/digest'
4
4
 
5
5
  module SignedRequest
6
- STRIP_PARAMS = ['action', 'controller']
6
+ STRIP_PARAMS = ['action', 'controller', 'format']
7
7
 
8
8
  # Sign a request on the sending end.
9
9
  def self.sign(params, secret_key)
@@ -0,0 +1,47 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{signed_request}
5
+ s.version = "1.0.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["David Balatero"]
9
+ s.date = %q{2009-06-29}
10
+ s.email = %q{dbalatero@evri.com}
11
+ s.extra_rdoc_files = [
12
+ "LICENSE",
13
+ "README.rdoc"
14
+ ]
15
+ s.files = [
16
+ ".document",
17
+ ".gitignore",
18
+ "LICENSE",
19
+ "README.rdoc",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "lib/signed_request.rb",
23
+ "signed_request.gemspec",
24
+ "spec/signed_request_spec.rb",
25
+ "spec/spec_helper.rb"
26
+ ]
27
+ s.homepage = %q{http://github.com/dbalatero/signed_request}
28
+ s.rdoc_options = ["--charset=UTF-8"]
29
+ s.require_paths = ["lib"]
30
+ s.rubyforge_project = %q{evrigems}
31
+ s.rubygems_version = %q{1.3.4}
32
+ s.summary = %q{A simple gem that allows you to sign HTTP requests between two parties with a shared secret key.}
33
+ s.test_files = [
34
+ "spec/signed_request_spec.rb",
35
+ "spec/spec_helper.rb"
36
+ ]
37
+
38
+ if s.respond_to? :specification_version then
39
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
43
+ else
44
+ end
45
+ else
46
+ end
47
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbalatero-signed_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Balatero
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-22 00:00:00 -07:00
12
+ date: 2009-06-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -30,6 +30,7 @@ files:
30
30
  - Rakefile
31
31
  - VERSION
32
32
  - lib/signed_request.rb
33
+ - signed_request.gemspec
33
34
  - spec/signed_request_spec.rb
34
35
  - spec/spec_helper.rb
35
36
  has_rdoc: false
@@ -53,11 +54,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
54
  version:
54
55
  requirements: []
55
56
 
56
- rubyforge_project:
57
+ rubyforge_project: evrigems
57
58
  rubygems_version: 1.2.0
58
59
  signing_key:
59
60
  specification_version: 3
60
- summary: TODO
61
+ summary: A simple gem that allows you to sign HTTP requests between two parties with a shared secret key.
61
62
  test_files:
62
63
  - spec/signed_request_spec.rb
63
64
  - spec/spec_helper.rb