cal4near 0.1.2 → 0.1.3
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 +6 -10
- data/exe/cal4 +10 -7
- data/lib/cal4near/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d373d36ab9313eff826c23336f0961e57da58db8ee897dea9aeabcf35fca3182
|
4
|
+
data.tar.gz: '068866cddf8ea18cb5a64923d51853bc25d7648c652ff8c12dbc6da68b6c67b5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6be5cc5c52bd6aaa0369080d47b1b87fc968ae1904e7ce8cbf055e0ceaf3fedd80fd05f04d0870c8116cd0278e80ab130d584ced9d6b28956e534b557706c765
|
7
|
+
data.tar.gz: d800efc818d1c8476521ec9615a154d7a304336f3cbf515f641c374ebd1d69f8cf943e2fa55ad54bff5f7dc458feb0c1232afd739bdf8dcfbf86153e380d291e
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Cal4near
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Googleカレンダーの情報をコンソールへ出力するツール
|
3
|
+
Googleカレンダーの情報をコンソールへ出力するツールです。
|
6
4
|
|
7
5
|
### 主な機能
|
8
6
|
- 空いている時間を出力する
|
@@ -34,19 +32,17 @@ free times
|
|
34
32
|
|
35
33
|
## 事前準備
|
36
34
|
|
37
|
-
|
35
|
+
GoogleClandarAPIを使えるように設定が必要です。
|
36
|
+
以下を参考にしてください。
|
37
|
+
|
38
|
+
https://qiita.com/nakamaksk/items/d1f522ecbb12aa969afc
|
38
39
|
|
39
40
|
## 使い方
|
40
41
|
|
41
42
|
### 空いている時間を取得
|
42
43
|
|
43
|
-
以下のいずれかのコマンドを実行
|
44
|
-
|
45
|
-
```
|
46
|
-
cal4
|
47
|
-
```
|
48
44
|
```
|
49
|
-
cal4
|
45
|
+
cal4 free
|
50
46
|
```
|
51
47
|
|
52
48
|
出力例
|
data/exe/cal4
CHANGED
@@ -3,10 +3,12 @@ require "bundler/setup"
|
|
3
3
|
require "cal4near"
|
4
4
|
|
5
5
|
HELP_MSG =<<-MSG
|
6
|
-
usage: cal4 [
|
6
|
+
usage: cal4 [free|busy] [-h]
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
free : Stdout free times from calendar api
|
9
|
+
busy : Stdout busy times from calendar api [WIP]
|
10
|
+
|
11
|
+
-h : show help
|
10
12
|
MSG
|
11
13
|
|
12
14
|
WRONG_ARG_ERR_MSG =<<-MSG
|
@@ -18,10 +20,10 @@ if ARGV.length > 0
|
|
18
20
|
when '-h'
|
19
21
|
puts HELP_MSG
|
20
22
|
return
|
21
|
-
when '
|
23
|
+
when 'free', 'f'
|
22
24
|
msg = "free times"
|
23
25
|
times_info = Cal4near.free_times
|
24
|
-
# when '
|
26
|
+
# when 'busy', 'b'
|
25
27
|
# TODO:busy_timesの実装
|
26
28
|
# msg = "busy times"
|
27
29
|
# times_info = Cal4near.busy_times
|
@@ -31,8 +33,9 @@ if ARGV.length > 0
|
|
31
33
|
return
|
32
34
|
end
|
33
35
|
else
|
34
|
-
|
35
|
-
|
36
|
+
puts WRONG_ARG_ERR_MSG
|
37
|
+
puts HELP_MSG
|
38
|
+
return
|
36
39
|
end
|
37
40
|
|
38
41
|
puts <<-MSG
|
data/lib/cal4near/version.rb
CHANGED