pday 0.1.0 → 0.2.0

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.
Files changed (2) hide show
  1. data/lib/pday.rb +4 -4
  2. metadata +1 -1
data/lib/pday.rb CHANGED
@@ -24,7 +24,7 @@ end
24
24
 
25
25
  main do
26
26
  default_options=Hash.new
27
- default_options['suffix-delimit'] = ' - '
27
+ default_options['suffix-delimit'] = '-'
28
28
  default_options['format'] = 'md'
29
29
  default_options['editor'] = 'vim'
30
30
  # Load the .dayconfig file and merge in options there:
@@ -58,12 +58,12 @@ main do
58
58
  # Build the command:
59
59
  filepath=options['path']+entrydate+suffix+'.'+options['format']
60
60
  puts "Creating new entry for: "+entrydate
61
- `echo '#{prepopulate(entrydate)}' > #{filepath}`
61
+ `echo '#{prepopulate(entrydate)}' > '#{filepath}'`
62
62
  puts "Editing entry..."
63
- `#{options['editor']} #{filepath}`
63
+ `#{options['editor']} '#{filepath}'`
64
64
  end
65
65
 
66
- version '0.1'
66
+ version '0.2'
67
67
  description 'Simple plain text diary management script.'
68
68
 
69
69
  opts.on("-d DATE","--date","Supply an explicit date. Also accepts 'yesterday' or 'y'") do |date|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: