cloudfront-signer 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,11 +1,11 @@
1
1
  cloudfront-signer
2
2
  =================
3
3
 
4
- A fork of Dylan Vaughn's [excellent signing gem](https://github.com/stlondemand/aws_cf_signer).
4
+ A fork and re-write of Dylan Vaughn's [signing gem](https://github.com/stlondemand/aws_cf_signer).
5
5
 
6
6
  See Amazon docs for [Using a Signed URL to Serve Private Content](http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/index.html?PrivateContent.html)
7
7
 
8
- This version uses all class methods and a configure method to initialize options.
8
+ This version uses all class methods and a configure method to set options.
9
9
 
10
10
  Seperate helper methods exist for safe signing of urls and stream paths, each of which has slightly different requirements. For example, urls must not contain any spaces, whereas a stream path can. Also we might not want to html escape a url or path if it is being supplied to a JavaScript block or Flash object.
11
11
 
@@ -26,7 +26,11 @@ e.g.
26
26
 
27
27
  require 'cloudfront-signer'
28
28
 
29
- AWS::CF::Signer.configure! "#{Rails.root}/keys/pk-APKAIKURNAUNR2BDSFDMA.pem"
29
+ AWS::CF::Signer.configure do |config|
30
+ config.key_path = key_path
31
+ config.key_pair_id = "XXYYZZ"
32
+ config.default_expires = 3600
33
+ end
30
34
 
31
35
 
32
36
  Usage
@@ -76,15 +80,13 @@ You can also pass in a path to a policy file. This will supersede any other poli
76
80
  url = AWS::CF::Signer.sign_url('http://d84l721fxaaqy9.cloudfront.net/downloads/pictures.tgz', :policy_file => '/path/to/policy/file.txt')
77
81
 
78
82
 
79
- Note on Patches/Pull Requests (verbatum from Dylan's original repository)
83
+ Patches/Pull Requests
80
84
  -------------------------------------------------------------------------
81
85
 
82
86
  * Fork the project.
83
87
  * Make your feature addition or bug fix.
84
- * Add tests for it. This is important so I don't break it in a
85
- future version unintentionally.
86
- * Commit, do not mess with rakefile, version, or history.
87
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
88
+ * Add tests for it.
89
+ * Commit
88
90
  * Send me a pull request. Bonus points for topic branches.
89
91
 
90
92
  Attributions
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = ["tony@58bits.com"]
10
10
  s.homepage = "http://github.com/58bits/cloudfront-signer"
11
11
  s.summary = %q{A gem to sign url and stream paths for Amazon CloudFront private content.}
12
- s.description = %q{A fork of Dylan Vaughn's signing gem - https://github.com/stlondemand/aws_cf_signer. The gem has been rewritten to use class methods and includes specific signing methods for both url and streaming paths, including html 'safe' escpaed versions of each.}
12
+ s.description = %q{A gem to sign url and stream paths for Amazon CloudFront private content. Includes specific signing methods for both url and streaming paths, including html 'safe' escpaed versions of each.}
13
13
 
14
14
  s.rubyforge_project = "cloudfront-signer"
15
15
 
@@ -1,5 +1,5 @@
1
1
  module AWS
2
2
  module CF
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudfront-signer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-24 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
- description: A fork of Dylan Vaughn's signing gem - https://github.com/stlondemand/aws_cf_signer.
31
- The gem has been rewritten to use class methods and includes specific signing methods
32
- for both url and streaming paths, including html 'safe' escpaed versions of each.
30
+ description: A gem to sign url and stream paths for Amazon CloudFront private content.
31
+ Includes specific signing methods for both url and streaming paths, including html
32
+ 'safe' escpaed versions of each.
33
33
  email:
34
34
  - tony@58bits.com
35
35
  executables: []