rspec-storage 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76c128b4e4f8211fe9116887d23d6a79ce795c9e
4
- data.tar.gz: 5c5f8008dce4ef1f2a8e2806b3f434957e7d12dc
3
+ metadata.gz: 8d54e4a71863f593e7f102ac3986a9b54da1bdfd
4
+ data.tar.gz: a2f009dd8ad542a746824ad73b6c2df49560928e
5
5
  SHA512:
6
- metadata.gz: f3f8115b407f013648b436a57256566f2a9ab563702215fdea03f99d64202b62728fa164d72963292eafcbbf005a6fcb22704d32fb38645269ec98921e9b5161
7
- data.tar.gz: dbea80fcee25b3c0bdaf280f90fd20c161457ec90070fecb76756a22f7c0813a9e51f50a992db15de3356853ab4ffab155ae807bdb8891854092167778ee1b18
6
+ metadata.gz: a102411b32f1fcb254c87210453b760b58bc4da13b65932fad218a77d6a999b8130a800daddd87b0ab711a43961ce64d916c13eb601526074efa68774bcd9b12
7
+ data.tar.gz: '02176943a4d719ea69f277149acda0f9daa072cea7704463a19a1d4f8dc8ada3ed9de7d993c28fec72452ab806e3cec072d724e8064bdbc305256c56b99a884c'
data/README.md CHANGED
@@ -23,6 +23,16 @@ Or install it yourself as:
23
23
  - S3 (s3://)
24
24
  - GCS (gs://)
25
25
 
26
+ # Environment Variables
27
+
28
+ - S3
29
+ - AWS_ACCESS_KEY_ID
30
+ - AWS_SECRET_ACCESS_KEY
31
+ - AWS_REGION
32
+
33
+ - GCS
34
+ - GOOGLE_APPLICATION_CREDENTIALS
35
+
26
36
  ## Usage
27
37
 
28
38
  ```
@@ -31,6 +41,20 @@ $ rspec -r rspec/storage spec/example_spec.rb -f doc -f json s3://your-bucket/sp
31
41
 
32
42
  You need to require `rspec/storage` before rspec init process
33
43
 
44
+ ## With webmock
45
+
46
+ If you use webmock, you may need to add snippet to spec_helper as workaround.
47
+
48
+ ```ruby
49
+ RSpec.configure do |config|
50
+ # ...
51
+
52
+ config.after :suite do
53
+ WebMock.allow_net_connect!
54
+ end
55
+ end
56
+ ```
57
+
34
58
  ## Development
35
59
 
36
60
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,6 +1,5 @@
1
1
  require "rspec/core/formatters"
2
- require "rspec/core/formatters/base_formatter"
3
- require "rspec/core/formatters/base_text_formatter"
2
+ require "rspec/core/reporter"
4
3
  require "uri"
5
4
 
6
5
  module RSpec
@@ -21,7 +20,20 @@ module RSpec
21
20
  end
22
21
  end
23
22
  end
23
+
24
+ module ReporterExtension
25
+ def close
26
+ super
27
+ registered_listeners(:close).each do |formatter|
28
+ output = formatter.output
29
+ if output.respond_to?(:close) && output.respond_to?(:closed?)
30
+ output.close if !output.closed? && output != $stdout && output != $stderr
31
+ end
32
+ end
33
+ end
34
+ end
24
35
  end
25
36
  end
26
37
 
27
38
  RSpec::Core::Formatters::Loader.prepend(RSpec::Storage::FormattersLoaderExtension)
39
+ RSpec::Core::Reporter.prepend(RSpec::Storage::ReporterExtension)
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Storage
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec