Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix external plugin app generation #3470

Merged
merged 4 commits into from
May 22, 2018

Conversation

deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented May 21, 2018

🎩 What? Why?

Currently dummy app generation for external plugins doesn't work on 0.11.1. This is because the PR introducing the bug (#3224) made it to the release, but the fix (#3313) didn't. So I'm backporting the fix.

#3313 fixed the bug, but unintentionally introduced another bug (optional gems not being used in development). So I'm also backporting #3362 as well, the fix to that other issue.

Finally, I'm also backporting #3293 for convenience when working on backports.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry

📷 Screenshots (optional)

None.

deivid-rodriguez and others added 4 commits May 21, 2018 16:33
* Correct optional gems location when generating app

Otherwise we get an error bundling it in external plugins since there's
no local folder in the final app:

```
The path `/path/to/decidim/development_app/decidim-consultations` does not exist
```

* Read gemspec only once
* Update Gemfile.lock to update erb_lint to v 0.0.24

* fix erb_lint errors

* update to ruby 2.5.1

* Use ruby 2.5.1's docker image

* Update decidim-generators Gemfile.lock

* Update decidim_app-design Gemfile.lock

* Update decidim_app-design Gemfile.lock (2)
* Add a rake task to bundle all gemfiles at once

* Normalize optional gems paths

* Make sure migrations pick the right Gemfile

And thus, optional gem migrations are installed and run.

* Use optional gems in "demo apps"
@deivid-rodriguez deivid-rodriguez added the backport Pull Requests that are a backport for a fixed bug label May 21, 2018
@ghost ghost added the status: WIP label May 21, 2018
@deivid-rodriguez deivid-rodriguez changed the title Fix/external plugin app generation Fix external plugin app generation May 21, 2018
@mrcasals mrcasals merged commit 16007e0 into 0.11-stable May 22, 2018
@mrcasals mrcasals deleted the fix/external_plugin_app_generation branch May 22, 2018 07:10
@mrcasals
Copy link
Contributor

Thanks for taking care of that! 😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Pull Requests that are a backport for a fixed bug in-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants