fog-google 1.11.0 → 1.12.0

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
- SHA1:
3
- metadata.gz: e41bc807cc19b9984780ffcc9c253bac3ec3d13d
4
- data.tar.gz: 69df7076d8eda3dfb5e22b1afcdb2ef97ee16e43
2
+ SHA256:
3
+ metadata.gz: f1c1391e08462b5fb89fdd154a48c0377d51e297c796bd93410ccd408e4588f0
4
+ data.tar.gz: 3be445fcb9bf73d16c8d244dfd48353628250314f9a06c02dafd68401d89c7eb
5
5
  SHA512:
6
- metadata.gz: af8cff6ac06cab566a31db97eb6b2065c53a74be8a77e133b4816f132a9b8079d7ff01e0031a393120bc3c98e8d680371ebfb07c72c5ddabded8f96d6f4d8b54
7
- data.tar.gz: f81555df397158c969d85dd2b3215842e46f2e2217371e54fae1125fef349b76ea8d02c8218ebe3dc9ba04c6965e9c93ba96db2f501d070dfaf060a772badc07
6
+ metadata.gz: 279cba589d3876f6f01a868f9997578a966e106e276a8ef979559ce8ff79adcad6248731faa79fe31f132880997207638242899798bebafd843a590c71d554f8
7
+ data.tar.gz: ae4fc9fdeeb86471d020fef16a7b7b4f5b15b8c56438138e85e6494efd8a3c5d91ff183857e84aa84824fc937264bf6852b9fe3d581b4a3d4fee6f4cc3ab59ea
@@ -4,13 +4,15 @@ sudo: false
4
4
  matrix:
5
5
  fast_finish: true
6
6
  include:
7
- - rvm: 2.3
8
7
  - rvm: 2.4
9
8
  - rvm: 2.5
10
9
  - rvm: 2.6
11
- - rvm: jruby-9.1
10
+ - rvm: 2.7
11
+ - rvm: jruby-9.2
12
12
  - rvm: jruby-head
13
+ - rvm: truffleruby-head
13
14
  allow_failures:
14
15
  - rvm: jruby-head
16
+ - rvm: truffleruby-head
15
17
  notifications:
16
18
  email: false
@@ -6,6 +6,28 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Next
8
8
 
9
+
10
+ ## 1.12.0
11
+
12
+ ### User-facing
13
+
14
+ #### Added
15
+
16
+ - \#509 Add ShieldedInstanceConfig support to `Server#insert` [lcy0321]
17
+
18
+ #### Fixed
19
+
20
+ - \#508 Fix GoogleXML::File#save incorrectly passing body to headers [stanhu]
21
+
22
+ - \#506 Add Trufferuby head to CI [gogainda]
23
+
24
+ ### Development changes
25
+
26
+ #### Fixed
27
+
28
+ - \#510 Upgrade CI docker image to Ubuntu 18.04 [temikus]
29
+
30
+
9
31
  ## 1.11.0
10
32
 
11
33
  ### User-facing
data/README.md CHANGED
@@ -8,7 +8,7 @@ The main maintainers for the Google sections are @icco, @Temikus and @plribeiro3
8
8
 
9
9
  - As of **v1.0.0**, fog-google includes google-api-client as a dependency, there is no need to include it separately anymore.
10
10
 
