rails_time_travel 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db43775b84e37d5cbdbf4310d4cc010f196994aed816350900a5d4e3ee4b3ed6
4
- data.tar.gz: ba3c5752bb36969f59e78a47156586d573fb6b45177ca515a9e0a63bd0dc2ff5
3
+ metadata.gz: 3fc88df1fe8ce2b79ac3a70a3ff88ca6ee423480005f80d10af40869d6663e57
4
+ data.tar.gz: a870ac6e2c3c6ccff8f0035bb5265fbecccddeb74a119d6902bfad20ee18eeac
5
5
  SHA512:
6
- metadata.gz: 7ce55c798d1755a2eff6f863b96378a53d8927d9bfa068f9608e7eaa0a2ad370b0c31fc79483066e723031a45c1d018edf3ffe1c9d8907ae2277087eda2176d8
7
- data.tar.gz: 825dbefe46b940fdf519158b19347e72bc33be501f14ef14b7279e8f7f53c09fdd4de50c0ebc83b2b4020f204935349926deac9546e761fcbd78fc514aa5bc59
6
+ metadata.gz: 5e2b1c50d9a31591932f26746d1ba811b8fcfc1fc0cc47d844b7aae5d5b7dbae4a922f67f944bcb176ef1b1878f5e738ad047b46db5860a636cc5ce9aa08cdd4
7
+ data.tar.gz: 6af0116c7279e865fbe325f496436e8386e5868dc1103bfc13061b52e8ff54e9b08364d6ab6c1da82ffd8242c230457090ce01d48745bd6e28f050bf2fa641cb
@@ -8,7 +8,7 @@ module RailsTimeTravel
8
8
  def set_datetime
9
9
  if params[:seconds] == "reset"
10
10
  Timecop.return
11
- session[:timecop_date] = nil
11
+ session.delete(:timecop_date)
12
12
  else
13
13
  session[:timecop_date] = params[:seconds].to_i.seconds.ago
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module RailsTimeTravel
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_time_travel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk