New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jog

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Jog

Simple command-line tool for logging what you've been up to in plain text files.

Create / edit log entry for today

> jog today

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.

Configuration

When run, jog will walk up your directory tree from your current working directory looking for .jogrc and .jogtemplate. If it can't find them, it will look in your home directory. If they don't exist there, it will use the built-in defaults.

To view your current configuration, run jog config:

> jog config
Config
------
{:root=>"/Users/tyson/Dropbox/log",
 :path_format=>"%Y/%B/%d.txt"}

Template
--------
---
Date: <%= Time.now.strftime( "%B %-d, %Y" ) %>
Time: <%= Time.now.strftime( "%-I:%M%P %Z" ) %>
---

.jogrc

Example:

root: ~/Dropbox/log
path_format: '%Y/%B/%d.txt'

.jogtemplate

Jog template files are processed through ERB at runtime. Example:

---
Date: <%= Time.now.strftime( "%A %B %-d, %Y" ) %>
Time: <%= Time.now.strftime( "%-I:%M%P %Z" ) %>
---

Changelog

  • 0.0.6 - Fix nil template when no .jogtemplate is provided, fix for .jogrc being used as template when .jogtemplate wasn't present.
  • 0.0.5 - Initial release.

FAQs

Package last updated on 01 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc