rrrspec-client 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3b570b70a41f3ba12c36161a45487a1551fc87c5
4
- data.tar.gz: b9c3cb2849cfe34509d4acfe9a2175c90fa197ee
2
+ SHA256:
3
+ metadata.gz: 9ba18bfefc9add5a18a98b30e84465c0bcc6692bc42ae0a83fba2c7b641461dd
4
+ data.tar.gz: c86688fa83ca3a9ee95bf9312ca85a63c5801152dc0ecbd9b9901d32ca22a7c2
5
5
  SHA512:
6
- metadata.gz: 5fc0c6beb8b8d123be6ad1528213414ab886b9ae9c0f814b8e39d7bdf81b55660ea17bd812bcffcbc95a51b4bdbfcbc719cb4296fa411204a9323dab215d3a0d
7
- data.tar.gz: c6c05dd147f334ec09e6f34cf832ae7dbe9723990f407799f502f93467818901b98da1e44e1c8040f2cba510a9780ca58f493954ffd68b55bd4bdfc59153a674
6
+ metadata.gz: 25d3b54ad0170f606eb8977a87ccec67cac9dd9df9c5c23b8e5ccc7ca9909b5dfa1d2d3e548cf4d9ae4a5b50fdc1a494b03a46f90034cc0e1c3ede5c703e7eeb
7
+ data.tar.gz: 9f55a5af2f8ce46f7c8f8f85b13e8e8cbac7e9c8ee30793a6234e41f0350d5e6f1d5b034ff04cf7c5f778feab41397bd3db42881092d6076d0b767c6aad0ff35
@@ -28,7 +28,7 @@ module RRRSpec
28
28
  def check_validity
29
29
  validity = super
30
30
 
31
- unless Dir.exists?(packaging_dir)
31
+ unless Dir.exist?(packaging_dir)
32
32
  $stderr.puts("The packaging_dir does not exists: '#{packaging_dir}'")
33
33
  validity = false
34
34
  end
@@ -38,7 +38,7 @@ module RRRSpec
38
38
  validity = false
39
39
  else
40
40
  spec_files.each do |filepath|
41
- unless File.exists?(File.join(packaging_dir, filepath))
41
+ unless File.exist?(File.join(packaging_dir, filepath))
42
42
  $stderr.puts("One of the spec_files does not exists '#{filepath}'")
43
43
  validity = false
44
44
  end
@@ -84,11 +84,21 @@ module RRRSpec
84
84
 
85
85
  def run_before_suite_hooks
86
86
  hooks = @configuration.instance_variable_get(:@before_suite_hooks)
87
- hook_context = RSpec::Core::SuiteHookContext.new
88
87
  hooks.each do |h|
89
88
  h.run(hook_context)
90
89
  end
91
90
  end
91
+
92
+ def hook_context
93
+ @hook_context ||= begin
94
+ if RSpec::Core::Version::STRING < '3.5.3'
95
+ RSpec::Core::SuiteHookContext.new
96
+ else
97
+ RSpec::Core::SuiteHookContext
98
+ .new('before(:suite)', @configuration.reporter)
99
+ end
100
+ end
101
+ end
92
102
  end
93
103
  end
94
104
  end
@@ -1,5 +1,5 @@
1
1
  module RRRSpec
2
2
  module Client
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ module RRRSpec
30
30
  loaded = []
31
31
  files.each do |filepath|
32
32
  filepath = File.absolute_path(filepath)
33
- next unless File.exists?(filepath)
33
+ next unless File.exist?(filepath)
34
34
  $stderr.puts("Loading: #{filepath}")
35
35
  load filepath
36
36
  loaded << filepath
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrrspec-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaya Suzuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2019-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.3.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.3.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: launchy
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.5.1
196
+ rubygems_version: 2.7.7
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Execute RSpec in a distributed manner