google-cloud-spanner 2.9.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39a33a615e75cde66aa1d0ebf4631f34d5b139fa0a5c9fe203a20a4f157c5534
4
- data.tar.gz: 415409aa55971910e5c337a6d88a2ee0e78671a3cde9ab0ebf3170edab8151ca
3
+ metadata.gz: 507e92dd7d005df48967afbdabd4df9df518bca1cd0da416742bf21de28afa76
4
+ data.tar.gz: 14560745cbe0a401d6c5f7c82b9c67c739083e851177c0cbdcdc9006b4acb24e
5
5
  SHA512:
6
- metadata.gz: a83fc9125b21861b192099c025596c0224eb3b2d4c7904809a52062358c35d621510ef0e8d2b9ecd583609514d440e19927130fcdf56242ea2a6765a5ce83a03
7
- data.tar.gz: 0e5a053289cb6393d62533836eda651217e60388d43931613245ac3b55ddb3d17b8c98cbb866fc0efec703bba398ccb7f18b38fb6129c11b03306bb8419f823f
6
+ metadata.gz: 4b21e91bbe78fc964d9ab3c38209857d434ea9c3c3773298a6531527d60d882eb5cd805d6d4acc860454844dde411e9b08b595c1e3d742b759362eb6b9b8644c
7
+ data.tar.gz: ee18b40a314dc71b3b58f42af1bb761d2fd36ce5d349bdb9425635e61051399400644faa1e5f43be4a3db6a01591242bfcd8077d051e5f7e00d50f8e766b575d
data/CHANGELOG.md CHANGED
@@ -1,10 +1,16 @@
1
1
  # Release History
2
2
 
3
+ ### 2.10.0 / 2021-08-24
4
+
5
+ #### Features
6
+
7
+ * add field JSON type support
8
+
3
9
  ### 2.9.0 / 2021-07-26
4
10
 
5
11
  #### Features
6
12
 
