daily_log 0.1.0 → 0.1.1
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/.daily_logs/2020/01/06.md +16 -0
- data/.daily_logs/2020/01/07.md +17 -0
- data/.gitignore +0 -1
- data/Gemfile.lock +1 -1
- data/History.md +5 -0
- data/README.md +4 -6
- data/lib/daily_log/options.rb +3 -4
- data/lib/daily_log/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f8d6b8f5bd384395377f8d0804b6b647b3167363bd3b730e150a1edbdbb1188
|
|
4
|
+
data.tar.gz: 8910775604dd64a27e94637ca80678715da785f9ab2bda68ea1714a7a7fc5920
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c6a936ec9927a5873199fabab264b646f81b10dcb0919cc463ca38e9c5faf107a0316735cdebbf64f29ba2ff9d4442fa5acefa4e84b8f467f09a645114db2f2
|
|
7
|
+
data.tar.gz: 65164230b791472f09344cd241696c74208cb479fa518d413fd8e0095dc23f95e3ad03eac69cdcd9182e122f52fad346f3b2dc541427efbd2451e944a78fe89d
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Daily Entry - Mon 06 January, 2020
|
|
2
|
+
|
|
3
|
+
## Today I worked on:
|
|
4
|
+
|
|
5
|
+
- the initial launch of the project
|
|
6
|
+
|
|
7
|
+
## Next time, you should continue with:
|
|
8
|
+
|
|
9
|
+
- Adding support for more options, including deleting files, and a .daily_logs file
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
Automatically generated by DailyLog https://github.com/katanacode/daily_log
|
|
14
|
+
Date: 2020-01-06
|
|
15
|
+
Project: dailylog
|
|
16
|
+
-->
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Daily Entry - Tue 07 January, 2020
|
|
2
|
+
|
|
3
|
+
## Today I worked on:
|
|
4
|
+
|
|
5
|
+
- Turn the code into a gem
|
|
6
|
+
- Published the gem
|
|
7
|
+
- Updated the README
|
|
8
|
+
|
|
9
|
+
## Next time, you should continue with:
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
Automatically generated by DailyLog https://github.com/KatanaCode/daily_log
|
|
14
|
+
Date: 2020-01-07
|
|
15
|
+
Project: dailylog
|
|
16
|
+
By: Gavin
|
|
17
|
+
-->
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
data/README.md
CHANGED
|
@@ -4,16 +4,14 @@ Provides a simple framework for keeping a daily log of the work you do on a proj
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
Call the binary `
|
|
7
|
+
Call the binary `dl` to open today's log.
|
|
8
8
|
|
|
9
9
|
Pass in the option `--help` to see the other options available.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
``` bash
|
|
14
|
-
|
|
15
|
-
git clone https://github.com/KatanaCode/daily_log.git
|
|
16
|
-
alias /usr/local/bin/daily_log /usr/local/daily_log/bin/daily_log
|
|
14
|
+
gem install daily_log
|
|
17
15
|
```
|
|
18
16
|
|
|
19
17
|
## Example
|
|
@@ -21,7 +19,7 @@ alias /usr/local/bin/daily_log /usr/local/daily_log/bin/daily_log
|
|
|
21
19
|
At the end of a working day, you run from your console
|
|
22
20
|
|
|
23
21
|
``` bash
|
|
24
|
-
$
|
|
22
|
+
$ dl
|
|
25
23
|
```
|
|
26
24
|
|
|
27
25
|
This opens a text file in your editor that looks like this:
|
|
@@ -81,7 +79,7 @@ Some time has passed since you last worked on the project. You aren't quite sure
|
|
|
81
79
|
You type:
|
|
82
80
|
|
|
83
81
|
```
|
|
84
|
-
$
|
|
82
|
+
$ dl -l # short for dl --last
|
|
85
83
|
```
|
|
86
84
|
|
|
87
85
|
...to print out your log to the console.
|
data/lib/daily_log/options.rb
CHANGED
|
@@ -16,10 +16,7 @@ module DailyLog
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def defaults
|
|
19
|
-
|
|
20
|
-
_defaults[:print] = _defaults[:date] != Date.today
|
|
21
|
-
_defaults[:edit] = _defaults[:date] == Date.today
|
|
22
|
-
_defaults
|
|
19
|
+
{ date: Date.today }
|
|
23
20
|
end
|
|
24
21
|
|
|
25
22
|
def parse
|
|
@@ -48,6 +45,8 @@ module DailyLog
|
|
|
48
45
|
end
|
|
49
46
|
end
|
|
50
47
|
end.parse!
|
|
48
|
+
hash[:print] = (hash[:date] != Date.today) unless hash.key?(:print)
|
|
49
|
+
hash[:edit] = (hash[:date] == Date.today) unless hash.key?(:edit)
|
|
51
50
|
end
|
|
52
51
|
end
|
|
53
52
|
end
|
data/lib/daily_log/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daily_log
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bodacious
|
|
@@ -62,6 +62,7 @@ extra_rdoc_files: []
|
|
|
62
62
|
files:
|
|
63
63
|
- ".byebug_history"
|
|
64
64
|
- ".daily_logs/2020/01/06.md"
|
|
65
|
+
- ".daily_logs/2020/01/07.md"
|
|
65
66
|
- ".gitignore"
|
|
66
67
|
- ".rspec"
|
|
67
68
|
- ".travis.yml"
|