devise-secure_password 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +18 -4
- data/Gemfile.lock +8 -8
- data/README.md +17 -3
- data/app/controllers/devise/passwords_with_policy_controller.rb +52 -10
- data/app/views/devise/passwords_with_policy/edit.html.erb +5 -1
- data/config/locales/en.yml +40 -0
- data/coverage/assets/0.10.2/application.css +799 -0
- data/coverage/assets/0.10.2/application.js +1707 -0
- data/coverage/assets/0.10.2/colorbox/border.png +0 -0
- data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
- data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
- data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.10.2/favicon_green.png +0 -0
- data/coverage/assets/0.10.2/favicon_red.png +0 -0
- data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
- data/coverage/assets/0.10.2/loading.gif +0 -0
- data/coverage/assets/0.10.2/magnify.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +4115 -0
- data/devise-secure_password-1.0.0.gem +0 -0
- data/gemfiles/rails-5_0.gemfile +2 -2
- data/gemfiles/rails-5_0.gemfile.lock +288 -0
- data/gemfiles/rails-5_0_6.gemfile.lock +286 -0
- data/gemfiles/rails-5_1.gemfile.lock +9 -7
- data/gemfiles/rails-5_1_4.gemfile.lock +282 -0
- data/lib/devise/secure_password.rb +1 -0
- data/lib/devise/secure_password/controllers/helpers.rb +3 -1
- data/lib/devise/secure_password/grammar.rb +13 -0
- data/lib/devise/secure_password/models/password_disallows_frequent_changes.rb +3 -1
- data/lib/devise/secure_password/models/password_has_required_content.rb +40 -4
- data/lib/devise/secure_password/version.rb +1 -1
- data/lib/support/string/character_counter.rb +2 -0
- metadata +32 -3
- data/pkg/devise-secure_password-1.0.7.gem +0 -0
@@ -7,6 +7,7 @@ module Support
|
|
7
7
|
|
8
8
|
def initialize
|
9
9
|
@count_hash = {
|
10
|
+
length: { count: 0 },
|
10
11
|
uppercase: characters_to_dictionary(('A'..'Z').to_a),
|
11
12
|
lowercase: characters_to_dictionary(('a'..'z').to_a),
|
12
13
|
number: characters_to_dictionary(('0'..'9').to_a),
|
@@ -19,6 +20,7 @@ module Support
|
|
19
20
|
raise ArgumentError, "Invalid value for string: #{string}" if string.nil?
|
20
21
|
|
21
22
|
string.split('').each { |c| tally_character(c) }
|
23
|
+
@count_hash[:length][:count] = string.length
|
22
24
|
|
23
25
|
@count_hash
|
24
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-secure_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Eissler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -425,14 +425,44 @@ files:
|
|
425
425
|
- "./bin/console"
|
426
426
|
- "./bin/setup"
|
427
427
|
- "./config/locales/en.yml"
|
428
|
+
- "./coverage/assets/0.10.2/application.css"
|
429
|
+
- "./coverage/assets/0.10.2/application.js"
|
430
|
+
- "./coverage/assets/0.10.2/colorbox/border.png"
|
431
|
+
- "./coverage/assets/0.10.2/colorbox/controls.png"
|
432
|
+
- "./coverage/assets/0.10.2/colorbox/loading.gif"
|
433
|
+
- "./coverage/assets/0.10.2/colorbox/loading_background.png"
|
434
|
+
- "./coverage/assets/0.10.2/favicon_green.png"
|
435
|
+
- "./coverage/assets/0.10.2/favicon_red.png"
|
436
|
+
- "./coverage/assets/0.10.2/favicon_yellow.png"
|
437
|
+
- "./coverage/assets/0.10.2/loading.gif"
|
438
|
+
- "./coverage/assets/0.10.2/magnify.png"
|
439
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png"
|
440
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png"
|
441
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png"
|
442
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png"
|
443
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png"
|
444
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png"
|
445
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png"
|
446
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png"
|
447
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png"
|
448
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png"
|
449
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png"
|
450
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png"
|
451
|
+
- "./coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png"
|
452
|
+
- "./coverage/index.html"
|
453
|
+
- "./devise-secure_password-1.0.0.gem"
|
428
454
|
- "./devise-secure_password.gemspec"
|
429
455
|
- "./docker-entrypoint.sh"
|
430
456
|
- "./gemfiles/rails-5_0.gemfile"
|
457
|
+
- "./gemfiles/rails-5_0.gemfile.lock"
|
458
|
+
- "./gemfiles/rails-5_0_6.gemfile.lock"
|
431
459
|
- "./gemfiles/rails-5_1.gemfile"
|
432
460
|
- "./gemfiles/rails-5_1.gemfile.lock"
|
461
|
+
- "./gemfiles/rails-5_1_4.gemfile.lock"
|
433
462
|
- "./lib/devise/secure_password.rb"
|
434
463
|
- "./lib/devise/secure_password/controllers/devise_helpers.rb"
|
435
464
|
- "./lib/devise/secure_password/controllers/helpers.rb"
|
465
|
+
- "./lib/devise/secure_password/grammar.rb"
|
436
466
|
- "./lib/devise/secure_password/models/password_disallows_frequent_changes.rb"
|
437
467
|
- "./lib/devise/secure_password/models/password_disallows_frequent_reuse.rb"
|
438
468
|
- "./lib/devise/secure_password/models/password_has_required_content.rb"
|
@@ -444,7 +474,6 @@ files:
|
|
444
474
|
- "./lib/generators/devise/templates/README.txt"
|
445
475
|
- "./lib/generators/devise/templates/secure_password.rb"
|
446
476
|
- "./lib/support/string/character_counter.rb"
|
447
|
-
- "./pkg/devise-secure_password-1.0.7.gem"
|
448
477
|
homepage: https://github.com/valimail/devise-secure_password
|
449
478
|
licenses:
|
450
479
|
- MIT
|
Binary file
|