README.md in rufus-scheduler-3.3.4 vs README.md in rufus-scheduler-3.4.0
- old
+ new
@@ -437,11 +437,11 @@
```ruby
job.first_at = Time.now + 10
job.first_at = Rufus::Scheduler.parse('2029-12-12')
```
-The first argument (in all its flavours) accepts a :now or :immediately value. That schedules the first occurence for immediate triggering. Consider:
+The first argument (in all its flavours) accepts a :now or :immediately value. That schedules the first occurrence for immediate triggering. Consider:
```ruby
require 'rufus-scheduler'
s = Rufus::Scheduler.new
@@ -845,11 +845,11 @@
## CronJob methods
### frequency
-It returns the shortest interval of time between two potential occurences of the job.
+It returns the shortest interval of time between two potential occurrences of the job.
For instance:
```ruby
Rufus::Scheduler.parse('* * * * *').frequency # ==> 60
Rufus::Scheduler.parse('* * * * * *').frequency # ==> 1
@@ -1280,11 +1280,11 @@
end
```
This uses a [zookeeper](http://zookeeper.apache.org/) to make sure only one scheduler in a group of distributed schedulers runs.
-The methods #lock and #unlock are overriden and #confirm_lock is provided,
+The methods #lock and #unlock are overridden and #confirm_lock is provided,
to make sure that the lock is still valid.
The #confirm_lock method is called right before a job triggers (if it is provided). The more generic callback #on_pre_trigger is called right after #confirm_lock.
### :scheduler_lock and :trigger_lock
@@ -1447,10 +1447,10 @@
from rufus-scheduler/lib/rufus/scheduler/zotime.rb:198:in `now'
from rufus-scheduler/lib/rufus/scheduler.rb:561:in `start'
...
```
-It may happen on Windows or on systems that poorly hints to Ruby on which timezone to use. It should be solved by setting explicitely the `ENV['TZ']` before the scheduler instantiation:
+It may happen on Windows or on systems that poorly hints to Ruby on which timezone to use. It should be solved by setting explicitly the `ENV['TZ']` before the scheduler instantiation:
```ruby
ENV['TZ'] = 'Asia/Shanghai'
scheduler = Rufus::Scheduler.new
scheduler.every '2s' do
puts "#{Time.now} Hello #{ENV['TZ']}!"