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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -10
  3. data/exe/cal4 +10 -7
  4. data/lib/cal4near/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7fb082c9b8bce6f8385a496bf36f8dd12685b4cb98e5d091a3ee775a1f5f45d
4
- data.tar.gz: 10716eb53e57aa7c5d6270e89507f28d936a4dba2eef6582590bda1fd1ee8f05
3
+ metadata.gz: d373d36ab9313eff826c23336f0961e57da58db8ee897dea9aeabcf35fca3182
4
+ data.tar.gz: '068866cddf8ea18cb5a64923d51853bc25d7648c652ff8c12dbc6da68b6c67b5'
5
5
  SHA512:
6
- metadata.gz: 5250464e823c81b85a238c840e781a70e040977a55c499197a355c43b7918bdf2798458448e02aac4e33febe9286ad0945d003a8aa864e10e275564662bb7f92
7
- data.tar.gz: ea21adb0483633045ab3ab53c62a5d5c225eede70e16937d94f8d32743e443f54f05ea4af91088b3025d84d8517a8e50c031ba85118c4e5bb41600ff3c0b4064
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 --free
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 [--free] [--busy]
6
+ usage: cal4 [free|busy] [-h]
7
7
 
8
- --free : Stdout free times from calendar api
9
- --busy : Stdout busy times from calendar api [WIP]
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 '--free', '-f'
23
+ when 'free', 'f'
22
24
  msg = "free times"
23
25
  times_info = Cal4near.free_times
24
- # when '--busy', 'b'
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
- msg = "free times"
35
- times_info = Cal4near.free_times
36
+ puts WRONG_ARG_ERR_MSG
37
+ puts HELP_MSG
38
+ return
36
39
  end
37
40
 
38
41
  puts <<-MSG
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cal4near
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cal4near
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nakamaksk