keepass_kpscript 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/keepass_kpscript/kpscript.rb +1 -1
- data/lib/keepass_kpscript/version.rb +1 -1
- data/lib/keepass_kpscript.rb +1 -1
- data/spec/keepass_kpscript_test/tests/keepass_kpscript/database_spec.rb +2 -2
- data/spec/keepass_kpscript_test/tests/keepass_kpscript/kpscript_spec.rb +5 -5
- data/spec/keepass_kpscript_test/tests/keepass_kpscript/select_spec.rb +1 -1
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1c605ca8a0c0de5f28f15c8f3fdd6a729d8dd49878b43c17ec44113a331aa4c
|
4
|
+
data.tar.gz: 3658287daa6058f0f70708230b2adf2bacdc915c92f06e185c47e17a09c1fa2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3cececdf48d3eda224f62226704e1692f450cbc45bf602fd975137ff3717c9123142f97de938f4dfc8ab4cf1d593b80559460e1be15d2b0d61fabff46c45cd8
|
7
|
+
data.tar.gz: 6a20566054d420590e00f48339f32aa9468b932d4a3592f16dffd8d770f6c3380f02d6f7e0e10734bbf33a7a9f731106b690069d3949144aa8cacea3bf2d5bc9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v1.1.1](https://github.com/Muriel-Salvan/keepass_kpscript/compare/v1.1.0...v1.1.1) (2022-12-31 12:36:42)
|
2
|
+
|
3
|
+
### Patches
|
4
|
+
|
5
|
+
* [Migrated to Ruby 3.1 - Support for 2.7 dropped](https://github.com/Muriel-Salvan/keepass_kpscript/commit/a4d1b47e93aa262e1190832ec151f35b03388ad1)
|
6
|
+
|
1
7
|
# [v1.1.0](https://github.com/Muriel-Salvan/keepass_kpscript/compare/v1.0.1...v1.1.0) (2021-07-09 16:10:11)
|
2
8
|
|
3
9
|
### Features
|
@@ -30,7 +30,7 @@ module KeepassKpscript
|
|
30
30
|
# Result::
|
31
31
|
# * Database: The database
|
32
32
|
def open(database_file, password: nil, password_enc: nil, key_file: nil)
|
33
|
-
Database.new(self, database_file, password
|
33
|
+
Database.new(self, database_file, password:, password_enc:, key_file:)
|
34
34
|
end
|
35
35
|
|
36
36
|
# Shortcut to get easily access to selectors
|
data/lib/keepass_kpscript.rb
CHANGED
@@ -4,7 +4,7 @@ describe KeepassKpscript::Database do
|
|
4
4
|
|
5
5
|
subject(:database) { kpscript.open('/path/to/my_db.kdbx', password: 'MyPassword') }
|
6
6
|
|
7
|
-
let(:kpscript) { KeepassKpscript.use('/path/to/KPScript.exe', debug:
|
7
|
+
let(:kpscript) { KeepassKpscript.use('/path/to/KPScript.exe', debug:) }
|
8
8
|
|
9
9
|
it 'gets a simple password for an entry title' do
|
10
10
|
expect_calls_to_kpscript [
|
@@ -187,7 +187,7 @@ describe KeepassKpscript::Database do
|
|
187
187
|
]
|
188
188
|
]
|
189
189
|
expect { kpscript.open(database_file, password: 'MyPassword').detach_bins(copy_to_dir: bins_dir) }.not_to raise_error
|
190
|
-
expect(File.exist?(bins_dir)).to
|
190
|
+
expect(File.exist?(bins_dir)).to be true
|
191
191
|
# Check that no database copy is remaining
|
192
192
|
expect(Dir.glob("#{bins_dir}/*")).to eq []
|
193
193
|
ensure
|
@@ -2,7 +2,7 @@ describe KeepassKpscript::Kpscript do
|
|
2
2
|
|
3
3
|
shared_examples 'a kpscript instance' do
|
4
4
|
|
5
|
-
subject(:kpscript) { KeepassKpscript.use('/path/to/KPScript.exe', debug:
|
5
|
+
subject(:kpscript) { KeepassKpscript.use('/path/to/KPScript.exe', debug:) }
|
6
6
|
|
7
7
|
it 'gives an instance wrapping a KPScript installation' do
|
8
8
|
expect_calls_to_kpscript [['/path/to/KPScript.exe -example-arg', 'OK: Operation completed successfully.']]
|
@@ -12,11 +12,11 @@ describe KeepassKpscript::Kpscript do
|
|
12
12
|
it 'encrypts passwords' do
|
13
13
|
expect_calls_to_kpscript [
|
14
14
|
[
|
15
|
-
|
15
|
+
"/path/to/KPScript.exe \"#{Dir.tmpdir}/keepass_kpscript.tmp.kdbx\" -pw:\"pass_encryptor\" -c:EditEntry -ref-Title:\"pass_encryptor\" -set-Password:\"MyPassword\"",
|
16
16
|
'OK: Operation completed successfully.'
|
17
17
|
],
|
18
18
|
[
|
19
|
-
|
19
|
+
"/path/to/KPScript.exe \"#{Dir.tmpdir}/keepass_kpscript.tmp.kdbx\" -pw:\"pass_encryptor\" -c:GetEntryString -ref-Title:\"pass_encryptor\" -Field:\"URL\" -Spr",
|
20
20
|
<<~EO_STDOUT
|
21
21
|
ENCRYPTED_PASSWORD
|
22
22
|
OK: Operation completed successfully.
|
@@ -29,11 +29,11 @@ describe KeepassKpscript::Kpscript do
|
|
29
29
|
it 'encrypts passwords using SecretString' do
|
30
30
|
expect_calls_to_kpscript [
|
31
31
|
[
|
32
|
-
|
32
|
+
"/path/to/KPScript.exe \"#{Dir.tmpdir}/keepass_kpscript.tmp.kdbx\" -pw:\"pass_encryptor\" -c:EditEntry -ref-Title:\"pass_encryptor\" -set-Password:\"MyPassword\"",
|
33
33
|
'OK: Operation completed successfully.'
|
34
34
|
],
|
35
35
|
[
|
36
|
-
|
36
|
+
"/path/to/KPScript.exe \"#{Dir.tmpdir}/keepass_kpscript.tmp.kdbx\" -pw:\"pass_encryptor\" -c:GetEntryString -ref-Title:\"pass_encryptor\" -Field:\"URL\" -Spr",
|
37
37
|
<<~EO_STDOUT
|
38
38
|
ENCRYPTED_PASSWORD
|
39
39
|
OK: Operation completed successfully.
|
@@ -2,7 +2,7 @@ describe KeepassKpscript::Select do
|
|
2
2
|
|
3
3
|
shared_examples 'a selector' do
|
4
4
|
|
5
|
-
subject(:selector) { KeepassKpscript.use('/path/to/KPScript.exe', debug:
|
5
|
+
subject(:selector) { KeepassKpscript.use('/path/to/KPScript.exe', debug:).select }
|
6
6
|
|
7
7
|
{
|
8
8
|
proc { |s| s.fields(Field: 'Value') } => '-ref-Field:"Value"',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keepass_kpscript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Muriel Salvan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: secret_string
|
@@ -16,78 +16,78 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.12'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3.
|
40
|
+
version: '3.12'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sem_ver_components
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.41'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.41'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.16'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.16'
|
83
83
|
description: Ruby API to handle Keepass databases using KPScript
|
84
84
|
email:
|
85
85
|
- muriel@x-aeon.com
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files:
|
89
|
-
- README.md
|
90
89
|
- CHANGELOG.md
|
90
|
+
- README.md
|
91
91
|
files:
|
92
92
|
- CHANGELOG.md
|
93
93
|
- README.md
|
@@ -106,7 +106,8 @@ files:
|
|
106
106
|
homepage:
|
107
107
|
licenses:
|
108
108
|
- BSD-3-Clause
|
109
|
-
metadata:
|
109
|
+
metadata:
|
110
|
+
rubygems_mfa_required: 'true'
|
110
111
|
post_install_message:
|
111
112
|
rdoc_options: []
|
112
113
|
require_paths:
|
@@ -115,14 +116,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
116
|
requirements:
|
116
117
|
- - "~>"
|
117
118
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
119
|
+
version: '3.1'
|
119
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
121
|
requirements:
|
121
122
|
- - ">="
|
122
123
|
- !ruby/object:Gem::Version
|
123
124
|
version: '0'
|
124
125
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
126
|
+
rubygems_version: 3.3.26
|
126
127
|
signing_key:
|
127
128
|
specification_version: 4
|
128
129
|
summary: Keepass KPScript
|