rspec-storage 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec/storage/s3.rb +3 -0
- data/lib/rspec/storage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ae6e23c5e97e6501344875d1ffd4d2d3c42438e
|
4
|
+
data.tar.gz: e90f8e1b89e39409eb3e288f4abed4624694dc53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ed46be5ade83b391ec88e44a5bd4580b5fd96f7a89133dcf0f7ffaa208e6703c7cbb8013ca2e28a0a15d156464290c27de9a6a3281f9dd37bddc30ec5bc848
|
7
|
+
data.tar.gz: a43ebb8cca5ad36f84f58240773663e1b65525c9d19fc34699fff65b3c90636a5d682cc5746afeee8e387be4f7e091d1b1464893c105589e9f763b0442b3f83d
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ Or install it yourself as:
|
|
36
36
|
## Usage
|
37
37
|
|
38
38
|
```
|
39
|
-
$ rspec -r rspec/storage spec/example_spec.rb -f doc -f json s3://your-bucket/spec_result.json
|
39
|
+
$ rspec -r rspec/storage spec/example_spec.rb -f doc -f json -o s3://your-bucket/spec_result.json
|
40
40
|
```
|
41
41
|
|
42
42
|
You need to require `rspec/storage` before rspec init process
|
data/lib/rspec/storage/s3.rb
CHANGED
@@ -36,6 +36,9 @@ begin
|
|
36
36
|
@tempfile.flush
|
37
37
|
@tempfile.rewind
|
38
38
|
@s3_client.put_object(bucket: @bucket, key: @key, body: @tempfile)
|
39
|
+
@s3_client.wait_until(:object_exists, bucket: @bucket, key: @key) do |w|
|
40
|
+
w.max_attempts = 5
|
41
|
+
end
|
39
42
|
$stdout.puts "Upload to #{@uri.to_s}"
|
40
43
|
ensure
|
41
44
|
@tempfile.close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.6.
|
140
|
+
rubygems_version: 2.6.11
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: RSpec output test report to any stroage
|