decidim-dev 0.28.3 → 0.28.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/sv.yml +2 -2
- data/lib/decidim/dev/assets/invalid_extension.log +1 -0
- data/lib/decidim/dev/assets/odt_file_reported_as.pdf +0 -0
- data/lib/decidim/dev/auth_engine.rb +33 -0
- data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +1 -3
- data/lib/decidim/dev/test/rspec_support/warden.rb +1 -0
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/decidim/dev.rb +1 -0
- metadata +8 -5
- /data/{app/controllers/concerns → lib}/decidim/dev/needs_development_tools.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 709de1e0a80758a653fbea7fe04973aa8d743b96fa30627176ab75ff1cd374e3
|
4
|
+
data.tar.gz: ab6b6c96839e40dc7b3719634dfca59be20c9988fb3ccfb4610fb52861e3a8d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 504edd0ddea96311c2eee40a71d677eeaae369f27350e7c6ae0c37765c778348f04dc51325cfd58476a27fd52c5525fd9f5a5893d6bf91c70a85f357e40fd177
|
7
|
+
data.tar.gz: 3160e3c14ea1dfec2dd8f8d2c0c75e4378728bb94a888963abbdb67a79a1c1f7da16ce90d052454371bb653cf7ac73ff227647e956c69ad615f45196c75810e5
|
data/config/locales/sv.yml
CHANGED
@@ -28,8 +28,8 @@ sv:
|
|
28
28
|
baz: Baz
|
29
29
|
foo: Foo
|
30
30
|
step:
|
31
|
-
endorsements_blocked:
|
32
|
-
endorsements_enabled:
|
31
|
+
endorsements_blocked: Blockera gilla-markeringar
|
32
|
+
endorsements_enabled: Aktivera gilla-markeringar
|
33
33
|
readonly_step_attribute: Skrivskyddade steg attribut
|
34
34
|
test_options:
|
35
35
|
bar: Bar
|
@@ -0,0 +1 @@
|
|
1
|
+
FooBar
|
Binary file
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "decidim/dev/needs_development_tools"
|
4
|
+
|
5
|
+
module Decidim
|
6
|
+
module Dev
|
7
|
+
# Example engine overriding the core authentication routes.
|
8
|
+
class AuthEngine < ::Rails::Engine
|
9
|
+
isolate_namespace Decidim::Dev
|
10
|
+
engine_name "decidim_dev_auth"
|
11
|
+
|
12
|
+
routes do
|
13
|
+
devise_scope :user do
|
14
|
+
match(
|
15
|
+
"/users/auth/test/callback",
|
16
|
+
to: "omniauth_callbacks#dev_callback",
|
17
|
+
as: "user_test_omniauth_authorize",
|
18
|
+
via: [:get, :post]
|
19
|
+
)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
initializer "decidim_dev_auth.mount_test_routes", before: :add_routing_paths do
|
24
|
+
next unless Rails.env.test?
|
25
|
+
|
26
|
+
# Required for overriding the callback route.
|
27
|
+
Decidim::Core::Engine.routes.prepend do
|
28
|
+
mount Decidim::Dev::AuthEngine => "/"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -14,12 +14,10 @@ module AttachmentHelpers
|
|
14
14
|
# Used in non-system tests that need files.
|
15
15
|
def upload_test_file(file, options = {})
|
16
16
|
filename = options[:filename] || upload_test_file_filename(file)
|
17
|
-
content_type = options[:content_type] || upload_test_file_content_type(file)
|
18
17
|
|
19
18
|
blob = ActiveStorage::Blob.create_and_upload!(
|
20
19
|
io: File.open(file),
|
21
|
-
filename
|
22
|
-
content_type:
|
20
|
+
filename:
|
23
21
|
)
|
24
22
|
return blob if options[:return_blob]
|
25
23
|
|
data/lib/decidim/dev/version.rb
CHANGED
data/lib/decidim/dev.rb
CHANGED
@@ -5,6 +5,7 @@ require "decidim/dev/railtie"
|
|
5
5
|
require "decidim/dev/admin"
|
6
6
|
require "decidim/dev/engine"
|
7
7
|
require "decidim/dev/admin_engine"
|
8
|
+
require "decidim/dev/auth_engine"
|
8
9
|
# We shall not load the component here, as it will complain there is no method register_component
|
9
10
|
# for Decidim module. To fix that we need to require 'decidim/core', which will cause a major
|
10
11
|
# performance setback, as this file is usually the first request in "spec_helpers".
|
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.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: 2024-
|
13
|
+
date: 2024-10-02 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.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.28.
|
42
|
+
version: 0.28.4
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -456,7 +456,6 @@ files:
|
|
456
456
|
- README.md
|
457
457
|
- Rakefile
|
458
458
|
- app/commands/decidim/dev/create_dummy_resource.rb
|
459
|
-
- app/controllers/concerns/decidim/dev/needs_development_tools.rb
|
460
459
|
- app/controllers/decidim/dev/dummy_resources_controller.rb
|
461
460
|
- app/events/decidim/dev/dummy_resource_event.rb
|
462
461
|
- app/forms/decidim/dev/dummy_resource_form.rb
|
@@ -604,9 +603,11 @@ files:
|
|
604
603
|
- lib/decidim/dev/assets/import_voting_census_with_ballot_styles.csv
|
605
604
|
- lib/decidim/dev/assets/import_voting_census_without_headers.csv
|
606
605
|
- lib/decidim/dev/assets/invalid.jpeg
|
606
|
+
- lib/decidim/dev/assets/invalid_extension.log
|
607
607
|
- lib/decidim/dev/assets/iso-8859-15.md
|
608
608
|
- lib/decidim/dev/assets/logo.png
|
609
609
|
- lib/decidim/dev/assets/malicious.jpg
|
610
|
+
- lib/decidim/dev/assets/odt_file_reported_as.pdf
|
610
611
|
- lib/decidim/dev/assets/participatory_processes.json
|
611
612
|
- lib/decidim/dev/assets/participatory_processes_with_null.json
|
612
613
|
- lib/decidim/dev/assets/participatory_text.md
|
@@ -622,10 +623,12 @@ files:
|
|
622
623
|
- lib/decidim/dev/assets/ssl-key.pem
|
623
624
|
- lib/decidim/dev/assets/test_excel.xlsx
|
624
625
|
- lib/decidim/dev/assets/verify_user_groups.csv
|
626
|
+
- lib/decidim/dev/auth_engine.rb
|
625
627
|
- lib/decidim/dev/common_rake.rb
|
626
628
|
- lib/decidim/dev/component.rb
|
627
629
|
- lib/decidim/dev/dummy_translator.rb
|
628
630
|
- lib/decidim/dev/engine.rb
|
631
|
+
- lib/decidim/dev/needs_development_tools.rb
|
629
632
|
- lib/decidim/dev/railtie.rb
|
630
633
|
- lib/decidim/dev/test/authorization_shared_examples.rb
|
631
634
|
- lib/decidim/dev/test/base_spec_helper.rb
|
File without changes
|