furichan 0.1.1 → 0.1.2
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/lib/furichan/cli.rb +7 -6
- data/lib/furichan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb9bd4672a1070aa7934db422a6dc81ce6e015cc
|
|
4
|
+
data.tar.gz: ff5553323465db72514a8fa2ca1323ed5a1f5218
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42cf586d98a08f97969f097543a5121b00376f7ba2b8152f26816a2adb91d0922ce1e42252d569c51988003f485af915c43dee7bfa11511a6a150dcc871f5a4f
|
|
7
|
+
data.tar.gz: 19c2ca1506c0b9adb4267b022b43734bd88345203d38105b58a01bbba94170fc2d46d264dc5709e21fd5ae26f3a09028120e19b186ee5381e239dcb7a3071be6
|
data/lib/furichan/cli.rb
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
require 'thor'
|
|
4
4
|
require 'date'
|
|
5
5
|
require 'active_support/time'
|
|
6
|
+
require 'furik/cli'
|
|
6
7
|
|
|
7
8
|
module Furichan
|
|
8
9
|
class CLI < Thor
|
|
9
|
-
default_command
|
|
10
|
+
default_command :furichan
|
|
10
11
|
|
|
11
|
-
desc '
|
|
12
|
-
def
|
|
12
|
+
desc 'furichan', 'Do the all of week task'
|
|
13
|
+
def furichan
|
|
13
14
|
invoke :init
|
|
14
15
|
invoke :furik
|
|
15
16
|
end
|
|
@@ -17,9 +18,9 @@ module Furichan
|
|
|
17
18
|
desc 'init', 'initialize of week setting'
|
|
18
19
|
def init
|
|
19
20
|
wmonth = Time.now().strftime('%Y-%m-') + week_of_month
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
`git checkout -b #{wmonth}`
|
|
22
|
+
`mkdir -p #{wmonth}`
|
|
23
|
+
`cp template.md #{wmonth}/README.md`
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
desc 'furik', 'this week"s furik'
|
data/lib/furichan/version.rb
CHANGED