no_password_auth 0.3.0 → 0.4.1

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: 57fba7b27f8275b00ea718d33f1c1db68ef99bd4d31f13155941304ed48fe712
4
- data.tar.gz: b2f68422141e8735e5352107f6361a0ba04bdcd54d9fe6b83df4fe6f2ee49730
3
+ metadata.gz: 455100fbd475937dfe9d657db0b974bb076221eac8f1e2428b4c7f91972964d3
4
+ data.tar.gz: da58c1ac36e4fc18996befbabc4df6f2f7e7e47144ae52194c490d620f40af12
5
5
  SHA512:
6
- metadata.gz: 80b05f4d8c074c851c8eb604b1805f873f3c5e4711e5778078d2b5746ea96a0a263087c8b1bd556d946ad67cc66b1b25c3ff4228e017c3608af9892f4ed91ae4
7
- data.tar.gz: f80aef0e6dfda703fd20c8a552caa4bc1b428a208bd79faae66f3cbac1cea4f3d3f1e4a39e5ff264cb846c60ba216723e890a609dbf43e48c1953be935af2440
6
+ metadata.gz: 4a1425055687a58adf729e18736105103ae2e8b5e44f9f1dad02f8216f5ca2087e43444083b143de028b7d6a28b835531f8db350c7237291418c57f33d9b712d
7
+ data.tar.gz: 4400fd307227fa5214cef76c9737213961f9fcf7a09256a46d425044acc9b6b965f09aa9a03f3fb55b5a974b997d82dc9725e9aa5c95d802c4aaab838ff8b188
@@ -0,0 +1,61 @@
1
+ const defaultTheme = require('tailwindcss/defaultTheme')
2
+
3
+ function withOpacityValue(variableName) {
4
+ return ({opacityValue}) => {
5
+ opacityValue = opacityValue ?? 1;
6
+ return `rgba(var(${variableName}), ${opacityValue})`
7
+ }
8
+ };
9
+
10
+ module.exports = {
11
+ content: [
12
+ '/Users/marioch/Development/creditario/nopassword/app/views/**/*',
13
+ '/Users/marioch/Development/creditario/nopassword/app/helpers/**/*',
14
+ '/Users/marioch/Development/creditario/nopassword/app/controllers/**/*',
15
+ '/Users/marioch/Development/creditario/nopassword/app/javascript/**/*.js',
16
+ '/Users/marioch/Development/creditario/nopassword/app/assets/**/application.tailwind.css'
17
+ ],
18
+ theme: {
19
+ extend: {
20
+ fontFamily: {
21
+ sans: ['Inter var', ...defaultTheme.fontFamily.sans],
22
+ },
23
+ textColor: {
24
+ skin: {
25
+ inverted: withOpacityValue('--color-inverted'),
26
+ accented: withOpacityValue('--color-accented'),
27
+ 'accented-hover': withOpacityValue('--color-accented-hover'),
28
+ base: withOpacityValue('--color-base'),
29
+ muted: withOpacityValue('--color-muted'),
30
+ dimmed: withOpacityValue('--color-dimmed'),
31
+ error: withOpacityValue('--color-error'),
32
+ }
33
+ },
34
+ backgroundColor: {
35
+ skin: {
36
+ 'button-accented': withOpacityValue('--color-accented'),
37
+ 'button-accented-hover': withOpacityValue('--color-accented-hover'),
38
+ 'button-inverted': withOpacityValue('--color-inverted'),
39
+ 'button-inverted-hover': withOpacityValue('--color-inverted-hover'),
40
+ muted: withOpacityValue('--color-muted'),
41
+ dimmed: withOpacityValue('--color-dimmed'),
42
+ accent: withOpacityValue('--color-accent'),
43
+ }
44
+ },
45
+ ringColor: {
46
+ skin: {
47
+ accented: withOpacityValue('--color-border-accented'),
48
+ }
49
+ },
50
+ borderColor: {
51
+ skin: {
52
+ base: withOpacityValue('--color-border-base'),
53
+ accented: withOpacityValue('--color-border-accented'),
54
+ }
55
+ }
56
+ },
57
+ },
58
+ plugins: [
59
+ require('@tailwindcss/forms')
60
+ ],
61
+ }
@@ -11,7 +11,7 @@ module NoPassword
11
11
  token = verify_token(params[:token])
12
12
  redirect_url = sign_in_session(token, by_url: true)
13
13
 
14
- return redirect_to(redirect_url) if redirect_url.present?
14
+ redirect_to(redirect_url) if redirect_url.present?
15
15
  end
16
16
 
17
17
  def update
@@ -42,7 +42,7 @@ module NoPassword
42
42
  if respond_to?(:after_sign_in!)
43
43
  after_sign_in!(current_session, by_url)
44
44
  elsif current_session.present?
45
- (current_session.return_url || main_app.root_path)
45
+ current_session.return_url || main_app.root_path
46
46
  end
47
47
  end
48
48
 