7
- * support request tagging ([#8163](https://www.github.com/googleapis/google-cloud-ruby/issues/8163))
13
+ * support request tagging
8
14
 
9
15
  ### 2.8.1 / 2021-07-08
10
16
 
@@ -16,44 +22,25 @@
16
22
 
17
23
  #### Features
18
24
 
19
- * create instance using processing units/node count ([#11379](https://www.github.com/googleapis/google-cloud-ruby/issues/11379))
20
- * create instance using processing units/node count
21
- * fix typo
22
- * removed node count and processing unit validations
23
- * update orignal value on instance save
24
- * remove orignal_values to current_valuess
25
+ * create instance using processing units/node count
25
26
 
26
27
  ### 2.7.0 / 2021-06-09
27
28
 
28
29
  #### Features
29
30
 
30
- * add the support of optimizer statistics package ([#7591](https://www.github.com/googleapis/google-cloud-ruby/issues/7591))
31
- * feat(spanner): add the support of optimizer statistics package
32
- * Fix rubocop issues.
33
- * Fix the env issue.
34
- * database create time access method ([#11617](https://www.github.com/googleapis/google-cloud-ruby/issues/11617))
35
- * added database create time method
36
- * remove assert for databse create time
37
- * RPC priority request option. ([#11258](https://www.github.com/googleapis/google-cloud-ruby/issues/11258))
31
+ * add the support of optimizer statistics package
32
+ * database create time access method
33
+ * RPC priority request option.
38
34
 
39
35
  #### Bug Fixes
40
36
 
41
- * extract binary retry info from error ([#11656](https://www.github.com/googleapis/google-cloud-ruby/issues/11656))
42
- * fix: extract binary retry info from error
43
- * fix: remove unrelated frozen_string_literal change
44
- * fix: remove unnecessary parentheses
37
+ * extract binary retry info from error
45
38
 
46
39
  ### 2.6.0 / 2021-03-31
47
40
 
48
41
  #### Features
49
42
 
50
- * add cmek backup support - ext of [#8142](https://www.github.com/googleapis/google-cloud-ruby/issues/8142) ([#8168](https://www.github.com/googleapis/google-cloud-ruby/issues/8168))
51
- * feat(spanner): add cmek backup support
52
- * Add encryption_config to restore database.
53
- * doc example for backup create with encryption config
54
- * create backup with encryption type
55
- * backup restore with encryption type changes
56
- * fix typo
43
+ * add cmek backup support
57
44
  * add cmek db support
58
45
 
59
46
  ### 2.5.0 / 2021-03-10
@@ -66,27 +53,14 @@
66
53
 
67
54
  #### Features
68
55
 
69
- * Point In Time Recovery (PITR) ([#8169](https://www.github.com/googleapis/google-cloud-ruby/issues/8169))
70
- * feat(spanner): support pitr-lite
71
- * feature(spanner): adds test for throttled
72
- * feat(spanner): adds version time to backup
73
- * test(spanner): adds unit test for create backup
74
- * feat(spanner): exposes version time in backup
75
- * chore: fixes rubocop violations
76
- * fix: addresses PR comments
77
- * test: adds integration tests for pitr backup
56
+ * Point In Time Recovery (PITR)
78
57
 
79
58
  ### 2.3.0 / 2021-02-09
80
59
 
81
60
  #### Features
82
61
 
83
- * CommitStats in CommitResponse ([#8058](https://www.github.com/googleapis/google-cloud-ruby/issues/8058))
84
- * optionalize `credentials` when using cloud spanner emulator host ([#8416](https://www.github.com/googleapis/google-cloud-ruby/issues/8416))
85
- * Optionalize `credentials` when using Cloud Spanner Emulator
86
- * Remove unnecessary credentials stub for emulator_host in Google::Cloud::Spanner.new
87
- * Add test of explicit project_id in Google::Cloud::Spanner.new
88
- * Update document for `emulator_host` without credentials
89
- * Tidy code according to rubocop settings
62
+ * CommitStats in CommitResponse
63
+ * optionalize `credentials` when using cloud spanner emulator host
90
64
 
91
65
  ### 2.2.0 / 2020-09-15
92
66
 
@@ -146,25 +120,20 @@ please review the docs for the new `google-cloud-spanner-v1` gem. In particular:
146
120
 
147
121
  #### Features
148
122
 
149
- * Added support for backing up and restoring databases ([#5053](https://www.github.com/googleapis/google-cloud-ruby/issues/5053))
123
+ * Added support for backing up and restoring databases
150
124
 
151
125
  ### 1.15.0 / 2020-03-15
152
126
 
153
127
  #### Features
154
128
 
155
- * Added support for query options ([#4907](https://www.github.com/googleapis/google-cloud-ruby/issues/4907))
156
- * Added support for specifying the query optimizer version.
129
+ * Added support for query options
157
130
  * Support separate project setting for quota/billing
158
131
 
159
132
  ### 1.14.0 / 2020-02-18
160
133
 
161
134
  #### Features
162
135
 
163
- * allow custom lib name and version for telemetry purpose ([#4762](https://www.github.com/googleapis/google-cloud-ruby/issues/4762))
164
- * allow custom lib name and version for telemetry purpose
165
- * format docs
166
- * added custom lib name and version prefix
167
- * update test cases for lib name and version
136
+ * allow custom lib name and version for telemetry purpose
168
137
 
169
138
  ### 1.13.1 / 2020-01-22
170
139
 
@@ -99,8 +99,7 @@ module Google
99
99
  if field.is_a? Fields
100
100
  field.struct(obj).to_grpc_value
101
101
  else
102
- raise ArgumentError,
103
- "A hash value cannot be set to type #{field}."
102
+ Google::Protobuf::Value.new string_value: obj.to_json
104
103
  end
105
104
  else
106
105
  if obj.respond_to?(:read) && obj.respond_to?(:rewind)
@@ -223,6 +222,8 @@ module Google
223
222
  Data.from_grpc value.list_value.values, type.struct_type.fields
224
223
  when :NUMERIC
225
224
  BigDecimal value.string_value
225
+ when :JSON
226
+ JSON.parse value.string_value
226
227
  end
227
228
  end
228
229
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Spanner
19
- VERSION = "2.9.0".freeze
19
+ VERSION = "2.10.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.9.0
4
+ version: 2.10.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: 2021-07-27 00:00:00.000000000 Z
12
+ date: 2021-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core