Commit graph

2474 commits

Author SHA1 Message Date
Philipp Rothmann
6e80f81c54 wip move stuff to a plugin 2023-07-24 16:17:26 +02:00
Philipp Rothmann
9a34f174a6 fix PDF Pdf 2023-07-24 10:57:24 +02:00
Philipp Rothmann
3b5b057eed merge automatic group order invoice generation 2023-07-24 10:50:35 +02:00
Philipp Rothmann
817e409a2b fix test 2023-07-14 10:27:20 +02:00
Philipp Rothmann
e80ec9c1ce change tests to use assert_select 2023-07-14 10:27:20 +02:00
Philipp Rothmann
7f23b4784c feat(finance): show sum of ordergroup balances 2023-07-14 10:27:20 +02:00
Harald Reingruber
b07653b34f Add explanation comment to .gitattributes 2023-07-03 16:12:12 +02:00
Harald Reingruber
c442327275 Fix line endings for Windows docker environment 2023-07-03 16:12:12 +02:00
Philipp Rothmann
33034e66b8 fix: add null checks for articles convert_units
Prevents division by zero exception because of a unit beeing 0.
A Unit becomes also zero e.g. when a comma symbol is used Unit.new("0,9kg") == 0

fixes #1014
2023-06-22 22:49:22 +02:00
kidhab
45e2668cea Update mail gem to .8.1 which fixes the permission error
Revert libv8 version
2023-06-17 14:03:58 +02:00
Philipp Rothmann
5f2130ca44 fix: rubocop todo EmptyExampleGroup wildcard 2023-06-17 13:44:21 +02:00
Philipp Rothmann
913136bb72 fix: invalid params request test
fixes #999
2023-06-17 13:31:43 +02:00
kidhab
4ac5bcae06 Update Ruby version and add info about dev packages 2023-06-17 10:33:15 +02:00
Philipp Rothmann
37b3b4523a fix: github action mysqladmin -> mariadb-admin ping 2023-06-16 13:33:21 +02:00
Philipp Rothmann
a1682932ac fix: price_markup with value nil gives exception
fixes #1011
2023-06-16 13:20:33 +02:00
Philipp Rothmann
026c3a6285
introduce importmaps (#983)
* introduce importmaps

This commit introduces importmaps. They allow to use modern javacript ESM within rails without webpack, yarn etc.
see https://github.com/rails/importmap-rails for more details.

Co-authored-by: Philipp Rothmann <philipprothmann@posteo.de>
Co-authored-by: FGU <fgu@pragma-shift.net>

* fix: rubocop violations

---------

Co-authored-by: FGU <fgu@pragma-shift.net>
2023-06-14 13:29:31 +02:00
dependabot[bot]
a8b2f387db
Bump doorkeeper from 5.6.2 to 5.6.6 (#1010)
Bumps [doorkeeper](https://github.com/doorkeeper-gem/doorkeeper) from 5.6.2 to 5.6.6.
- [Release notes](https://github.com/doorkeeper-gem/doorkeeper/releases)
- [Changelog](https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/doorkeeper-gem/doorkeeper/compare/v5.6.2...v5.6.6)

---
updated-dependencies:
- dependency-name: doorkeeper
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-14 08:18:33 +02:00
Philipp Rothmann
2151835afb fix: rubocop violation 2023-06-12 13:08:36 +02:00
kidhab
20dc8b8b82 Bump Ruby version to latest in 2.7 series 2023-06-10 10:54:03 +02:00
kidhab
e4f91ef67a
Fill availability column at article export
closes #884
2023-06-10 10:47:47 +02:00
kidhab
c50ba6eda5
feat: Disable member list via configuration (#990) 2023-06-10 10:32:16 +02:00
kidhab
075f3cfa1a
Make date configurable via locales (#997) 2023-06-10 10:31:22 +02:00
dependabot[bot]
64b99038e6
Bump nokogiri from 1.13.10 to 1.15.2 (#1005)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.10 to 1.15.2.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.13.10...v1.15.2)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-09 20:06:14 +02:00
dependabot[bot]
7fe5fb4592
Bump rack from 2.2.5 to 2.2.7 (#1004)
Bumps [rack](https://github.com/rack/rack) from 2.2.5 to 2.2.7.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v2.2.5...v2.2.7)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-09 19:39:32 +02:00
8b0e03ff60 downgrade haml to make deface work 2023-06-09 19:02:41 +02:00
Philipp Rothmann
4bfa87d258 move CORS setup to initializer 2023-06-09 17:35:05 +02:00
Philipp Rothmann
20a67becf5 fix: assets precompile by using terser 2023-06-09 17:35:05 +02:00
Philipp Rothmann
91e07ab660 fix external link allow_other_host 2023-06-09 17:35:05 +02:00
Philipp Rothmann
285441cb4b fix group order matrix pdf 2023-06-09 17:35:05 +02:00
Philipp Rothmann
fb2b4d8a8a chore: rubocop
chore: fix api test conventions

chore: rubocop -A spec/

chore: more rubocop -A

fix failing test

rubocop fixes

removes helper methods that are in my opinion dead code

more rubocop fixes

rubocop -a --auto-gen-config
2023-06-09 17:35:05 +02:00
Philipp Rothmann
f6fb804bbe chore: update Gemfile.lock 2023-06-09 17:35:05 +02:00
Philipp Rothmann
a7775f5a98 add setup_storage to stock_config 2023-06-09 17:35:05 +02:00
FGU
b06656ba80 fix docker-compose 2023-06-09 17:35:05 +02:00
Philipp Rothmann
6e721db654 upgrade dockerfile to rails7 2023-06-09 17:35:05 +02:00
45ae192891 move BigDecimal.new to BigDecimal() 2023-06-09 17:35:05 +02:00
808baa5a98 change .search to .ransack for updated ransack gem 2023-06-09 17:35:05 +02:00
Philipp Rothmann
5cbe8dd968 fix database_config 2023-06-09 17:35:05 +02:00
Philipp Rothmann
34e238466f fix mail file permission bug 2023-06-09 17:35:05 +02:00
5fb10ec686 make foodsoft run for dev on rails 7 and ruby 2.7 2023-06-09 17:35:05 +02:00
50bf879fbf resolve zeitwerk issues 2023-06-09 17:35:05 +02:00
ea248a5f28 removing concerns from autoload path 2023-06-09 17:35:05 +02:00
4ff44aed4c mv lib to app/lib due to upgrade 2023-06-09 17:35:05 +02:00
3d81dd6b57 rails up to 7.0and ruby to 2.7.2 2023-06-09 17:35:05 +02:00
Philipp Rothmann
c67e9b5be8
Replace apivore with rswag for api tests (#969)
* Replace apivore api tests with rswag
* move to OpenAPI Spec 3.0.1
* a swagger UI is now reachable at http://localhost:3000/api-docs/index.html
*  swagger file is generated by running  `RAILS_ENV=test rails rswag`
    and it was moved from /docs/swagger.v1.yml to /swagger/v1/swagger.yml

---------

Co-authored-by: viehlieb <pf@pragma-shift.net>
2023-05-12 11:11:48 +02:00
hamaryns
8604e27fe9 Spelfouten, maar ook verbeteringen in Nederlands (#954)
* Spelfouten, maar ook verbeteringen in Nederlands

Correct spelling errors and improvements of Dutch

* Update nl.yml

* Update nl.yml

some more Dutch improvements
2023-04-21 18:58:06 +02:00
nurp
f2d5936cf0
Turkish language support added (#995)
* Added Turkish translation with help of ChatGPT

* Changed 'article' and 'item' to 'ürün' and addedtranslations for messages plugin

* added translation for the rest of plugins

* merge conflicts

* fix tr.yml in messages plugin

* Corrected more translations

---------

Co-authored-by: Nurp <>
2023-04-12 21:42:03 +02:00
kidhab
c01c16ecdb
Specify an URL to redirect after logout via settings (#989) 2023-03-30 10:05:47 +02:00
dependabot[bot]
67d0492ac4
Bump rack from 2.2.4 to 2.2.6.4 (#986)
Bumps [rack](https://github.com/rack/rack) from 2.2.4 to 2.2.6.4.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.2.4...v2.2.6.4)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 17:37:04 +02:00
dependabot[bot]
5f00a39841
Bump globalid from 1.0.0 to 1.0.1 (#978)
Bumps [globalid](https://github.com/rails/globalid) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/rails/globalid/releases)
- [Commits](https://github.com/rails/globalid/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: globalid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 17:34:38 +02:00
kidhab
8420323c92
Show a foodcoop's name as subtitle at login screen (#957) 2023-03-29 16:01:00 +02:00