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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91a370c3efc9387fc47016c4cd8a95cb13a667d65d8a7f92ebdcd0b09d8e7e9c
4
- data.tar.gz: 29f2b0d1e1c2b140aab00e4bdf0c5560a76eec2b7f05dda6b870db553c6c233a
3
+ metadata.gz: 4cb0615d9026149258d5d0f1b6dfe71e672de950c0bb9ac7d3b431b7169b667d
4
+ data.tar.gz: f34ab795ea4d2c2ad16fdd5f590f4f6bab142b6d9b63dcb54cbf73881c77b00b
5
5
  SHA512:
6
- metadata.gz: b0162b5b27538ba298dfb18bbd019374711cb3e66ddd819955f09520e5310c853f8e90509c5edbfea36089e1290c50e6395547fd4e8e063c0d070e867a72afa8
7
- data.tar.gz: f911088e71a971d961aaac601a884df5fce983479a7944a0f0fe869201649c488ee3aea6973b779b100f06d7aa5ac4206bdc5fae24971a3c142a26c708dbb029
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??_lazy=1`
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
@@ -1,3 +1,3 @@
1
1
  module LazyMobileTester
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: lazy_mobile_tester
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