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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5945c73082ac80abb126641064d1adc6ff1b08d1
4
- data.tar.gz: 387b03a273731daf0330dbdc2419494c22c66b46
3
+ metadata.gz: 555d0b9b3fed60c5950e2fa38fbd5bfdeb2dc77d
4
+ data.tar.gz: 326c1d9ff76b5c0d4bcf6f7f2db37046b21c7d47
5
5
  SHA512:
6
- metadata.gz: b5d068702f0b3d5bbe09ec040434f6c52a947c995b1d62fa2580f894497b9184c1b842467c05c4297345b164078e19d298b69273af90133e8f71a608af692539
7
- data.tar.gz: 714026548c9412fa21ea26f97dca37462a94d596041d432b4424757b351843372aa9617ce8ac18373593013142e76010d441b984eb45bc290c406ed9bf515ef5
6
+ metadata.gz: 197daacca2a88066501904fb04fd44abc111bfc890a2b9c65a6a0183ee02924dd509d2af388110f59b96c90553fe22916713ca1ab2f96778c77c3003591d88a6
7
+ data.tar.gz: 758b32334cc0a1941b876e824ac0dfd9b44480a6224cc5e9e943c5e111a9f538236f6787f1624860826544e283d42902c6d6c75cc8aef97ad57dcdc9e774646e
@@ -113,14 +113,14 @@ class RubeePass::Group
113
113
  end
114
114
 
115
115
  def fuzzy_find(search)
116
- return [[], []] if (@keepass.nil?)
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 [[], []] if (new_cwd.nil?)
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 PwdWish < Djinni::Wish
9
9
  return "Show path of current group"
10
10
  end
11
11
 
12
- def execute(args, djinni_env = {})
12
+ def execute(args, djinni_env = Hash.new)
13
13
  puts djinni_env["cwd"].path if (args.empty?)
14
14
  usage if (!args.empty?)
15
15
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubeepass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker