google-cloud-spanner 2.23.0 → 2.24.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
2
  SHA256:
3
- metadata.gz: 32575eadb5e1598ba5b49fc7dc27cc70e2d6f370c52aa42cdad5e9fa3059cf41
4
- data.tar.gz: b5bec492eed277a46d4f4031e7f9ef9ef40472df57f747a1ea88266b397fafca
3
+ metadata.gz: fe45aaee1d474b68ce2280271bd6d08756001451210dd35675405bc295c64385
4
+ data.tar.gz: 5de2b1c338ec90c0d8acc645f70a362ca7c79924bc65fd7ec575734f454a95cd
5
5
  SHA512:
6
- metadata.gz: c826d09f5ff0abe190d1f51a942f120ee67b032b508edba22de82b42b079e8c833ed7e044570c5f1138c0d4e85aeb9fb3d93d571ce5db8deca898f0d456cf267
7
- data.tar.gz: e06690d05125c1af27c8fb2e5f29f0b75b1a2d9eecd31fa6865e80fc0592caba84bc2cdb864ff25bd18a8b333019fabb52f13647b42521acf0c0706049bbc0f5
6
+ metadata.gz: 2a9190ee8a2c1b19465f6fe7ab46dfcb6bb757eb5500fe933d77e9d0fd6aef5f260c5c926553c07ca8f6360d0b23dd73bd9ed1f2541ce9626c5b2fdd8ee3e1a0
7
+ data.tar.gz: e040dfdd82111133d685455b7cb2ce49bc0bb8e9a669b513cd9988e6478fd15076ebb004e651e626a5548f644f58a6c67c7a4cc529d0a58e54bb0becb71f2186
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release History
2
2
 
3
+ ### 2.24.0 (2024-08-27)
4
+
5
+ #### Features
6
+
7
+ * Support 1.x versions of low-level spanner clients ([#113](https://github.com/googleapis/ruby-spanner/issues/113))
8
+ #### Bug Fixes
9
+
10
+ * Correct the field mask when adding labels to an instance that had none previously ([#114](https://github.com/googleapis/ruby-spanner/issues/114))
11
+
3
12
  ### 2.23.0 (2024-06-27)
4
13
 
5
14
  #### Features
@@ -258,12 +258,13 @@ module Google
258
258
  ensure_service!
259
259
 
260
260
  field_mask = []
261
- @current_values.each do |field, value|
262
- field_mask << field unless @grpc[field.to_s] == value
261
+ new_values = @grpc.to_h
262
+ (@current_values.keys + new_values.keys).uniq.each do |field|
263
+ field_mask << field unless new_values[field] == @current_values[field]
263
264
  end
264
265
 
265
266
  job_grpc = service.update_instance @grpc, field_mask: field_mask
266
- @current_values = @grpc.to_h
267
+ @current_values = new_values
267
268
  Instance::Job.from_grpc job_grpc, service
268
269
  end
269
270
  alias update save
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Spanner
19
- VERSION = "2.23.0".freeze
19
+ VERSION = "2.24.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.0
4
+ version: 2.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-27 00:00:00.000000000 Z
12
+ date: 2024-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bigdecimal
@@ -57,44 +57,62 @@ dependencies:
57
57
  name: google-cloud-spanner-admin-database-v1
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 0.19.0
63
+ - - "<"
61
64
  - !ruby/object:Gem::Version
62
- version: '0.1'
65
+ version: 2.a
63
66
  type: :runtime
64
67
  prerelease: false
65
68
  version_requirements: !ruby/object:Gem::Requirement
66
69
  requirements:
67
- - - "~>"
70
+ - - ">="
68
71
  - !ruby/object:Gem::Version
69
- version: '0.1'
72
+ version: 0.19.0
73
+ - - "<"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.a
70
76
  - !ruby/object:Gem::Dependency
71
77
  name: google-cloud-spanner-admin-instance-v1
72
78
  requirement: !ruby/object:Gem::Requirement
73
79
  requirements:
74
- - - "~>"
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.16.0
83
+ - - "<"
75
84
  - !ruby/object:Gem::Version
76
- version: '0.1'
85
+ version: 2.a
77
86
  type: :runtime
78
87
  prerelease: false
79
88
  version_requirements: !ruby/object:Gem::Requirement
80
89
  requirements:
81
- - - "~>"
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 0.16.0
93
+ - - "<"
82
94
  - !ruby/object:Gem::Version
83
- version: '0.1'
95
+ version: 2.a
84
96
  - !ruby/object:Gem::Dependency
85
97
  name: google-cloud-spanner-v1
86
98
  requirement: !ruby/object:Gem::Requirement
87
99
  requirements:
88
- - - "~>"
100
+ - - ">="
89
101
  - !ruby/object:Gem::Version
90
- version: '0.2'
102
+ version: 0.27.0
103
+ - - "<"
104
+ - !ruby/object:Gem::Version
105
+ version: 2.a
91
106
  type: :runtime
92
107
  prerelease: false
93
108
  version_requirements: !ruby/object:Gem::Requirement
94
109
  requirements:
95
- - - "~>"
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 0.27.0
113
+ - - "<"
96
114
  - !ruby/object:Gem::Version
97
- version: '0.2'
115
+ version: 2.a
98
116
  description: google-cloud-spanner is the official library for Google Cloud Spanner
99
117
  API.
100
118
  email: