plutonium 0.15.12 → 0.15.13

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: 1a2d034ec1e776933ca9f8c1737968575728c25dc3a7fb587b32dd6c5228cf4f
4
- data.tar.gz: 0f994eb1f8657df2f8fe0d0c6f7f04fd7ee283340428661fef2c80ba1b3512c5
3
+ metadata.gz: 0577a5116150fb7b8c44f137d0b1b1067def5269a6118ef3be316493bc14b2ce
4
+ data.tar.gz: 9ae08c63ff07ec729b9b218b442be233294de59d9a84c2d82b485ba384b15e10
5
5
  SHA512:
6
- metadata.gz: ff981ad9ed022bee850d739e62735c1b2c9e245faddb2e4bbb6f1f58ef80078817b6cb45fba0c6029c2c231185e551566206dfbefed6543517934c5493c22946
7
- data.tar.gz: 5ccde2c6d8903aad15afe8d0b968f3a14f71e005302dcb4b772f39250fd86e27d92445be58a034f4f906535767b76aca6a6ebcce1a671c6ee4a9b9d326874688
6
+ metadata.gz: 8b3ba0a9576dd68001b242af8a7e142349d9c2fb333c5ebe923ba626ba458dca35441f9e6840f68d8d4e4bfba95261ae69c6e7f8b0ac2b290aaeeb19f5630784
7
+ data.tar.gz: ad6a8504cecf29158667dc1acf5ebe83af0da863baf7ad524efe3e2e70c74153d214482f31a6ce860d5e2384f9191def0d95ce3a13dd6c42298a6b317e9f58a3
@@ -172,6 +172,7 @@ module Pu
172
172
  },
173
173
  jwt: {},
174
174
  json: {},
175
+ case_insensitive_login: {default: true},
175
176
  internal_request: {default: true}
176
177
  }.freeze
177
178
 
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.15.12"
2
+ VERSION = "0.15.13"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
data/lib/plutonium.rb CHANGED
@@ -10,6 +10,7 @@ require "phlexi-form"
10
10
  require "phlexi-table"
11
11
 
12
12
  require_relative "plutonium/configuration"
13
+ require_relative "rodauth/loader"
13
14
 
14
15
  # Plutonium module
15
16
  #
@@ -25,6 +26,7 @@ module Plutonium
25
26
  Loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false).tap do |loader|
26
27
  loader.ignore("#{__dir__}/generators")
27
28
  loader.ignore("#{__dir__}/plutonium/railtie.rb")
29
+ loader.ignore("#{__dir__}/rodauth")
28
30
  loader.inflector.inflect("ui" => "UI")
29
31
  loader.inflector.inflect("workflow_dsl" => "WorkflowDSL")
30
32
  loader.enable_reloading if defined?(Rails.env) && Rails.env.development?
@@ -0,0 +1,15 @@
1
+ require "rodauth"
2
+
3
+ module Rodauth
4
+ Feature.define(:case_insensitive_login, :CaseInsensitiveLogin) do
5
+ def param(key)
6
+ value = super
7
+ value&.downcase! if [login_param, login_confirm_param].include?(key)
8
+ value
9
+ end
10
+
11
+ def account_from_login(login)
12
+ super(login&.downcase)
13
+ end
14
+ end
15
+ end
@@ -0,0 +1 @@
1
+ require_relative "features/case_insensitive_login"
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@radioactive-labs/plutonium",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@radioactive-labs/plutonium",
9
- "version": "0.1.6",
9
+ "version": "0.1.7",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@hotwired/stimulus": "^3.2.2",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radioactive-labs/plutonium",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Core assets for the Plutonium gem",
5
5
  "type": "module",
6
6
  "main": "src/js/core.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.12
4
+ version: 0.15.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
@@ -1401,6 +1401,8 @@ files:
1401
1401
  - lib/plutonium/ui/table/resource.rb
1402
1402
  - lib/plutonium/ui/table/theme.rb
1403
1403
  - lib/plutonium/version.rb
1404
+ - lib/rodauth/features/case_insensitive_login.rb
1405
+ - lib/rodauth/loader.rb
1404
1406
  - lib/tasks/create_rodauth_admin.rake
1405
1407
  - package-lock.json
1406
1408
  - package.json