decidim-dev 0.29.2 → 0.29.3
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 +4 -4
- data/app/models/decidim/dev/dummy_resource.rb +2 -2
- data/app/presenters/decidim/dev/dummy_resource_presenter.rb +13 -0
- data/config/locales/ar.yml +3 -0
- data/config/locales/ca-IT.yml +68 -0
- data/config/locales/ca.yml +3 -0
- data/config/locales/cs.yml +3 -0
- data/config/locales/de.yml +3 -0
- data/config/locales/en.yml +3 -0
- data/config/locales/es-MX.yml +3 -0
- data/config/locales/es-PY.yml +3 -0
- data/config/locales/es.yml +3 -0
- data/config/locales/eu.yml +3 -0
- data/config/locales/fi-plain.yml +3 -0
- data/config/locales/fi.yml +3 -0
- data/config/locales/fr-CA.yml +3 -0
- data/config/locales/fr.yml +3 -0
- data/config/locales/ja.yml +3 -0
- data/config/locales/ro-RO.yml +1 -1
- data/config/locales/sv.yml +3 -0
- data/lib/decidim/dev/test/rspec_support/geocoder.rb +13 -0
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +1 -0
- data/lib/decidim/dev/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec66f29d93ebb391a4e83417274557eb3f08dfac49ad2adba0f60a2c21afc702
|
4
|
+
data.tar.gz: 063c0320b4fb6c464082202422aa83777f8a436faa66db36305bb7b36dbf5726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3831a70d0ecba9e196f816a56712d0ac48e6f63b4296dddaae491323e1490af28fec35164c37df5582cddf4b5091b16c63d41da3678cffe288afd777beea608
|
7
|
+
data.tar.gz: 932a0bbe78950e1af5455ec9adb94991d8afd2d4da74753844a63cae0dbb1504fd916b7bed3dc900f52cc00e8597a8ac17ebb22f2ba0ba402b21ead4f79d9d50
|
@@ -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
|
data/config/locales/ar.yml
CHANGED
@@ -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
|
data/config/locales/ca.yml
CHANGED
data/config/locales/cs.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es-MX.yml
CHANGED
data/config/locales/es-PY.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/eu.yml
CHANGED
data/config/locales/fi-plain.yml
CHANGED
data/config/locales/fi.yml
CHANGED
data/config/locales/fr-CA.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -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
|
data/lib/decidim/dev/version.rb
CHANGED
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.29.
|
4
|
+
version: 0.29.3
|
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-
|
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.29.
|
35
|
+
version: 0.29.3
|
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.
|
42
|
+
version: 0.29.3
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -548,6 +548,7 @@ files:
|
|
548
548
|
- app/packs/stylesheets/decidim/dev/_map.scss
|
549
549
|
- app/packs/stylesheets/decidim/dev/_rack_profiler.scss
|
550
550
|
- app/permissions/decidim/dev/permissions.rb
|
551
|
+
- app/presenters/decidim/dev/dummy_resource_presenter.rb
|
551
552
|
- app/presenters/decidim/dev/official_author_presenter.rb
|
552
553
|
- app/serializers/decidim/dev/dummy_serializer.rb
|
553
554
|
- app/views/decidim/dev/dummy_resources/foo.html.erb
|
@@ -561,6 +562,7 @@ files:
|
|
561
562
|
- config/locales/bg.yml
|
562
563
|
- config/locales/bn-BD.yml
|
563
564
|
- config/locales/bs-BA.yml
|
565
|
+
- config/locales/ca-IT.yml
|
564
566
|
- config/locales/ca.yml
|
565
567
|
- config/locales/cs-CZ.yml
|
566
568
|
- config/locales/cs.yml
|