mpw 3.2.0 → 3.2.1
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 +4 -4
- data/VERSION +1 -1
- data/bin/mpw +5 -0
- data/lib/mpw/cli.rb +2 -1
- data/lib/mpw/mpw.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ff318ce8061073b24eabf8281fe0788d18013fc
|
|
4
|
+
data.tar.gz: 16c7121ac2fba8ce8815756c6de92434aed846f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67d566ca822ca103f1e3e1dd13dacfadfa2e78f8550751cb64f54df182fcc101f54eadab2d5682731025c7ecff4cbff56e698701ded4906b2fee25608d0db6c6
|
|
7
|
+
data.tar.gz: c248a9fd67592cb63fe4957946941c38bf2939cad89171074a4c1125a4e417a26060bf2c61d3f39a5c3b7f41f7122c22d5458560b61618f570568e2c2daeedbe
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.2.
|
|
1
|
+
3.2.1
|
data/bin/mpw
CHANGED
|
@@ -51,6 +51,7 @@ options[:force] = false
|
|
|
51
51
|
options[:otp] = false
|
|
52
52
|
options[:sync] = true
|
|
53
53
|
options[:clipboard] = true
|
|
54
|
+
options[:editor] = false
|
|
54
55
|
options[:group] = nil
|
|
55
56
|
options[:config] = nil
|
|
56
57
|
options[:wallet] = nil
|
|
@@ -83,6 +84,10 @@ OptionParser.new do |opts|
|
|
|
83
84
|
options[:export] = true
|
|
84
85
|
end
|
|
85
86
|
|
|
87
|
+
opts.on('-E', '--editor', I18n.t('option.editor')) do
|
|
88
|
+
options[:editor] = true
|
|
89
|
+
end
|
|
90
|
+
|
|
86
91
|
opts.on('-f', '--file FILE', I18n.t('option.file')) do |file|
|
|
87
92
|
options[:file] = file
|
|
88
93
|
end
|
data/lib/mpw/cli.rb
CHANGED
|
@@ -409,7 +409,8 @@ class Cli
|
|
|
409
409
|
# @args: id -> the item's id
|
|
410
410
|
# force -> no resquest a validation
|
|
411
411
|
def delete(id, force=false)
|
|
412
|
-
|
|
412
|
+
@clipboard = false
|
|
413
|
+
item = @mpw.search_by_id(id)
|
|
413
414
|
|
|
414
415
|
if item.nil?
|
|
415
416
|
puts I18n.t('form.delete_item.not_valid', id: id)
|
data/lib/mpw/mpw.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mpw
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrien Waksberg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|