David Cook
98457b2fff
Merge pull request #12248 from mkllnk/rubocop-precommit
...
Add dev script to run rubocop on changed files
2024-03-13 14:59:29 +11:00
Maikel Linke
1472749da8
Add dev script to run rubocop on changed files
2024-03-07 13:43:52 +11:00
Maikel Linke
4516d90ede
Add script to upgrade HAML syntax
...
[skip-ci]
2024-02-22 15:01:13 +11:00
Maikel Linke
28309c1910
(Semi-)automatically commit new Stripe recordings
...
This script is used by a developer whenever the Stripe gem is bumped by
Dependabot. I found myself always doing the same commands and thought
that they could be automated.
I'm not going as far as pushing back to the branch but we might do that
in the future?
2024-02-14 13:54:38 +11:00
David Cook
e228ad0326
Exit if any command fails
...
If the working directory is dirty, git rm might fail.
2024-02-08 14:53:51 +00:00
Maikel Linke
09a24b0f1f
Prompt for nodenv when missing
...
The setup script would display several error messages and continue
running. Now the user is guided to the right solution.
2024-01-25 10:57:38 +11:00
Maikel
08ca85250a
Merge pull request #12018 from openfoodfoundation/dependabot/bundler/stripe-10.5.0
...
Bump stripe from 10.3.0 to 10.5.0
2024-01-18 12:41:17 +11:00
Gaetan Craig-Riou
4b0e5ee7b6
Update all locales with the latest Transifex translations
2024-01-17 16:23:08 +11:00
Gaetan Craig-Riou
2a9731f886
Reverse commenting out git status --porcelain
...
It was wrongly commented out in this commit:
7c9d4f1342
2024-01-17 16:20:43 +11:00
David Cook
d7bb3b77a7
Add comment
...
We really need to update our documentation more, but this is better than nothing.
2024-01-17 15:14:44 +11:00
Gaetan Craig-Riou
7c9d4f1342
Update all locales with the latest Transifex translations
2023-12-01 11:22:35 +11:00
Maikel Linke
777060ea6b
Remove old script
...
We use Github to draft releases these days.
2023-11-24 14:22:42 +11:00
Gaetan Craig-Riou
06a4cbafd4
Merge pull request #11788 from dacook/release-scripts
...
Add script for preparing translations
2023-11-10 13:56:04 +11:00
David Cook
0c6608f828
Add comments
2023-11-10 11:46:48 +11:00
David Cook
f754eac3a0
Add script for preparing translations
2023-11-09 17:42:09 +11:00
Maikel Linke
cb57807466
Streamline stripe test recording updates
2023-11-09 08:52:06 +11:00
Maikel Linke
7dd0d0581c
Codify re-recording of Stripe cassettes
2023-11-08 15:05:54 +11:00
David Cook
4eb169ea0d
Add a shortcut to draft new release
...
Next time, we can add a script to randomly choose a food-related release name ;)
2023-10-13 11:30:25 +11:00
Maikel Linke
74a8b1e721
Add script to create patch release tags
2023-10-06 13:58:37 +11:00
Neal Chambers
0d2e2fa42c
Add skip for cops that couldn't be autocorrected
2023-08-02 09:11:00 +09:00
Maikel Linke
5a4efdbce3
Separate DFC API swagger config
...
This allows us to run the specs separately to generate the
documentation. It's more efficient this way and the separate swagger doc
file is easier to read.
The engine-specific swagger helper also allows us to simplify the spec
files.
Added an exception to our styleguide because it's intended and useful to
have a complete (lengthy) description of the API in one block.
2023-07-03 12:37:23 +10:00
Maikel Linke
db77d1591c
Add test examples to DFC API documentation
...
In other API specs, you provide example values in the schema. So the
specs contain examples which can be used for the documentation. But
instead of defining example data separately, we can use the generated
data by the specs. This way we document real output and don't have to
double up on documentation.
Note that we don't have schema definitions for the DFC API yet. And it
wouldn't make sense to replicate the DFC Ontology manually in JSON
Schema for this purpose. The DFC Connector ensures already that we
comply with the ontology. But I hope that we can use a tool at some
point to generate JSON Schema from the DFC Ontology which would add more
detail to the Swagger docs, I think.
2023-06-28 13:50:54 +10:00
Maikel Linke
de51a7833d
Add script to swaggerize DFC API in its engine
...
Rswag doesn't look for specs in engines by default. We haven't added any
Rswag specs in the dfc_provider engine yet but that will come.
The generated API schema has some superfluous whitespace removed due to
a fix in the rswag gems.
2023-06-28 13:50:54 +10:00
Maikel Linke
de8f5e13b3
Explain gotcha in case it breaks one day
2023-04-24 09:39:21 +10:00
Maikel Linke
1955a6719c
Fix commit message formatting
...
Git needs a blank line between the summary and the longer description.
And `echo` doesn't interpret `\n` by default.
2023-04-20 11:19:32 +10:00
Maikel Linke
f71e5ee43c
Limit number of rubocop autocorrect runs
...
The typical use case is to create a small number of commits for a pull
request to ease the review. And you can still run it for all cops with
`-n 999` or `-n -0`.
2023-04-20 11:19:32 +10:00
Maikel Linke
0ac2358f2c
Regenerate Rubocop's TODO file without timestamp
2023-04-20 10:34:35 +10:00
Maikel Linke
c08e264afa
Add script for bulk autocorrect with Rubocop
...
We also had an old script which wasn't used and needed manual steps.
2023-04-19 15:35:29 +10:00
Maikel Linke
da0ef8531b
Install our used bundler version
2023-04-03 14:37:31 +10:00
Maikel Linke
08f2254a0e
Leverage bin/setup within script/setup
...
And remove duplicate output. `bin/setup` is the Rails default for
updating your environment after code updates and `script/setup` is our
convenience script for the initial setup and starting with sample data.
2023-04-03 14:37:31 +10:00
Maikel Linke
477524039f
Update bundler version when necessary
...
Not just when it's missing.
2023-04-03 14:37:31 +10:00
Maikel Linke
e5e5bf8c17
Install ruby automatically if rbenv is available
...
People may use other ways to provide the right Ruby version but if they
use rbenv then we can use it automatically.
2023-04-03 14:37:30 +10:00
David Cook
8f67e9839d
Apply code suggestion
...
Avoids an error:
./script/nodenv-install.sh: line 13: brew: command not found
Co-authored-by: Maikel <maikel@email.org.au >
2023-03-10 13:38:59 +11:00
David Cook
d377300f32
Support installations with homebrew (macOS)
...
The officially recommended installation for Mac is via Homebrew.
2023-02-17 10:36:10 +11:00
David Cook
b7a3f7263b
Add script to install current node version
...
The API is conveniently exactly the same as rbenv.
2023-02-17 10:17:48 +11:00
Pipo Bimbo
d413a39c3c
grep option -x does not work on windows installation due to EOL characters
2023-01-23 14:10:41 +01:00
Jean-Baptiste Bellet
3ff1cd0793
Prefer to killall descendants instead of just killing yes processes
2022-10-31 16:11:32 +01:00
Jean-Baptiste Bellet
b93f6dfdad
Add convenient logging when failing
2022-10-31 16:11:32 +01:00
Jean-Baptiste Bellet
9ba0695652
Trap CTRL+C to exit all yes commands
2022-10-31 16:11:31 +01:00
Jean-Baptiste Bellet
0eff4d3906
Add some comment on the purpose
2022-10-31 10:19:36 +01:00
Jean-Baptiste Bellet
84831266f1
Remove useless information
2022-10-31 10:19:14 +01:00
Jean-Baptiste Bellet
bbf400a83b
/proc/cpuinfo is not available on Darwin arch (ie. mac)
2022-10-27 11:19:55 +02:00
Maikel Linke
3496b57942
Add convencience script to test flaky specs
2022-10-13 16:28:09 +11:00
Maikel
6783e7f74c
Fix typo
2022-09-27 12:37:08 +10:00
David Cook
96d1616b70
Update for compatibility with macOS (BSD grep)
...
The --max-count option tells grep to stop reading lines after the first matching line. We're looking for the line AFTER the first matching line.
2022-09-21 12:22:21 +10:00
David Cook
086cde83db
Script to easily generate ERD
...
The generated date is included for reference.
Stored in new 'doc/' directory.
2022-09-21 12:21:49 +10:00
Adrien Chauve
051950e04c
Remove references to deprecated application.yml config file.
...
Point to .env and other .env.* config files.
2021-11-24 15:11:00 +01:00
Pau Pérez Fabregat
f071ab2038
Merge pull request #7807 from mkllnk/rbenv-install
...
Add convenience script to install Ruby
2021-07-01 13:53:54 +02:00
Maikel Linke
a6753b832c
Add example script for importing customers
2021-06-22 13:46:34 +10:00
Maikel Linke
2c8bead8a0
Add convenience script to update Ruby
2021-06-18 15:13:00 +10:00