acmesmith-google-cloud-storage 0.1.2 → 0.1.3

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: 495f17ae23240161f9a18b73bdb047394d7e9912e2e98b122769d6a2f50e4588
4
- data.tar.gz: 3ac305ff8eb451eea805f1d2b64bd732aaea7709fe038def89063f55bb564f9e
3
+ metadata.gz: '09e2aad4b44d09822220d161e0bac77e44a81bceb0c08ca4081c8a572fce83d6'
4
+ data.tar.gz: 044263a42c85cef68b4ddbb38c5a3237161b6f7fa55465f0f29b4c5e8918a684
5
5
  SHA512:
6
- metadata.gz: b1967e526375b630a16926c97df97de614960e9c4d7c1f99d8ceb843348ff553e845cfe7c8d059412595c1c2bbaf2b157dc153002e0854baf6888e6ca522cad1
7
- data.tar.gz: 144a736fc294d34aef8a15c1bc28d6a5659b752911e81efae3dd93fcb984aec655920791db3f56ac6b63a645aeb64953744c379536c886bd1afe5a7577e90c7d
6
+ metadata.gz: 034ff4da38bf8ce6039df3b7ab5f551feb5d657d709b2a7f781d70e31025c25ca9f11478e667a72e273b5e8aa73ed388f1915222f3d8adcf31bf63ae18032c62
7
+ data.tar.gz: 1531b5cf8449d25f92ef318b1248f70884f09e5692dc638dfa5088e1704a5dce7ff5ec1d69a1ad92181e807f3db1e26b7d93e73a2c59351155eb77172246446c
data/README.md CHANGED
@@ -10,7 +10,7 @@ This gem is a plugin for [Acmesmith](https://github.com/sorah/acmesmith) and imp
10
10
 
11
11
  ### Installation
12
12
 
13
- Install `acmesith-google-cloud-storage` gem along with `acmesmith`. You can just do `gem install acmesith-google-cloud-storage` or use Bundler if you want.
13
+ Install `acmesmith-google-cloud-storage` gem along with `acmesmith`. You can just do `gem install acmesmith-google-cloud-storage` or use Bundler if you want.
14
14
 
15
15
  ### Configuration
16
16
 
@@ -1,3 +1,3 @@
1
1
  module AcmesmithGoogleCloudStorage
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -65,7 +65,12 @@ module Acmesmith
65
65
  name: account_key_key,
66
66
  content_type: 'application/x-pem-file'
67
67
  )
68
- @api.insert_object(bucket, obj, upload_source: StringIO.new(key.export(passphrase)))
68
+ @api.insert_object(
69
+ bucket,
70
+ obj,
71
+ upload_source: StringIO.new(key.export(passphrase)),
72
+ content_type: 'application/x-pem-file',
73
+ )
69
74
  end
70
75
 
71
76
  def put_certificate(cert, passphrase = nil, update_current: true)
@@ -76,7 +81,12 @@ module Acmesmith
76
81
  name: key,
77
82
  content_type: 'application/x-pem-file',
78
83
  )
79
- @api.insert_object(bucket, obj, upload_source: StringIO.new(body))
84
+ @api.insert_object(
85
+ bucket,
86
+ obj,
87
+ upload_source: StringIO.new(body),
88
+ content_type: 'application/x-pem-file',
89
+ )
80
90
  end
81
91
 
82
92
  put.call certificate_key(cert.common_name, cert.version), "#{h[:certificate].rstrip}\n"
@@ -89,6 +99,7 @@ module Acmesmith
89
99
  bucket,
90
100
  Google::Apis::StorageV1::Object.new(name: certificate_current_key(cert.common_name), content_type: 'text/plain'),
91
101
  upload_source: StringIO.new(cert.version),
102
+ content_type: 'text/plain',
92
103
  )
93
104
  end
94
105
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acmesmith-google-cloud-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - YAMADA Tsuyoshi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acmesmith