diff --git a/.rubocop.yml b/.rubocop.yml index 98524b1..dfa34bc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -64,7 +64,7 @@ AllCops: # If a value is specified for TargetRubyVersion then it is used. # Else if .ruby-version exists and it contains an MRI version it is used. # Otherwise we fallback to the oldest officially supported Ruby version (2.0). - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.6 RSpec: Patterns: diff --git a/Gemfile b/Gemfile index 13180e7..b461294 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" ruby RUBY_VERSION # DECIDIM_VERSION = { git: "https://github.com/decidim/decidim" } -DECIDIM_VERSION = "0.21" +DECIDIM_VERSION = "0.23.1" gem "decidim", DECIDIM_VERSION gem "decidim-navigation_maps", path: "." diff --git a/Gemfile.lock b/Gemfile.lock index 812411b..1c86cd0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,9 @@ PATH remote: . specs: - decidim-navigation_maps (1.0.1) - decidim-admin (>= 0.18.0, < 0.22) - decidim-core (>= 0.18.0, < 0.22) + decidim-navigation_maps (1.1.0) + decidim-admin (>= 0.22, < 0.24) + decidim-core (>= 0.22, < 0.24) GEM remote: https://rubygems.org/ @@ -109,6 +109,7 @@ GEM actionpack (>= 3.0) cells (>= 4.1.6, < 5.0.0) charlock_holmes (0.7.7) + chef-utils (16.9.17) childprocess (3.0.0) codecov (0.2.15) simplecov (>= 0.15, < 0.21) @@ -133,65 +134,65 @@ GEM db-query-matchers (0.9.0) activesupport (>= 4.0, <= 6.0) rspec (~> 3.0) - decidim (0.21.0) - decidim-accountability (= 0.21.0) - decidim-admin (= 0.21.0) - decidim-api (= 0.21.0) - decidim-assemblies (= 0.21.0) - decidim-blogs (= 0.21.0) - decidim-budgets (= 0.21.0) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) - decidim-debates (= 0.21.0) - decidim-forms (= 0.21.0) - decidim-generators (= 0.21.0) - decidim-meetings (= 0.21.0) - decidim-pages (= 0.21.0) - decidim-participatory_processes (= 0.21.0) - decidim-proposals (= 0.21.0) - decidim-sortitions (= 0.21.0) - decidim-surveys (= 0.21.0) - decidim-system (= 0.21.0) - decidim-verifications (= 0.21.0) - decidim-accountability (0.21.0) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) - kaminari (~> 1.1) + decidim (0.23.1) + decidim-accountability (= 0.23.1) + decidim-admin (= 0.23.1) + decidim-api (= 0.23.1) + decidim-assemblies (= 0.23.1) + decidim-blogs (= 0.23.1) + decidim-budgets (= 0.23.1) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) + decidim-debates (= 0.23.1) + decidim-forms (= 0.23.1) + decidim-generators (= 0.23.1) + decidim-meetings (= 0.23.1) + decidim-pages (= 0.23.1) + decidim-participatory_processes (= 0.23.1) + decidim-proposals (= 0.23.1) + decidim-sortitions (= 0.23.1) + decidim-surveys (= 0.23.1) + decidim-system (= 0.23.1) + decidim-verifications (= 0.23.1) + decidim-accountability (0.23.1) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) + kaminari (~> 1.2, >= 1.2.1) searchlight (~> 4.1) - decidim-admin (0.21.0) + decidim-admin (0.23.1) active_link_to (~> 1.0) - decidim-core (= 0.21.0) + decidim-core (= 0.23.1) devise (~> 4.7) devise-i18n (~> 1.2) devise_invitable (~> 1.7) jquery-rails (~> 4.3) - sassc (~> 1.12, >= 1.12.1) - sassc-rails (~> 1.3) - decidim-api (0.21.0) + sassc (~> 2.3.0) + sassc-rails (~> 2.1.2) + decidim-api (0.23.1) graphiql-rails (~> 1.4, < 1.5) graphql (~> 1.9) rack-cors (~> 1.0) redcarpet (~> 3.4) sprockets-es6 (~> 0.9.2) - decidim-assemblies (0.21.0) - decidim-core (= 0.21.0) - decidim-blogs (0.21.0) - decidim-admin (= 0.21.0) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) + decidim-assemblies (0.23.1) + decidim-core (= 0.23.1) + decidim-blogs (0.23.1) + decidim-admin (= 0.23.1) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) httparty (~> 0.17) jquery-tmpl-rails (~> 1.1) - kaminari (~> 1.1) - decidim-budgets (0.21.0) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) - kaminari (~> 1.1) + kaminari (~> 1.2, >= 1.2.1) + decidim-budgets (0.23.1) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) + kaminari (~> 1.2, >= 1.2.1) searchlight (~> 4.1) - decidim-comments (0.21.0) - decidim-core (= 0.21.0) + decidim-comments (0.23.1) + decidim-core (= 0.23.1) jquery-rails (~> 4.3) redcarpet (~> 3.4) - decidim-core (0.21.0) + decidim-core (0.23.1) active_link_to (~> 1.0) anchored (>= 1.1.0) autoprefixer-rails (~> 8.0) @@ -202,7 +203,7 @@ GEM cells-rails (~> 0.0.9) charlock_holmes (~> 0.7) date_validator (~> 0.9.0) - decidim-api (= 0.21.0) + decidim-api (= 0.23.1) devise (~> 4.7) devise-i18n (~> 1.2) diffy (~> 3.3) @@ -210,18 +211,18 @@ GEM doorkeeper-i18n (~> 4.0) etherpad-lite (~> 0.3) file_validators (~> 2.1) - foundation-rails (~> 6.4, < 6.5) + foundation-rails (~> 6.6, < 6.7) foundation_rails_helper (~> 3.0) geocoder (>= 1.5) hashdiff (>= 0.4.0, < 2.0.0) invisible_captcha (~> 0.12) jquery-rails (~> 4.3) - kaminari (~> 1.1) + kaminari (~> 1.2, >= 1.2.1) loofah (~> 2.3.1) mini_magick (~> 4.9) mustache (~> 1.1.0) nobspw (~> 0.6.0) - omniauth (= 1.9.0) + omniauth (~> 1.9) omniauth-facebook (~> 5.0) omniauth-google-oauth2 (~> 0.7) omniauth-rails_csrf_protection (~> 0.1) @@ -230,16 +231,17 @@ GEM pg (~> 1.1.4, < 2) pg_search (~> 2.2) premailer-rails (~> 1.10) - rack (>= 2.0.8) + rack (>= 2.2.3) rack-attack (~> 6.0) - rails (>= 5.2, < 6.0.x) + rails (>= 5.2.4.4, < 6.0.x) rails-i18n (~> 5.0) rectify (~> 0.13.0) redis (~> 4.1) + request_store (~> 1.5.0) rubyzip (~> 2.0) - sassc (~> 1.12, >= 1.12.1) - sassc-rails (~> 1.3) - seven_zip_ruby (~> 1.2, >= 1.2.2) + sassc (~> 2.3.0) + sassc-rails (~> 2.1.2) + seven_zip_ruby (~> 1.3) social-share-button (~> 1.2, >= 1.2.1) spreadsheet (~> 1.2) sprockets (~> 3.7, < 4) @@ -248,20 +250,20 @@ GEM uglifier (~> 4.1) valid_email2 (~> 2.1) wisper (~> 2.0) - decidim-debates (0.21.0) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) - kaminari (~> 1.1) + decidim-debates (0.23.1) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) + kaminari (~> 1.2, >= 1.2.1) searchlight (~> 4.1) - decidim-dev (0.21.0) + decidim-dev (0.23.1) byebug (~> 11.0) capybara (~> 3.24) db-query-matchers (~> 0.9.0) - decidim (= 0.21.0) + decidim (= 0.23.1) erb_lint (~> 0.0.28) factory_bot_rails (~> 4.8) i18n-tasks (~> 0.9.18) - mdl (~> 0.5.0) + mdl (~> 0.5) nokogiri (>= 1.10.8) puma (>= 4.3) rails-controller-testing (~> 1.0) @@ -274,58 +276,60 @@ GEM rubocop-rails (~> 2.0) rubocop-rspec (~> 1.21) selenium-webdriver (~> 3.142) - simplecov (~> 0.18.5) + simplecov (~> 0.19.0) simplecov-cobertura (~> 1.3.1) system_test_html_screenshots (~> 0.1.1) webmock (~> 3.6) wisper-rspec (~> 1.0) - decidim-forms (0.21.0) - decidim-core (= 0.21.0) - decidim-generators (0.21.0) - decidim-core (= 0.21.0) - decidim-meetings (0.21.0) + decidim-forms (0.23.1) + decidim-core (= 0.23.1) + wicked_pdf (~> 1.4) + wkhtmltopdf-binary (~> 0.12) + decidim-generators (0.23.1) + decidim-core (= 0.23.1) + decidim-meetings (0.23.1) cells-erb (~> 0.1.0) cells-rails (~> 0.0.9) - decidim-core (= 0.21.0) - decidim-forms (= 0.21.0) + decidim-core (= 0.23.1) + decidim-forms (= 0.23.1) httparty (~> 0.17) icalendar (~> 2.5) jquery-tmpl-rails (~> 1.1) - kaminari (~> 1.1) + kaminari (~> 1.2, >= 1.2.1) searchlight (~> 4.1) - decidim-pages (0.21.0) - decidim-core (= 0.21.0) - decidim-participatory_processes (0.21.0) - decidim-core (= 0.21.0) - decidim-proposals (0.21.0) + decidim-pages (0.23.1) + decidim-core (= 0.23.1) + decidim-participatory_processes (0.23.1) + decidim-core (= 0.23.1) + decidim-proposals (0.23.1) acts_as_list (~> 0.9) cells-erb (~> 0.1.0) cells-rails (~> 0.0.9) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) doc2text (~> 0.4.2) - kaminari (~> 1.1) + kaminari (~> 1.2, >= 1.2.1) ransack (~> 2.1.1) redcarpet (~> 3.4) - decidim-sortitions (0.21.0) - decidim-admin (= 0.21.0) - decidim-comments (= 0.21.0) - decidim-core (= 0.21.0) - decidim-proposals (= 0.21.0) - decidim-surveys (0.21.0) - decidim-core (= 0.21.0) - decidim-forms (= 0.21.0) - decidim-system (0.21.0) + decidim-sortitions (0.23.1) + decidim-admin (= 0.23.1) + decidim-comments (= 0.23.1) + decidim-core (= 0.23.1) + decidim-proposals (= 0.23.1) + decidim-surveys (0.23.1) + decidim-core (= 0.23.1) + decidim-forms (= 0.23.1) + decidim-system (0.23.1) active_link_to (~> 1.0) - decidim-core (= 0.21.0) + decidim-core (= 0.23.1) devise (~> 4.7) devise-i18n (~> 1.2) devise_invitable (~> 1.7) jquery-rails (~> 4.3) - sassc (~> 1.12, >= 1.12.1) - sassc-rails (~> 1.3) - decidim-verifications (0.21.0) - decidim-core (= 0.21.0) + sassc (~> 2.3.0) + sassc-rails (~> 2.1.2) + decidim-verifications (0.23.1) + decidim-core (= 0.23.1) declarative-builder (0.1.0) declarative-option (< 0.2.0) declarative-option (0.1.0) @@ -354,7 +358,7 @@ GEM railties (>= 5) doorkeeper-i18n (4.0.1) equalizer (0.0.11) - erb_lint (0.0.36) + erb_lint (0.0.37) activesupport better_html (~> 1.0.7) html_tokenizer @@ -380,13 +384,13 @@ GEM multipart-post (>= 1.2, < 3) ruby2_keywords faraday-net_http (1.0.0) - ffi (1.9.25) + ffi (1.14.2) file_validators (2.3.0) activemodel (>= 3.2) mime-types (>= 1.0) - foundation-rails (6.4.3.0) + foundation-rails (6.6.2.0) railties (>= 3.1.0) - sass (>= 3.3.0, < 3.5) + sass (>= 3.3.0) sprockets-es6 (>= 0.9.0) foundation_rails_helper (3.0.0) actionpack (>= 4.1, < 6.0) @@ -402,7 +406,7 @@ GEM sprockets-rails graphql (1.11.6) hashdiff (1.0.1) - hashie (3.6.0) + hashie (4.1.0) highline (2.0.3) html_tokenizer (0.0.7) htmlentities (4.3.4) @@ -450,7 +454,10 @@ GEM activerecord kaminari-core (= 1.2.1) kaminari-core (1.2.1) - kramdown (1.17.0) + kramdown (2.3.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) launchy (2.5.0) addressable (~> 2.7) letter_opener (1.7.0) @@ -469,10 +476,12 @@ GEM mini_mime (>= 0.1.1) marcel (0.3.3) mimemagic (~> 0.3.2) - mdl (0.5.0) - kramdown (~> 1.12, >= 1.12.0) - mixlib-cli (~> 1.7, >= 1.7.0) - mixlib-config (~> 2.2, >= 2.2.1) + mdl (0.11.0) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.1) + mixlib-cli (~> 2.1, >= 2.1.1) + mixlib-config (>= 2.2.1, < 4) + mixlib-shellout method_source (1.0.0) mime-types (3.3.1) mime-types-data (~> 3.2015) @@ -482,9 +491,11 @@ GEM mini_mime (1.0.2) mini_portile2 (2.4.0) minitest (5.14.3) - mixlib-cli (1.7.0) - mixlib-config (2.2.18) + mixlib-cli (2.1.8) + mixlib-config (3.0.9) tomlrb + mixlib-shellout (3.2.2) + chef-utils msgpack (1.3.3) multi_json (1.15.0) multi_xml (0.6.0) @@ -502,8 +513,8 @@ GEM multi_json (~> 1.3) multi_xml (~> 0.5) rack (>= 1.2, < 3) - omniauth (1.9.0) - hashie (>= 3.4.6, < 3.7.0) + omniauth (1.9.1) + hashie (>= 3.4.6) rack (>= 1.6.2, < 3) omniauth-facebook (5.0.0) omniauth-oauth2 (~> 1.2) @@ -515,9 +526,9 @@ GEM omniauth-oauth (1.1.0) oauth omniauth (~> 1.0) - omniauth-oauth2 (1.7.0) + omniauth-oauth2 (1.7.1) oauth2 (~> 1.4) - omniauth (~> 1.9) + omniauth (>= 1.9, < 3) omniauth-rails_csrf_protection (0.1.2) actionpack (>= 4.2) omniauth (>= 1.3.1) @@ -660,15 +671,17 @@ GEM ruby-progressbar (1.11.0) ruby2_keywords (0.0.2) rubyzip (2.0.0) - sass (3.4.25) - sassc (1.12.1) - ffi (~> 1.9.6) - sass (>= 3.3.0) - sassc-rails (1.3.0) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sassc (2.3.0) + ffi (~> 1.9) + sassc-rails (2.1.2) railties (>= 4.0.0) - sass - sassc (~> 1.9) - sprockets (> 2.11) + sassc (>= 2.0) + sprockets (> 3.0) sprockets-rails tilt searchlight (4.1.0) @@ -676,7 +689,7 @@ GEM childprocess (>= 0.5, < 4.0) rubyzip (>= 1.2.2) seven_zip_ruby (1.3.0) - simplecov (0.18.5) + simplecov (0.19.1) docile (~> 1.1) simplecov-html (~> 0.11) simplecov-cobertura (1.3.1) @@ -745,8 +758,11 @@ GEM websocket-driver (0.7.3) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) + wicked_pdf (1.4.0) + activesupport wisper (2.0.1) wisper-rspec (1.1.0) + wkhtmltopdf-binary (0.12.6.5) xpath (3.2.0) nokogiri (~> 1.8) @@ -757,8 +773,8 @@ DEPENDENCIES bootsnap (~> 1.4) byebug (~> 11.0) codecov - decidim (= 0.21) - decidim-dev (= 0.21) + decidim (= 0.23.1) + decidim-dev (= 0.23.1) decidim-navigation_maps! faker (~> 1.9) letter_opener_web (~> 1.3) diff --git a/README.md b/README.md index bc48c04..32ef2fc 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ homepage only). 👉 [Check the usage guide here!](USAGE.md) +![Homepage](examples/homepage.png) + ![Admin editor](examples/admin.gif) ## Installation @@ -22,7 +24,7 @@ homepage only). Add this line to your application's Gemfile: ```ruby -gem "decidim-navigation_maps", "~> 1.0.0" +gem "decidim-navigation_maps", "~> 1.1.0" ``` And then execute: @@ -37,7 +39,8 @@ Depending on your Decidim version, choose the corresponding Plugin version to en | Navigation Maps version | Compatible Decidim versions | |---|---| -| 1.0.x | 0.18.x, 0.21.x | +| 1.0.x | 0.18.x - 0.21.x | +| 1.1.x | 0.22.x, 0.23.x | ## Contributing diff --git a/app/assets/stylesheets/decidim/navigation_maps/admin/navigation_maps.scss b/app/assets/stylesheets/decidim/navigation_maps/admin/navigation_maps.scss index 75cfada..3dff7a9 100644 --- a/app/assets/stylesheets/decidim/navigation_maps/admin/navigation_maps.scss +++ b/app/assets/stylesheets/decidim/navigation_maps/admin/navigation_maps.scss @@ -63,7 +63,7 @@ .tabs-content { .map { - height: 475px; + height: 700px; } .thumbnail { img { diff --git a/app/cells/decidim/navigation_maps/content_blocks/navigation_map/_tabs_content.erb b/app/cells/decidim/navigation_maps/content_blocks/navigation_map/_tabs_content.erb index 1b45c8d..b538bdc 100644 --- a/app/cells/decidim/navigation_maps/content_blocks/navigation_map/_tabs_content.erb +++ b/app/cells/decidim/navigation_maps/content_blocks/navigation_map/_tabs_content.erb @@ -2,7 +2,7 @@
{{:description}}
diff --git a/app/cells/decidim/navigation_maps/content_blocks/navigation_map_settings_form/_form.erb b/app/cells/decidim/navigation_maps/content_blocks/navigation_map_settings_form/_form.erb index 31cb201..2d7307f 100644 --- a/app/cells/decidim/navigation_maps/content_blocks/navigation_map_settings_form/_form.erb +++ b/app/cells/decidim/navigation_maps/content_blocks/navigation_map_settings_form/_form.erb @@ -1,15 +1,17 @@