chef 14.8.12 → 14.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/chef.gemspec +1 -1
  4. data/lib/chef/api_client.rb +1 -1
  5. data/lib/chef/api_client/registration.rb +1 -1
  6. data/lib/chef/api_client_v1.rb +4 -4
  7. data/lib/chef/chef_fs/file_system/chef_server/acl_entry.rb +1 -1
  8. data/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb +2 -2
  9. data/lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb +1 -1
  10. data/lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb +1 -1
  11. data/lib/chef/chef_fs/file_system/chef_server/data_bag_dir.rb +1 -1
  12. data/lib/chef/chef_fs/file_system/chef_server/data_bags_dir.rb +2 -2
  13. data/lib/chef/chef_fs/file_system/chef_server/nodes_dir.rb +1 -1
  14. data/lib/chef/chef_fs/file_system/chef_server/organization_invites_entry.rb +1 -1
  15. data/lib/chef/chef_fs/file_system/chef_server/organization_members_entry.rb +1 -1
  16. data/lib/chef/chef_fs/file_system/chef_server/policies_dir.rb +3 -3
  17. data/lib/chef/chef_fs/file_system/chef_server/policy_group_entry.rb +2 -2
  18. data/lib/chef/chef_fs/file_system/chef_server/rest_list_dir.rb +3 -3
  19. data/lib/chef/chef_fs/file_system/chef_server/rest_list_entry.rb +4 -4
  20. data/lib/chef/client.rb +2 -2
  21. data/lib/chef/config_fetcher.rb +1 -1
  22. data/lib/chef/cookbook_uploader.rb +3 -3
  23. data/lib/chef/cookbook_version.rb +1 -1
  24. data/lib/chef/data_bag.rb +1 -1
  25. data/lib/chef/data_bag_item.rb +1 -1
  26. data/lib/chef/environment.rb +1 -1
  27. data/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb +1 -1
  28. data/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb +1 -1
  29. data/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb +1 -1
  30. data/lib/chef/formatters/error_inspectors/registration_error_inspector.rb +1 -1
  31. data/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb +1 -1
  32. data/lib/chef/http.rb +3 -3
  33. data/lib/chef/key.rb +1 -1
  34. data/lib/chef/knife.rb +1 -1
  35. data/lib/chef/knife/bootstrap/client_builder.rb +1 -1
  36. data/lib/chef/knife/cookbook_delete.rb +1 -1
  37. data/lib/chef/knife/cookbook_upload.rb +1 -1
  38. data/lib/chef/knife/data_bag_create.rb +1 -1
  39. data/lib/chef/knife/raw.rb +1 -1
  40. data/lib/chef/knife/search.rb +1 -1
  41. data/lib/chef/knife/supermarket_share.rb +1 -1
  42. data/lib/chef/knife/supermarket_unshare.rb +1 -1
  43. data/lib/chef/mixin/api_version_request_handling.rb +1 -1
  44. data/lib/chef/monkey_patches/net_http.rb +5 -1
  45. data/lib/chef/node.rb +4 -4
  46. data/lib/chef/node/mixin/immutablize_array.rb +5 -0
  47. data/lib/chef/node/mixin/immutablize_hash.rb +3 -0
  48. data/lib/chef/org.rb +1 -1
  49. data/lib/chef/policy_builder/policyfile.rb +1 -1
  50. data/lib/chef/provider/apt_repository.rb +1 -1
  51. data/lib/chef/provider/group/windows.rb +1 -0
  52. data/lib/chef/provider/remote_file/content.rb +1 -1
  53. data/lib/chef/provider/windows_task.rb +2 -2
  54. data/lib/chef/resource/group.rb +4 -0
  55. data/lib/chef/resource/homebrew_cask.rb +8 -8
  56. data/lib/chef/resource/homebrew_tap.rb +6 -6
  57. data/lib/chef/resource/openssl_ec_private_key.rb +1 -1
  58. data/lib/chef/resource/openssl_x509_request.rb +1 -1
  59. data/lib/chef/resource/powershell_package_source.rb +11 -7
  60. data/lib/chef/resource/ssh_known_hosts_entry.rb +1 -1
  61. data/lib/chef/resource/sysctl.rb +6 -6
  62. data/lib/chef/resource/timezone.rb +17 -1
  63. data/lib/chef/resource/windows_ad_join.rb +11 -1
  64. data/lib/chef/resource/windows_certificate.rb +7 -4
  65. data/lib/chef/resource/windows_printer.rb +3 -3
  66. data/lib/chef/resource/windows_task.rb +17 -8
  67. data/lib/chef/role.rb +1 -1
  68. data/lib/chef/run_list/run_list_expansion.rb +1 -1
  69. data/lib/chef/user.rb +1 -1
  70. data/lib/chef/user_v1.rb +4 -4
  71. data/lib/chef/util/windows/net_group.rb +6 -0
  72. data/lib/chef/version.rb +1 -1
  73. data/lib/chef/win32/api/net.rb +16 -0
  74. data/lib/chef/win32/net.rb +15 -0
  75. data/lib/chef/win32/version.rb +15 -15
  76. data/spec/functional/http/simple_spec.rb +10 -10
  77. data/spec/functional/resource/timezone_spec.rb +39 -0
  78. data/spec/functional/resource/windows_task_spec.rb +51 -7
  79. data/spec/integration/knife/client_create_spec.rb +1 -1
  80. data/spec/integration/knife/client_key_create_spec.rb +1 -1
  81. data/spec/integration/knife/cookbook_download_spec.rb +1 -1
  82. data/spec/integration/knife/cookbook_show_spec.rb +2 -2
  83. data/spec/integration/knife/data_bag_create_spec.rb +1 -1
  84. data/spec/integration/knife/environment_create_spec.rb +1 -1
  85. data/spec/integration/knife/node_create_spec.rb +1 -1
  86. data/spec/integration/knife/role_create_spec.rb +1 -1
  87. data/spec/support/shared/context/client.rb +1 -1
  88. data/spec/support/shared/unit/api_error_inspector.rb +5 -5
  89. data/spec/support/shared/unit/api_versioning.rb +2 -2
  90. data/spec/unit/api_client/registration_spec.rb +1 -1
  91. data/spec/unit/api_client_spec.rb +2 -2
  92. data/spec/unit/api_client_v1_spec.rb +3 -3
  93. data/spec/unit/chef_fs/file_system/operation_failed_error_spec.rb +1 -1
  94. data/spec/unit/client_spec.rb +2 -2
  95. data/spec/unit/data_bag_item_spec.rb +1 -1
  96. data/spec/unit/data_bag_spec.rb +1 -1
  97. data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +4 -4
  98. data/spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb +2 -2
  99. data/spec/unit/knife/bootstrap/client_builder_spec.rb +1 -1
  100. data/spec/unit/knife/cookbook_delete_spec.rb +3 -3
  101. data/spec/unit/knife/data_bag_create_spec.rb +2 -2
  102. data/spec/unit/knife/supermarket_share_spec.rb +1 -1
  103. data/spec/unit/knife/supermarket_unshare_spec.rb +3 -3
  104. data/spec/unit/knife_spec.rb +7 -7
  105. data/spec/unit/mixin/api_version_request_handling_spec.rb +2 -2
  106. data/spec/unit/node_spec.rb +2 -2
  107. data/spec/unit/policy_builder/policyfile_spec.rb +2 -2
  108. data/spec/unit/provider/group/windows_spec.rb +15 -0
  109. data/spec/unit/provider/remote_file/content_spec.rb +2 -2
  110. data/spec/unit/resource/group_spec.rb +17 -0
  111. data/spec/unit/resource/powershell_package_source_spec.rb +2 -2
  112. data/spec/unit/resource/windows_certificate.rb +7 -0
  113. data/spec/unit/resource/windows_task_spec.rb +61 -20
  114. data/spec/unit/resource_reporter_spec.rb +7 -7
  115. data/spec/unit/user_v1_spec.rb +2 -2
  116. metadata +13 -6
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.8.12
4
+ version: 14.9.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-06 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 14.8.12
19
+ version: 14.9.13
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 14.8.12
26
+ version: 14.9.13
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,16 +90,22 @@ dependencies:
90
90
  name: mixlib-archive
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0.4'
96
+ - - "<"
97
+ - !ruby/object:Gem::Version
98
+ version: '2.0'
96
99
  type: :runtime
97
100
  prerelease: false
98
101
  version_requirements: !ruby/object:Gem::Requirement
99
102
  requirements:
100
- - - "~>"
103
+ - - ">="
101
104
  - !ruby/object:Gem::Version
102
105
  version: '0.4'
106
+ - - "<"
107
+ - !ruby/object:Gem::Version
108
+ version: '2.0'
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: ohai
105
111
  requirement: !ruby/object:Gem::Requirement
@@ -1793,6 +1799,7 @@ files:
1793
1799
  - spec/functional/resource/remote_file_spec.rb
1794
1800
  - spec/functional/resource/rpm_spec.rb
1795
1801
  - spec/functional/resource/template_spec.rb
1802
+ - spec/functional/resource/timezone_spec.rb
1796
1803
  - spec/functional/resource/user/dscl_spec.rb
1797
1804
  - spec/functional/resource/user/windows_spec.rb
1798
1805
  - spec/functional/resource/windows_env_spec.rb