cheffish 17.1.5 → 17.1.7

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: 72e807e4b3685b5e238fdcff944f78f20e689d36f1e744bfa47788201b561fea
4
- data.tar.gz: c0d7e74a983374f5fb3ad88fe7f1d10dc80c9ab8c8f6bcef774030571ebe0e29
3
+ metadata.gz: 17d1aca4a7ae6e0769e3c2f2dfbc0b658f141fa170eee02f9540d21657456da4
4
+ data.tar.gz: f47af0396c10e0301bec26bce5fcc2b7c0fc91a8ae13169f0a6f5c5ab3aa0849
5
5
  SHA512:
6
- metadata.gz: d213972c29b938be1db778e1d177090e89ef39e71d50b1bc0ffbbfe1fdf5c5f6c8c1eb0bdd33b4264bbf9f55a1ac7f120f22edc8d9c8a3cc3ea412b380f70199
7
- data.tar.gz: eb0460c0a87bc8d9cd1e5571dc624579d6e17d68a9f2cf855dc27f104c096d2edaebba84f805942a910b231622987c5c3cb24f664c9d6a0ad410190a977099eb
6
+ metadata.gz: 35a9fac403e9aee67717bcdbdda99aed23bbc52667f15ee7a63d2defec29b64a51a9b351b5d203244b4526dba0251b7e105e65d378a8f6d0e608f4d02221c548
7
+ data.tar.gz: 65af1d611cdf2cbde5724881077fa66d0841403c08c24dac7b95efb5e1aaf07c46a599c0d7654a26646c8f8c71ea8e3ba69920b5464e74b65baecd129e1eb58e
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "https://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem "chefstyle", "2.0.8"
6
+ gem "cookstyle", "~> 7.32.8"
7
7
  gem "rake"
8
8
  gem "rspec", "~> 3.0"
9
9
  end
@@ -14,8 +14,19 @@ if ENV["GEMFILE_MOD"]
14
14
  instance_eval(ENV["GEMFILE_MOD"])
15
15
  else
16
16
  group :development do
17
- # temporarily we only support building against master
18
- gem "chef", github: "chef/chef", branch: "master"
19
- gem "ohai", github: "chef/ohai", branch: "master"
17
+ # chef 17 is on 3.0
18
+ # chef 18 is on 3.1
19
+ case RUBY_VERSION
20
+ when /^3\.0/
21
+ gem "chef", "~> 17.0"
22
+ gem "ohai", "~> 17.0"
23
+ when /^3\.1/
24
+ gem "chef", "~> 18.0"
25
+ gem "ohai", "~> 18.0"
26
+ else
27
+ # go with the latest, unbounded
28
+ gem "chef"
29
+ gem "ohai"
30
+ end
20
31
  end
21
32
  end
data/Rakefile CHANGED
@@ -14,14 +14,14 @@ rescue LoadError
14
14
  end
15
15
 
16
16
  begin
17
- require "chefstyle"
17
+ require "cookstyle/chefstyle"
18
18
  require "rubocop/rake_task"
19
19
  desc "Run Chefstyle tests"
20
20
  RuboCop::RakeTask.new(:style) do |task|
21
21
  task.options += ["--display-cop-names", "--no-color"]
22
22
  end
23
23
  rescue LoadError
24
- puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
24
+ puts "cookstyle gem is not installed. bundle install first to make sure all dependencies are installed."
25
25
  end
26
26
 
27
27
  begin
data/cheffish.gemspec CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency "chef-zero", ">= 14.0"
18
18
  s.add_dependency "chef-utils", ">= 17.0"
19
+ s.add_dependency "logger", "< 1.6.0"
19
20
  s.add_dependency "net-ssh"
20
21
 
21
22
  s.require_path = "lib"
@@ -93,7 +93,6 @@ class Chef
93
93
  (!current_private_key ||
94
94
  current_resource.size != new_resource.size ||
95
95
  current_resource.type != new_resource.type))
96
-
97
96
  case new_resource.type
98
97
  when :rsa
99
98
  if new_resource.exponent
@@ -137,7 +136,7 @@ class Chef
137
136
  converge_by "change format of #{new_resource.type} private key #{new_path} from #{current_resource.format} to #{new_resource.format}" do
138
137
  write_private_key(current_private_key)
139
138
  end
140
- elsif RUBY_PLATFORM !~ /mswin|mingw32|windows/ && (@current_file_mode & 0077) != 0
139
+ elsif RUBY_PLATFORM !~ /mswin|mingw|windows/ && (@current_file_mode & 0077) != 0
141
140
  new_mode = @current_file_mode & 07700
142
141
  converge_by "change mode of private key #{new_path} to #{new_mode.to_s(8)}" do
143
142
  ::File.chmod(new_mode, new_path)
@@ -249,7 +248,6 @@ class Chef
249
248
  else
250
249
  resource.action :delete
251
250
  end
252
-
253
251
  @current_resource = resource
254
252
  end
255
253
  end
@@ -1,3 +1,3 @@
1
1
  module Cheffish
2
- VERSION = "17.1.5".freeze
2
+ VERSION = "17.1.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheffish
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.1.5
4
+ version: 17.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-03 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-zero
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '17.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: logger
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "<"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.6.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.6.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: net-ssh
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -141,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
155
  - !ruby/object:Gem::Version
142
156
  version: '0'
143
157
  requirements: []
144
- rubygems_version: 3.1.4
158
+ rubygems_version: 3.2.3
145
159
  signing_key:
146
160
  specification_version: 4
147
161
  summary: A set of Chef resources for configuring Chef Infra.