eac_ruby_gem_support 0.4.0 → 0.5.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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 122d4ff9339544e7af89cb7953773e7378a47a1133773e68f3c7100fb2c3f929
|
4
|
+
data.tar.gz: 5e026c58b781b90db5cb15e42dc366459fa01890cbd91a48c7cb07685ad8c695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42611e5020f8bbb21bcffee4b2f853805d717e063d09e6d6298f03ca53587261694259b0b4ae816a05da8b36f1b0138b3a7a51961dff5906fdbd6c8fdc4cfbb5
|
7
|
+
data.tar.gz: b06df808cce64a4ee25b3c542a17c227bc3d6df9b6609c1192ca5842b2a4a32c9d53ae5d92f7e8c7c21ce495120c5be7cd1cc021654a318613facd5384426bd4
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
require 'tmpdir'
|
5
|
+
require 'tempfile'
|
6
|
+
|
7
|
+
module EacRubyGemSupport
|
8
|
+
module Rspec
|
9
|
+
module Helpers
|
10
|
+
module Utils
|
11
|
+
# @return [StandardError, nil] If block raises an error, return this error. If not, return
|
12
|
+
# +nil+.
|
13
|
+
def capture_error
|
14
|
+
yield
|
15
|
+
nil
|
16
|
+
rescue ::StandardError => e
|
17
|
+
e
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/core_ext'
|
4
4
|
require 'eac_ruby_gem_support/rspec/helpers/filesystem'
|
5
|
+
require 'eac_ruby_gem_support/rspec/helpers/utils'
|
5
6
|
require 'eac_ruby_gem_support/rspec/specs/rubocop'
|
6
7
|
require 'tmpdir'
|
7
8
|
|
@@ -19,6 +20,7 @@ module EacRubyGemSupport
|
|
19
20
|
|
20
21
|
def setup_filesystem_helper
|
21
22
|
rspec_config.include ::EacRubyGemSupport::Rspec::Helpers::Filesystem
|
23
|
+
rspec_config.include ::EacRubyGemSupport::Rspec::Helpers::Utils
|
22
24
|
rspec_config.after(:each) { purge_temp_files }
|
23
25
|
end
|
24
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_ruby_gem_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/eac_ruby_gem_support.rb
|
90
90
|
- lib/eac_ruby_gem_support/rspec.rb
|
91
91
|
- lib/eac_ruby_gem_support/rspec/helpers/filesystem.rb
|
92
|
+
- lib/eac_ruby_gem_support/rspec/helpers/utils.rb
|
92
93
|
- lib/eac_ruby_gem_support/rspec/setup.rb
|
93
94
|
- lib/eac_ruby_gem_support/rspec/specs/rubocop.rb
|
94
95
|
- lib/eac_ruby_gem_support/version.rb
|