acm 0.4.2 → 0.5.0
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/LICENSE.txt +1 -1
- data/README.md +4 -9
- data/acm.gemspec +2 -2
- data/exe/acm +6 -1
- data/lib/acm/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d99dfd2a6a632f0588476078623d8295e9babb3
|
4
|
+
data.tar.gz: 04361702b36905dfeb9541d61d6dfbd584fefc77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ada777666330f67910064a3966ddfe284cf2000be58b16f7e226900c9c69452af86e4d189bea9b565a23b8e13e4f8afb2eb687d3febb6a7dd8a7f85874fd86d9
|
7
|
+
data.tar.gz: 1f5068c7d6d1caaeb20bc35d12d78213ec344f9c09014263688d338077a3f54cf841e8247574ea1fcb8e6d2d9917999ed371b0abccfa0255f0496dae373fbc05
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -41,6 +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.
|
45
|
+
|
44
46
|
Update value of key:
|
45
47
|
|
46
48
|
> acm update takatoh.m@gmail.com password yyyyyyyy
|
@@ -78,13 +80,6 @@ And remove account:
|
|
78
80
|
No such account: takatoh.m@gmail.com
|
79
81
|
|
80
82
|
|
81
|
-
##
|
82
|
-
|
83
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
84
|
-
|
85
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
86
|
-
|
87
|
-
## Contributing
|
88
|
-
|
89
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/takatoh/acm.
|
83
|
+
## License
|
90
84
|
|
85
|
+
MIT License
|
data/acm.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_development_dependency "bundler", "~>
|
31
|
-
spec.add_development_dependency "rake", "
|
30
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
31
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
32
32
|
spec.add_runtime_dependency "thor"
|
33
33
|
end
|
data/exe/acm
CHANGED
@@ -51,13 +51,18 @@ class MyCLI < Thor
|
|
51
51
|
end
|
52
52
|
|
53
53
|
desc "show ACCOUNT", "Show details of ACCOUNT"
|
54
|
+
option :pass, :type => :boolean
|
54
55
|
def show(target)
|
55
56
|
db = load_db
|
56
57
|
account = lookup(target.encode("utf-8"), db)
|
57
58
|
if account
|
58
59
|
puts "Account: #{account['account']}"
|
59
60
|
account['details'].each do |key, val|
|
60
|
-
|
61
|
+
if /pass/ =~ key && !options[:pass]
|
62
|
+
puts " #{key}: ******"
|
63
|
+
else
|
64
|
+
puts " #{key}: #{val}"
|
65
|
+
end
|
61
66
|
end
|
62
67
|
else
|
63
68
|
puts "No such account: #{target}"
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takatoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
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: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
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:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.5.2.1
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: A simple account manager (NOT SECURE ;p).
|