We are re-using the same config used for Paperclip except for disk
storage. Active Storage uses directory sharding on the local disk which
means that we can't create blob entries that point to the existing
Paperclip files. We will just copy them to the standard `storage/`
directory.
- Via `view_component_storybook` : https://github.com/jonspalmer/view_component_storybook
- Configure both `view_component_storybook` and `storybook`
- Add two addons: `@storybook/addon-docs` and `@storybook/addon-controls`
Update config comment for clarity
I use pyenv to manage the Python version to run the Transifex client.
That's the only bit of Python I use in this repo.
Without this I have to select the version each time and remove the file
after preparing the release. Annoying.
I took this from a recent newsletter I read. Sometimes replication
performance issues locally is actually slower than production due to dev
mode settings (code reloading, etc.), heavy de-only gems and the asset
pipeline.
The PROFILE env var switches these settings all at the same time,
giving us an environment closer to production, essential for reliable
profiling. Then, rack-mini-profiler is going to be more accurate.
Apparently it's something
[RubyGems](b026df86ae/config/environments/development.rb (L72-L92))
and
[CodeTriage](a3c957647d)
both use.
This enables code coverage analysis when running specs in your dev
environment. Simply run them as usual and you'll see a line like the
following at the end of the output:
Coverage report generated for RSpec to /home/pau/dev/openfoodnetwork/coverage
Simply browse to coverage/index.html and the results in a web UI.
This is a useful tool that helps you decide if the tests you added are
enough or not.
Add travis config
(cherry picked from commit e3fdb12289)
Only build on Ruby 1.9.3
(cherry picked from commit 719ef386bf)
Exclude pry from CI build
(cherry picked from commit d60935c800)
Conflicts:
Gemfile
Attempt 2
(cherry picked from commit 2b19253895)
Conflicts:
Gemfile.lock
Configure travis for postgres
(cherry picked from commit 3a441cd7d9)
Fix migrations that fail because of coupling to changed/removed models
(cherry picked from commit b030793f15)
Set up xvfb for Travis
(cherry picked from commit cdc3ab09a1)
Add a failing test to test travis
(cherry picked from commit 72aa8fe5e5)
Revert "Add a failing test to test travis"
This reverts commit 72aa8fe5e5.
(cherry picked from commit bd5533e2b1)
Add simplecov
(cherry picked from commit 5089d3bb22)
Conflicts:
Gemfile.lock
Add turbo sprockets for faster asset precompile
(cherry picked from commit 3e6c56a638)
Remove spork
(cherry picked from commit ed7bded642)
Conflicts:
spec/spec_helper.rb
Remove more spork-specific things, remove unused cuc config from zeus
(cherry picked from commit fa11ff8982)
Ensure order decorator is required, fix test fragility
(cherry picked from commit 1e94f88c5e)