jog 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/README.md +7 -0
- data/lib/jog/config.rb +7 -2
- data/lib/jog/version.rb +1 -1
- metadata +2 -2
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -9,13 +9,13 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (3.2.
|
12
|
+
activesupport (3.2.12)
|
13
13
|
i18n (~> 0.6)
|
14
14
|
multi_json (~> 1.0)
|
15
15
|
colored (1.2)
|
16
|
-
i18n (0.6.
|
17
|
-
multi_json (1.
|
18
|
-
thor (0.
|
16
|
+
i18n (0.6.4)
|
17
|
+
multi_json (1.6.1)
|
18
|
+
thor (0.17.0)
|
19
19
|
|
20
20
|
PLATFORMS
|
21
21
|
ruby
|
data/README.md
CHANGED
@@ -50,3 +50,10 @@ Jog template files are processed through ERB at runtime. Example:
|
|
50
50
|
Time: <%= Time.now.strftime( "%-I:%M%P %Z" ) %>
|
51
51
|
---
|
52
52
|
|
53
|
+
Changelog
|
54
|
+
---------
|
55
|
+
|
56
|
+
* *0.0.6* - Fix nil template when no `.jogtemplate` is provided, fix for
|
57
|
+
`.jogrc` being used as template when `.jogtemplate` wasn't present.
|
58
|
+
* *0.0.5* - Initial release.
|
59
|
+
|
data/lib/jog/config.rb
CHANGED
@@ -14,7 +14,12 @@ module Jog
|
|
14
14
|
editor: ENV['EDITOR'] || 'vim',
|
15
15
|
path_format: '%Y/%B/%d.txt'
|
16
16
|
}
|
17
|
-
DEFAULT_TEMPLATE =
|
17
|
+
DEFAULT_TEMPLATE = "---
|
18
|
+
Date: <%= Time.now.strftime( \"%A, %B %-d, %Y\" ) %>
|
19
|
+
Time: <%= Time.now.strftime( \"%-I:%M%P %Z\" ) %>
|
20
|
+
---
|
21
|
+
|
22
|
+
"
|
18
23
|
|
19
24
|
def config
|
20
25
|
@config ||= load_config
|
@@ -72,7 +77,7 @@ module Jog
|
|
72
77
|
dir = File.split( dir ).first
|
73
78
|
end
|
74
79
|
["/", "~/"].each do |root|
|
75
|
-
paths << File.expand_path( "#{root}#{
|
80
|
+
paths << File.expand_path( "#{root}#{basename}" )
|
76
81
|
end
|
77
82
|
paths
|
78
83
|
end
|
data/lib/jog/version.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.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|