knife-google 3.3.0 → 3.3.3

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: 5dd30eb3922b86c6904861cac996d0e78658125a77c153b24c419dfbd91e7483
4
- data.tar.gz: 6bd3624591d4da58c542bdab807f401dee05854edbc4aef3a2891c0e10e804fc
3
+ metadata.gz: 912225d3b18ae28eb1e4c1cdddff75077cf863917f4888fb85c8aeb261c71e47
4
+ data.tar.gz: 9827cb9f230891db43016ffe0fc1bd47b13158b0fda2f8db670643599335d40d
5
5
  SHA512:
6
- metadata.gz: f77d145fd940cfc8f97be68be3c52e5cdd5583abe272db033c7dad6d5e47dd9c6d2c38dbd113380ab15f232f6989d89213036e3653fad814b47d4ec09955a674
7
- data.tar.gz: 1175a1951d906fa9ad64d4d338f8859b541594f1229b44073d64c5c5c1372337e8aebb856d6e8cc1f337a0703606ce6421c9727e4602fcc16942e0f8ff8f4ace
6
+ metadata.gz: a76733350635961937f0a3f44fba7877039eb3e66f51906ae5e587d6c101b262e443f13574429787f2cf5fe9de578c404b4be442691996462a419571ee5d5988
7
+ data.tar.gz: 21348ae47376ebbe56eb25917404079e3d7fad6160a46ef50c8986064beeb87102b9efac67fb10b61de43340bb2f1ed5e3f3e2429dde6a7954781e552b203c38
@@ -0,0 +1,41 @@
1
+ # Documentation available at https://expeditor.chef.io/docs/getting-started/
2
+ ---
3
+ # Slack channel in Chef Software slack to send notifications about build failures, etc
4
+ slack:
5
+ notify_channel: sustaining-notify
6
+
7
+ # This publish is triggered by the `built_in:publish_rubygems` artifact_action.
8
+ rubygems:
9
+ - knife-google
10
+
11
+ github:
12
+ # This deletes the GitHub PR branch after successfully merged into the release branch
13
+ delete_branch_on_merge: true
14
+ # The tag format to use (e.g. v1.0.0)
15
+ version_tag_format: "v{{version}}"
16
+ # allow bumping the minor release via label
17
+ minor_bump_labels:
18
+ - "Expeditor: Bump Minor Version"
19
+
20
+ changelog:
21
+ rollup_header: Changes not yet released to rubygems.org
22
+
23
+ # These actions are taken, in order they are specified, anytime a Pull Request is merged.
24
+ merge_actions:
25
+ - built_in:bump_version:
26
+ ignore_labels:
27
+ - "Expeditor: Skip Version Bump"
28
+ - "Expeditor: Skip All"
29
+ - bash:.expeditor/update_version.sh:
30
+ only_if: built_in:bump_version
31
+ - built_in:update_changelog:
32
+ ignore_labels:
33
+ - "Expeditor: Exclude From Changelog"
34
+ - "Expeditor: Skip All"
35
+ - built_in:build_gem:
36
+ only_if: built_in:bump_version
37
+
38
+ promote:
39
+ actions:
40
+ - built_in:rollover_changelog
41
+ - built_in:publish_rubygems
@@ -0,0 +1,12 @@
1
+ #!/bin/sh
2
+ #
3
+ # After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
4
+ # It then executes this file to update any other files/components with that new version.
5
+ #
6
+
7
+ set -evx
8
+
9
+ sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/knife-google/version.rb
10
+
11
+ # Once Expeditor finishes executing this script, it will commit the changes and push
12
+ # the commit as a new tag corresponding to the value in the VERSION file.
@@ -0,0 +1,4 @@
1
+ # Order is important. The last matching pattern has the most precedence.
2
+
3
+ * @chef/msys-developers
4
+ .expeditor/** @chef/jex-team
@@ -0,0 +1,14 @@
1
+ ### Description
2
+
3
+ [Please describe what this change achieves]
4
+
5
+ ### Issues Resolved
6
+
7
+ [List any existing issues this PR resolves, or any Discourse or
8
+ StackOverflow discussion that's relevant]
9
+
10
+ ### Check List
11
+
12
+ - [ ] New functionality includes tests
13
+ - [ ] All tests pass
14
+ - [ ] All commits have been signed-off for the Developer Certificate of Origin. See <https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco>
@@ -1,20 +1,24 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  cache: bundler
3
- dist: trusty
4
- sudo: false
5
- rvm:
6
- - 2.2.7
7
- - 2.3.4
8
- - 2.4.1
9
- - ruby-head
10
-
4
+
11
5
  matrix:
6
+ include:
7
+ - rvm: 2.3.7
8
+ - rvm: 2.4.4
9
+ - rvm: 2.5.1
10
+ - rvm: ruby-head
12
11
  allow_failures:
13
12
  - rvm: ruby-head
14
13
 
15
14
  branches:
16
15
  only:
17
16
  - master
17
+
18
+ bundler_args: --without docs development
19
+
20
+ script: bundle exec rake
21
+
18
22
  notifications:
19
23
  slack:
20
24
  on_success: change
@@ -1,4 +1,39 @@
1
- # Change Log
1
+ # knife-google Change Log
2
+
3
+ Note: this log contains only changes from knife-google release 1.1.0 and later
4
+ -- it does not contain the changes from prior releases. To view change history
5
+ prior to release 1.1.0, please visit the [source repository](https://github.com/chef/knife-google/commits).
6
+
7
+ <!-- latest_release 3.3.3 -->
8
+ ## [v3.3.3](https://github.com/chef/knife-google/tree/v3.3.3) (2018-10-17)
9
+
10
+ #### Merged Pull Requests
11
+ - Allow for newer google-api-client releases [#137](https://github.com/chef/knife-google/pull/137) ([tas50](https://github.com/tas50))
12
+ <!-- latest_release -->
13
+
14
+ <!-- release_rollup since=3.3.0 -->
15
+ ### Changes since 3.3.0 release
16
+
17
+ #### Merged Pull Requests
18
+ - Allow for newer google-api-client releases [#137](https://github.com/chef/knife-google/pull/137) ([tas50](https://github.com/tas50)) <!-- 3.3.3 -->
19
+ - Empty commit to test expeditor [#136](https://github.com/chef/knife-google/pull/136) ([btm](https://github.com/btm)) <!-- 3.3.2 -->
20
+ <!-- release_rollup -->
21
+
22
+ <!-- latest_stable_release -->
23
+ <!-- latest_stable_release -->
24
+
25
+ ## [3.3.0](https://github.com/chef/knife-google/tree/v3.3.0)
26
+
27
+ [Full Changelog](https://github.com/chef/knife-google/compare/v3.2.0...v3.3.0)
28
+
29
+ - Increased the dependency on google-api-client from 0.9.X to 0.19.X to bring in the latest improvements to the API
30
+ - Remove the dependency on Chef entirely since it's assumed Chef is already installed
31
+
32
+ ## [3.2.0](https://github.com/chef/knife-google/tree/v3.2.0)
33
+
34
+ [Full Changelog](https://github.com/chef/knife-google/compare/v3.1.1...v3.2.0)
35
+
36
+ - Loosen the dependency on Chef so this gem can work with Chef 13+
2
37
 
3
38
  ## [3.3.0](https://github.com/chef/knife-google/tree/v3.3.0)
4
39
 
@@ -206,4 +241,4 @@
206
241
 
207
242
 
208
243
 
209
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
244
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile CHANGED
@@ -1,13 +1,30 @@
1
- # frozen_string_literal: true
2
1
  source "https://rubygems.org"
3
2
 
4
3
  gemspec
5
4
 
6
- group :development do
7
- gem "chef", ">= 12.0"
5
+ group :docs do
6
+ gem "yard"
7
+ gem "redcarpet"
8
+ gem "github-markup"
9
+ end
10
+
11
+ group :test do
12
+ gem "chefstyle"
13
+ gem "rspec", "~> 3.1"
8
14
  gem "rake"
9
- gem "rspec", "~> 3.1"
10
- gem "simplecov", "~> 0.9"
15
+ gem "chef", ">= 12.0"
16
+ end
17
+
18
+ group :development do
11
19
  gem "pry"
12
- gem "chefstyle"
20
+ gem "pry-byebug"
21
+ gem "pry-stack_explorer"
22
+ gem "rb-readline"
23
+ gem "simplecov", "~> 0.9"
13
24
  end
25
+
26
+ instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
27
+
28
+ # If you want to load debugging tools into the bundle exec sandbox,
29
+ # add these additional dependencies into Gemfile.local
30
+ eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
data/README.md CHANGED
@@ -271,36 +271,35 @@ WinRM is used by Chef to bootstrap Windows nodes. The default settings of the GC
271
271
  * inbound firewall rule in Windows Firewall to allow the inbound WinRM connections
272
272
  * enable the appropriate WinRM transports
273
273
 
274
- # License and Authors
274
+ ## Development Documentation
275
275
 
276
- Version 3.0.0 of knife-google was rewritten by Chef Partner Engineering but is largely inspired by initial versions of knife-google, thanks to the work of the great folks at Google.
276
+ All documentation is written using YARD. You can generate a by running:
277
277
 
278
- Author:: Chef Partner Engineering (<partnereng@chef.io>)
278
+ ```
279
+ rake docs
280
+ ```
279
281
 
280
- Copyright:: Copyright (c) 2016 Chef Software, Inc.
282
+ ## Contributing
281
283
 
282
- License:: Apache License, Version 2.0
284
+ For information on contributing to this project please see our [Contributing Documentation](https://github.com/chef/chef/blob/master/CONTRIBUTING.md)
283
285
 
284
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
285
- this file except in compliance with the License. You may obtain a copy of the License at
286
+ ## License & Copyright
286
287
 
287
- ```
288
- http://www.apache.org/licenses/LICENSE-2.0
289
- ```
290
-
291
- Unless required by applicable law or agreed to in writing, software distributed under the
292
- License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
293
- either express or implied. See the License for the specific language governing permissions
294
- and limitations under the License.
288
+ Version 3.0.0 of knife-google was rewritten by Chef Partner Engineering but is largely inspired by initial versions of knife-google, thanks to the work of the great folks at Google.
295
289
 
296
- # Contributing
290
+ - Copyright:: Copyright (c) 2016-2018 Chef Software, Inc.
291
+ - License:: Apache License, Version 2.0
297
292
 
298
- We'd love to hear from you if you find this isn't working for you. Please submit a GitHub issue with any problems you encounter.
293
+ ```text
294
+ Licensed under the Apache License, Version 2.0 (the "License");
295
+ you may not use this file except in compliance with the License.
296
+ You may obtain a copy of the License at
299
297
 
300
- Additionally, contributions are welcome! If you'd like to send up any fixes or changes:
298
+ http://www.apache.org/licenses/LICENSE-2.0
301
299
 
302
- 1. Fork it ( https://github.com/chef/knife-google/fork )
303
- 2. Create your feature branch (`git checkout -b my-new-feature`)
304
- 3. Commit your changes (`git commit -am 'Add some feature'`)
305
- 4. Push to the branch (`git push origin my-new-feature`)
306
- 5. Create a new Pull Request
300
+ Unless required by applicable law or agreed to in writing, software
301
+ distributed under the License is distributed on an "AS IS" BASIS,
302
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
303
+ See the License for the specific language governing permissions and
304
+ limitations under the License.
305
+ ```
data/Rakefile CHANGED
@@ -1,13 +1,35 @@
1
- # frozen_string_literal: true
2
1
  require "bundler/gem_tasks"
3
2
  require "rspec/core/rake_task"
4
3
 
5
- RSpec::Core::RakeTask.new(:spec)
4
+ task default: [:style, :spec]
6
5
 
7
- require "chefstyle"
8
- require "rubocop/rake_task"
9
- RuboCop::RakeTask.new(:style) do |task|
10
- task.options << "--display-cop-names"
6
+ Bundler::GemHelper.install_tasks
7
+
8
+ desc "Run specs"
9
+ RSpec::Core::RakeTask.new(:spec) do |spec|
10
+ spec.pattern = "spec/**/*_spec.rb"
11
+ end
12
+
13
+ begin
14
+ require "chefstyle"
15
+ require "rubocop/rake_task"
16
+ RuboCop::RakeTask.new(:style) do |task|
17
+ task.options += ["--display-cop-names", "--no-color"]
18
+ end
19
+ rescue LoadError
20
+ puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed."
11
21
  end
