poise 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -3
- data/lib/poise/utils/win32.rb +7 -1
- data/lib/poise/version.rb +1 -1
- data/poise.gemspec +1 -0
- data/test/spec/helpers/resource_cloning_spec.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db0750542b28e7db48e5ebf069e0863f43581d0f
|
4
|
+
data.tar.gz: a5f28e9508593727c7687cd1f2b263aa37b397a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd525050643e03179fec00f880e0a86eaf637bdbaf599dec1dc5b8004005ba99822330fda52f0a342073c1bc650c97d25daeff0c808891c7a127f78cae701821
|
7
|
+
data.tar.gz: adf8639f787fb123cd076a551cdcb909bfd3289634f63aeaa21de72d5fa3fc291991f26e28011e798bc5feaf2287e4f0b857165917e2c841a2f6375048490e0f
|
data/.travis.yml
CHANGED
@@ -8,7 +8,11 @@ env:
|
|
8
8
|
- secure: ax5czUwK8PVHXu/B3qbRZ8AACqXW4scIElQbn4sBuLp+VyTeutGax1uO6yTi7yv3xJUbEL3Z6gdZD/sOZpSKm8SL0YhkijoSs68HJCsau8cl7fvPJ0+JIlKqWazKEA1PaCmJHQv5J9TEyPyeSxZaIyacqOwOcUTyOkRDGyC+im8=
|
9
9
|
- secure: jEiZqcy6E5WC1nBmfJBSLPpYOUBFdpoo7DsLrvIpKVRpOw7slb+VgIru5AzbONvVD/8CYstgqiVVoGaCP/ywWWqakOQ2thp0BqWN/OVlsuPiemAdLRMMsmekkaFUdAa5l8QUUI0YiTSpSLUXQFWZrXbiARCALGAvDBbsqF1JhgA=
|
10
10
|
- secure: e3TH/N8tcx54wShV7s96OXDXuDbo9YnekLK3L3WrYrCK12gHVcW7xlMxPctGy14h6VaP1PBXJfUjd7cdzmHgudTo8HlR4Ui0kpjp85XrohPsLmVaFDxjAstLFm4VKMpsoKUZoPZY5J8bO9b606p872M5yO4rwKy3bVK/CP6mTBY=
|
11
|
-
before_install:
|
11
|
+
before_install:
|
12
|
+
- if [[ $BUNDLE_GEMFILE == *master.gemfile ]]; then gem update --system; fi
|
13
|
+
- gem --version
|
14
|
+
- gem install bundler
|
15
|
+
- bundle --version
|
12
16
|
bundler_args: "--binstubs=$PWD/bin --jobs 3 --retry 3"
|
13
17
|
script:
|
14
18
|
- "./bin/rake travis"
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/lib/poise/utils/win32.rb
CHANGED
@@ -47,7 +47,13 @@ module Poise
|
|
47
47
|
#
|
48
48
|
# @return [String]
|
49
49
|
def admin_user
|
50
|
-
|
50
|
+
if defined?(::WIN32OLE)
|
51
|
+
wmi_property_from_query(:name, "select * from Win32_UserAccount where sid like 'S-1-5-21-%-500' and LocalAccount=True")
|
52
|
+
else
|
53
|
+
# Warn except under ChefSpec because it will just annoy people.
|
54
|
+
Chef::Log.warn('[Poise::Utils::Win32] Unable to query admin user, WIN32OLE not available') unless defined?(ChefSpec)
|
55
|
+
'Administrator'
|
56
|
+
end
|
51
57
|
end
|
52
58
|
|
53
59
|
# Escaping that is compatible with CommandLineToArgvW. Based on
|
data/lib/poise/version.rb
CHANGED
data/poise.gemspec
CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
|
36
36
|
spec.add_dependency 'halite', '~> 1.0'
|
37
37
|
|
38
|
+
spec.add_development_dependency 'fauxhai', '>= 3.3.0' # For now.
|
38
39
|
spec.add_development_dependency 'kitchen-inspec', '~> 0.12'
|
39
40
|
spec.add_development_dependency 'poise-boiler', '~> 1.8'
|
40
41
|
end
|
@@ -36,7 +36,7 @@ describe Poise::Helpers::ResourceCloning do
|
|
36
36
|
context 'with a resource that should be cloned' do
|
37
37
|
# Baseline to make sure my test harness works.
|
38
38
|
it do
|
39
|
-
expect(Chef::Log).to receive(:warn).
|
39
|
+
expect(Chef::Log).to receive(:warn).at_least(:once)
|
40
40
|
run_chef
|
41
41
|
end
|
42
42
|
end # /context with a resource that should be cloned
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Kantrowitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: halite
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fauxhai
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.3.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.3.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: kitchen-inspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
197
|
version: '0'
|
184
198
|
requirements: []
|
185
199
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.6.
|
200
|
+
rubygems_version: 2.6.4
|
187
201
|
signing_key:
|
188
202
|
specification_version: 4
|
189
203
|
summary: Helpers for writing extensible Chef cookbooks.
|