mock-aws-s3 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/lib/mock/aws/s3/object.rb +3 -3
- data/mock-aws-s3.gemspec +6 -5
- metadata +5 -11
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/*.gem
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
data/lib/mock/aws/s3/object.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'fileutils'
|
2
2
|
require 'ostruct'
|
3
3
|
|
4
4
|
module AWS
|
@@ -38,7 +38,7 @@ module AWS
|
|
38
38
|
bucket = bucket_name(bucket)
|
39
39
|
source_key = path!(bucket, key)
|
40
40
|
target_key = path!(bucket, copy_key)
|
41
|
-
|
41
|
+
FileUtils.makedirs File.dirname(target_key)
|
42
42
|
FileUtils.cp_r source_key, target_key
|
43
43
|
end
|
44
44
|
|
@@ -68,7 +68,7 @@ module AWS
|
|
68
68
|
path = path!(bucket, key, options)
|
69
69
|
infer_content_type!(key, options)
|
70
70
|
|
71
|
-
|
71
|
+
FileUtils.makedirs File.dirname(path)
|
72
72
|
File.open(path, 'wb') do |f|
|
73
73
|
f.write data
|
74
74
|
end
|
data/mock-aws-s3.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mock-aws-s3}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.6.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joshua Krall"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-12}
|
13
13
|
s.description = %q{A Mock AWS::S3 so you can use it in your tests without hitting the network.}
|
14
14
|
s.email = %q{joshuakrall@pobox.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
20
|
+
".gitignore",
|
21
|
+
"LICENSE",
|
21
22
|
"README.rdoc",
|
22
23
|
"Rakefile",
|
23
24
|
"VERSION",
|
@@ -32,7 +33,7 @@ Gem::Specification.new do |s|
|
|
32
33
|
s.homepage = %q{http://github.com/jkrall/mock-aws-s3}
|
33
34
|
s.rdoc_options = ["--charset=UTF-8"]
|
34
35
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.3.
|
36
|
+
s.rubygems_version = %q{1.3.6}
|
36
37
|
s.summary = %q{A Mock AWS::S3 so you can use it in your tests without hitting the network}
|
37
38
|
s.test_files = [
|
38
39
|
"spec/mock-aws-s3_spec.rb",
|
@@ -43,7 +44,7 @@ Gem::Specification.new do |s|
|
|
43
44
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
45
|
s.specification_version = 3
|
45
46
|
|
46
|
-
if Gem::Version.new(Gem::
|
47
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
47
48
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
48
49
|
else
|
49
50
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mock-aws-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 11
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
|
-
-
|
7
|
+
- 6
|
9
8
|
- 0
|
10
|
-
version: 0.
|
9
|
+
version: 0.6.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Joshua Krall
|
@@ -15,18 +14,16 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2011-01-12 00:00:00 -06:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rspec
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 13
|
30
27
|
segments:
|
31
28
|
- 1
|
32
29
|
- 2
|
@@ -44,6 +41,7 @@ extra_rdoc_files:
|
|
44
41
|
- LICENSE
|
45
42
|
- README.rdoc
|
46
43
|
files:
|
44
|
+
- .gitignore
|
47
45
|
- LICENSE
|
48
46
|
- README.rdoc
|
49
47
|
- Rakefile
|
@@ -65,27 +63,23 @@ rdoc_options:
|
|
65
63
|
require_paths:
|
66
64
|
- lib
|
67
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
66
|
requirements:
|
70
67
|
- - ">="
|
71
68
|
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
69
|
segments:
|
74
70
|
- 0
|
75
71
|
version: "0"
|
76
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
73
|
requirements:
|
79
74
|
- - ">="
|
80
75
|
- !ruby/object:Gem::Version
|
81
|
-
hash: 3
|
82
76
|
segments:
|
83
77
|
- 0
|
84
78
|
version: "0"
|
85
79
|
requirements: []
|
86
80
|
|
87
81
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.3.
|
82
|
+
rubygems_version: 1.3.6
|
89
83
|
signing_key:
|
90
84
|
specification_version: 3
|
91
85
|
summary: A Mock AWS::S3 so you can use it in your tests without hitting the network
|