rspec-remote_fixtures 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/rspec/remote_fixtures/backend/s3_backend.rb +2 -2
- data/lib/rspec/remote_fixtures/version.rb +1 -1
- data/lib/rspec/remote_fixtures.rb +9 -1
- data/rspec-remote_fixtures.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7f7a8e89114ad9ee79263f5fc3ecb561ae872b192320179ebb788341bbe07cb
|
4
|
+
data.tar.gz: 5b84cca59c59af35c2107a40201d66291dc74c2813ce691893ddf4bfb963d36a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3ec4277b5e04dbe6afec3e9031321d4bc4e661bfbbb604ff31bd107b2b8dba6596410af723bf6ac903ac8e83276fcce837fd4977bb076afe25b68e83dad0356
|
7
|
+
data.tar.gz: 020eb610da282d553a9b26e5c71dd33cd130ab1419dd35789ca7960817509b7050e48004a35d1d8c72f2ede266002430fa32f9e176f5bda81eb8f96fad2477e1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -116,4 +116,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
116
116
|
|
117
117
|
## Contributing
|
118
118
|
|
119
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/aleksclark/rspec-
|
119
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/aleksclark/rspec-remote_fixtures.
|
@@ -37,7 +37,7 @@ module RSpec
|
|
37
37
|
|
38
38
|
def download(remote_path, local_path)
|
39
39
|
report_download(remote_path, local_path)
|
40
|
-
if defined? Timecop && Timecop
|
40
|
+
if (defined? Timecop) && Timecop.frozen?
|
41
41
|
Timecop.unfreeze do
|
42
42
|
perform_download(remote_path, local_path)
|
43
43
|
end
|
@@ -57,7 +57,7 @@ module RSpec
|
|
57
57
|
|
58
58
|
def report_download(remote_path, local_path)
|
59
59
|
msg = "#{local_path} not present locally, retrieving from #{remote_path}"
|
60
|
-
|
60
|
+
RemoteFixtures.report(msg)
|
61
61
|
end
|
62
62
|
|
63
63
|
def digest_match?(obj, digest)
|
@@ -71,7 +71,7 @@ module RSpec
|
|
71
71
|
|
72
72
|
def self.log_not_found(relative_path)
|
73
73
|
msg = "Warning: fixture #{relative_path} not found in manifest, this spec may fail elsewhere!"
|
74
|
-
|
74
|
+
report(msg)
|
75
75
|
end
|
76
76
|
|
77
77
|
def self.upload(relative_path, digest)
|
@@ -79,6 +79,14 @@ module RSpec
|
|
79
79
|
backend_inst.upload(full_path, digest)
|
80
80
|
end
|
81
81
|
|
82
|
+
def self.report(msg)
|
83
|
+
if (defined? ::RSpec) && ::RSpec.respond_to?(:configuration)
|
84
|
+
::RSpec.configuration.reporter.message(msg)
|
85
|
+
else
|
86
|
+
puts msg
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
82
90
|
def self.setup_rspec!
|
83
91
|
RSpec.configuration.fixture_path = Config.fixture_path if RSpec.configuration.respond_to?(:fixture_path=)
|
84
92
|
if RSpec.configuration.respond_to?(:file_fixture_path=)
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = 'https://github.com/aleksclark/rspec-remote_fixtures'
|
14
14
|
spec.required_ruby_version = '>= 2.6.0'
|
15
15
|
|
16
|
-
spec.metadata['allowed_push_host'] =
|
16
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
17
17
|
|
18
18
|
spec.metadata['homepage_uri'] = spec.homepage
|
19
19
|
spec.metadata['source_code_uri'] = 'https://github.com/aleksclark/rspec-remote_fixtures'
|