cocov_plugin_kit 0.1.3 → 0.1.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
2
  SHA256:
3
- metadata.gz: 1a8273e71e6a782ac8eb359fe94f8a4f36214122d738f462427dc0db7ac30d99
4
- data.tar.gz: 4cb89031486138bd9893297792db58e92fe6099a4ffa43f067635683cf0c8f78
3
+ metadata.gz: a32f17eb6555f7acdbec873cbbec5ebf46395597a197dd64514feb576e4e312e
4
+ data.tar.gz: 942bcd53b77aca681b6eea80f945ee8ebba53503aea5a0cf76aaada530467b6d
5
5
  SHA512:
6
- metadata.gz: 3b59f4546faf3f18b6c45805352f6050f70b3c1cf0b8b436ce4bcbcef6e7fe2ec7a64c3f8c0faf8c0806d244d754ac286c835dac9938a4552153025835d688f9
7
- data.tar.gz: 751d2360770a35d2e565142d12e502dd1932cc14c26357a305760e7ef95c6a4aae9c63d005f7657630225661014238c015907ae398ac760e0c2ff6ed7dd9440a
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.3)
4
+ cocov_plugin_kit (0.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -45,7 +45,7 @@ module Cocov
45
45
  end
46
46
 
47
47
  # :nodoc:
48
- ALLOWED_KINDS = %i[style performance security bug complexity duplication convention].freeze
48
+ ALLOWED_KINDS = %i[style performance security bug complexity duplication convention quality].freeze
49
49
 
50
50
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
51
51
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocov
4
4
  module PluginKit
5
- VERSION = "0.1.3"
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.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Gama