package_protections 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/package_protections/rspec/support.rb +5 -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: '0906fd78fb0cee92c4e34663c700eda94ba7e050636cda905a8fe184e115efb1'
|
4
|
+
data.tar.gz: c28f5248b823d626875dc5f7ac5ee33b7a533fbb000d0f6f67e439b7aec102cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00937a5119e9589c7ea323c76df2c7ed5feb3334356a99b7cb0308f469ba7af53e1cea358a74736aaf49238e5885741ffdfd54b52fc15316023cacf170bd16d4'
|
7
|
+
data.tar.gz: '0972c6fab2b22557de1d9e64efe882747c8088d2653869b6fad65f2a7144e012b61c3b15634c450ea375eb646cfe80f3d1bfbfd722342130a912e896eae1f6f4'
|
@@ -7,11 +7,15 @@ require_relative 'matchers'
|
|
7
7
|
|
8
8
|
def get_resulting_rubocop
|
9
9
|
write_file('config/default.yml', <<~YML.strip)
|
10
|
-
<%= PackageProtections.rubocop_yml %>
|
10
|
+
<%= PackageProtections.rubocop_yml(root_pathname: Pathname.pwd) %>
|
11
11
|
YML
|
12
12
|
YAML.safe_load(ERB.new(File.read('config/default.yml')).result(binding))
|
13
13
|
end
|
14
14
|
|
15
15
|
RSpec.configure do |config|
|
16
16
|
config.include ApplicationFixtureHelper
|
17
|
+
|
18
|
+
config.before do
|
19
|
+
PackageProtections.bust_cache!
|
20
|
+
end
|
17
21
|
end
|