cocov_plugin_kit 0.1.4 → 0.1.5
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/lib/cocov/plugin_kit/version.rb +1 -1
- data/lib/cocov/plugin_kit.rb +6 -0
- 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: a32f17eb6555f7acdbec873cbbec5ebf46395597a197dd64514feb576e4e312e
|
4
|
+
data.tar.gz: 942bcd53b77aca681b6eea80f945ee8ebba53503aea5a0cf76aaada530467b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c4db36cc8965ea13bacbc3c597d6c052d87d8bd7cf9965965231f75fac33ca197d8c224f9d3e7110ea4cebbe491f25edbe75093472008e1d6ab779b507dd9a2
|
7
|
+
data.tar.gz: 9a1f0d9cb12e84e8ba0fb6f7c5615cdca8d14b94f4b30b14fb7e32a94182aa1d658655d068073efcbe3dae5d4c837bfcb919f5b9267f9a38843a4d4747de91ce
|
data/Gemfile.lock
CHANGED
data/lib/cocov/plugin_kit.rb
CHANGED
@@ -25,6 +25,12 @@ module Cocov
|
|
25
25
|
# When providing a custom class, make sure to inherit PluginKit::Run.
|
26
26
|
# For examples, see the library's README file.
|
27
27
|
def run(klass = nil, &block)
|
28
|
+
if Process.uid != 1000 && !ENV.key?("COCOV_DEVELOPMENT")
|
29
|
+
puts "Initialization failed: Cocov plugins must run as uid 1000. " \
|
30
|
+
"For more information, please refer to the documentation"
|
31
|
+
exit 2
|
32
|
+
end
|
33
|
+
|
28
34
|
output_file = File.open(ENV.fetch("COCOV_OUTPUT_FILE"), "w")
|
29
35
|
exit_code = 0
|
30
36
|
klass ||= Run
|