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: 24ceaddb2ce3c77fcbd70c7f65567a2785226cadec2269440787a821758d8a16
4
- data.tar.gz: 3e6f16a958bfe1535b154f277337ea9ac92fe99cf93ae06d85484ebce3bf8c9d
3
+ metadata.gz: 6b7f79e13c5c89129978d12d0ab375cd34e275c219f725d3d8c0ba63f0efe441
4
+ data.tar.gz: 4f465ac32e1a41b85706382e91b292226d7e37ec19507796a8b7da52396dda09
5
5
  SHA512:
6
- metadata.gz: b207996dbeff7feaf6b4c9698d92ac0be37c0c1730481f25615e56b19069a064568093d6b53de3460cefdc82a0ec964b1732cd63089adac6cc0c94a3e5b7f727
7
- data.tar.gz: 7d844bc89d58da7c20ea18ac3f0b89d1ac3160ae3437ec462ef86bf68abe51589794911341929712c77441b7fd9b838720bbd6972618d49ce51a6cb25c0abc01
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
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.0.2 - 2026-08-27
6
+
7
+ - Fix setting credential.
8
+
5
9
  ## 0.0.1 - 2026-08-27
6
10
 
7
11
  - Initial release
@@ -44,10 +44,15 @@ class Gem::CredentialStore
44
44
  end
45
45
 
46
46
  def set(service, account, secret)
47
- Open3.popen2(command, "insert", File.join(folder, service, account)) do |stdin, _stdout, wait_thread|
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
 
@@ -21,7 +21,7 @@ module RubyGems
21
21
  module CredentialStore
22
22
  module Backends
23
23
  module PasswordStore
24
- VERSION = "0.0.1"
24
+ VERSION = "0.0.2"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-credential_store-backends-password_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gemmaro