From 1e8e4b8a793eb3374e8e857d2b9c57ec8c7cb899 Mon Sep 17 00:00:00 2001 From: "egor.mashukov" Date: Tue, 8 Oct 2024 11:39:17 +0200 Subject: [PATCH 1/2] Rails 7 support --- bigquery.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigquery.gemspec b/bigquery.gemspec index 49a6089..77158c1 100644 --- a/bigquery.gemspec +++ b/bigquery.gemspec @@ -15,8 +15,8 @@ Gem::Specification.new do |s| s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - s.add_dependency "google-api-client", "~> 0.9.3" - s.add_dependency "googleauth", "~> 0.5.0" + s.add_dependency "google-api-client", "0.53.0" + s.add_dependency "googleauth", "1.11.0" s.add_development_dependency "bundler" s.add_development_dependency "rake" From 1dbcb47be0ddbb7eb44133f91621ffaec2f58b12 Mon Sep 17 00:00:00 2001 From: "egor.mashukov" Date: Fri, 22 Nov 2024 14:56:53 +0100 Subject: [PATCH 2/2] GZIP header --- lib/big_query/client.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/big_query/client.rb b/lib/big_query/client.rb index d3723eb..cba4858 100644 --- a/lib/big_query/client.rb +++ b/lib/big_query/client.rb @@ -86,6 +86,8 @@ def refresh_auth private def api(resp) + resp = Zlib::GzipReader.new(StringIO.new(resp)).read if resp[0..1].bytes == "\x1F\x8B".bytes # GZIP header + resp = Oj.load(resp) data = deep_stringify_keys(resp.to_h) handle_error(data) if data && is_error?(data) data