bootstrap-show-password-rails 2.0.1 → 2.0.4

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
  SHA1:
3
- metadata.gz: 3bd91d9969035eda68f8b51ee18de4baf6f7c156
4
- data.tar.gz: 235e5bd759dd419b38826d3148347f34c6aa7d6e
3
+ metadata.gz: 1471a3852617e500a79b27aabe277cfd554d3746
4
+ data.tar.gz: e82bd933512b35df4935949d27bff705523b21ec
5
5
  SHA512:
6
- metadata.gz: fbc81d7e3706453042bc8b3d456abd183a8f547c74a52bce2d3f2d1ffd9788476eda9e030da1230671c5e42a8b111b29c974363be60bf2e51c1b6775867e8bf7
7
- data.tar.gz: b1f1833a7e9a785fc659356b8a6f738cdca7400a6bc4e54f7c3a95b286a48cf411f02839d047986e9787331c03ec3ea9d7343ca7140524cd65a4415b71de7338
6
+ metadata.gz: 2dc250d7646666899150396a4d644730e6e3ee230628e780047bb9de1e17e22444efbe580758de9ecbbb332996b0c730f76f5a20d47fe8856fee6464e0ba42e1
7
+ data.tar.gz: f23c4791218edd7b0345fd9e963972fbcd80a43e8ea250b96bd507dd44a9e563324863dc98460bf94dcbe8f3f177e103004a9a962f6c9a448cd2522981dfc842
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
- # Bootstrap::Show::Password::Rails
1
+ # BootstrapShowPasswordRails
2
2
  This is a simple wrapper for this jQuery Bootstrap based plugin: [bootstrap-show-password](https://github.com/UnitooTeam/bootstrap-show-password)
3
+ **Attention**
4
+ At the moment the wrapper use Bootstrap 4 plugin. For older versions you should
5
+ use the library itself
3
6
 
4
7
  ## Usage
5
8
  To understand how to use the library itself, check this page to avoid duplicates or outdated [documentation](https://github.com/UnitooTeam/bootstrap-show-password).
@@ -1,5 +1,5 @@
1
1
  module BootstrapShowPasswordRails
2
2
  module Rails
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.4"
4
4
  end
5
5
  end
@@ -47,9 +47,9 @@
47
47
  placement: 'after', // 'before' or 'after'
48
48
  white: false, // v2
49
49
  message: 'Click here to show/hide password',
50
- eyeClass: 'glyphicon',
51
- eyeOpenClass: 'glyphicon-eye-open',
52
- eyeCloseClass: 'glyphicon-eye-close',
50
+ eyeClass: 'fa',
51
+ eyeOpenClass: 'fa-eye',
52
+ eyeCloseClass: 'fa-eye-slash',
53
53
  eyeClassPositionInside: false
54
54
  };
55
55
 
@@ -72,6 +72,7 @@
72
72
  this.$text = $('<input type="text" />')
73
73
  [placementFuc](this.$element)
74
74
  .attr('class', this.$element.attr('class'))
75
+ .attr('maxlength', this.$element.attr('maxlength'))
75
76
  .attr('style', this.$element.attr('style'))
76
77
  .attr('placeholder', this.$element.attr('placeholder'))
77
78
  .css('display', this.$element.css('display'))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-show-password-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Maradonna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-23 00:00:00.000000000 Z
11
+ date: 2018-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,26 +16,26 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.0
26
+ version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: ''
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.6.14
76
+ rubygems_version: 2.6.14.1
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Plugin to show/hide passwords from fields