rails-hidden_autocomplete 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 530b7cfc02fd38a458dbebcdd16b9648195b155b3b5535ea8f3e19dc80d67511
4
- data.tar.gz: 6d5e0cd0356e1720af3b559384facffd9d5704c3b4bddd908ee0b1cf0c939fd5
3
+ metadata.gz: 7a19d9fa2931ac94e8f85843f2795b5ad1246c1842bfe92bbc02d17dc3bf228d
4
+ data.tar.gz: 7819cef70cd267ad5d9e877f4656461e651dc96ccd59a3d21119659cf0e865f6
5
5
  SHA512:
6
- metadata.gz: 184e81c0b2c80d04600b11c007fcfbee42bb4a5582c2caeef0b80cd76a60a877cde001e23a00a0944962116cb6cb8c43746041dea44d6dd12518219a40a2a6ff
7
- data.tar.gz: f98c4e28fa07bdbebfaf6a2fccb9e782578940a33ba6042d854490fffddc14b261635c117164b68bbf1e3c2772a67bb6fcb1464d9bcaea9eb83c8d9c8f5ffd26
6
+ metadata.gz: 4314d12159bcf06115c22282a0944df767280ed898d074c9eab6039005b56cea834452be1b18f94570cd1769157fc4d552ed59fa6a80db4099bcecbccee46981
7
+ data.tar.gz: 509f5af66f811025264e61b6225f223c722cf908688eaeaeaf3fc6aa4c1a7a72cbcff2080342a6122f7f46e2532ab26dc5606d3fcb5c22f68b6c0fa90d7b6622
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # rails-hidden_autocomplete
2
- This is a Rails plugin to add `autocomplete="off"` to all hidden form inputs generated by Rails. This is necessary because Firefox has [a long-running bug](https://bugzilla.mozilla.org/show_bug.cgi?id=520561) where it may populate hidden inputs **without** `autocomplete="off"` with completely random values. Since Rails uses hidden fields extensively for CSRF protection and non-standard HTTP methods, this issue is also tracked in the main Rails tracker here: [add autocomplete="OFF" to firefox-proof automagically added hidden fields like method](https://github.com/rails/rails/issues/42610)
2
+ This is a Rails plugin to add `autocomplete="off"` to all hidden form inputs generated by Rails. This is necessary because Firefox has [a longstanding bug](https://bugzilla.mozilla.org/show_bug.cgi?id=520561) where it may populate hidden inputs **without** `autocomplete="off"` with completely random values. Since Rails uses hidden fields extensively for CSRF protection and non-standard HTTP methods, this issue is also tracked in the main Rails tracker here: [add autocomplete="OFF" to firefox-proof automagically added hidden fields like method](https://github.com/rails/rails/issues/42610)
3
3
 
4
4
  ## Usage
5
5
  Using this plugin from a Rails 6.1 application should automatically override Rails methods which generate hidden form inputs to add an `autocomplete="off"` attribute.
@@ -1,4 +1,4 @@
1
- Rails.application.reloader.to_prepare do
1
+ ActiveSupport.on_load(:action_view) do
2
2
  ActionView::Helpers::DateTimeSelector.prepend Rails::HiddenAutocomplete::ActionView::Helpers::DateTimeSelector
3
3
  ActionView::Helpers::FormTagHelper.prepend Rails::HiddenAutocomplete::ActionView::Helpers::FormTagHelper
4
4
  ActionView::Helpers::Tags::HiddenField.prepend Rails::HiddenAutocomplete::ActionView::Helpers::Tags::HiddenField
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module HiddenAutocomplete
3
- VERSION = '0.2.1'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-hidden_autocomplete
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Baumann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails