simple_form_password_with_hints 0.0.5 → 0.0.7

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: 891b21002820e82ef116a1b150acfee6fc0134ee7330f710e3804a2ce0fdcd7a
4
- data.tar.gz: 6cb703cc5b166a077d450af16a3f05fc4d004c440cb9980ca5f60dccf645b6f0
3
+ metadata.gz: ea425bedb4777fa95771ace43f852c35d377e1e2a195608e92a7cb215425df92
4
+ data.tar.gz: 180140e175d6b610b45795b2f43da2e910e88a9294ea6acad44b9e553a3cb066
5
5
  SHA512:
6
- metadata.gz: 58beba01eee82e29dd3497cf101b397de049465564865a2730b632b6d2f9b23d98cca51ab2c97b6bf2ffb03caf1edf50c56b6e512b7b20bcbfb5b4590087edd5
7
- data.tar.gz: 22521ab12a5d39ec5c1b10066ab49f8640bb2a3d740f32ccccc472d0d15da5905f15b20e29475f2c3643642be59c61d2b7aedaf410a4fa0c79b4cc83e83b981e
6
+ metadata.gz: f72ad22369f4d192c0ba501339392bbf4f830645b8f498f64f21fca98e6ec3ac7ff6ef3df77a1f958a4b27b8f28e6018fa00d1d9590e7237cbdcadf0eef9d32d
7
+ data.tar.gz: aed7b0f198145f35c572f1f485eab0c723d95fb46b0dec1216bce9b7da5b4393b6fffbdf17c2b6878d2966e08d631e28a9ea22d2286dad55c464dfde13665aa5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_form_password_with_hints (0.0.5)
4
+ simple_form_password_with_hints (0.0.7)
5
5
  rails
6
6
  simple_form
7
7
 
@@ -88,7 +88,7 @@ GEM
88
88
  erubi (1.10.0)
89
89
  execjs (2.8.1)
90
90
  ffi (1.15.4)
91
- globalid (0.5.2)
91
+ globalid (1.0.0)
92
92
  activesupport (>= 5.0)
93
93
  i18n (1.8.10)
94
94
  concurrent-ruby (~> 1.0)
@@ -73,10 +73,12 @@ Element.prototype.parent = function (selector) {
73
73
 
74
74
  check: function (container, key, value) {
75
75
  var check = container.querySelector('.js-sfpwh-hint-' + key),
76
- regexKey = this.getRegex(key, check),
77
- regex = new RegExp(regexKey);
76
+ regexKey,
77
+ regex;
78
78
 
79
79
  if (check) {
80
+ regexKey = this.getRegex(key, check);
81
+ regex = new RegExp(regexKey);
80
82
  if (value.match(regex)) {
81
83
  check.classList.remove('sfpwh-hint--invalid');
82
84
  } else {
@@ -7,8 +7,6 @@
7
7
  -ms-user-select: none !important
8
8
  -webkit-user-select: none !important
9
9
  user-select: none !important
10
- & ~.invalid-feedback
11
- margin-top: -1.275rem
12
10
  &-hint
13
11
  display: inline-block
14
12
  font-size: 11px
@@ -1,3 +1,3 @@
1
1
  module SimpleFormPasswordWithHints
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_password_with_hints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-andré Boissinot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails