bolt 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bolt might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5818403d3dac52071b37dc23c99dc29a74c790493ea192b1f1855ca93cda721a
4
- data.tar.gz: '019a929cfd4a7bfd2ce2bd51cbf4fa4e48cea6bb577213f68ae33dabaa704aa4'
3
+ metadata.gz: 7cdc9ce6823fb077d899fce7bfa0154f5de9a0a7e994116f879b4395f8f65f59
4
+ data.tar.gz: 68ab9662c1613e93b1e8c51a6d5ce036de0e51e2961e759c25b67c37bb85c48b
5
5
  SHA512:
6
- metadata.gz: 352f34c5cdef73ccde6a84df1fbf722a562b251801a9d9d49c7b221237de7a03758ba57139559fb07f8124ce3f19d4723b7313725bcdde0fa88f9cb1eeaf64e6
7
- data.tar.gz: 35a9b64a4c97465b4f72e0ad7e7b98e2fdf657b08b89653a024e46d5ef78fa0fd44f5e9db66f97f1f9b1fed399d29a277461e9b8e63c9601307b9811f138a823
6
+ metadata.gz: be80c448bea05fbfe6a210093fc94fe90ca2e9ad3f8c8deeba4431732fa6e5e5f10f969fa976e91be0c49b9bb56117d38a74ab2e1e4435128b7a6124b7cac913
7
+ data.tar.gz: 6770076579d8c73e13536c2c9d2ec1c415b532b11d02f278a4f829a6f0c74455e98512717a06f9608afa258c309d3941e6d772fb99522a19e9e9c9416442ded2
@@ -8,7 +8,7 @@ module Bolt
8
8
  attr_accessor :name, :nodes, :aliases, :name_or_alias, :groups, :config, :rest, :facts, :vars, :features
9
9
 
10
10
  # Regex used to validate group names and target aliases.
11
- NAME_REGEX = /\A[a-z0-9_]+\Z/.freeze
11
+ NAME_REGEX = /\A[a-z0-9_][a-z0-9_-]*\Z/.freeze
12
12
 
13
13
  def initialize(data)
14
14
  @logger = Logging.logger[self]
@@ -50,10 +50,8 @@ module Bolt
50
50
 
51
51
  begin
52
52
  response = http_client.post(url, body: body, header: headers)
53
- rescue SocketError, OpenSSL::SSL::SSLError, SystemCallError, Net::ProtocolError, IOError => err
54
- raise Bolt::PuppetDBFailoverError, "Failed to query PuppetDB: #{err}"
55
53
  rescue StandardError => err
56
- raise Bolt::PuppetDBError, "Failed to query PuppetDB: #{err}"
54
+ raise Bolt::PuppetDBFailoverError, "Failed to query PuppetDB: #{err}"
57
55
  end
58
56
 
59
57
  if response.code != 200
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bolt
4
- VERSION = '1.9.0'
4
+ VERSION = '1.10.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-10 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -230,14 +230,14 @@ dependencies:
230
230
  name: bundler
231
231
  requirement: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - "~>"
233
+ - - ">="
234
234
  - !ruby/object:Gem::Version
235
235
  version: '1.14'
236
236
  type: :development
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
- - - "~>"
240
+ - - ">="
241
241
  - !ruby/object:Gem::Version
242
242
  version: '1.14'
243
243
  - !ruby/object:Gem::Dependency