mensa 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,6 +60,10 @@ en:
60
60
  update_view: Update view
61
61
  save_view: Save as new view
62
62
  save_as_new_view: Save as new view
63
+ filters:
64
+ between_value: "%{from} and %{to}"
65
+ from: From
66
+ to: To
63
67
  operators:
64
68
  is: is
65
69
  isnt: isn't
@@ -70,6 +74,7 @@ en:
70
74
  lt: less than
71
75
  gteq: greater than or equal to
72
76
  lteq: less than or equal to
77
+ between: between
73
78
  is_duplicate: is duplicate
74
79
  is_empty: is empty
75
80
  isnt_empty: is not empty
@@ -60,6 +60,10 @@ nl:
60
60
  update_view: Bewaar weergave
61
61
  save_view: Bewaar als nieuwe weergave
62
62
  save_as_new_view: Bewaar als nieuwe weergave
63
+ filters:
64
+ between_value: "%{from} en %{to}"
65
+ from: Van
66
+ to: Tot en met
63
67
  operators:
64
68
  is: is
65
69
  isnt: is niet
@@ -70,6 +74,7 @@ nl:
70
74
  lt: kleiner dan
71
75
  gteq: groter dan of gelijk aan
72
76
  lteq: kleiner dan of gelijk aan
77
+ between: tussen
73
78
  is_duplicate: is dubbel
74
79
  is_empty: is leeg
75
80
  isnt_empty: is niet leeg
@@ -602,6 +602,8 @@ module Mensa
602
602
  def filter_value(column, operator, with_value, values)
603
603
  return unless with_value
604
604
  return values if column.filter.multiple? && %i[is isnt].include?(operator)
605
+ # Both ends of the range, so both comparisons run
606
+ return [values.first, values.first] if operator == :between
605
607
 
606
608
  values.first
607
609
  end
data/lib/mensa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mensa
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
data/mise.toml CHANGED
@@ -3,6 +3,4 @@ node = "24"
3
3
  ruby = "3.4.7"
4
4
 
5
5
  [env]
6
- RUBY_VERSION="3.4.7"
7
- # SELENIUM_URL="http://selenium:4444/"
8
- SELENIUM_URL="http://host.docker.internal:4444/"
6
+ RUBY_VERSION="3.4.7"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mensa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
@@ -167,7 +167,7 @@ files:
167
167
  - ".devcontainer/devcontainer-lock.json"
168
168
  - ".devcontainer/devcontainer.json"
169
169
  - ".devcontainer/docker-compose.yml"
170
- - ".devcontainer/initialize.sh"
170
+ - ".devcontainer/env.conf"
171
171
  - ".devcontainer/postStart.sh"
172
172
  - ".gem_release.yml"
173
173
  - ".github/workflows/gem-push.yml"
@@ -177,6 +177,7 @@ files:
177
177
  - ".shipkit.yml"
178
178
  - ".vscode/settings.json"
179
179
  - ".vscode/tasks.json"
180
+ - ".worktreeinclude"
180
181
  - ".zed/tasks.json"
181
182
  - CHANGELOG.md
182
183
  - Gemfile
@@ -309,6 +310,7 @@ files:
309
310
  - app/views/mensa/tables/views/create.turbo_stream.erb
310
311
  - app/views/mensa/tables/views/destroy.turbo_stream.erb
311
312
  - app/views/mensa/tables/views/update.turbo_stream.erb
313
+ - bin/de
312
314
  - bin/importmap
313
315
  - bin/overmind
314
316
  - bin/rails
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Runs on the host before the containers start, see initializeCommand.
3
- # Writes the .env docker compose reads, so a git worktree gets its own
4
- # containers and can use git inside them.
5
- set -e
6
-
7
- cd "$(dirname "$0")/.."
8
- checkout="$(pwd -P)"
9
- name="$(basename "$checkout")"
10
-
11
- if [ -f .git ]; then
12
- # A worktree: its .git file points into the main checkout's .git directory
13
- project="mensa-$(echo "$name" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9_-\n' '-')"
14
- else
15
- project="mensa"
16
- fi
17
-
18
- cat > .devcontainer/.env <<EOF
19
- COMPOSE_PROJECT_NAME=$project
20
- WORKSPACES_ROOT=$(dirname "$checkout")
21
- GIT_COMMON_DIR=$(cd "$(git rev-parse --git-common-dir)" && pwd -P)
22
- EOF