11
- - Fog-google is currently supported on Ruby 2.3+ See [supported ruby versions](#supported-ruby-versions) for more info.
11
+ - Fog-google is currently supported on Ruby 2.4+ See [supported ruby versions](#supported-ruby-versions) for more info.
12
12
 
13
13
  See **[MIGRATING.md](MIGRATING.md)** for migration between major versions.
14
14
 
@@ -27,8 +27,8 @@ As of 2017-12-15, we are still working on making Fog for Google Compute engine (
27
27
 
28
28
  ## SQL
29
29
 
30
- Fog implements [v1beta4](https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/) of the Google Cloud SQL Admin API. As of 2017-11-06, Cloud SQL is mostly feature-complete. Please [file issues](https://github.com/fog/fog-google/issues) for any anomalies you see or features you would like as we finish
31
- adding remaining features.
30
+ Fog implements [v1beta4](https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/) of the Google Cloud SQL Admin API. As of 2017-11-06, Cloud SQL is mostly feature-complete. Please [file issues](https://github.com/fog/fog-google/issues) for any anomalies you see or features you would like as we finish
31
+ adding remaining features.
32
32
 
33
33
  ## DNS
34
34
 
@@ -36,8 +36,8 @@ Fog implements [v1](https://cloud.google.com/dns/api/v1/) of the Google Cloud DN
36
36
 
37
37
  ## Monitoring
38
38
 
39
- Fog implements [v3](https://cloud.google.com/monitoring/api/v3/) of the Google Cloud Monitoring API. As of 2017-10-05, we believe Fog for Google Cloud Monitoring is feature complete for metric-related resources and are working on supporting groups.
40
-
39
+ Fog implements [v3](https://cloud.google.com/monitoring/api/v3/) of the Google Cloud Monitoring API. As of 2017-10-05, we believe Fog for Google Cloud Monitoring is feature complete for metric-related resources and are working on supporting groups.
40
+
41
41
  We are always looking for people to improve our code and test coverage, so please [file issues](https://github.com/fog/fog-google/issues) for any anomalies you see or features you would like.
42
42
 
43
43
  ## Pubsub
@@ -94,12 +94,12 @@ cat .fog.example >> ~/.fog # appends the sample configuration
94
94
  vim ~/.fog # edit file with yout config
95
95
  ```
96
96
 
97
- As of `1.9.0` fog-google supports Google [application default credentials (ADC)](https://cloud.google.com/docs/authentication/production)
97
+ As of `1.9.0` fog-google supports Google [application default credentials (ADC)](https://cloud.google.com/docs/authentication/production)
98
98
  The auth method uses [Google::Auth.get_application_default](https://www.rubydoc.info/gems/googleauth/0.6.7/Google%2FAuth.get_application_default)
99
99
  under the hood.
100
100
 
101
101
  Example workflow for a GCE instance with [service account scopes](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances)
102
- defined:
102
+ defined:
103
103
 
104
104
  ```
105
105
  > connection = Fog::Compute::Google.new(:google_project => "my-project", :google_application_default => true)
@@ -165,10 +165,10 @@ $ bundle exec pry
165
165
 
166
166
  ## Supported Ruby Versions
167
167
 
168
- Fog-google is currently supported on Ruby 2.3+.
168
+ Fog-google is currently supported on Ruby 2.4+.
169
169
 
170
170
  In general we support (and run our CI) for Ruby versions that are actively supported
171
- by Ruby Core - that is, Ruby versions that are not end of life. Older versions of
171
+ by Ruby Core - that is, Ruby versions that are not end of life. Older versions of
172
172
  Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/
173
173
  for details about the Ruby support schedule.
174
174
 
@@ -1,6 +1,6 @@
1
- FROM ubuntu:16.04
1
+ FROM ubuntu:18.04
2
2
 
3
- # Packages
3
+ # Common dependencies for the CI env and gems with C extensions
4
4
  RUN DEBIAN_FRONTEND=noninteractive apt-get -y -qq update && apt-get -y -qq install \
5
5
  build-essential \
6
6
  curl \
@@ -12,7 +12,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y -qq update && apt-get -y -qq insta
12
12
  libxml2-dev \
13
13
  libxslt-dev
14
14
 
15
- # Ubuntu 16.04 will fetch us 2.3.x without any issues.
15
+ # Ubuntu 18.04 will fetch us Ruby 2.5.x
16
16
  RUN DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ruby ruby-dev && apt-get clean
17
17
 
18
18
  RUN gem install bundler
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "fog-json", "~> 1.2"
26
26
  spec.add_dependency "fog-xml", "~> 0.1.0"
27
27
 
28
- spec.add_dependency "google-api-client", ">= 0.32", "< 0.34"
28
+ spec.add_dependency "google-api-client", ">= 0.44.2", "< 0.51"
29
29
  spec.add_dependency "google-cloud-env", "~> 1.2"
30
30
 
31
31
  # Debugger
@@ -100,6 +100,10 @@ module Fog
100
100
  data[:scheduling] = ::Google::Apis::ComputeV1::Scheduling.new(options[:scheduling])
101
101
  end
102
102
 
103
+ if data[:shielded_instance_config]
104
+ data[:shielded_instance_config] = ::Google::Apis::ComputeV1::ShieldedInstanceConfig.new(options[:shielded_instance_config])
105
+ end
106
+
103
107
  if data[:tags]
104
108
  if options[:tags].is_a?(Array)
105
109
  # Process classic tag notation, i.e. ["fog"]
@@ -8,7 +8,7 @@ module Fog
8
8
 
9
9
  class Real
10
10
  def delete_user(instance_id, host, name)
11
- @sql.delete_user(@project, instance_id, host, name)
11
+ @sql.delete_user(@project, instance_id, host: host, name: name)
12
12
  end
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.11.0".freeze
3
+ VERSION = "1.12.0".freeze
4
4
  end
5
5
  end
@@ -51,7 +51,7 @@ module Fog
51
51
 
52
52
  remove_method :metadata
53
53
  def metadata
54
- attributes.reject { |key, _value| key.to_s =~ /^x-goog-meta-/ }
54
+ attributes.select { |key, _value| key.to_s =~ /^x-goog-meta-/ }
55
55
  end
56
56
 
57
57
  remove_method :metadata=
@@ -6,6 +6,7 @@ class UnitTestStorageXMLCollections < MiniTest::Test
6
6
  @client = Fog::Storage.new(provider: "google",
7
7
  google_storage_access_key_id: "",
8
8
  google_storage_secret_access_key: "")
9
+ @bucket = @client.directories.create(key: "testbucket-#{SecureRandom.hex}")
9
10
 
10
11
  # Enumerate all descendants of Fog::Collection
11
12
  descendants = ObjectSpace.each_object(Fog::Collection.singleton_class)
@@ -36,4 +37,14 @@ class UnitTestStorageXMLCollections < MiniTest::Test
36
37
  "#{klass} should have at most 1 required parameter in get()")
37
38
  end
38
39
  end
40
+
41
+ def test_metadata
42
+ attr = { key: 'test-file', body: "hello world\x00" }
43
+ f = @bucket.files.new(attr)
44
+ assert_equal({}, f.metadata)
45
+
46
+ metadata = { 'x-goog-meta-my-header' => 'hello world' }
47
+ f = @bucket.files.new(attr.merge(metadata))
48
+ assert_equal(metadata, f.metadata)
49
+ end
39
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Welch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-13 00:00:00.000000000 Z
12
+ date: 2020-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core
@@ -59,20 +59,20 @@ dependencies:
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '0.32'
62
+ version: 0.44.2
63
63
  - - "<"
64
64
  - !ruby/object:Gem::Version
65
- version: '0.34'
65
+ version: '0.51'
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: '0.32'
72
+ version: 0.44.2
73
73
  - - "<"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.34'
75
+ version: '0.51'
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: google-cloud-env
78
78
  requirement: !ruby/object:Gem::Requirement
@@ -780,8 +780,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
780
780
  - !ruby/object:Gem::Version
781
781
  version: '0'
782
782
  requirements: []
783
- rubyforge_project:
784
- rubygems_version: 2.6.14.4
783
+ rubygems_version: 3.0.3
785
784
  signing_key:
786
785
  specification_version: 4
787
786
  summary: Module for the 'fog' gem to support Google.