rspec-storage 0.1.2 → 0.2.0

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
- SHA1:
3
- metadata.gz: 8ae6e23c5e97e6501344875d1ffd4d2d3c42438e
4
- data.tar.gz: e90f8e1b89e39409eb3e288f4abed4624694dc53
2
+ SHA256:
3
+ metadata.gz: 21fe7094045e2136a0b8f713b74231c7a185a42257f5dccfaed3c99794bf47aa
4
+ data.tar.gz: b7ec4f79f5bfebc167afc92f2b889da0a24bc3e512e5e1ffabd0f30561c54158
5
5
  SHA512:
6
- metadata.gz: 05ed46be5ade83b391ec88e44a5bd4580b5fd96f7a89133dcf0f7ffaa208e6703c7cbb8013ca2e28a0a15d156464290c27de9a6a3281f9dd37bddc30ec5bc848
7
- data.tar.gz: a43ebb8cca5ad36f84f58240773663e1b65525c9d19fc34699fff65b3c90636a5d682cc5746afeee8e387be4f7e091d1b1464893c105589e9f763b0442b3f83d
6
+ metadata.gz: f8fb2139e79d53359e7b94834d4cb8966df4c728cf3c7a7774830b9340a8aa49c39b0d8f73e4926bbb573668aabac9909923b5642d7078a9f87444b659f73aff
7
+ data.tar.gz: dc1ea12c8c7959bbf0d2d1a93c37d245924c7948c4258468c289a253207deec18562d92ab11aa5edae0d658ff12eee2f7bc25ec5124dffa72ccee5bca9ca487f
@@ -2,4 +2,7 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.4.0
5
- before_install: gem install bundler -v 1.13.7
5
+ before_install: gem install bundler -v 1.15.1
6
+ gemfile:
7
+ - gemfiles/rspec_core_3.3.gemfile
8
+ - gemfiles/rspec_core_3.6.gemfile
@@ -0,0 +1,7 @@
1
+ appraise "rspec-core-3.3" do
2
+ gem "rspec-core", "~> 3.3.0"
3
+ end
4
+
5
+ appraise "rspec-core-3.6" do
6
+ gem "rspec-core", "~> 3.6.0"
7
+ end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rspec-core", "~> 3.3.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,107 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rspec-storage (0.1.2)
5
+ rspec (~> 3.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.5.2)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ appraisal (2.2.0)
13
+ bundler
14
+ rake
15
+ thor (>= 0.14.0)
16
+ aws-eventstream (1.0.1)
17
+ aws-partitions (1.96.0)
18
+ aws-sdk-core (3.22.1)
19
+ aws-eventstream (~> 1.0)
20
+ aws-partitions (~> 1.0)
21
+ aws-sigv4 (~> 1.0)
22
+ jmespath (~> 1.0)
23
+ aws-sdk-kms (1.6.0)
24
+ aws-sdk-core (~> 3)
25
+ aws-sigv4 (~> 1.0)
26
+ aws-sdk-s3 (1.17.0)
27
+ aws-sdk-core (~> 3, >= 3.21.2)
28
+ aws-sdk-kms (~> 1)
29
+ aws-sigv4 (~> 1.0)
30
+ aws-sigv4 (1.0.3)
31
+ declarative (0.0.10)
32
+ declarative-option (0.1.0)
33
+ diff-lcs (1.3)
34
+ faraday (0.15.2)
35
+ multipart-post (>= 1.2, < 3)
36
+ google-api-client (0.23.4)
37
+ addressable (~> 2.5, >= 2.5.1)
38
+ googleauth (>= 0.5, < 0.7.0)
39
+ httpclient (>= 2.8.1, < 3.0)
40
+ mime-types (~> 3.0)
41
+ representable (~> 3.0)
42
+ retriable (>= 2.0, < 4.0)
43
+ googleauth (0.6.2)
44
+ faraday (~> 0.12)
45
+ jwt (>= 1.4, < 3.0)
46
+ logging (~> 2.0)
47
+ memoist (~> 0.12)
48
+ multi_json (~> 1.11)
49
+ os (~> 0.9)
50
+ signet (~> 0.7)
51
+ httpclient (2.8.3)
52
+ jmespath (1.4.0)
53
+ jwt (2.1.0)
54
+ little-plugger (1.1.4)
55
+ logging (2.2.2)
56
+ little-plugger (~> 1.1)
57
+ multi_json (~> 1.10)
58
+ memoist (0.16.0)
59
+ mime-types (3.1)
60
+ mime-types-data (~> 3.2015)
61
+ mime-types-data (3.2016.0521)
62
+ multi_json (1.13.1)
63
+ multipart-post (2.0.0)
64
+ os (0.9.6)
65
+ public_suffix (3.0.2)
66
+ rake (10.5.0)
67
+ representable (3.0.4)
68
+ declarative (< 0.1.0)
69
+ declarative-option (< 0.2.0)
70
+ uber (< 0.2.0)
71
+ retriable (3.1.2)
72
+ rspec (3.3.0)
73
+ rspec-core (~> 3.3.0)
74
+ rspec-expectations (~> 3.3.0)
75
+ rspec-mocks (~> 3.3.0)
76
+ rspec-core (3.3.2)
77
+ rspec-support (~> 3.3.0)
78
+ rspec-expectations (3.3.1)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.3.0)
81
+ rspec-mocks (3.3.2)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.3.0)
84
+ rspec-support (3.3.0)
85
+ signet (0.8.1)
86
+ addressable (~> 2.3)
87
+ faraday (~> 0.9)
88
+ jwt (>= 1.5, < 3.0)
89
+ multi_json (~> 1.10)
90
+ thor (0.20.0)
91
+ uber (0.1.0)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ appraisal (>= 2.2.0)
98
+ aws-sdk-s3 (~> 1)
99
+ bundler (~> 1.13)
100
+ google-api-client (>= 0.9)
101
+ rake (~> 10.0)
102
+ rspec (~> 3.0)
103
+ rspec-core (~> 3.3.0)
104
+ rspec-storage!
105
+
106
+ BUNDLED WITH
107
+ 1.16.3
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rspec-core", "~> 3.6.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,107 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rspec-storage (0.1.2)
5
+ rspec (~> 3.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.5.2)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ appraisal (2.2.0)
13
+ bundler
14
+ rake
15
+ thor (>= 0.14.0)
16
+ aws-eventstream (1.0.1)
17
+ aws-partitions (1.96.0)
18
+ aws-sdk-core (3.22.1)
19
+ aws-eventstream (~> 1.0)
20
+ aws-partitions (~> 1.0)
21
+ aws-sigv4 (~> 1.0)
22
+ jmespath (~> 1.0)
23
+ aws-sdk-kms (1.6.0)
24
+ aws-sdk-core (~> 3)
25
+ aws-sigv4 (~> 1.0)
26
+ aws-sdk-s3 (1.17.0)
27
+ aws-sdk-core (~> 3, >= 3.21.2)
28
+ aws-sdk-kms (~> 1)
29
+ aws-sigv4 (~> 1.0)
30
+ aws-sigv4 (1.0.3)
31
+ declarative (0.0.10)
32
+ declarative-option (0.1.0)
33
+ diff-lcs (1.3)
34
+ faraday (0.15.2)
35
+ multipart-post (>= 1.2, < 3)
36
+ google-api-client (0.23.4)
37
+ addressable (~> 2.5, >= 2.5.1)
38
+ googleauth (>= 0.5, < 0.7.0)
39
+ httpclient (>= 2.8.1, < 3.0)
40
+ mime-types (~> 3.0)
41
+ representable (~> 3.0)
42
+ retriable (>= 2.0, < 4.0)
43
+ googleauth (0.6.2)
44
+ faraday (~> 0.12)
45
+ jwt (>= 1.4, < 3.0)
46
+ logging (~> 2.0)
47
+ memoist (~> 0.12)
48
+ multi_json (~> 1.11)
49
+ os (~> 0.9)
50
+ signet (~> 0.7)
51
+ httpclient (2.8.3)
52
+ jmespath (1.4.0)
53
+ jwt (2.1.0)
54
+ little-plugger (1.1.4)
55
+ logging (2.2.2)
56
+ little-plugger (~> 1.1)
57
+ multi_json (~> 1.10)
58
+ memoist (0.16.0)
59
+ mime-types (3.1)
60
+ mime-types-data (~> 3.2015)
61
+ mime-types-data (3.2016.0521)
62
+ multi_json (1.13.1)
63
+ multipart-post (2.0.0)
64
+ os (0.9.6)
65
+ public_suffix (3.0.2)
66
+ rake (10.5.0)
67
+ representable (3.0.4)
68
+ declarative (< 0.1.0)
69
+ declarative-option (< 0.2.0)
70
+ uber (< 0.2.0)
71
+ retriable (3.1.2)
72
+ rspec (3.6.0)
73
+ rspec-core (~> 3.6.0)
74
+ rspec-expectations (~> 3.6.0)
75
+ rspec-mocks (~> 3.6.0)
76
+ rspec-core (3.6.0)
77
+ rspec-support (~> 3.6.0)
78
+ rspec-expectations (3.6.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.6.0)
81
+ rspec-mocks (3.6.0)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.6.0)
84
+ rspec-support (3.6.0)
85
+ signet (0.8.1)
86
+ addressable (~> 2.3)
87
+ faraday (~> 0.9)
88
+ jwt (>= 1.5, < 3.0)
89
+ multi_json (~> 1.10)
90
+ thor (0.20.0)
91
+ uber (0.1.0)
92
+
93
+ PLATFORMS
94
+ ruby
95
+
96
+ DEPENDENCIES
97
+ appraisal (>= 2.2.0)
98
+ aws-sdk-s3 (~> 1)
99
+ bundler (~> 1.13)
100
+ google-api-client (>= 0.9)
101
+ rake (~> 10.0)
102
+ rspec (~> 3.0)
103
+ rspec-core (~> 3.6.0)
104
+ rspec-storage!
105
+
106
+ BUNDLED WITH
107
+ 1.16.3
@@ -7,7 +7,15 @@ module RSpec
7
7
  class UnknownSchemeProvider < StandardError; end
