rubeepass 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubeepass/group.rb +2 -2
- data/lib/rubeepass/wish/cd_wish.rb +2 -2
- data/lib/rubeepass/wish/copy_wish.rb +2 -2
- data/lib/rubeepass/wish/echo_wish.rb +2 -2
- data/lib/rubeepass/wish/ls_wish.rb +2 -2
- data/lib/rubeepass/wish/pwd_wish.rb +1 -1
- data/lib/rubeepass/wish/show_wish.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 555d0b9b3fed60c5950e2fa38fbd5bfdeb2dc77d
|
4
|
+
data.tar.gz: 326c1d9ff76b5c0d4bcf6f7f2db37046b21c7d47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197daacca2a88066501904fb04fd44abc111bfc890a2b9c65a6a0183ee02924dd509d2af388110f59b96c90553fe22916713ca1ab2f96778c77c3003591d88a6
|
7
|
+
data.tar.gz: 758b32334cc0a1941b876e824ac0dfd9b44480a6224cc5e9e943c5e111a9f538236f6787f1624860826544e283d42902c6d6c75cc8aef97ad57dcdc9e774646e
|
data/lib/rubeepass/group.rb
CHANGED
@@ -113,14 +113,14 @@ class RubeePass::Group
|
|
113
113
|
end
|
114
114
|
|
115
115
|
def fuzzy_find(search)
|
116
|
-
return [
|
116
|
+
return [Array.new, Array.new] if (@keepass.nil?)
|
117
117
|
|
118
118
|
search = @path if (search.nil? || search.empty?)
|
119
119
|
search = @keepass.absolute_path(search, @path)
|
120
120
|
path, found, target = search.rpartition("/")
|
121
121
|
|
122
122
|
new_cwd = find_group(path)
|
123
|
-
return [
|
123
|
+
return [Array.new, Array.new] if (new_cwd.nil?)
|
124
124
|
|
125
125
|
if (new_cwd.has_group?(target))
|
126
126
|
new_cwd = new_cwd.groups[target]
|
@@ -10,7 +10,7 @@ class CDWish < Djinni::Wish
|
|
10
10
|
return "Change to new group"
|
11
11
|
end
|
12
12
|
|
13
|
-
def execute(args, djinni_env =
|
13
|
+
def execute(args, djinni_env = Hash.new)
|
14
14
|
keepass = djinni_env["keepass"]
|
15
15
|
cwd = djinni_env["cwd"]
|
16
16
|
prompt_color = djinni_env["prompt_color"]
|
@@ -32,7 +32,7 @@ class CDWish < Djinni::Wish
|
|
32
32
|
djinni_env["djinni_prompt"] = prompt
|
33
33
|
end
|
34
34
|
|
35
|
-
def tab_complete(input, djinni_env =
|
35
|
+
def tab_complete(input, djinni_env = Hash.new)
|
36
36
|
cwd = djinni_env["cwd"]
|
37
37
|
groups, entries = cwd.fuzzy_find(input)
|
38
38
|
|
@@ -9,7 +9,7 @@ class CopyWish < Djinni::Wish
|
|
9
9
|
return "Copy specified field to the clipboard"
|
10
10
|
end
|
11
11
|
|
12
|
-
def execute(args, djinni_env =
|
12
|
+
def execute(args, djinni_env = Hash.new)
|
13
13
|
# "".split(" ", 2) => [] aka [nil, nil]
|
14
14
|
# " ".split(" ", 2) => [""] aka ["", nil]
|
15
15
|
# "pass".split(" ", 2) => ["pass"] aka ["pass", nil]
|
@@ -67,7 +67,7 @@ class CopyWish < Djinni::Wish
|
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
70
|
-
def tab_complete(input, djinni_env =
|
70
|
+
def tab_complete(input, djinni_env = Hash.new)
|
71
71
|
# "".split(" ", 2) => [] aka [nil, nil]
|
72
72
|
# " ".split(" ", 2) => [""] aka ["", nil]
|
73
73
|
# "pass".split(" ", 2) => ["pass"] aka ["pass", nil]
|
@@ -9,7 +9,7 @@ class EchoWish < Djinni::Wish
|
|
9
9
|
return "Echo specified field to stdout"
|
10
10
|
end
|
11
11
|
|
12
|
-
def execute(args, djinni_env =
|
12
|
+
def execute(args, djinni_env = Hash.new)
|
13
13
|
# "".split(" ", 2) => [] aka [nil, nil]
|
14
14
|
# " ".split(" ", 2) => [""] aka ["", nil]
|
15
15
|
# "pass".split(" ", 2) => ["pass"] aka ["pass", nil]
|
@@ -57,7 +57,7 @@ class EchoWish < Djinni::Wish
|
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
|
-
def tab_complete(input, djinni_env =
|
60
|
+
def tab_complete(input, djinni_env = Hash.new)
|
61
61
|
# "".split(" ", 2) => [] aka [nil, nil]
|
62
62
|
# " ".split(" ", 2) => [""] aka ["", nil]
|
63
63
|
# "pass".split(" ", 2) => ["pass"] aka ["pass", nil]
|
@@ -9,7 +9,7 @@ class LSWish < Djinni::Wish
|
|
9
9
|
return "List groups and entries in current group"
|
10
10
|
end
|
11
11
|
|
12
|
-
def execute(args, djinni_env =
|
12
|
+
def execute(args, djinni_env = Hash.new)
|
13
13
|
keepass = djinni_env["keepass"]
|
14
14
|
cwd = djinni_env["cwd"]
|
15
15
|
|
@@ -30,7 +30,7 @@ class LSWish < Djinni::Wish
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
def tab_complete(input, djinni_env =
|
33
|
+
def tab_complete(input, djinni_env = Hash.new)
|
34
34
|
cwd = djinni_env["cwd"]
|
35
35
|
groups, entries = cwd.fuzzy_find(input)
|
36
36
|
|
@@ -9,7 +9,7 @@ class ShowWish < Djinni::Wish
|
|
9
9
|
"Show group/entry contents (showall includes passwords)"
|
10
10
|
end
|
11
11
|
|
12
|
-
def execute(args, djinni_env =
|
12
|
+
def execute(args, djinni_env = Hash.new)
|
13
13
|
keepass = djinni_env["keepass"]
|
14
14
|
cwd = djinni_env["cwd"]
|
15
15
|
|
@@ -53,7 +53,7 @@ class ShowWish < Djinni::Wish
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
def tab_complete(input, djinni_env =
|
56
|
+
def tab_complete(input, djinni_env = Hash.new)
|
57
57
|
cwd = djinni_env["cwd"]
|
58
58
|
groups, entries = cwd.fuzzy_find(input)
|
59
59
|
|