knife-google 3.1.0 → 3.1.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: e898029ab85082633f81cd94eafcca433629bbb0
4
- data.tar.gz: 39617c24e15ab576173307da545e25e641cc5886
3
+ metadata.gz: 36684ea65bbfde94beaff417f61006fda2cefd7c
4
+ data.tar.gz: 696513f5211c2d6c4f5142341e420a9c3e3bd439
5
5
  SHA512:
6
- metadata.gz: f9970b9538003f7847b735bc0e7e94916e8668b43c85fdb80f24607347a5cab39088adbb46e803d58153c0850bf144166c79f06459c162f196171409e1bbca65
7
- data.tar.gz: cb7117544c79a257f71c5b33b9f5561b69287d9d0a6ac2e62902d8135263466b54a4277051c97df3dc14eed38f97a173dc5f3f8caf3390c6f8fd7c8e3ac05087
6
+ metadata.gz: ef1d17c627a99ea3fc7ac644b8dfa03a333549fab8bb3c4c9d04458b208906f18ce62f2e487b83185e7e7d188aa3caaf61db4c16acfd40074ab2b3b72d432ac1
7
+ data.tar.gz: 179c9bc2c36cb8963d92e29f22cf7baa4e3f62c60ea4cf6e6a2a43fa5cc3d2d0d7da25b677a3cc5413c205e24bfa4733a7feee4efe5a4d0d3e405d8e67ba8137
data/.gitignore CHANGED
@@ -21,3 +21,6 @@ doc/
21
21
  Gemfile.lock
22
22
  .rvmrc
23
23
  .ruby-version
24
+
25
+ .direnv/
26
+ .envrc
@@ -1,7 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [v3.1.0](https://github.com/chef/knife-google/tree/v3.1.0) (2016-11-08)
3
+ ## [3.1.1](https://github.com/chef/knife-google/tree/v3.1.1)
4
+
5
+ [Full Changelog](https://github.com/chef/knife-google/compare/v3.1.0...v3.1.1)
6
+
7
+ **Closed issues:**
8
+
9
+ - Can't Modify Frozen String [\#118](https://github.com/chef/knife-google/issues/118)
4
10
 
11
+ **Merged pull requests:**
12
+
13
+ - Fix for \#118 [\#119](https://github.com/chef/knife-google/pull/119) ([jjasghar](https://github.com/jjasghar))
14
+
15
+ ## [v3.1.0](https://github.com/chef/knife-google/tree/v3.1.0) (2016-11-08)
5
16
  [Full Changelog](https://github.com/chef/knife-google/compare/v3.0.0...v3.1.0)
6
17
 
7
18
  **Closed issues:**
@@ -10,6 +21,7 @@
10
21
 
11
22
  **Merged pull requests:**
12
23
 
24
+ - v3.1.0 [\#115](https://github.com/chef/knife-google/pull/115) ([jjasghar](https://github.com/jjasghar))
13
25
  - Move deps to the Gemfile [\#114](https://github.com/chef/knife-google/pull/114) ([tas50](https://github.com/tas50))
14
26
  - make public\_ip work for any case 'none' at 'instance\_access\_configs\_for' [\#106](https://github.com/chef/knife-google/pull/106) ([abhishekkr](https://github.com/abhishekkr))
15
27
 
data/README.md CHANGED
@@ -58,6 +58,8 @@ Google Cloud API. The auth library expects that there is a JSON credentials file
58
58
  The easiest way to create this is to download and install the [Google Cloud SDK](https://cloud.google.com/sdk/) and run the
59
59
  `gcloud auth login` command which will create the credentials file for you.
60
60
 
61
+ **Update:** `gcloud auth login` no longer writes application default credentials. Please run `gcloud auth application-default login` for appropriate application credentials file.
62
+
61
63
  If you already have a file you'd like to use that is in a different location, set the
62
64
  `GOOGLE_APPLICATION_CREDENTIALS` environment variable with the full path to that file.
63
65
 
@@ -245,11 +245,10 @@ class Chef::Knife::Cloud
245
245
  end
246
246
 
247
247
  def valid_public_ip_setting?(public_ip)
248
- public_ip.downcase! if public_ip.respond_to?(:downcase)
249
-
250
- if public_ip.nil? || public_ip == "ephemeral" || public_ip == "none"
248
+ case
249
+ when public_ip.nil? || public_ip.match(/(ephemeral|none)/i)
251
250
  true
252
- elsif valid_ip_address?(public_ip)
251
+ when valid_ip_address?(public_ip)
253
252
  true
254
253
  else
255
254
  false
@@ -409,9 +408,7 @@ class Chef::Knife::Cloud
409
408
  end
410
409
 
411
410
  def instance_access_configs_for(public_ip)
412
- public_ip.downcase! if public_ip.respond_to?(:downcase)
413
-
414
- return [] if public_ip.nil? || public_ip == "none"
411
+ return [] if public_ip.nil? || public_ip.match(/none/i)
415
412
 
416
413
  access_config = Google::Apis::ComputeV1::AccessConfig.new
417
414
  access_config.name = "External NAT"
@@ -15,7 +15,7 @@
15
15
  #
16
16
  module Knife
17
17
  module Google
18
- VERSION = "3.1.0"
18
+ VERSION = "3.1.1"
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.1.0
4
+ version: 3.1.1
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: 2016-11-08 00:00:00.000000000 Z
16
+ date: 2017-02-17 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: chef