decidim-idcat_mobil 0.3.0 → 0.6.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: e8d7bcd138d8bc22fd0e590a0b7e16fe04b05a180ff4dd4a908b62d2cbe9788f
4
- data.tar.gz: '08fa7416fdabbb9e77c17f231a2c1f9875342730558699df0a83e6d73277a512'
3
+ metadata.gz: 5983f128175bda0abfc1f6bd8946290bbea78a00b364b97314b386301f1c4698
4
+ data.tar.gz: 8aed9814860f2db0a41effdfc3574200dad806b10c6be189321bfbe2fb426c0d
5
5
  SHA512:
6
- metadata.gz: 2a44d4d62a32741d1526514e21a9bddff20517272617d536e01dfc6017f67a170029a95cbb34d55c61f10f83f962eda35bab903a7938e2542d83ab1fa215fd16
7
- data.tar.gz: '03894fa05a0f4294e37952da18b45be05db778ed2585c4c38bfa6fb0ffaef5139dcd624165f7c9bdc84b84bd1620115285c0515a4dc41314910bf6c6dd7d685d'
6
+ metadata.gz: 7204736ef0384b6729bae159b1a33c5886e16533e5cd61be687f75e71fa54181a11aa8b62990dcd2e823b0838fea9f1486b40deae3bc252bb3224dd20ee94d58
7
+ data.tar.gz: b10e6a9545bf96635701f90cdce10816e7dcd2a0af45465950e6778aa096d00df1f839776b26e5a11214b047a46f5629b00a87dbc0a3b1f319737213e6158eac
data/README.md CHANGED
@@ -31,7 +31,7 @@ Check how to configure the strategy in [Decidim's related documentation](https:/
31
31
  omniauth:
32
32
  idcat_mobil:
33
33
  enabled: true
34
- icon_path: decidim/idcat_mobil/idcat_mobil-icon.svg
34
+ icon_path: media/images/idcat_mobil-icon.svg
35
35
  ```
36
36
 
37
37
  Remember to set `IDCAT_MOBIL_CLIENT_ID`, `IDCAT_MOBIL_CLIENT_SECRET` and `IDCAT_MOBIL_SITE_URL` environment variables.
@@ -1,4 +1,4 @@
1
- # frozen-string_literal: true
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Decidim
4
4
  module IdcatMobil
@@ -1,4 +1,4 @@
1
- # frozen-string_literal: true
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Decidim
4
4
  module IdcatMobil
@@ -25,7 +25,7 @@ module Decidim
25
25
 
26
26
  # Retrieves handler from Verification workflows registry.
27
27
  def retrieve_handler(oauth_data)
28
- Decidim::AuthorizationHandler.handler_for("idcat_mobil", oauth_data: oauth_data)
28
+ Decidim::AuthorizationHandler.handler_for("idcat_mobil", oauth_data:)
29
29
  end
30
30
 
31
31
  def notify_user(user, status, handler)
@@ -36,7 +36,7 @@ module Decidim
36
36
  # resource: result,
37
37
  recipient_ids: [user.id],
38
38
  extra: {
39
- status: status,
39
+ status:,
40
40
  errors: handler.errors.full_messages
41
41
  }
42
42
  )
@@ -10,9 +10,9 @@ if Rails.application.secrets.dig(:omniauth, :idcat_mobil).present?
10
10
  request = Rack::Request.new(env)
11
11
  organization = Decidim::Organization.find_by(host: request.host)
12
12
  provider_config = organization.enabled_omniauth_providers[:idcat_mobil]
13
- env["omniauth.strategy"].options[:client_id] = provider_config[:client_id] || ENV["IDCAT_MOBIL_CLIENT_ID"]
14
- env["omniauth.strategy"].options[:client_secret] = provider_config[:client_secret] || ENV["IDCAT_MOBIL_CLIENT_SECRET"]
15
- env["omniauth.strategy"].options[:site] = provider_config[:site_url] || ENV["IDCAT_MOBIL_SITE_URL"]
13
+ env["omniauth.strategy"].options[:client_id] = provider_config[:client_id] || ENV.fetch("IDCAT_MOBIL_CLIENT_ID", nil)
14
+ env["omniauth.strategy"].options[:client_secret] = provider_config[:client_secret] || ENV.fetch("IDCAT_MOBIL_CLIENT_SECRET", nil)
15
+ env["omniauth.strategy"].options[:site] = provider_config[:site_url] || ENV.fetch("IDCAT_MOBIL_SITE_URL", nil)
16
16
  },
17
17
  scope: :autenticacio_usuari
18
18
  )
@@ -4,11 +4,11 @@ module Decidim
4
4
  module IdcatMobil
5
5
  def self.version
6
6
  # See CHANGELOG.md to see what changed
7
- "0.3.0"
7
+ "0.6.0"
8
8
  end
9
9
 
10
10
  def self.decidim_version
11
- "0.25.2"
11
+ "0.29.0"
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-idcat_mobil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Valls
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.25.2
19
+ version: 0.29.0
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: 0.25.2
26
+ version: 0.29.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.25.2
33
+ version: 0.29.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.25.2
40
+ version: 0.29.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: omniauth-idcat_mobil
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.5.0
55
- - !ruby/object:Gem::Dependency
56
- name: decidim-dev
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 0.25.2
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 0.25.2
69
55
  description: User registration, login and verification though VÀLid's IdCat mòbil..
70
56
  email:
71
57
  - oliver.vh@coditramuntana.com
@@ -105,8 +91,9 @@ files:
105
91
  homepage: https://github.com/decidim/decidim-idcat_mobil
106
92
  licenses:
107
93
  - AGPL-3.0
108
- metadata: {}
109
- post_install_message:
94
+ metadata:
95
+ rubygems_mfa_required: 'true'
96
+ post_install_message:
110
97
  rdoc_options: []
111
98
  require_paths:
112
99
  - lib
@@ -114,15 +101,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
101
  requirements:
115
102
  - - ">="
116
103
  - !ruby/object:Gem::Version
117
- version: 2.7.5
104
+ version: 3.2.9
118
105
  required_rubygems_version: !ruby/object:Gem::Requirement
119
106
  requirements:
120
107
  - - ">="
121
108
  - !ruby/object:Gem::Version
122
109
  version: '0'
123
110
  requirements: []
124
- rubygems_version: 3.1.6
125
- signing_key:
111
+ rubygems_version: 3.4.19
112
+ signing_key:
126
113
  specification_version: 4
127
114
  summary: A decidim idcat_mobil module
128
115
  test_files: []