decidim-system 0.29.2 → 0.30.0.rc2

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: e3abe023c021a79f655317c19607e6dfc255a82ff467c77e19e3bd9a40afac57
4
- data.tar.gz: 0a6a948d31a3d25908797f7ec1bde3976cbedf736b88a4b9232933bc73d7d272
3
+ metadata.gz: 5d0894650a4479ca64fb4c489588597b242add5a8bb4a6da55ab56b05c19da35
4
+ data.tar.gz: 22412906162f6209bcbf876b471e1ef5a868adc209d7df8e036cce3bb1d38b8e
5
5
  SHA512:
6
- metadata.gz: f6f98599b93bf3c700843fbff63d9cdab1feef95cb23d1fb6b5ef8638896b002e8ee32dece3b8d03d8cdb36482535fb04b5461f2f1a56cec922352398bd6d337
7
- data.tar.gz: 427a5b652148bb62530b10c6d6ac3f71076c6be77af6235d9bda9862fc9d4de972dbf62a7c901bc5fa5f1a9db6fcdbf140a85fc4ae34e1403f1aca2c300053c8
6
+ metadata.gz: dfe3dbfa025d712159bbd36a4fd59f7668275acf3871527e462893fb551aa0e26ba411d3554e480709e7b47be8948fd6aad6d100784892c077897852fff56ba1
7
+ data.tar.gz: a7e65db4a6b7fbdc939fd626ac5b5f21d68ab0fca4b0024bf9fc1a23280a8d23eb9f96fab8263c0db905db7cdbf706fa5399630b9c9d17f1f30790c47f79ece8
@@ -23,7 +23,7 @@ module Decidim
23
23
  end
24
24
 
25
25
  def correct_secret_key_base?
26
- Rails.application.secrets.secret_key_base&.length == 128
26
+ Rails.application.secret_key_base&.length == 128
27
27
  end
28
28
 
29
29
  def generated_secret_key
@@ -48,9 +48,9 @@ module Decidim
48
48
  OMNIATH_PROVIDERS_ATTRIBUTES = Decidim::OmniauthProvider.available.keys.map do |provider|
49
49
  Rails.application.secrets.dig(:omniauth, provider).keys.map do |setting|
50
50
  if setting == :enabled
51
- ["omniauth_settings_#{provider}_enabled".to_sym, Boolean]
51
+ [:"omniauth_settings_#{provider}_enabled", Boolean]
52
52
  else
53
- ["omniauth_settings_#{provider}_#{setting}".to_sym, String]
53
+ [:"omniauth_settings_#{provider}_#{setting}", String]
54
54
  end
55
55
  end
56
56
  end.flatten(1)
@@ -74,13 +74,13 @@ module Decidim
74
74
  def clean_secondary_hosts
75
75
  return unless secondary_hosts
76
76
 
77
- secondary_hosts.split("\n").map(&:chomp).select(&:present?)
77
+ secondary_hosts.split("\n").map(&:chomp).compact_blank
78
78
  end
79
79
 
80
80
  def clean_available_authorizations
81
81
  return unless available_authorizations
82
82
 
83
- available_authorizations.select(&:present?)
83
+ available_authorizations.compact_blank
84
84
  end
85
85
 
86
86
  def password
@@ -114,7 +114,7 @@ module Decidim
114
114
  # We need a valid secret key base for encrypting the SMTP password with it
115
115
  # It is also necessary for other things in Rails (like Cookies encryption)
116
116
  def validate_secret_key_base_for_encryption
117
- return if Rails.application.secrets.secret_key_base&.length == 128
117
+ return if Rails.application.secret_key_base&.length == 128
118
118
 
119
119
  errors.add(:password, I18n.t("activemodel.errors.models.organization.attributes.password.secret_key"))
120
120
  end
@@ -14,7 +14,7 @@ module Decidim
14
14
  private
15
15
 
16
16
  def validate_organization_name_presence
17
- translated_attr = "name_#{current_organization.try(:default_locale) || Decidim.default_locale.to_s}".to_sym
17
+ translated_attr = :"name_#{current_organization.try(:default_locale) || Decidim.default_locale.to_s}"
18
18
  errors.add(translated_attr, :blank) if send(translated_attr).blank?
19
19
  end
20
20
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  "homepage_uri" => "https://decidim.org",
20
20
  "source_code_uri" => "https://github.com/decidim/decidim"
21
21
  }
22
- s.required_ruby_version = "~> 3.2.0"
22
+ s.required_ruby_version = "~> 3.3.0"
23
23
 
24
24
  s.name = "decidim-system"
25
25
  s.summary = "Decidim system administration"
@@ -7,7 +7,6 @@ require "devise"
7
7
  require "devise-i18n"
8
8
  require "decidim/core"
9
9
  require "decidim/system/menu"
10
- require "foundation_rails_helper"
11
10
 
12
11
  module Decidim
13
12
  module System
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
6
6
  def self.version
7
- "0.29.2"
7
+ "0.30.0.rc2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.2
4
+ version: 0.30.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-02-12 00:00:00.000000000 Z
13
+ date: 2025-03-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.29.2
35
+ version: 0.30.0.rc2
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.29.2
42
+ version: 0.30.0.rc2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: devise
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -94,14 +94,14 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.29.2
97
+ version: 0.30.0.rc2
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 0.29.2
104
+ version: 0.30.0.rc2
105
105
  description: System administration to create new organization in an installation.
106
106
  email:
107
107
  - josepjaume@gmail.com
@@ -293,14 +293,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
293
293
  requirements:
294
294
  - - "~>"
295
295
  - !ruby/object:Gem::Version
296
- version: 3.2.0
296
+ version: 3.3.0
297
297
  required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  requirements:
299
299
  - - ">="
300
300
  - !ruby/object:Gem::Version
301
301
  version: '0'
302
302
  requirements: []
303
- rubygems_version: 3.4.10
303
+ rubygems_version: 3.5.11
304
304
  signing_key:
305
305
  specification_version: 4
306
306
  summary: Decidim system administration