From e04533947b0851568a82343ade5455ab527aa922 Mon Sep 17 00:00:00 2001 From: peberli Date: Mon, 2 Dec 2013 09:36:29 +0100 Subject: [PATCH 1/2] Add author to the gemspec, seems to be invalid without --- crontab_syntax_checker.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/crontab_syntax_checker.gemspec b/crontab_syntax_checker.gemspec index d8744e4..4ebd088 100644 --- a/crontab_syntax_checker.gemspec +++ b/crontab_syntax_checker.gemspec @@ -4,4 +4,5 @@ spec = Gem::Specification.new do |s| s.summary = 'Validate an entry that will be used in crontab' s.require_paths = ["lib"] s.files = Dir.glob("**/*") + s.authors = ['Stephen Sloan'] end \ No newline at end of file From e1ed9b97a4c4a90d8961f991dabed64022c8e0a3 Mon Sep 17 00:00:00 2001 From: peberli Date: Mon, 2 Dec 2013 10:10:01 +0100 Subject: [PATCH 2/2] Fix wrong error message when parsing entry. It should say "Entry did *not* match expected pattern" instead of "Entry did match expected pattern" --- lib/crontab_line.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crontab_line.rb b/lib/crontab_line.rb index f8783c6..1ac4a62 100644 --- a/lib/crontab_line.rb +++ b/lib/crontab_line.rb @@ -53,7 +53,7 @@ def self.create_by_entry(entry) crontab.command = md[@@COMMAND_GROUP_NUM] crontab else - raise "Entry did match expected pattern" + raise "Entry did not match expected pattern" end end def to_s