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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c259866db8dc6ff155c572e3a1d5a237dd23e71
4
- data.tar.gz: 64515ad046ac31f3c454ced2d852cafe27b029c7
3
+ metadata.gz: db0750542b28e7db48e5ebf069e0863f43581d0f
4
+ data.tar.gz: a5f28e9508593727c7687cd1f2b263aa37b397a0
5
5
  SHA512:
6
- metadata.gz: 89c9554bce8f2712bc0830fe8d6f1a69b7d1fd2de80e6c6d10ab51ff5cbb71234e2c50ba871657a6325a7e067efc7813d32bb4722d90b691a3f6413c0f7d3c79
7
- data.tar.gz: 9c8b7865f4f36cccdb1dfc2e7db08ad99488c32e9a6eebdde4f3d7c5bb5a795652a3301ea89ac3249a0fc0edaf6ec92a05e6e4de0a14db6b2edb21cbeeeb84eb
6
+ metadata.gz: bd525050643e03179fec00f880e0a86eaf637bdbaf599dec1dc5b8004005ba99822330fda52f0a342073c1bc650c97d25daeff0c808891c7a127f78cae701821
7
+ data.tar.gz: adf8639f787fb123cd076a551cdcb909bfd3289634f63aeaa21de72d5fa3fc291991f26e28011e798bc5feaf2287e4f0b857165917e2c841a2f6375048490e0f
@@ -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: "gem install bundler"
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"
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.7.1
4
+
5
+ * Minor tweak for compatability with Chef master.
6
+
3
7
  ## v2.7.0
4
8
 
5
9
  * More compatibility improvements for Chef 12.9.
data/Gemfile CHANGED
@@ -30,6 +30,3 @@ end
30
30
  dev_gem 'halite'
31
31
  dev_gem 'poise-boiler'
32
32
  dev_gem 'poise-profiler'
33
-
34
- # Pending https://github.com/customink/fauxhai/commit/d89f1e2de609478046e7a387f2b8d97729a68983
35
- gem 'fauxhai', github: 'customink/fauxhai'
@@ -47,7 +47,13 @@ module Poise
47
47
  #
48
48
  # @return [String]
49
49
  def admin_user
50
- wmi_property_from_query(:name, "select * from Win32_UserAccount where sid like 'S-1-5-21-%-500' and LocalAccount=True")
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
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Poise
19
- VERSION = '2.7.0'
19
+ VERSION = '2.7.1'
20
20
  end
@@ -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).exactly(3).times
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.0
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-04-16 00:00:00.000000000 Z
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.2
200
+ rubygems_version: 2.6.4
187
201
  signing_key:
188
202
  specification_version: 4
189
203
  summary: Helpers for writing extensible Chef cookbooks.