decidim-dev 0.28.5 → 0.28.6

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: f3347a25842917fe88b1ff45b1b93ee9db85e0dda681bbe290930cc5ab968291
4
- data.tar.gz: f714b13d8ec320485e8861aecec79d54af6fb32e495ce6ea8ac614c815df8a60
3
+ metadata.gz: 12b548f29f2f963bd48e0d10cc0ddfefac096eda973b9f20a40d54c09d1ddd5b
4
+ data.tar.gz: b95a086988d19dbb333580718b4f1064f16fb3d56ea228b49261d0c9c51d4a57
5
5
  SHA512:
6
- metadata.gz: 7cfb0c9bb9bf48ba15e2bf160856d4400d7ecfd9742aec05db7ee7b576ebb68d978e23ec46661aa3784198cd290b76a19411c1770db83bce70ec437e82172900
7
- data.tar.gz: 29b0f83786a9973bb0a973a02f5e8a9bf2146541699e211926cf5062069735e4ac20a473525e74bacc71e4abbb513e395a0d0e41b6bbf28f9185fbecd1d55b40
6
+ metadata.gz: efab0c2f8e4a2661f0d4d4f5f73b08c32997c2b42a5406cb521e383aff1c9e594b889d1c3fafe018df3d0a03690a27013996cb737acae71cbd3ed487029bcfeb
7
+ data.tar.gz: 0c0ec5f742be2c30a9c3122f68f2022b6ccd9e1c9c0d9415d8da6dd09436f55ef685215d90168baeed4715d1b91135e75c6f662e5cfd59f94002c5dd6c389f30
@@ -40,8 +40,8 @@ module Decidim
40
40
 
41
41
  component_manifest_name "dummy"
42
42
 
43
- def reported_content_url
44
- ResourceLocatorPresenter.new(self).url
43
+ def presenter
44
+ Decidim::Dev::DummyResourcePresenter.new(self)
45
45
  end
46
46
 
47
47
  def reported_attributes
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Dev
5
+ class DummyResourcePresenter < Decidim::ResourcePresenter
6
+ def title(links: false, html_escape: false, all_locales: false)
7
+ return unless __getobj__
8
+
9
+ super(__getobj__.title, links, html_escape, all_locales)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -2,6 +2,9 @@
2
2
  ar:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: صورة
7
+ dummy_attribute: متغير وهمي
5
8
  dummy_resource:
6
9
  created_at: أنشئت في
7
10
  decidim_scope_id: نطاق
@@ -0,0 +1,68 @@
1
+ ---
2
+ ca-IT:
3
+ activemodel:
4
+ attributes:
5
+ dummy:
6
+ image: Imatge
7
+ dummy_attribute: Atribut de prova
8
+ dummy_resource:
9
+ created_at: Creat el
10
+ decidim_scope_id: Àmbit
11
+ field: El meu camp
12
+ start_date: Data d'inici
13
+ title: Títol
14
+ translatable_text: Text traduïble
15
+ updated_at: Actualitzat el
16
+ decidim:
17
+ components:
18
+ dummy:
19
+ settings:
20
+ global:
21
+ guided: Entrada guiada
22
+ guided_help: Text d'ajuda
23
+ guided_readonly: Entrada deshabilitada
24
+ guided_rich: Entrada guiada enriquida
25
+ guided_rich_help_html: HTML <strong>ajuda</strong> text
26
+ guided_rich_readonly_html: HTML <strong>ajuda</strong> text per l'entrada deshabilitada
27
+ readonly_attribute: Atribut de només lectura
28
+ test: Una prova
29
+ test_choices:
30
+ a: Opció A
31
+ b: Opció B
32
+ c: Opció C
33
+ test_options:
34
+ bar: Barra
35
+ baz: Baz
36
+ foo: Foo
37
+ step:
38
+ endorsements_blocked: Adhesions bloquejades
39
+ endorsements_enabled: Adhesions habilitades
40
+ readonly_step_attribute: Atribut de només lectura
41
+ test_options:
42
+ bar: Barra
43
+ baz: Baz
44
+ foo: Foo
45
+ dummy:
46
+ admin:
47
+ exports:
48
+ dummies: Proves
49
+ gamification:
50
+ badges:
51
+ test:
52
+ conditions:
53
+ - Utilitza un entorn de prova per decidim.
54
+ description: Les participants obtenen aquesta insígnia creant proves.
55
+ description_another: Aquesta participant ha creat %{score} proves.
56
+ description_own: Has creat %{score} proves.
57
+ name: Proves
58
+ next_level_in: Crea %{score} més proves per arribar al següent nivell!
59
+ unearned_another: Aquesta participant encara no ha creat cap prova.
60
+ unearned_own: Encara no has creat cap prova.
61
+ resource_links:
62
+ test_link:
63
+ dummy_resource_dummy: Prova relacionada
64
+ statistics:
65
+ bar: Barra
66
+ dummies_count_high: Fals alt
67
+ dummies_count_medium: Fals mitjà
68
+ foo: Foo
@@ -2,6 +2,9 @@
2
2
  ca:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Imatge
