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 release build job #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leoarnold
Copy link

@leoarnold leoarnold commented Jul 1, 2022

The CSS code for the flipflop web interface is generated
by the rake task assets:compile, hence it should not
be committed to the repository at all, because its content
depends on the actual versions of gems activated at build time.
We therefore remove it and add it to .gitignore.

Furthermore, in #40 the stylesheet file was renamed from
_flipflop.css to _flipflop.html.erb which is problematic because

  • the file is not HTML
  • the file is not a template
  • the filename in rake assets:compile was not adjusted,
    so the generated content is now ignored and instead
    the committed content is used.

We revert the renaming of the file and use render(file: ...
to insert its contents into the view, thereby fixing all issues.

@leoarnold leoarnold force-pushed the leoarnold/fix/release branch from 42e07ff to 6795de4 Compare July 1, 2022 17:05
The CSS code for the `flipflop` web interface is generated
by the rake tast `assets:compile`, hence it should not
be commited to the repository at all, because its content
depends on the actual versions of gems activated at build time.
We therefore remove it and add it to `.gitignore`.

Furthermore, in voormedia#40 the stylesheet file was renamed from
`_flipflop.css` to `_flipflop.html.erb` which is problematic because

- the file is not HTML
- the file is not a template
- the filename in `rake assets:compile` was not adjusted,
  so the generated content is now ignored and instead
  the commited content is used.

We revert the renaming of the file and use `render(file: ...`
to insert its contents into the view, thereby fixing all issues.
@leoarnold leoarnold force-pushed the leoarnold/fix/release branch from 6795de4 to 9f2c407 Compare July 1, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant