ruby-pass-qt 2.0.5 → 2.0.7

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: caa3f891a54d25ed7d77c7df0a1e8993539d3c57f4963a51731a1f830b5900ba
4
- data.tar.gz: d52c014f5f5999aa279d053ebb07720892e65f8f0c4633ae5c3fb5fd28a1feb4
3
+ metadata.gz: fe16368263f57aeb0a5f0c094bc01d051bf5130c1b14b21f8bc461f7f2f47102
4
+ data.tar.gz: 9a1b4b86470606106e13230bcd143d974c3dfec5ee27960a78785b5bbb0915ca
5
5
  SHA512:
6
- metadata.gz: '080717935f157f132f2a315e292e7b1791858a80f8d55622ec5928afeed8f6ba463fb791044363bd481764650b4aedbd4cc6f324554cca8f307f47d03ee94d6c'
7
- data.tar.gz: 4bba3d81519da0fe36ef97fc00d808941ac2d06ed6e2b89b72361a2e6c8dfb85efb8adeac13554d2d7c0be700e45be616dfd2da232ff36e650dac00fcd5734ba
6
+ metadata.gz: c0ec8c9abb5390441a8ea5888c7c7ef30f8699506cad1bfccf6d3662a236fb336c5f8ddb40730d273573ec4027254821dae89deb94abe3da69ddaf8bbdfb1ee4
7
+ data.tar.gz: 8b3360194e28a221283a42b6d1d87dca2265cbfdbf3dce76dfc9c5f6b49ce929b945f4b8c184351fe0d1ad5022684e09319ccd0189966120787632a9c5a3b8e1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # PassQt
1
+ # RubyPassQt
2
2
 
3
3
  A simple GUI for pass on Linux.
4
4
 
@@ -27,7 +27,7 @@ pass init new_gpg-id_or_email
27
27
  To launch the GUI:
28
28
 
29
29
  ```sh
30
- pass-qt
30
+ ruby-pass-qt
31
31
  ```
32
32
 
33
33
  ## Screenshot
@@ -94,6 +94,9 @@ class PassInfoWidget < RubyQt6::Bando::QWidget
94
94
  initialize_form_inputfield_copyaction(@otppasswordinput)
95
95
  initialize_form_inputfield_viewaction(@otppasswordinput)
96
96
 
97
+ @otpaccountinput = initialize_form_inputfield
98
+ initialize_form_inputfield_copyaction(@otpaccountinput)
99
+
97
100
  @otpcodeinput = initialize_form_inputfield
98
101
  action = @otpcodeinput.add_action(QIcon.from_theme(QIcon::ThemeIcon::EditCopy), QLineEdit::LeadingPosition)
99
102
  action.triggered.connect(self, :_on_copy_action_triggered_otpcode)
@@ -102,7 +105,8 @@ class PassInfoWidget < RubyQt6::Bando::QWidget
102
105
  otpformlayout = QFormLayout.new(@otpform)
103
106
  otpformlayout.add_row(initialize_form_label("File"), @otppassnameinput)
104
107
  otpformlayout.add_row(initialize_form_label("OTP URI"), @otppasswordinput)
105
- otpformlayout.add_row(initialize_form_label("OTP Code"), @otpcodeinput)
108
+ otpformlayout.add_row(initialize_form_label("Account"), @otpaccountinput)
109
+ otpformlayout.add_row(initialize_form_label("Code"), @otpcodeinput)
106
110
  end
107
111
 
108
112
  def initialize_folderform
@@ -162,6 +166,10 @@ class PassInfoWidget < RubyQt6::Bando::QWidget
162
166
  @otppasswordinput.set_cursor_position(0)
163
167
  @otppasswordinput.set_echo_mode(QLineEdit::Password)
164
168
 
169
+ label = QUrl.new(formdata["password"]).path.to_s[1..]
170
+ account = label.split(":")[-1]
171
+ @otpaccountinput.set_text(account)
172
+
165
173
  @otpcodeinput.set_text("")
166
174
  @stackedlayout.set_current_widget(@otpform)
167
175
 
@@ -31,9 +31,10 @@ class NewOneTimePasswordDialog < RubyQt6::Bando::QDialog
31
31
  @errinfolabel.set_style_sheet("background: white; color: red; padding: 8px; margin: 4px;")
32
32
  @errinfolabel.set_hidden(true)
33
33
 
34
- placeholder = (@folder == "") ? "github.com-otp" : "#{@folder}/github.com-otp"
34
+ placeholder = (@folder == "") ? "example.com-otp" : "#{@folder}/example.com-otp"
35
35
  @passnamelabel = initialize_form_label("File")
36
36
  @passnameinput = initialize_form_inputfield(placeholder)
37
+ @passnameinput.set_text(placeholder)
37
38
  set_focus_proxy(@passnameinput)
38
39
 
39
40
  @passwordlabel = initialize_form_label("OTP URI")
@@ -32,9 +32,10 @@ class NewPasswordDialog < RubyQt6::Bando::QDialog
32
32
  @errinfolabel.set_style_sheet("background: white; color: red; padding: 8px; margin: 4px;")
33
33
  @errinfolabel.set_hidden(true)
34
34
 
35
- placeholder = (@folder == "") ? "github.com" : "#{@folder}/github.com"
35
+ placeholder = (@folder == "") ? "example.com" : "#{@folder}/example.com"
36
36
  @passnamelabel = initialize_form_label("File")
37
37
  @passnameinput = initialize_form_inputfield(placeholder)
38
+ @passnameinput.set_text(placeholder)
38
39
  set_focus_proxy(@passnameinput)
39
40
 
40
41
  @passwordlabel = initialize_form_label("Password")
@@ -1,3 +1,3 @@
1
1
  module PassQt
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pass-qt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe
@@ -26,7 +26,7 @@ dependencies:
26
26
  email:
27
27
  - johndoe@example.com
28
28
  executables:
29
- - pass-qt
29
+ - ruby-pass-qt
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
@@ -35,7 +35,7 @@ files:
35
35
  - LICENSE
36
36
  - README.md
37
37
  - Rakefile
38
- - exe/pass-qt
38
+ - exe/ruby-pass-qt
39
39
  - lib/pass-qt.rb
40
40
  - lib/pass-qt/app.rb
41
41
  - lib/pass-qt/app/assets/README.md
File without changes