Skip to content

Commit

Permalink
Fix rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Dec 10, 2024
1 parent 9ec1c02 commit e9419b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ def install_module(path)
system("bundle exec rake decidim_tags:install:migrations")
system("bundle exec rake decidim_plans:install:migrations")
system("bundle exec rake db:migrate")

# Temporary fix to overcome the issue with sass-embedded, see:
# https://github.com/decidim/decidim/pull/11074
system("npm i sass-embedded@~1.62.0")
end
end

# Temporary fix to overcome the issue with babel plugin updates, see:
# https://github.com/decidim/decidim/pull/10916
def fix_babel_config(path)
Dir.chdir(path) do
babel_config = "#{Dir.pwd}/babel.config.json"
FileUtils.rm_f(babel_config)
FileUtils.cp("#{__dir__}/babel.config.json", Dir.pwd)
end
end

Expand All @@ -35,7 +21,6 @@ end
desc "Generates a dummy app for testing"
task test_app: "decidim:generate_external_test_app" do
ENV["RAILS_ENV"] = "test"
fix_babel_config("spec/decidim_dummy_app")
install_module("spec/decidim_dummy_app")
end

Expand All @@ -53,7 +38,6 @@ task :development_app do
)
end

fix_babel_config("development_app")
install_module("development_app")
seed_db("development_app")
end
2 changes: 1 addition & 1 deletion app/cells/decidim/plans/plan_g_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def body
end

def category_name
translated_attribute(category.name) if has_category?
decidim_sanitize(translated_attribute(category.name)) if has_category?
end

def full_category
Expand Down

0 comments on commit e9419b7

Please sign in to comment.