acmesmith-google-cloud-storage 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/acmesmith-google-cloud-storage/version.rb +1 -1
- data/lib/acmesmith/storages/google_cloud_storage.rb +13 -2
- 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: '09e2aad4b44d09822220d161e0bac77e44a81bceb0c08ca4081c8a572fce83d6'
|
|
4
|
+
data.tar.gz: 044263a42c85cef68b4ddbb38c5a3237161b6f7fa55465f0f29b4c5e8918a684
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 `
|
|
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
|
|
|
@@ -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(
|
|
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(
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: acmesmith
|