8
8
 
9
9
  module FormattersLoaderExtension
10
- def file_at(path)
10
+ private
11
+
12
+ if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new("3.6.0")
13
+ method_name = "open_stream"
14
+ else
15
+ method_name = "file_at"
16
+ end
17
+
18
+ define_method(method_name) do |path|
11
19
  uri = URI.parse(path)
12
20
  if uri.scheme
13
21
  if provider = RSpec::Storage.providers[uri.scheme]
@@ -16,7 +24,7 @@ module RSpec
16
24
  raise UnknownSchemeProvider
17
25
  end
18
26
  else
19
- super
27
+ super(path)
20
28
  end
21
29
  end
22
30
  end
@@ -26,9 +34,8 @@ module RSpec
26
34
  super
27
35
  registered_listeners(:close).each do |formatter|
28
36
  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
37
+ next unless output.is_a?(FakeIO)
38
+ output.close unless output.closed?
32
39
  end
33
40
  end
34
41
  end
@@ -1,6 +1,6 @@
1
1
  begin
2
2
 
3
- require "aws-sdk"
3
+ require "aws-sdk-s3"
4
4
  require "tempfile"
5
5
  require "delegate"
6
6
 
@@ -1,5 +1,5 @@
1
- module Rspec
1
+ module RSpec
2
2
  module Storage
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ require 'rspec/storage/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rspec-storage"
8
- spec.version = Rspec::Storage::VERSION
8
+ spec.version = RSpec::Storage::VERSION
9
9
  spec.authors = ["joker1007"]
