rails_time_travel 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/config/routes.rb +6 -1
- data/lib/rails_time_travel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96435086bb724fb9d4d2208297f278caed7b5e66c14febce3057bbe4bd5c0cdc
|
4
|
+
data.tar.gz: f0b450b5acbb7aa398812a5f9c3d43b3a62cb4219fff49851e49d84c1efd2e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/config/routes.rb
CHANGED
@@ -4,5 +4,10 @@ RailsTimeTravel::Engine.routes.draw do
|
|
4
4
|
end
|
5
5
|
|
6
6
|
Rails.application.routes.draw do
|
7
|
-
|
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
|