rails_time_travel 0.1.0 → 0.1.1

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: 21707b79269b69feb5fe049084b7c982721a23bd479de607ebddf3f0c00c966b
4
- data.tar.gz: 729ef44c49b93befe20011bf59d8fc5ebac4de819040f2e8f7bf2753eb3226f7
3
+ metadata.gz: 96435086bb724fb9d4d2208297f278caed7b5e66c14febce3057bbe4bd5c0cdc
4
+ data.tar.gz: f0b450b5acbb7aa398812a5f9c3d43b3a62cb4219fff49851e49d84c1efd2e98
5
5
  SHA512:
6
- metadata.gz: 29bf4450eea24c81c8a9340dd06dfd252a2121c68d7a530c69c845310a5e1e0ac817862d43c58ac2afc43d69fba87d3d60577811b264de0d733d81d891a1590b
7
- data.tar.gz: 818f66f7787bd9685662e9d2174840c0fb84dbe89579165764093defb4bc05e1d04c70afaa8d0151372ff11222d72a8f49eb5d97c260fbe96776035d26766826
6
+ metadata.gz: ee9abffe9ea7581276424d40f123fb5625dbddb4caadcf2be75864745c910e7af8b9e855d4271c5c39623ea35a305af80077e6bcf65a192f1fa558042de5d67c
7
+ data.tar.gz: fd7032a58c146c8f7b5ab3002f68c9ce3f3597e6d3f05dd349b13ac1a45c92aaccd4ced4e53c1c235853be5916b1549d79e1c80bd82b6419ccd547e22fef4126
data/README.md CHANGED
@@ -6,12 +6,18 @@ Time travel with timecop for your Rails development (and staring env for example
6
6
 
7
7
  Very often you need to create objects or other things in the "past". With thins gem and excellent `timecop` gem you can freeze time to any date/time.
8
8
 
9
+ For developers & QA's.
10
+
9
11
  ## Usage
10
12
 
13
+ Open `/rails/time_travel` to see
14
+
11
15
  [<img src="https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/time_travel.png?raw=true"
12
16
  />](https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/time_travel.png?raw=true)
13
17
 
14
- When gem is added in your app - simply open `/rails/time_travel/` and adjust datetime. Once you are done - just reset time (you will see a red button).
18
+ Now you can adjust the datetime. Once you are done - just reset time (you will see a red button).
19
+
20
+ Note, that this datetime change is related only to your session.
15
21
 
16
22
  ## Installation
17
23
 
@@ -4,5 +4,10 @@ RailsTimeTravel::Engine.routes.draw do
4
4
  end
5
5
 
6
6
  Rails.application.routes.draw do
7
- mount_routes
7
+ begin
8
+ mount RailsTimeTravel::Engine => "/rails/time_travel", as: 'rails_time_travel'
9
+ rescue ArgumentError
10
+ # already added
11
+ # this code exist here because engine not includes routing automatically
12
+ end
8
13
  end
@@ -1,3 +1,3 @@
1
1
  module RailsTimeTravel
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk