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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b24c1989cde461c599f55cc92215e5ae4c30c2680a489f548456d90ffc10be09
4
- data.tar.gz: c5c5c3125af38fc9de95f5bda915619057533a75f91008cb0c9f14d98cd36013
3
+ metadata.gz: a32f17eb6555f7acdbec873cbbec5ebf46395597a197dd64514feb576e4e312e
4
+ data.tar.gz: 942bcd53b77aca681b6eea80f945ee8ebba53503aea5a0cf76aaada530467b6d
5
5
  SHA512:
6
- metadata.gz: 931553bab4892e3c3e774aeb73d44e3ef4bbd1ccd66fb7152137593436cd6c3eb5f073104190f0c026fb952a19af41992bc0ac9a57b6b75e291bdc2ecde6456c
7
- data.tar.gz: b13a49250e3331f8bf3cea198d4829ce9c3ad73e1a77a86c93af3150f5a390f7d44b77324684c413ae7bc0b4708e74576fa12c5acbdf1877c186cdfb136730c6
6
+ metadata.gz: 5c4db36cc8965ea13bacbc3c597d6c052d87d8bd7cf9965965231f75fac33ca197d8c224f9d3e7110ea4cebbe491f25edbe75093472008e1d6ab779b507dd9a2
7
+ data.tar.gz: 9a1f0d9cb12e84e8ba0fb6f7c5615cdca8d14b94f4b30b14fb7e32a94182aa1d658655d068073efcbe3dae5d4c837bfcb919f5b9267f9a38843a4d4747de91ce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocov_plugin_kit (0.1.4)
4
+ cocov_plugin_kit (0.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocov
4
4
  module PluginKit
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocov_plugin_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Gama