acm 0.3.0 → 0.4.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/README.md +4 -3
- data/acm.gemspec +1 -1
- data/exe/acm +7 -2
- data/lib/acm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56e18b0325ce8c098a698881193e0c623afec173
|
|
4
|
+
data.tar.gz: dc298ed7032c4f87df092d8f20ef2374e1d55ef1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa9274a2568738d7a8af9ddc4d8589450cae5d3c0319ea7ed2623d8c193bcba7b3c0ffa298b8b434aa0af020f54bbf4b66568319c11c0d203cea3bfe5f2195d3
|
|
7
|
+
data.tar.gz: 9eb7901d23a115de4d5e3413cc16a87fd33969fb90338f6d478e30507e1df42e83ea6ac96705c1588364278491deabe03cbdf28eb817f59d82fbe5a957f3be35
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# acm
|
|
2
2
|
|
|
3
|
-
A simple account manager
|
|
3
|
+
A simple account manager. This is NOT secure, excuse me ;p.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
@@ -15,7 +15,8 @@ At first, init database:
|
|
|
15
15
|
|
|
16
16
|
> acm init
|
|
17
17
|
|
|
18
|
-
The database file is saved as
|
|
18
|
+
The database file is saved as "ENV['ACMDB']" or "ENV['HOME']/.accounts", in YAML.
|
|
19
|
+
Set location of database file to environment variable 'ACMDB', if you want.
|
|
19
20
|
|
|
20
21
|
Add account:
|
|
21
22
|
|
|
@@ -47,7 +48,7 @@ Update value of key:
|
|
|
47
48
|
> acm show takatoh.m@gmail.com
|
|
48
49
|
Account: takatoh.m@gmail.com
|
|
49
50
|
email: takatoh.m@gmail.com
|
|
50
|
-
password:
|
|
51
|
+
password: yyyyyyyy
|
|
51
52
|
|
|
52
53
|
Remove key and value:
|
|
53
54
|
|
data/acm.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["takatoh"]
|
|
10
10
|
spec.email = ["takatoh.m@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{A simple account manager
|
|
12
|
+
spec.summary = %q{A simple account manager (NOT SECURE ;p).}
|
|
13
13
|
spec.description = %q{}
|
|
14
14
|
spec.homepage = "https://github.com/takatoh/acm"
|
|
15
15
|
spec.license = "MIT"
|
data/exe/acm
CHANGED
|
@@ -8,7 +8,7 @@ require 'yaml'
|
|
|
8
8
|
|
|
9
9
|
class MyCLI < Thor
|
|
10
10
|
|
|
11
|
-
DB_FILE =
|
|
11
|
+
DB_FILE = ENV['ACMDB'] || "#{ENV['HOME']}/.accounts"
|
|
12
12
|
|
|
13
13
|
desc "init", "Init database"
|
|
14
14
|
def init
|
|
@@ -116,7 +116,12 @@ class MyCLI < Thor
|
|
|
116
116
|
private
|
|
117
117
|
|
|
118
118
|
def load_db
|
|
119
|
-
|
|
119
|
+
begin
|
|
120
|
+
YAML.load_file(DB_FILE)
|
|
121
|
+
rescue
|
|
122
|
+
puts "Error: Not found database file."
|
|
123
|
+
exit(1)
|
|
124
|
+
end
|
|
120
125
|
end
|
|
121
126
|
|
|
122
127
|
def lookup(target, db)
|
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.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- takatoh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -95,5 +95,5 @@ rubyforge_project:
|
|
|
95
95
|
rubygems_version: 2.4.8
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 4
|
|
98
|
-
summary: A simple account manager
|
|
98
|
+
summary: A simple account manager (NOT SECURE ;p).
|
|
99
99
|
test_files: []
|