acm 0.3.0 → 0.4.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: 5fa11ff16e85699fdc1e641f2ef6114c53798cab
4
- data.tar.gz: 52de884deb9bc95f615c3a6812fb375b1e7e169e
3
+ metadata.gz: 56e18b0325ce8c098a698881193e0c623afec173
4
+ data.tar.gz: dc298ed7032c4f87df092d8f20ef2374e1d55ef1
5
5
  SHA512:
6
- metadata.gz: e22409dfcd9edba0b3661eaeb83aee7c0a74a1a49a6dc6d3d951590953c61ca3c41c7c41679d09442da07b043f5ac44d1d434aea7e7a0f76696bde2293edaafa
7
- data.tar.gz: 6c81f3e140611ceb5173ad5a323a815d021548e29865565bafdeb5d2e5542859d459cc25adb78786276e03b1d607aa5fe2a1cb038ab547fc5f2853dbb9a69790
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 for Windows. This is NOT secure, excuse me ;p.
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 %HOMEDRIVE%%HOMEPATH%/Documents/.accounts, in YAML.
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: xxxxxxxx
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 for Windows (NOT SECURE ;p).}
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 = "#{ENV['HOMEDRIVE']}#{ENV['HOMEPATH']}/Documents/.accounts"
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
- YAML.load_file(DB_FILE)
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
@@ -1,3 +1,3 @@
1
1
  module Acm
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.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.3.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-10-21 00:00:00.000000000 Z
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 for Windows (NOT SECURE ;p).
98
+ summary: A simple account manager (NOT SECURE ;p).
99
99
  test_files: []