12
22
 
13
- task default: [:spec, :style]
23
+ begin
24
+ require "yard"
25
+ YARD::Rake::YardocTask.new(:docs)
26
+ rescue LoadError
27
+ puts "yard is not available. bundle install first to make sure all dependencies are installed."
28
+ end
29
+
30
+ task :console do
31
+ require "irb"
32
+ require "irb/completion"
33
+ ARGV.clear
34
+ IRB.start
35
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.3.3
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.required_ruby_version = ">= 2.2.2"
19
19
 
20
20
  s.add_dependency "knife-cloud", "~> 1.2.0"
21
- s.add_dependency "google-api-client", "~> 0.19.8"
21
+ s.add_dependency "google-api-client", ">= 0.19.8", "< 0.25" # each version introduces breaking changes which we need to validate
22
22
  s.add_dependency "gcewinpass", "~> 1.1"
23
23
 
24
24
  s.add_development_dependency "github_changelog_generator"
@@ -15,7 +15,7 @@
15
15
  #
16
16
  module Knife
17
17
  module Google
18
- VERSION = "3.3.0"
18
+ VERSION = "3.3.3"
19
19
  MAJOR, MINOR, TINY = VERSION.split(".")
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chiraq Jog
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-07-30 00:00:00.000000000 Z
16
+ date: 2018-10-17 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: knife-cloud
@@ -33,16 +33,22 @@ dependencies:
33
33
  name: google-api-client
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - "~>"
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: 0.19.8
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: '0.25'
39
42
  type: :runtime
40
43
  prerelease: false
41
44
  version_requirements: !ruby/object:Gem::Requirement
42
45
  requirements:
43
- - - "~>"
46
+ - - ">="
44
47
  - !ruby/object:Gem::Version
45
48
  version: 0.19.8
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '0.25'
46
52
  - !ruby/object:Gem::Dependency
47
53
  name: gcewinpass
48
54
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +87,11 @@ extra_rdoc_files:
81
87
  - README.md
82
88
  - LICENSE
83
89
  files:
90
+ - ".expeditor/config.yml"
91
+ - ".expeditor/update_version.sh"
92
+ - ".github/CODEOWNERS"
84
93
  - ".github/ISSUE_TEMPLATE.md"
94
+ - ".github/PULL_REQUEST_TEMPLATE.md"
85
95
  - ".gitignore"
86
96
  - ".rspec"
87
97
  - ".travis.yml"
@@ -91,6 +101,7 @@ files:
91
101
  - README.md
92
102
  - RELEASE_NOTES.md
93
103
  - Rakefile
104
+ - VERSION
94
105
  - knife-google.gemspec
95
106
  - lib/chef/knife/cloud/google_service.rb
96
107
  - lib/chef/knife/cloud/google_service_helpers.rb