acm 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/Gemfile +2 -0
- data/README.md +6 -5
- data/acm.gemspec +1 -0
- data/exe/acm +8 -2
- data/lib/acm/version.rb +1 -1
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f119232262df850989d12ed8514c9daa00d61ec123f7607dccfc4f1e2115aebb
|
4
|
+
data.tar.gz: 0a20ad7af80517042de6035d4a32904f2063e1e0a334cd3bfaa4011b7da427f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d36c7b56997e4241e44eac8e04cca5d7ee274e03d199465c31744e3ec5d976bac394fa02884bc9da07db8e7a6b79c4a3b472f955b5740be17ebe747af59f4c97
|
7
|
+
data.tar.gz: c65e86e1acbb23325f378aa04a8ed7bfbcc21050c77d59db4a477aa9a4db736d7653aaf55b27a97fdfb6fb1d5b82b38854a5419fedf1560764efaee9b0f62807
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -41,7 +41,8 @@ Show details:
|
|
41
41
|
email: takatoh.m@gmail.com
|
42
42
|
password: xxxxxxxx
|
43
43
|
|
44
|
-
In default, value of password is masked. If you see password, give --pass option.
|
44
|
+
In default, value of password is masked. If you see the password, give --pass option.
|
45
|
+
Or --clip option copies the password to clipboard.
|
45
46
|
|
46
47
|
Update value of key:
|
47
48
|
|
@@ -70,14 +71,14 @@ Rename account:
|
|
70
71
|
|
71
72
|
And remove account:
|
72
73
|
|
73
|
-
> acm remove-account
|
74
|
-
Account:
|
74
|
+
> acm remove-account Gmail
|
75
|
+
Account: Gmail
|
75
76
|
email: takatoh.m@gmail.com
|
76
77
|
|
77
78
|
Are you sure?(y/n) y # Enter 'y' to remove.
|
78
79
|
|
79
|
-
> acm show
|
80
|
-
No such account:
|
80
|
+
> acm show Gmail
|
81
|
+
No such account: Gmail
|
81
82
|
|
82
83
|
|
83
84
|
## License
|
data/acm.gemspec
CHANGED
data/exe/acm
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'acm'
|
5
5
|
require 'thor'
|
6
6
|
require 'yaml'
|
7
|
+
require 'clipboard'
|
7
8
|
|
8
9
|
|
9
10
|
class MyCLI < Thor
|
@@ -50,8 +51,9 @@ class MyCLI < Thor
|
|
50
51
|
db.map{|a| a['account'] }.sort.each{|a| puts a }
|
51
52
|
end
|
52
53
|
|
53
|
-
desc "show ACCOUNT", "Show details of ACCOUNT"
|
54
|
-
option :pass, :type => :boolean
|
54
|
+
desc "show [options] ACCOUNT", "Show details of ACCOUNT"
|
55
|
+
option :pass, :type => :boolean, :aliases => "-p", :desc => "Show password"
|
56
|
+
option :clip, :type => :boolean, :aliases => "-c", :desc => "Copy password to clipboard"
|
55
57
|
def show(target)
|
56
58
|
db = load_db
|
57
59
|
account = lookup(target.encode("utf-8"), db)
|
@@ -64,6 +66,10 @@ class MyCLI < Thor
|
|
64
66
|
puts " #{key}: #{val}"
|
65
67
|
end
|
66
68
|
end
|
69
|
+
if options[:clip]
|
70
|
+
password_key = account['details'].keys.select{|k| /pass/ =~ k}.first
|
71
|
+
Clipboard.copy(account['details'][password_key])
|
72
|
+
end
|
67
73
|
else
|
68
74
|
puts "No such account: #{target}"
|
69
75
|
end
|
data/lib/acm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takatoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: clipboard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: ''
|
56
70
|
email:
|
57
71
|
- takatoh.m@gmail.com
|
@@ -91,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
105
|
- !ruby/object:Gem::Version
|
92
106
|
version: '0'
|
93
107
|
requirements: []
|
94
|
-
|
95
|
-
rubygems_version: 2.5.2.1
|
108
|
+
rubygems_version: 3.0.1
|
96
109
|
signing_key:
|
97
110
|
specification_version: 4
|
98
111
|
summary: A simple account manager (NOT SECURE ;p).
|