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 +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: 12b548f29f2f963bd48e0d10cc0ddfefac096eda973b9f20a40d54c09d1ddd5b
|
4
|
+
data.tar.gz: b95a086988d19dbb333580718b4f1064f16fb3d56ea228b49261d0c9c51d4a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efab0c2f8e4a2661f0d4d4f5f73b08c32997c2b42a5406cb521e383aff1c9e594b889d1c3fafe018df3d0a03690a27013996cb737acae71cbd3ed487029bcfeb
|
7
|
+
data.tar.gz: 0c0ec5f742be2c30a9c3122f68f2022b6ccd9e1c9c0d9415d8da6dd09436f55ef685215d90168baeed4715d1b91135e75c6f662e5cfd59f94002c5dd6c389f30
|
@@ -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.28.
|
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-
|
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.
|
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.
|
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
|