decidim-dev 0.29.2 → 0.29.4
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/events/decidim/dev/dummy_notification_only_resource_event.rb +9 -0
- data/app/models/decidim/dev/dummy_resource.rb +2 -2
- data/app/presenters/decidim/dev/dummy_resource_presenter.rb +13 -0
- data/app/presenters/decidim/dev/official_author_presenter.rb +1 -1
- 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 +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41294fd6002bb0a45d7279b3cb62d8e3df82fe30099f7384251be95356a738b5
|
4
|
+
data.tar.gz: 1984efc0c7ea882a6e5d2ed2388e8c8edd3417b248d6240289fd94f32d84e466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df604e84dcaa492f609b808c8551d8cb1c6e47bfa3e84bb2f8cc5ceeaa27bfdfa4b902fb8441b282a01a16e68fb1bd7c0a9626a918294c7e3dc96b8eed08333d
|
7
|
+
data.tar.gz: 2a85d9e7cec5f9252550bfc7137e4e9b6ec49bd1cbcbdc1367517b1f7ebfedc8f6a5518b6fffd1a4b8165264a95c1b0722786c269b4bac2f2a9b5d52c4f1deb9
|
@@ -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.4
|
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-06-04 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.4
|
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.4
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -527,6 +527,7 @@ files:
|
|
527
527
|
- Rakefile
|
528
528
|
- app/commands/decidim/dev/create_dummy_resource.rb
|
529
529
|
- app/controllers/decidim/dev/dummy_resources_controller.rb
|
530
|
+
- app/events/decidim/dev/dummy_notification_only_resource_event.rb
|
530
531
|
- app/events/decidim/dev/dummy_resource_event.rb
|
531
532
|
- app/forms/decidim/dev/dummy_resource_form.rb
|
532
533
|
- app/jobs/decidim/dev/hide_all_created_by_author_job.rb
|
@@ -548,6 +549,7 @@ files:
|
|
548
549
|
- app/packs/stylesheets/decidim/dev/_map.scss
|
549
550
|
- app/packs/stylesheets/decidim/dev/_rack_profiler.scss
|
550
551
|
- app/permissions/decidim/dev/permissions.rb
|
552
|
+
- app/presenters/decidim/dev/dummy_resource_presenter.rb
|
551
553
|
- app/presenters/decidim/dev/official_author_presenter.rb
|
552
554
|
- app/serializers/decidim/dev/dummy_serializer.rb
|
553
555
|
- app/views/decidim/dev/dummy_resources/foo.html.erb
|
@@ -561,6 +563,7 @@ files:
|
|
561
563
|
- config/locales/bg.yml
|
562
564
|
- config/locales/bn-BD.yml
|
563
565
|
- config/locales/bs-BA.yml
|
566
|
+
- config/locales/ca-IT.yml
|
564
567
|
- config/locales/ca.yml
|
565
568
|
- config/locales/cs-CZ.yml
|
566
569
|
- config/locales/cs.yml
|