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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6b9973be99a2087203195bd53e2d70c217f03e931d9dd65b41131175847f279
4
- data.tar.gz: a11250967979f905fc8f477dddae1dcef632895fc3259657dd18b0ccc40883f4
3
+ metadata.gz: 709de1e0a80758a653fbea7fe04973aa8d743b96fa30627176ab75ff1cd374e3
4
+ data.tar.gz: ab6b6c96839e40dc7b3719634dfca59be20c9988fb3ccfb4610fb52861e3a8d7
5
5
  SHA512:
6
- metadata.gz: 1a845fc6a1a4228598a8b2c1f4f0b83e269075ad3433ebb9596c17c866650dccf9ddec58f233d3a8e2cdc0ee8232e583206370897c2b585a4b76d8896c2901e9
7
- data.tar.gz: 75b487e53ab3b1b30918dc3adae0e3039d280c53963863145fbcdc49a3dc0c345948735cd4e1e9239dc4b2f5c09b3d8a4b8cbe09a775d436ff9980adaefb2a07
6
+ metadata.gz: 504edd0ddea96311c2eee40a71d677eeaae369f27350e7c6ae0c37765c778348f04dc51325cfd58476a27fd52c5525fd9f5a5893d6bf91c70a85f357e40fd177
7
+ data.tar.gz: 3160e3c14ea1dfec2dd8f8d2c0c75e4378728bb94a888963abbdb67a79a1c1f7da16ce90d052454371bb653cf7ac73ff227647e956c69ad615f45196c75810e5
@@ -28,8 +28,8 @@ sv:
28
28
  baz: Baz
29
29
  foo: Foo
30
30
  step:
31
- endorsements_blocked: Instämmanden är blockerade
32
- endorsements_enabled: Instämmanden tillåtna
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
@@ -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
 
@@ -10,6 +10,7 @@ module Decidim
10
10
  #
11
11
  def relogin_as(user, scope: :user)
12
12
  logout scope
13
+ sleep 0.5
13
14
 
14
15
  login_as user, scope:
15
16
  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.3"
7
+ "0.28.4"
8
8
  end
9
9
  end
10
10
  end
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.3
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-09-10 00:00:00.000000000 Z
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.3
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.3
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