rubygems-credential_store-backends-password_store 0.0.1 → 0.0.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b7f79e13c5c89129978d12d0ab375cd34e275c219f725d3d8c0ba63f0efe441
|
|
4
|
+
data.tar.gz: 4f465ac32e1a41b85706382e91b292226d7e37ec19507796a8b7da52396dda09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 182c4c05036748714eadd5cb0d3c5d0fcdc0935ecbeafc268b231939d8f60e7034fa671a9787e7efc6d54dfe9aa3363fc6f53d490bebcec622944c5dea6896a5
|
|
7
|
+
data.tar.gz: 42caa0adabbe73c8795f0c5b7e26940fc411f9d0aecd95fa73232bcf5c06b5c5e91b6e7f0158a78c446caac577d00b0c8a7c6ce5a11c01d2ab409f51f461f437
|
data/.envrc
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export PASSWORD_STORE_DIR=test/password-store
|
|
1
|
+
# export PASSWORD_STORE_DIR=test/password-store
|
|
2
2
|
layout ruby
|
|
3
3
|
PATH_add "$HOME/src/_vendor/rubygems/bin"
|
|
4
|
+
export RUBYGEMS_CREDENTIAL_STORE=password_store
|
|
5
|
+
export BUNDLE_CREDENTIAL_STORE=password_store
|
|
6
|
+
export RUBYLIB=$PWD/lib
|
data/CHANGELOG.md
CHANGED
|
@@ -44,10 +44,15 @@ class Gem::CredentialStore
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def set(service, account, secret)
|
|
47
|
-
|
|
47
|
+
# --multiline behaves noninteractively.
|
|
48
|
+
args = [command, "insert", "--multiline", File.join(folder, service, account)]
|
|
49
|
+
Open3.popen2(*args) do |stdin, stdout, wait_thread|
|
|
48
50
|
stdin.print(secret)
|
|
49
51
|
stdin.close
|
|
50
|
-
wait_thread.value.success?
|
|
52
|
+
result = wait_thread.value.success?
|
|
53
|
+
ENV['RUBYGEMS_CREDENTIAL_STORE_BACKENDS_PASSWORD_STORE_DEBUG'] == 'yes' \
|
|
54
|
+
and File.write('/tmp/debug.txt', "[debug] #{args.inspect} -> #{stdout.read.inspect}: #{result.inspect}")
|
|
55
|
+
result
|
|
51
56
|
end
|
|
52
57
|
end
|
|
53
58
|
|