Skip to content

Commit

Permalink
BigQuery: Add gem, configure
Browse files Browse the repository at this point in the history
  • Loading branch information
csutter committed Nov 26, 2023
1 parent e6d425b commit c4f628c
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ gem "gds-api-adapters"
gem "govuk_app_config"
gem "govuk_publishing_components"

gem "google-cloud-bigquery"

gem "importmap-rails"
gem "sassc-rails"
gem "sprockets-rails"
Expand Down
52 changes: 52 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,16 @@ GEM
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
declarative (0.0.20)
domain_name (0.6.20231109)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
faraday (2.7.12)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.16.3)
gds-api-adapters (91.1.0)
addressable
Expand All @@ -103,10 +109,39 @@ GEM
rest-client (~> 2.0)
globalid (1.2.1)
activesupport (>= 6.1)
google-apis-bigquery_v2 (0.61.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-core (0.11.2)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
webrick
google-cloud-bigquery (1.45.0)
concurrent-ruby (~> 1.0)
google-apis-bigquery_v2 (~> 0.1)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-protobuf (3.25.1-aarch64-linux)
google-protobuf (3.25.1-x86_64-linux)
googleapis-common-protos-types (1.10.0)
google-protobuf (~> 3.18)
googleauth (1.8.1)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
govuk_app_config (9.6.0)
logstasher (~> 2.1)
opentelemetry-exporter-otlp (>= 0.25, < 0.27)
Expand All @@ -133,6 +168,7 @@ GEM
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
importmap-rails (1.2.3)
Expand All @@ -144,6 +180,7 @@ GEM
rdoc
reline (>= 0.3.8)
json (2.6.3)
jwt (2.7.1)
kramdown (2.4.0)
rexml
language_server-protocol (3.17.0.3)
Expand All @@ -165,6 +202,7 @@ GEM
mime-types-data (3.2023.1003)
mini_mime (1.1.5)
minitest (5.20.0)
multi_json (1.15.0)
mutex_m (0.2.0)
net-imap (0.4.5)
date
Expand Down Expand Up @@ -376,6 +414,7 @@ GEM
opentelemetry-semantic_conventions
opentelemetry-semantic_conventions (1.10.0)
opentelemetry-api (~> 1.0)
os (1.1.4)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
Expand Down Expand Up @@ -435,13 +474,18 @@ GEM
regexp_parser (2.8.2)
reline (0.4.0)
io-console (~> 0.5)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
request_store (1.5.1)
rack (>= 1.4)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
retriable (3.1.2)
rexml (3.2.6)
rouge (4.2.0)
rubocop (1.55.0)
Expand Down Expand Up @@ -492,6 +536,11 @@ GEM
sentry-ruby (~> 5.13.0)
sentry-ruby (5.13.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
signet (0.18.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand All @@ -504,8 +553,10 @@ GEM
thor (1.3.0)
tilt (2.3.0)
timeout (0.4.1)
trailblazer-option (0.1.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
unicode-display_width (2.5.0)
web-console (4.2.1)
actionview (>= 6.0.0)
Expand All @@ -526,6 +577,7 @@ DEPENDENCIES
brakeman
debug
gds-api-adapters
google-cloud-bigquery
govuk_app_config
govuk_publishing_components
importmap-rails
Expand Down
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ class Application < Rails::Application
config.assets.css_compressor = nil

config.govuk_environment = ENV.fetch("GOVUK_ENVIRONMENT", "development")

config.bigquery_dataset = ENV.fetch("BIGQUERY_DATASET")
config.bigquery_table = ENV.fetch("BIGQUERY_TABLE")
end
end

0 comments on commit c4f628c

Please sign in to comment.