password_security 0.1.1 → 0.2.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: e0bd3da4b1ff9729adaa48e6254d4f8abdcf5b2e2e8060d542ca8437d33a317d
4
- data.tar.gz: 95c9783ef79ca2f5233dd07a79b9ba2b0984d060a69022fd82238ae86746d0da
3
+ metadata.gz: 1dfe9bb37e9c0a6222aca90b292ba42197ad92b85765646affa59a65b3612da1
4
+ data.tar.gz: 3526242c6400814923a3ad47280a696a429221184bb0508fed302ff78c832f62
5
5
  SHA512:
6
- metadata.gz: 3cfe1442dbae838dd6170ff40d9c1505b5b52e3e669dead42f69234917081e34b26fad77fa829b2f0cbbbbc9b571b233994259ab8afda93a4e907db2d2e82e8c
7
- data.tar.gz: bd6a7111d6c6580584378f7f5a251d69395482078006eeaa8b39348d60214df1c9b6ffccd5207dc8ed52cd26f4e1ad2b381a864aed8c1f68b5ea302827691f30
6
+ metadata.gz: 28574deff15259d20a1da91f3fce2410a96def2aeafb724915f53f7f434a91741eac3ef853112263a8c583ee04ab98787980a8da5396cd9201bc2f4810c5434e
7
+ data.tar.gz: 93748a160f7ccda094d46176f4c39160d8394e43fdcf9d5887ff2dde16320e454866bf393879f5fab0b763f3341806d44004b6bcfcf59b074711f12efe2c3c8a
data/CHANGELOG.md CHANGED
@@ -1,18 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## [0.1.1] - 2025-01-15
4
- - Duplicated gem i18n
5
- - Fix file locales
6
- - Compatible with Ruby 3.3.0
7
-
8
- ## [0.2.1] - 2025-01-14
9
- - Duplicated gem i18n
10
- - Fix file locales
11
- - Compatible with Ruby 2.7.1
3
+ ## [Unreleased]
4
+ - Initial release of the gem
5
+ - Implementation of password security validation
12
6
 
13
7
  ## [0.2.0] - 2025-01-14
14
8
  - The gem is now compatible with Ruby 2.7.1
15
- - Fix file locales
16
9
 
17
10
  ## [0.1.0] - 2025-01-14
18
11
  - Initial release of the gem
data/config/i18n.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Lib/config/i18n.rb o similar
4
+ require "i18n"
5
+
6
+ # Cargar los archivos de traducción
7
+ I18n.load_path += Dir[File.expand_path("../lib/locales/**/*.yml", __dir__)]
8
+ I18n.default_locale = :en
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # PasswordSecurity
4
3
  module PasswordSecurity
5
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
6
5
  end
@@ -4,6 +4,7 @@ require "active_support"
4
4
  require "active_support/core_ext"
5
5
  require_relative "password_security/version"
6
6
  require "password_security/model_extension"
7
+ require "./config/i18n"
7
8
 
8
9
  # PasswordSecurity
9
10
  module PasswordSecurity
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "This gem provides a method to validate the strength of passwords in ActiveRecord models, ensuring
13
13
  they meet certain complexity requirements."
14
14
  spec.homepage = "https://rubygems.org/gems/password_security"
15
- spec.required_ruby_version = ">= 3.3.0"
15
+ spec.required_ruby_version = ">= 2.7.1"
16
16
 
17
17
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password_security
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kejoss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-15 00:00:00.000000000 Z
11
+ date: 2025-01-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  This gem provides a method to validate the strength of passwords in ActiveRecord models, ensuring
@@ -25,6 +25,7 @@ files:
25
25
  - CODE_OF_CONDUCT.md
26
26
  - README.md
27
27
  - Rakefile
28
+ - config/i18n.rb
28
29
  - lib/locales/en.yml
29
30
  - lib/locales/es.yml
30
31
  - lib/password_security.rb
@@ -48,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
49
  requirements:
49
50
  - - ">="
50
51
  - !ruby/object:Gem::Version
51
- version: 3.3.0
52
+ version: 2.7.1
52
53
  required_rubygems_version: !ruby/object:Gem::Requirement
53
54
  requirements:
54
55
  - - ">="
55
56
  - !ruby/object:Gem::Version
56
57
  version: '0'
57
58
  requirements: []
58
- rubygems_version: 3.5.3
59
+ rubygems_version: 3.1.2
59
60
  signing_key:
60
61
  specification_version: 4
61
62
  summary: A gem to validate password strength in ActiveRecord models.