7
+ dummy_attribute: Atribut de prova
5
8
  dummy_resource:
6
9
  created_at: Creat el
7
10
  decidim_scope_id: Àmbit
@@ -2,6 +2,9 @@
2
2
  cs:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Obrázek
7
+ dummy_attribute: Zástupný atribut
5
8
  dummy_resource:
6
9
  created_at: Vytvořeno v
7
10
  decidim_scope_id: Oblast působnosti
@@ -2,6 +2,9 @@
2
2
  de:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Bild
7
+ dummy_attribute: Dummy-Attribut
5
8
  dummy_resource:
6
9
  created_at: Erstellt am
7
10
  decidim_scope_id: Umfang
@@ -2,6 +2,9 @@
2
2
  en:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Image
7
+ dummy_attribute: Dummy attribute
5
8
  dummy_resource:
6
9
  created_at: Created at
7
10
  decidim_scope_id: Scope
@@ -2,6 +2,9 @@
2
2
  es-MX:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Imagen
7
+ dummy_attribute: Atributo de prueba
5
8
  dummy_resource:
6
9
  created_at: Creado en
7
10
  decidim_scope_id: Ámbito
@@ -2,6 +2,9 @@
2
2
  es-PY:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Imagen
7
+ dummy_attribute: Atributo de prueba
5
8
  dummy_resource:
6
9
  created_at: Creado en
7
10
  decidim_scope_id: Ámbito
@@ -2,6 +2,9 @@
2
2
  es:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Imagen
7
+ dummy_attribute: Atributo de prueba
5
8
  dummy_resource:
6
9
  created_at: Creado en
7
10
  decidim_scope_id: Ámbito
@@ -2,6 +2,9 @@
2
2
  eu:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Irudia
7
+ dummy_attribute: Balizko atributua
5
8
  dummy_resource:
6
9
  created_at: Sortua
7
10
  decidim_scope_id: Eremua
@@ -2,6 +2,9 @@
2
2
  fi-pl:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Kuva
7
+ dummy_attribute: Esimerkkitietue
5
8
  dummy_resource:
6
9
  created_at: Luontiaika
7
10
  decidim_scope_id: Teema
@@ -2,6 +2,9 @@
2
2
  fi:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Kuva
7
+ dummy_attribute: Esimerkkitietue
5
8
  dummy_resource:
6
9
  created_at: Luontiaika
7
10
  decidim_scope_id: Teema
@@ -2,6 +2,9 @@
2
2
  fr-CA:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Image
7
+ dummy_attribute: Attribut factice
5
8
  dummy_resource:
6
9
  created_at: Créé le
7
10
  decidim_scope_id: Périmètre d'application
