Skip to content

Commit

Permalink
Merge pull request #239 from ptarjan/patch-1
Browse files Browse the repository at this point in the history
make `require 'timecop'` a bit more threadsafe
  • Loading branch information
travisjeffery authored Sep 12, 2019
2 parents cbaaf0c + 82d81bd commit 9593299
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## v0.9.2

- Make `require 'timecop'` threadsafe (#239)

## v0.9.1

- fix Date.parse when month/year only given (#206)
Expand Down
4 changes: 3 additions & 1 deletion lib/timecop/timecop.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'singleton'
require File.join(File.dirname(__FILE__), "time_extensions")
require File.join(File.dirname(__FILE__), "time_stack_item")

# Timecop
Expand Down Expand Up @@ -236,3 +235,6 @@ def initialize
end
end
end

# This must be done after TimeCop is available
require File.join(File.dirname(__FILE__), "time_extensions")
2 changes: 1 addition & 1 deletion lib/timecop/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Timecop
VERSION = "0.9.1"
VERSION = "0.9.2"
end

0 comments on commit 9593299

Please sign in to comment.