@@ -1,11 +1,9 @@
1
1
  module NoPassword
2
2
  module NoPasswordHelper
3
- def no_password_importmap_tags(entry_point = "application", shim: true)
3
+ def no_password_importmap_tags(entry_point = "application")
4
4
  safe_join [
5
5
  javascript_inline_importmap_tag(NoPassword.configuration.importmap.to_json(resolver: self)),
6
6
  javascript_importmap_module_preload_tags(NoPassword.configuration.importmap),
7
- (javascript_importmap_shim_nonce_configuration_tag if shim),
8
- (javascript_importmap_shim_tag if shim),
9
7
  javascript_import_module_tag(entry_point)
10
8
  ].compact, "\n"
11
9
  end
@@ -1,3 +1,3 @@
1
1
  module NoPassword
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no_password_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Alberto Chávez
@@ -10,16 +10,13 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-08-10 00:00:00.000000000 Z
13
+ date: 2024-09-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ">="
20
- - !ruby/object:Gem::Version
21
- version: 7.0.0
22
- - - "<="
23
20
  - !ruby/object:Gem::Version
24
21
  version: 7.1.0
25
22
  type: :runtime
@@ -27,67 +24,64 @@ dependencies:
27
24
  version_requirements: !ruby/object:Gem::Requirement
28
25
  requirements:
29
26
  - - ">="
30
- - !ruby/object:Gem::Version
31
- version: 7.0.0
32
- - - "<="
33
27
  - !ruby/object:Gem::Version
34
28
  version: 7.1.0
35
29
  - !ruby/object:Gem::Dependency
36
30
  name: turbo-rails
37
31
  requirement: !ruby/object:Gem::Requirement
38
32
  requirements:
39
- - - "~>"
33
+ - - ">="
40
34
  - !ruby/object:Gem::Version
41
- version: 1.3.0
35
+ version: 2.0.0
42
36
  type: :runtime
43
37
  prerelease: false
44
38
  version_requirements: !ruby/object:Gem::Requirement
45
39
  requirements:
46
- - - "~>"
40
+ - - ">="
47
41
  - !ruby/object:Gem::Version
48
- version: 1.3.0
42
+ version: 2.0.0
49
43
  - !ruby/object:Gem::Dependency
50
44
  name: stimulus-rails
51
45
  requirement: !ruby/object:Gem::Requirement
52
46
  requirements:
53
- - - "~>"
47
+ - - ">="
54
48
  - !ruby/object:Gem::Version
55
- version: 1.2.0
49
+ version: 1.3.0
56
50
  type: :runtime
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
53
  requirements:
60
- - - "~>"
54
+ - - ">="
61
55
  - !ruby/object:Gem::Version
62
- version: 1.2.0
56
+ version: 1.3.0
63
57
  - !ruby/object:Gem::Dependency
64
58
  name: importmap-rails
65
59
  requirement: !ruby/object:Gem::Requirement
66
60
  requirements:
67
- - - "~>"
61
+ - - ">="
68
62
  - !ruby/object:Gem::Version
69
- version: 1.2.0
63
+ version: 2.0.0
70
64
  type: :runtime
71
65
  prerelease: false
72
66
  version_requirements: !ruby/object:Gem::Requirement
73
67
  requirements:
74
- - - "~>"
68
+ - - ">="
75
69
  - !ruby/object:Gem::Version
76
- version: 1.2.0
70
+ version: 2.0.0
77
71
  - !ruby/object:Gem::Dependency
78
72
  name: tailwindcss-rails
79
73
  requirement: !ruby/object:Gem::Requirement
80
74
  requirements:
81
- - - "~>"
75
+ - - ">="
82
76
  - !ruby/object:Gem::Version
83
- version: 2.0.0
77
+ version: '2.0'
84
78
  type: :runtime
85
79
  prerelease: false
86
80
  version_requirements: !ruby/object:Gem::Requirement
87
81
  requirements:
88
- - - "~>"
82
+ - - ">="
89
83
  - !ruby/object:Gem::Version
90
- version: 2.0.0
84
+ version: '2.0'
91
85
  - !ruby/object:Gem::Dependency
92
86
  name: standard
93
87
  requirement: !ruby/object:Gem::Requirement
@@ -143,6 +137,7 @@ files:
143
137
  - README.md
144
138
  - Rakefile
145
139
  - app/assets/config/no_password/manifest.js
140
+ - app/assets/config/no_password/tailwind.config.js
146
141
  - app/assets/images/no_password/aoo.svg
147
142
  - app/assets/javascripts/no_password/application.js
148
143
  - app/assets/javascripts/no_password/controllers/alert_controller.js
@@ -226,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
221
  - !ruby/object:Gem::Version
227
222
  version: '0'
228
223
  requirements: []
229
- rubygems_version: 3.4.18
224
+ rubygems_version: 3.5.18
230
225
  signing_key:
231
226
  specification_version: 4
232
227
  summary: Passwordless Ruby on Rails engine.