lib/rufus/sc/cronline.rb in rufus-scheduler-2.0.7 vs lib/rufus/sc/cronline.rb in rufus-scheduler-2.0.8
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2006-2010, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2006-2011, John Mettraux, jmettraux@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -222,10 +222,10 @@
if i
istart = Integer(item[0..i - 1])
if j
- iend = Integer(item[i + 1..j])
+ iend = Integer(item[i + 1..j - 1])
else
iend = Integer(item[i + 1..-1])
end
else # case */x