10
10
  spec.email = ["kakyoin.hierophant@gmail.com"]
11
11
 
@@ -23,9 +23,10 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_runtime_dependency "rspec", "~> 3.3"
25
25
 
26
- spec.add_development_dependency "aws-sdk", ">= 2.0"
26
+ spec.add_development_dependency "aws-sdk-s3", "~> 1"
27
27
  spec.add_development_dependency "google-api-client", ">= 0.9"
28
28
  spec.add_development_dependency "bundler", "~> 1.13"
29
29
  spec.add_development_dependency "rake", "~> 10.0"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
+ spec.add_development_dependency "appraisal", ">= 2.2.0"
31
32
  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.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
- name: aws-sdk
28
+ name: aws-sdk-s3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: google-api-client
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: appraisal
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 2.2.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 2.2.0
97
111
  description: RSpec output test report to any stroage
98
112
  email:
99
113
  - kakyoin.hierophant@gmail.com
@@ -104,12 +118,17 @@ files:
104
118
  - ".gitignore"
105
119
  - ".rspec"
106
120
  - ".travis.yml"
121
+ - Appraisals
107
122
  - Gemfile
108
123
  - LICENSE.txt
109
124
  - README.md
110
125
  - Rakefile
111
126
  - bin/console
112
127
  - bin/setup
128
+ - gemfiles/rspec_core_3.3.gemfile
129
+ - gemfiles/rspec_core_3.3.gemfile.lock
130
+ - gemfiles/rspec_core_3.6.gemfile
131
+ - gemfiles/rspec_core_3.6.gemfile.lock
113
132
  - lib/rspec/storage.rb
114
133
  - lib/rspec/storage/fake_io.rb
115
134
  - lib/rspec/storage/gcs.rb
@@ -137,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
156
  version: '0'
138
157
  requirements: []
139
158
  rubyforge_project:
140
- rubygems_version: 2.6.11
159
+ rubygems_version: 2.7.7
141
160
  signing_key:
142
161
  specification_version: 4
143
162
  summary: RSpec output test report to any stroage