acm 0.4.2 → 0.5.0

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: a1d783f18685313b4daa32039178794fae4f7f1b
4
- data.tar.gz: 55a78e334626b6cdc19680db9e1b1e556a419a5f
3
+ metadata.gz: 1d99dfd2a6a632f0588476078623d8295e9babb3
4
+ data.tar.gz: 04361702b36905dfeb9541d61d6dfbd584fefc77
5
5
  SHA512:
6
- metadata.gz: f3e60c0f9242bcd9092bbca83204718cb5dd99f82b7b246aea03bd9d0da6baab4cf510422206a39e4eb97326affd3d191637aed8eef103e1c4a604344a23d1b3
7
- data.tar.gz: f45ab544ad198a9a803e62fd2acd23b9760b098978519b945ecb276a5f7943f1737b2d7c4eea7faec06d091f9ac8653cc186495264849937f2f2d2ce1ab6b4c9
6
+ metadata.gz: ada777666330f67910064a3966ddfe284cf2000be58b16f7e226900c9c69452af86e4d189bea9b565a23b8e13e4f8afb2eb687d3febb6a7dd8a7f85874fd86d9
7
+ data.tar.gz: 1f5068c7d6d1caaeb20bc35d12d78213ec344f9c09014263688d338077a3f54cf841e8247574ea1fcb8e6d2d9917999ed371b0abccfa0255f0496dae373fbc05
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 takatoh
1
+ Copyright (c) 2015-2020 takatoh
2
2
 
3
3
  MIT License
4
4
 
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
- ## Development
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
@@ -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", "~> 1.10"
31
- spec.add_development_dependency "rake", "~> 10.0"
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
- puts " #{key}: #{val}"
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}"
@@ -1,3 +1,3 @@
1
1
  module Acm
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
3
3
  end
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.2
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: 2016-11-17 00:00:00.000000000 Z
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: '1.10'
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: '1.10'
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: '10.0'
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: '10.0'
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.4.8
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).