@@ -2,6 +2,9 @@
2
2
  fr:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Image
7
+ dummy_attribute: Attribut factice
5
8
  dummy_resource:
6
9
  created_at: Créé le
7
10
  decidim_scope_id: Secteur
@@ -2,6 +2,9 @@
2
2
  ja:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: 画像
7
+ dummy_attribute: ダミー属性
5
8
  dummy_resource:
6
9
  created_at: 作成日時
7
10
  decidim_scope_id: スコープ
@@ -9,7 +9,7 @@ ro:
9
9
  start_date: Data de început
10
10
  title: Titlu
11
11
  translatable_text: Text traductibil
12
- updated_at: Actualizat la
12
+ updated_at: Ultima actualizare
13
13
  decidim:
14
14
  components:
15
15
  dummy:
@@ -2,6 +2,9 @@
2
2
  sv:
3
3
  activemodel:
4
4
  attributes:
5
+ dummy:
6
+ image: Bild
7
+ dummy_attribute: Testattribut
5
8
  dummy_resource:
6
9
  created_at: Skapad
7
10
  decidim_scope_id: Indelning
@@ -14,6 +14,19 @@ module GeocoderHelpers
14
14
  )
15
15
  end
16
16
 
17
+ def stub_geocoding_coordinates(coordinates)
18
+ geocoder_request_url = "https://nominatim.openstreetmap.org/reverse?accept-language=en&addressdetails=1&format=json&lat=#{coordinates[0]}&lon=#{coordinates[1]}"
19
+ geocoder_response = File.read(Decidim::Dev.asset("geocoder_result_here.json"))
20
+
21
+ stub_request(:get, geocoder_request_url).with(
22
+ headers: {
23
+ "Accept" => "*/*",
24
+ "Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
25
+ "User-Agent" => "Ruby"
26
+ }
27
+ ).to_return(body: geocoder_response)
28
+ end
29
+
17
30
  # Waits for the front-end geocoding request to finish in order to ensure there
18
31
  # are no pending requests when proceeding.
19
32
  def fill_in_geocoding(attribute, options = {})
@@ -62,6 +62,7 @@ module TranslationHelpers
62
62
  # localized_values - a Hash where the keys are the locales IDs and the values
63
63
  # are the values that will be entered in the form field.
64
64
  def fill_in_i18n_editor(field, tab_selector, localized_values)
65
+ clear_i18n_editor field, tab_selector, localized_values.keys
65
66
  fill_in_i18n_fields(field, tab_selector, localized_values) do |locator, value|
66
67
  fill_in_editor locator, with: value
67
68
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-dev version.
5
5
  module Dev
6
6
  def self.version
7
- "0.28.5"
7
+ "0.28.6"
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-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.5
4
+ version: 0.28.6
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-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capybara
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.28.5
35
+ version: 0.28.6
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.28.5
42
+ version: 0.28.6
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: factory_bot_rails
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -476,6 +476,7 @@ files:
476
476
  - app/packs/stylesheets/decidim/dev/_accessibility.scss
477
477
  - app/packs/stylesheets/decidim/dev/_map.scss
478
478
  - app/permissions/decidim/dev/permissions.rb
479
+ - app/presenters/decidim/dev/dummy_resource_presenter.rb
479
480
  - app/presenters/decidim/dev/official_author_presenter.rb
480
481
  - app/serializers/decidim/dev/dummy_serializer.rb
481
482
  - app/views/decidim/dev/dummy_resources/foo.html.erb
@@ -489,6 +490,7 @@ files:
489
490
  - config/locales/bg.yml
490
491
  - config/locales/bn-BD.yml
491
492
  - config/locales/bs-BA.yml
493
+ - config/locales/ca-IT.yml
492
494
  - config/locales/ca.yml
493
495
  - config/locales/cs-CZ.yml
494
496
  - config/locales/cs.yml