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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a76fe38b7173ab84b9ab04d60af0ddd4d09ba19494a8b89b9800152485d098ae
4
- data.tar.gz: fec84aa30a5e9877fa86effc5f891d3c8ec3f23ef626abfda8dff9069a94e97a
3
+ metadata.gz: a8c775e2d23520601b27f2af4aa34d869197b2a051a5527c6be21faf48ac1feb
4
+ data.tar.gz: 1a506b3fcf74729cd188ca16751575ef56af4e6a9cb71d118bbe40ed8330c9a6
5
5
  SHA512:
6
- metadata.gz: a8b447fa09122b4ee88bfcbd230d6b176fb6fcf00e1bc9a996c49523f12de29a5348a8c6156a2787a402b939d81b24e3f69afbb3e7af575045a7621410e9e8ed
7
- data.tar.gz: 0adf72690e15bdeeea4389c4acb3f6284f3860451ae4b514e35be7cbbbd3c0e33767791a3cd7a4de54fc6911e69931f9766e7a5db5c7ae60514536954c22ea09
6
+ metadata.gz: 2a654e9117606f0886c652273b85b2a20a9c0a23ae859f1c33db2185da4a70beb1c1a78a932f58122d641d7191027a58abb25172781cf6d880b0c5b2a9dfb6b3
7
+ data.tar.gz: ca86322ea0655ea2a5c9b077e5de13924d72e999116fd3a4fa60e67e6fe63b1704b93e1ba42849c02ebbc59c1193b0f90b35a2fb946c9ec2d92d3b3430bfd772
@@ -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: @config['json_keyfile']
105
+ keyfile: keyfile
98
106
  )
99
107
  bq.service.delete_table(dataset, table_name)
100
108
  end
@@ -1,3 +1,3 @@
1
1
  module Naginegi
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
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.0
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-30 00:00:00.000000000 Z
11
+ date: 2020-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler