decidim-idcat_mobil 0.2.0 → 0.2.1

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: 547501ef9ee5a6e5616e68922ff5c9561ab2fecc0a3efe11b68513b128d32003
4
- data.tar.gz: f56f84b7e481f7273494c6d8d770503558c827f75243d1be2917a43ed5ec8aba
3
+ metadata.gz: 62fd4e5c790bf8b6ca4cd394116ba472ffca3423f5bd11b7835dcd57387fd634
4
+ data.tar.gz: 6fcc2cdd7f9b72a646656e084b7e7fc5f09b6cef85b93a6672580e86325e181b
5
5
  SHA512:
6
- metadata.gz: 4ed147d7777c9132dccd1b16b56d18d50dc8a2b8ea72939279e90924f9755749a69e9e31e501774669576f39cd9f24d4b2ad1ed1f36e37e1e6d62166b1b7accc
7
- data.tar.gz: 8b090ecb621b48d801f0b7d837bb5989757ae3500edf033557b3f21fee13e2b5b141aaf4f41d9699b0801e01da5b0658d7b9f56f96bf295aeab4f463c0f107c7
6
+ metadata.gz: 0aa67ef9ff8b221c76bc4123bde06a5a7d5571a3cfcd4bc1bad7565520801a7b5f3e032e0aee68faa6dbac5ab68011567c6d1b0ac3029e1a61e1c43575734954
7
+ data.tar.gz: 1a9e06f2c05666bf56c97771a8d7d989e75428965153adeb31771d9d9ee54418754b687f46fd08920e10aed5a9d18fb385d755052749278514015c6f7cba37dc
data/README.md CHANGED
@@ -31,7 +31,7 @@ Check how to configure the strategy in [Decidim's related documentation](https:/
31
31
  omniauth:
32
32
  idcat_mobil:
33
33
  enabled: true
34
- icon_path: decidim/idcat_mobil/icon.svg
34
+ icon_path: decidim/idcat_mobil/idcat_mobil-icon.svg
35
35
  ```
36
36
 
37
37
  Remember to set `IDCAT_MOBIL_CLIENT_ID`, `IDCAT_MOBIL_CLIENT_SECRET` and `IDCAT_MOBIL_SITE_URL` environment variables.
@@ -0,0 +1,2 @@
1
+ // Images
2
+ require.context("../images", true)
data/config/assets.rb ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is located at `config/assets.rb` of your module.
4
+
5
+ base_path = File.expand_path("..", __dir__)
6
+
7
+ # Register the additonal path for Webpacker in order to make the module's
8
+ # stylesheets available for inclusion.
9
+ Decidim::Webpacker.register_path("#{base_path}/app/packs")
10
+
11
+ # Register the main application's stylesheet include statement:
12
+ # Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/your_component/your_component")
13
+ # Register the admin panel's stylesheet include statement:
14
+
15
+ # Register JS entrypoints
16
+ Decidim::Webpacker.register_entrypoints(decidim_idcat_mobil: "#{base_path}/app/packs/entrypoints/decidim-idcat_mobil.js")
@@ -16,21 +16,9 @@ module Decidim
16
16
  # root to: "idcat_mobil#index"
17
17
  end
18
18
 
19
- # #
20
- # # Force `Decidim::CurrentOrganization` to be executed before `Warden::Manager` to avoid path generation problems.
21
- # # NOTE: Remove this initializer when in Decidim 0.16.0 where it has been fixed.
22
- # #
23
- # initializer "decidim.middleware" do |app|
24
- # # as `app.config.middleware` is just a proxy made available for configuration purposes
25
- # # and acts as a command recorder that executes deletes always at the end
26
- # # we can not remove and re-insert, but only duplicate `Decidim::CurrentOrganization`.
27
- # # app.config.middleware.delete Decidim::CurrentOrganization
28
- # app.config.middleware.insert_before Warden::Manager, Decidim::CurrentOrganization
29
- # end
30
-
31
- # initializer "decidim_idcat_mobil.assets" do |app|
32
- # app.config.assets.precompile += %w[decidim_idcat_mobil_manifest.js decidim_idcat_mobil_manifest.css]
33
- # end
19
+ initializer "decidim_idcat_mobil.webpacker.assets_path" do
20
+ Decidim.register_assets_path File.expand_path("app/packs", root)
21
+ end
34
22
  end
35
23
  end
36
24
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  module IdcatMobil
5
5
  def self.version
6
6
  # See CHANGELOG.md to see what changed
7
- "0.2.0"
7
+ "0.2.1"
8
8
  end
9
9
 
10
10
  def self.decidim_version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-idcat_mobil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Valls
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim
@@ -76,8 +76,6 @@ files:
76
76
  - LICENSE-AGPLv3.txt
77
77
  - README.md
78
78
  - Rakefile
79
- - app/assets/config/decidim_idcat_mobil_manifest.js
80
- - app/assets/images/decidim/idcat_mobil/icon.svg
81
79
  - app/controllers/decidim/idcat_mobil/admin/application_controller.rb
82
80
  - app/controllers/decidim/idcat_mobil/application_controller.rb
83
81
  - app/events/decidim/idcat_mobil/verification_invalid_notification.rb
@@ -87,6 +85,9 @@ files:
87
85
  - app/jobs/decidim/idcat_mobil/application_job.rb
88
86
  - app/jobs/decidim/idcat_mobil/verification_job.rb
89
87
  - app/models/decidim/idcat_mobil/application_record.rb
88
+ - app/packs/entrypoints/decidim-idcat_mobil.js
89
+ - app/packs/images/idcat_mobil-icon.svg
90
+ - config/assets.rb
90
91
  - config/i18n-tasks.yml
91
92
  - config/initializers/omniauth_idcat_mobil.rb
92
93
  - config/locales/ca.yml
File without changes