diff --git a/Changes.md b/Changes.md index 54d96b4..7443e2a 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,13 @@ +1.1.0 +----------- +- Rails 3 and old Rubies are not supported anymore, sorry rails 3 guys... +- Requires Ruby 2.2.2 or newer +- Fixed crash when no jobs defined in your cronotab +- Some doc updates (thanks to @pachacamac) +- Job will schedule on: today if at: time not passed (thanks to @acolyer) +- Job log truncating (thanks to @reiz) + + 1.0.3 ----------- - "every 1 week" jobs now displaying on Rails 5 as "1 week" not as "7 days" diff --git a/Gemfile.lock b/Gemfile.lock index aaffeef..aa14cbd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - crono (1.0.3) + crono (1.1.0) activerecord (>= 4.0) activesupport (>= 4.0) diff --git a/lib/crono/period.rb b/lib/crono/period.rb index cc736f6..5bd0893 100644 --- a/lib/crono/period.rb +++ b/lib/crono/period.rb @@ -23,6 +23,7 @@ module Crono return initial_next unless since @next = @period.since(since) end + @next = @next.beginning_of_week.advance(days: @on) if @on @next = @next.change(time_atts) return @next if @next.future? diff --git a/lib/crono/version.rb b/lib/crono/version.rb index a1d24c3..e77fd88 100644 --- a/lib/crono/version.rb +++ b/lib/crono/version.rb @@ -1,3 +1,3 @@ module Crono - VERSION = '1.0.3' + VERSION = '1.1.0' end