rat 0.2.0 → 0.3.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 (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rat.rb +1 -1
  3. data/rat.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/lib/rat.rb CHANGED
@@ -14,7 +14,7 @@ module Rat
14
14
  def self.add(command, time, opts = {})
15
15
  cmd = command.dup
16
16
  cmd << ' 2>&1 > /dev/null' if opts[:no_mail]
17
- output = `echo "#{cmd}" | at -t #{time.strftime('%y%m%d%H%M.%S')} 2>&1`
17
+ output = `echo "#{cmd}" | at #{time.strftime('%H:%M')} #{time.strftime('%d.%m.%y')} 2>&1`
18
18
  raise RuntimeError, "Rat couldn't schedule job." unless $?.exitstatus == 0
19
19
  (output[/job (\d+)/i, 1] || -1).to_i
20
20
  end
data/rat.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rat}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Koopmans"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Koopmans