daily_log 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 8c783c694e311e44ea889b3035e718ae46073bec77e1491d90d907e0c4b1552e
4
- data.tar.gz: 01c0fabb78e929c5ada6832fcf436f590849000cfbc7d024e4f09385ff961026
3
+ metadata.gz: 0f8d6b8f5bd384395377f8d0804b6b647b3167363bd3b730e150a1edbdbb1188
4
+ data.tar.gz: 8910775604dd64a27e94637ca80678715da785f9ab2bda68ea1714a7a7fc5920
5
5
  SHA512:
6
- metadata.gz: 61039bd2ba30f414c70ce8019c6fead05fb3b78aa3d43ecccdd4d6e4975b4d2631bc4e687ce6e0db5bb1409653fb3d6390e48ea4355bf6e7ed3b58b7c23fad48
7
- data.tar.gz: 5bc29134cfa37afeb9f664896e0cb9f0c01015747e9e8464100666681d76253c7b6ac808be393ce5ce99a44f518071577813ca2992f2e871c14952ba99b8b0fe
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
@@ -9,4 +9,3 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
- .daily_logs
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- daily_log (0.1.0)
4
+ daily_log (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 2020-01-06 / 2020-01-07
3
+ ==================
4
+
5
+ * Allow public gem pushing
6
+
2
7
  n.n.n / 2020-01-07
3
8
  ==================
4
9
 
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 `daily_log` to open today's log.
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
- cd /usr/local
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
- $ daily_log
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
- $ daily_log -l # short for daily_log --last
82
+ $ dl -l # short for dl --last
85
83
  ```
86
84
 
87
85
  ...to print out your log to the console.
@@ -16,10 +16,7 @@ module DailyLog
16
16
  end
17
17
 
18
18
  def defaults
19
- _defaults = { date: Date.today }
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
@@ -1,3 +1,3 @@
1
1
  module DailyLog
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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"