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: 73f06ae8a64096b919a7df84cb1af83ed7e83d0b14cbdb6e94070cfb4913287a
4
- data.tar.gz: a038facb229b78eaac2073ed25cd1937a1101dea7c7f1c7a10b9a3c59baa829f
3
+ metadata.gz: de45589320bfb93662d11600841a5c3747bad67820fd2496ecc4d90c6f489e9c
4
+ data.tar.gz: 71739bf4ba1c1a7a76921d5a4f832ae62d8c575a308b91e89f05df9119013e34
5
5
  SHA512:
6
- metadata.gz: b2e17b5e36d6930540571294b3a825bb260d793a51d792e95bb9df2d0081431ace7dbe421adef8046c50e9680cbc652ce5d1cee61bc4dc577f57e5d5ddea6fd9
7
- data.tar.gz: 2343ba5a1b752877927f54c9dc7ea5e3d77039d53871916c83de65c0f3d586d5bcf0cb2bdea30cd675120a394870d4eced9adcd979193b460ebc95e9226f00af
6
+ metadata.gz: c3b4e67a5b5dfa062b6c446cfcde2f6b3c664cc4d2eaf7078922f194b9151f16d91bace349aafbff9025b9f463f98f2605d81375467caf268856a5c935f643ce
7
+ data.tar.gz: f7eb39653e1b31f147e575a9f57fa8964dd399a65a6051c817943a9d98393fc194f434c70afce92375cd5d5b27c0e7b91ef0cd9cdd5ed8bb66528a303b612a4d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confidante (0.13.0)
4
+ confidante (0.14.0.pre.1)
5
5
  activesupport (>= 5.2)
6
6
  hiera (~> 3.3, >= 3.3.1)
7
7
  shikashi (~> 0.6)
@@ -66,4 +66,4 @@ DEPENDENCIES
66
66
  rspec (~> 3.9)
67
67
 
68
68
  BUNDLED WITH
69
- 2.0.2
69
+ 2.1.2
@@ -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 'shikashi/sandbox_patch'
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
- begin
36
- @sandbox.run(@privileges, thing)
37
- rescue Exception
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
@@ -1,3 +1,3 @@
1
1
  module Confidante
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0.pre.1'
3
3
  end
@@ -1,11 +1,11 @@
1
1
  require 'shikashi'
2
2
 
3
- module Shikashi
4
- module SandboxPatch
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(Shikashi::SandboxPatch)
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.13.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: 2019-10-13 00:00:00.000000000 Z
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/shikashi/sandbox_patch.rb
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: '0'
183
+ version: 1.3.1
184
184
  requirements: []
185
185
  rubygems_version: 3.0.3
186
186
  signing_key: