Skip to content

Commit

Permalink
1st commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 10, 2012
1 parent b373b70 commit 5a764e3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions activity-logger.gemspec
@@ -0,0 +1,7 @@
Gem::Specification.new do |s|
s.name = 'activity-logger'
s.version = '0.1.0'
s.summary = 'activity-logger'
s.authors = ['James Robertson']
s.files = Dir['lib/**/*.rb']
end
16 changes: 16 additions & 0 deletions lib/activity-logger.rb
@@ -0,0 +1,16 @@
#!/usr/bin/env ruby

# file: activity-logger.rb

require 'dynarex-daily'

class ActivityLogger

def initialize(path=nil)
Dir.chdir(path) if path
end

def create(desc='')
DynarexDaily.new.create(time: Time.now.to_s, desc: desc).save
end
end

0 comments on commit 5a764e3

Please sign in to comment.