lazy_mobile_tester 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 +4 -4
- data/README.md +6 -1
- data/lib/lazy_mobile_tester/helper.rb +1 -1
- data/lib/lazy_mobile_tester/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: 4cb0615d9026149258d5d0f1b6dfe71e672de950c0bb9ac7d3b431b7169b667d
|
4
|
+
data.tar.gz: f34ab795ea4d2c2ad16fdd5f590f4f6bab142b6d9b63dcb54cbf73881c77b00b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32dfd3188bd696b36998c63b4c5faa117a5178e7ee4846a5c316205d37b0d3c645fc3e0cab1bda5735d9edb64171d83ebbdd42d60065b18155b63a657d479085
|
7
|
+
data.tar.gz: bd38684876a11698bdcd06b3093324903d7158b4d6457072dc063d82dffe581b9d02510b54b1a0832fda52ca00f72f6cd128601bd999c9230ea8a01f5304a821
|
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Lazy Mobile Tester
|
2
2
|
|
3
|
+
[![RailsJazz](https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/my_other.svg?raw=true)](https://www.railsjazz.com)
|
4
|
+
[![https://www.patreon.com/igorkasyanchuk](https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/patron.svg?raw=true)](https://www.patreon.com/igorkasyanchuk)
|
5
|
+
|
6
|
+
![Demo](docs/lazy.gif)
|
7
|
+
|
3
8
|
"Laziness is the mother of progress" :)
|
4
9
|
|
5
10
|
We all know that we can use Chrome Dev Tools to check how app looks on a different resolutions.
|
@@ -20,7 +25,7 @@ There are two ways how to use it:
|
|
20
25
|
<%= lazy_mobile_tester_button if defined?(LazyMobileTester) %>
|
21
26
|
```
|
22
27
|
|
23
|
-
2) add a parameter to any URL `?_lazy=1` and open it. For example - `instead of /users just open /users
|
28
|
+
2) add a parameter to any URL `?_lazy=1` and open it. For example - `instead of /users just open /users?_lazy=1`
|
24
29
|
|
25
30
|
|
26
31
|
## Installation
|
@@ -4,7 +4,7 @@ module LazyMobileTester
|
|
4
4
|
SCRIPT = "<script>if (window != window.parent) { document.getElementById('lazy_mobile_tester_button').remove(); } </script>".html_safe
|
5
5
|
|
6
6
|
def lazy_mobile_tester_button
|
7
|
-
button = button_to(IMG, url_for(params.permit!), method: :get, params: { _lazy: 1 }, style: LazyMobileTester.style, id: 'lazy_mobile_tester_button')
|
7
|
+
button = button_to(IMG, url_for(params.permit!), method: :get, params: { _lazy: 1 }, data: { turbo: false, turbolinks: false }, style: LazyMobileTester.style, id: 'lazy_mobile_tester_button')
|
8
8
|
button + SCRIPT
|
9
9
|
end
|
10
10
|
end
|