jog 0.0.3 → 0.0.4
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.
- data/Gemfile.lock +2 -2
- data/README.md +3 -6
- data/jog.gemspec +1 -0
- data/lib/jog/cli.rb +3 -4
- data/lib/jog/config.rb +1 -1
- data/lib/jog/version.rb +2 -1
- data/lib/jog.rb +1 -0
- metadata +18 -6
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
Jog
|
2
2
|
===
|
3
3
|
|
4
|
-
*In-progress.*
|
5
|
-
|
6
4
|
Simple command-line tool for logging what you've been up to in plain text files.
|
7
5
|
|
8
6
|
Create / edit log entry for today
|
@@ -12,7 +10,7 @@ Create / edit log entry for today
|
|
12
10
|
> jog today
|
13
11
|
```
|
14
12
|
|
15
|
-
By default, this will create a blank file at `~/jog/YYYY/MM/DD.txt'` and open it with
|
13
|
+
By default, this will create a blank file at `~/jog/YYYY/MM/DD.txt'` and open it with the editor specified by your `EDITOR` environment variable (or `vim`, if none is set). If the file already exists, it will be opened in your editor.
|
16
14
|
|
17
15
|
Configuration
|
18
16
|
-------------
|
@@ -26,7 +24,6 @@ To view your current configuration, run `jog config`:
|
|
26
24
|
Config
|
27
25
|
------
|
28
26
|
{:root=>"/Users/tyson/Dropbox/log",
|
29
|
-
:editor=>"mate -w",
|
30
27
|
:path_format=>"%Y/%B/%d.txt"}
|
31
28
|
|
32
29
|
Template
|
@@ -42,7 +39,6 @@ Time: <%= Time.now.strftime( "%-I:%M%P %Z" ) %>
|
|
42
39
|
Example:
|
43
40
|
|
44
41
|
root: ~/Dropbox/log
|
45
|
-
editor: vim -f
|
46
42
|
path_format: '%Y/%B/%d.txt'
|
47
43
|
|
48
44
|
### `.jogtemplate`
|
@@ -50,6 +46,7 @@ Example:
|
|
50
46
|
Jog template files are processed through ERB at runtime. Example:
|
51
47
|
|
52
48
|
---
|
53
|
-
Date: <%= Time.now.strftime( "%B %-d, %Y" ) %>
|
49
|
+
Date: <%= Time.now.strftime( "%A %B %-d, %Y" ) %>
|
54
50
|
Time: <%= Time.now.strftime( "%-I:%M%P %Z" ) %>
|
55
51
|
---
|
52
|
+
|
data/jog.gemspec
CHANGED
data/lib/jog/cli.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'pp'
|
3
|
+
require 'colored'
|
3
4
|
|
4
5
|
module Jog
|
5
6
|
class CLI < Thor
|
@@ -10,12 +11,10 @@ module Jog
|
|
10
11
|
|
11
12
|
desc "config", "Print the current configuration"
|
12
13
|
def config
|
13
|
-
puts "Config"
|
14
|
-
puts "------"
|
14
|
+
puts "Config".green.underline
|
15
15
|
pp Jog.config
|
16
16
|
puts
|
17
|
-
puts "Template"
|
18
|
-
puts "--------"
|
17
|
+
puts "Template".green.underline
|
19
18
|
puts Jog.template
|
20
19
|
end
|
21
20
|
end
|
data/lib/jog/config.rb
CHANGED
data/lib/jog/version.rb
CHANGED
data/lib/jog.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70263882733540 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70263882733540
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &70263882733120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,18 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70263882733120
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: colored
|
38
|
+
requirement: &70263882732700 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70263882732700
|
36
47
|
description: Jog is a simple command-line tool that simplifies the process of logging
|
37
48
|
what you've worked on, storing plain-text files in a sensible file structue.
|
38
49
|
email:
|
@@ -78,3 +89,4 @@ signing_key:
|
|
78
89
|
specification_version: 3
|
79
90
|
summary: Command-line tool that makes it easy to log your work.
|
80
91
|
test_files: []
|
92
|
+
has_rdoc:
|