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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jog (0.0.2)
4
+ jog (0.0.3)
5
5
  activesupport
6
6
  thor
7
7
 
@@ -13,7 +13,7 @@ GEM
13
13
  multi_json (~> 1.0)
14
14
  i18n (0.6.0)
15
15
  multi_json (1.3.4)
16
- thor (0.14.6)
16
+ thor (0.15.2)
17
17
 
18
18
  PLATFORMS
19
19
  ruby
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 Vim. If the file already exists, it will be opened in your editor.
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
@@ -19,4 +19,5 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_runtime_dependency "thor"
21
21
  s.add_runtime_dependency "activesupport"
22
+ s.add_runtime_dependency "colored"
22
23
  end
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
@@ -11,7 +11,7 @@ module Jog
11
11
  CONFIG_VARS = %w{root editor path_format}
12
12
  DEFAULT_CONFIG = {
13
13
  root: '~/jog',
14
- editor: 'vim -f',
14
+ editor: ENV['EDITOR'] || 'vim',
15
15
  path_format: '%Y/%B/%d.txt'
16
16
  }
17
17
  DEFAULT_TEMPLATE = nil
data/lib/jog/version.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  module Jog
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
4
+
data/lib/jog.rb CHANGED
@@ -31,3 +31,4 @@ module Jog
31
31
  end
32
32
  end
33
33
  end
34
+
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.3
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-01 00:00:00.000000000 Z
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: &70348441915280 !ruby/object:Gem::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: *70348441915280
24
+ version_requirements: *70263882733540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &70348441914800 !ruby/object:Gem::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: *70348441914800
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: