confidante 0.13.0 → 0.14.0.pre.1
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: de45589320bfb93662d11600841a5c3747bad67820fd2496ecc4d90c6f489e9c
|
4
|
+
data.tar.gz: 71739bf4ba1c1a7a76921d5a4f832ae62d8c575a308b91e89f05df9119013e34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b4e67a5b5dfa062b6c446cfcde2f6b3c664cc4d2eaf7078922f194b9151f16d91bace349aafbff9025b9f463f98f2605d81375467caf268856a5c935f643ce
|
7
|
+
data.tar.gz: f7eb39653e1b31f147e575a9f57fa8964dd399a65a6051c817943a9d98393fc194f434c70afce92375cd5d5b27c0e7b91ef0cd9cdd5ed8bb66528a303b612a4d
|
data/Gemfile.lock
CHANGED
data/lib/confidante.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative 'confidante/version'
|
|
2
2
|
require_relative 'confidante/converters'
|
3
3
|
require_relative 'confidante/configuration'
|
4
4
|
|
5
|
-
require_relative '
|
5
|
+
require_relative 'shikashi_extensions/sandbox'
|
6
6
|
|
7
7
|
require_relative 'hiera/backend/env_backend'
|
8
8
|
require_relative 'hiera/backend/overrides_backend'
|
@@ -32,9 +32,13 @@ module Confidante
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def convert_item(thing)
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
if thing =~ /^[\[,{]/
|
36
|
+
begin
|
37
|
+
@sandbox.run(@privileges, thing)
|
38
|
+
rescue Exception
|
39
|
+
thing
|
40
|
+
end
|
41
|
+
else
|
38
42
|
thing
|
39
43
|
end
|
40
44
|
end
|
data/lib/confidante/version.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'shikashi'
|
2
2
|
|
3
|
-
module
|
4
|
-
module
|
3
|
+
module ShikashiExtensions
|
4
|
+
module Sandbox
|
5
5
|
def timeout(*args, &block)
|
6
6
|
::Timeout.timeout(*args, &block)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
Shikashi::Sandbox.include(
|
11
|
+
Shikashi::Sandbox.include(ShikashiExtensions::Sandbox)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confidante
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hiera
|
@@ -155,7 +155,7 @@ files:
|
|
155
155
|
- lib/confidante/version.rb
|
156
156
|
- lib/hiera/backend/env_backend.rb
|
157
157
|
- lib/hiera/backend/overrides_backend.rb
|
158
|
-
- lib/
|
158
|
+
- lib/shikashi_extensions/sandbox.rb
|
159
159
|
- scripts/ci/common/configure-git.sh
|
160
160
|
- scripts/ci/common/configure-rubygems.sh
|
161
161
|
- scripts/ci/common/install-git-crypt.sh
|
@@ -178,9 +178,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: 2.4.7
|
179
179
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
|
-
- - "
|
181
|
+
- - ">"
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version:
|
183
|
+
version: 1.3.1
|
184
184
|
requirements: []
|
185
185
|
rubygems_version: 3.0.3
|
186
186
|
signing_key:
|