naginegi 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naginegi/bigquery.rb +9 -1
- data/lib/naginegi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c775e2d23520601b27f2af4aa34d869197b2a051a5527c6be21faf48ac1feb
|
4
|
+
data.tar.gz: 1a506b3fcf74729cd188ca16751575ef56af4e6a9cb71d118bbe40ed8330c9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a654e9117606f0886c652273b85b2a20a9c0a23ae859f1c33db2185da4a70beb1c1a78a932f58122d641d7191027a58abb25172781cf6d880b0c5b2a9dfb6b3
|
7
|
+
data.tar.gz: ca86322ea0655ea2a5c9b077e5de13924d72e999116fd3a4fa60e67e6fe63b1704b93e1ba42849c02ebbc59c1193b0f90b35a2fb946c9ec2d92d3b3430bfd772
|
data/lib/naginegi/bigquery.rb
CHANGED
@@ -92,9 +92,17 @@ module Naginegi
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def delete_table(dataset, table_name)
|
95
|
+
keyfile = if @config['json_key']
|
96
|
+
value = @config['json_key'].dup
|
97
|
+
value['private_key'] = value['private_key'].gsub('\\n', "\n")
|
98
|
+
value
|
99
|
+
else
|
100
|
+
@config['json_keyfile']
|
101
|
+
end
|
102
|
+
|
95
103
|
bq = Google::Cloud::Bigquery.new(
|
96
104
|
project: @config['project_id'],
|
97
|
-
keyfile:
|
105
|
+
keyfile: keyfile
|
98
106
|
)
|
99
107
|
bq.service.delete_table(dataset, table_name)
|
100
108
|
end
|
data/lib/naginegi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naginegi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cobot00
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01
|
11
|
+
date: 2020-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|