ruby-pass-qt 2.0.6 → 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: ccf6b7039c5cb6f8031411669023603b89b141ef7b70a1c43841823edaa43ba9
4
- data.tar.gz: acca47730f2fcaeec6a3ab3dbde623a6f14aa6c23b6a370b7b753fa581e9e03a
3
+ metadata.gz: fe16368263f57aeb0a5f0c094bc01d051bf5130c1b14b21f8bc461f7f2f47102
4
+ data.tar.gz: 9a1b4b86470606106e13230bcd143d974c3dfec5ee27960a78785b5bbb0915ca
5
5
  SHA512:
6
- metadata.gz: 218b95a3dc22dc62348daaf00d1be28e9d0b3230c2eb894518c60f188b6e7caa861275088fb6876929d299aa42d323c75f5b14a4d31d4431e8db2426afac2dfc
7
- data.tar.gz: cfa0427bf5310897557e10dd72f4f558979abf96157d24b0c38c94eae2d716d4d4569d75a2f4795bcf89ea6b6b2b0c0ce61e413ee31ed966d31a80703fc5a8d5
6
+ metadata.gz: c0ec8c9abb5390441a8ea5888c7c7ef30f8699506cad1bfccf6d3662a236fb336c5f8ddb40730d273573ec4027254821dae89deb94abe3da69ddaf8bbdfb1ee4
7
+ data.tar.gz: 8b3360194e28a221283a42b6d1d87dca2265cbfdbf3dce76dfc9c5f6b49ce929b945f4b8c184351fe0d1ad5022684e09319ccd0189966120787632a9c5a3b8e1
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module PassQt
2
- VERSION = "2.0.6"
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.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe