awsraw 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/awsraw/s3/http_request_builder.rb +2 -0
- data/lib/awsraw/version.rb +1 -1
- data/spec/s3/client_spec.rb +2 -2
- data/spec/s3/http_request_builder_spec.rb +1 -1
- data/spec/s3/request_spec.rb +1 -1
- data/spec/s3/signer_spec.rb +11 -9
- metadata +11 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 340d4202747685ddfd86dab87ae9730af3fddf89
|
4
|
+
data.tar.gz: 5229cdcce0449aca086607905fb4a84e325d1417
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fb18c1d7f30d2a2811ec8ca99fffce33291561374a96bf9f7d4d28ec894e632c22f6b7b64c33fe65c089825c174935810521324b94426cdf25560b8183344554
|
7
|
+
data.tar.gz: 45d4d12d2242fcfe51658260fb3b6f1deb7322b441bcc20d31a22380a443f264196d027eddbe87900b6f8a2634a734d3aac3b2edce472243bac115c088e38bcc
|
data/lib/awsraw/version.rb
CHANGED
data/spec/s3/client_spec.rb
CHANGED
@@ -6,7 +6,7 @@ describe AWSRaw::S3::Client do
|
|
6
6
|
|
7
7
|
describe "#request!" do
|
8
8
|
it "returns if the response indicates success" do
|
9
|
-
response =
|
9
|
+
response = double(:failure? => false)
|
10
10
|
subject.stub(:request => response)
|
11
11
|
|
12
12
|
expect {
|
@@ -15,7 +15,7 @@ describe AWSRaw::S3::Client do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
it "raises an error if the response indicates failure" do
|
18
|
-
response =
|
18
|
+
response = double(:failure? => true)
|
19
19
|
subject.stub(:request => response)
|
20
20
|
|
21
21
|
expect {
|
data/spec/s3/request_spec.rb
CHANGED
data/spec/s3/signer_spec.rb
CHANGED
@@ -9,7 +9,7 @@ describe AWSRaw::S3::Signer do
|
|
9
9
|
context "examples from Amazon docs" do
|
10
10
|
context "Example Object GET" do
|
11
11
|
it "signs a get request correctly" do
|
12
|
-
request =
|
12
|
+
request = double(
|
13
13
|
:method => "GET",
|
14
14
|
:host => "s3.amazonaws.com",
|
15
15
|
:path => "/johnsmith/photos/puppy.jpg",
|
@@ -24,7 +24,7 @@ describe AWSRaw::S3::Signer do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "signs an upload correctly" do
|
27
|
-
request =
|
27
|
+
request = double(
|
28
28
|
:method => "PUT",
|
29
29
|
:host => "s3.amazonaws.com",
|
30
30
|
:path => "/static.johnsmith.net/db-backup.dat.gz",
|
@@ -52,13 +52,15 @@ describe AWSRaw::S3::Signer do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
context "Example Fetch" do
|
55
|
-
let(:request)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
let(:request) do
|
56
|
+
double(
|
57
|
+
:method => "GET",
|
58
|
+
:host => "johnsmith.s3.amazonaws.com",
|
59
|
+
:path => "/",
|
60
|
+
:query => "acl",
|
61
|
+
:headers => { "Date" => "Tue, 27 Mar 2007 19:44:46 +0000" }
|
62
|
+
)
|
63
|
+
end
|
62
64
|
|
63
65
|
it "generates the correct string to sign" do
|
64
66
|
subject.string_to_sign(request).should ==
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awsraw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Pete Yandell
|
@@ -11,38 +10,34 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-07-19 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rake
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
22
|
type: :development
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: rspec
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - '>='
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: '0'
|
40
36
|
type: :development
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- -
|
40
|
+
- - '>='
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: '0'
|
48
43
|
description: A client for Amazon Web Services in the style of FlickRaw
|
@@ -78,27 +73,26 @@ files:
|
|
78
73
|
homepage: http://github.com/envato/awsraw
|
79
74
|
licenses:
|
80
75
|
- MIT
|
76
|
+
metadata: {}
|
81
77
|
post_install_message:
|
82
78
|
rdoc_options: []
|
83
79
|
require_paths:
|
84
80
|
- lib
|
85
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
82
|
requirements:
|
88
|
-
- -
|
83
|
+
- - '>='
|
89
84
|
- !ruby/object:Gem::Version
|
90
85
|
version: '0'
|
91
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
87
|
requirements:
|
94
|
-
- -
|
88
|
+
- - '>='
|
95
89
|
- !ruby/object:Gem::Version
|
96
90
|
version: '0'
|
97
91
|
requirements: []
|
98
92
|
rubyforge_project: awsraw
|
99
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.0.3
|
100
94
|
signing_key:
|
101
|
-
specification_version:
|
95
|
+
specification_version: 4
|
102
96
|
summary: Minimal AWS client
|
103
97
|
test_files:
|
104
98
|
- spec/s3/client_spec.rb
|
@@ -107,4 +101,3 @@ test_files:
|
|
107
101
|
- spec/s3/query_string_signer_spec.rb
|
108
102
|
- spec/s3/request_spec.rb
|
109
103
|
- spec/s3/signer_spec.rb
|
110
|
-
has_rdoc:
|