trmnl_preview 0.5.7 → 0.5.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f3284ba2c2879994af5aabd394416875771b008510fffb27798551e3a9c85ad
4
- data.tar.gz: 9f664bc7134763f88dab40b5075aa77bf08892bf68b1f1e29771cc47a3f2b95e
3
+ metadata.gz: a9fb3cbe39aa3d0e8677b94b1bf224296d09ba045fac80e34b4d7438838a7c9c
4
+ data.tar.gz: 290000660480be5eca61e6a100dd9d737460e41daccdc2bbaa1088c330a3968c
5
5
  SHA512:
6
- metadata.gz: 9e5685d0a9359f229087bbc1d59e2969e87cb54251eb90ca73787f4731ce6b085c829428721838543596f3cfd1c1d7958b363fcd8f3b2d5d0f981490c14bfdd3
7
- data.tar.gz: 372e8d359ee7ef461ccffb12f8dd6d8a328e0c4d32178e62d4e3e358f38f3ac40b971d25ac63c1cf3b97388b3f483b0c814568f40c4c8d30169e6dfdc9a95811
6
+ metadata.gz: '078876141ae2f419ae91dc343a2375a0aee31fcb18eb127324d280c0286dfab6b1785f4a79d92a06ed3c4bdece76f8d989d4d92b1dba928c2948b75cb4a374f7'
7
+ data.tar.gz: fb0fb7099bdb48ed80568448fa322f202e593d7089f4504546c38c6dade57929a580384a307203225a018abf45a7f1187c577391c64df25cd6a36f6e881a5ff9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.8
4
+
5
+ - Improve Docker commands in `bin/trmnlp` (@jrand0m, @jbarreiros)
6
+
3
7
  ## 0.5.7
4
8
 
5
9
  - Use the `trmnl-liquid` gem so tags and filters stay up-to-date with the core offering
data/README.md CHANGED
@@ -83,7 +83,7 @@ trmnlp serve
83
83
  ```sh
84
84
  docker run \
85
85
  --publish 4567:4567 \
86
- --volume ".:/plugin" \
86
+ --volume "$(pwd):/plugin" \
87
87
  trmnl/trmnlp serve
88
88
  ```
89
89
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TRMNLP
4
- VERSION = "0.5.7".freeze
4
+ VERSION = "0.5.8".freeze
5
5
  end
@@ -10,12 +10,25 @@ then
10
10
  exit
11
11
  fi
12
12
 
13
+ # Determine XDG config directory on host OS
14
+ if [ -n "$XDG_CONFIG_HOME" ]; then
15
+ CONFIG_DIR="$XDG_CONFIG_HOME/trmnlp"
16
+ else
17
+ CONFIG_DIR="$HOME/.config/trmnlp"
18
+ fi
19
+
20
+ if [ ! -d "$CONFIG_DIR" ]; then
21
+ mkdir -p "$CONFIG_DIR"
22
+ fi
23
+
13
24
  if command -v docker &> /dev/null
14
25
  then
15
26
  docker run \
27
+ -it \
16
28
  --rm \
17
29
  --publish 4567:4567 \
18
30
  --volume "$(pwd):/plugin" \
31
+ --volume "$CONFIG_DIR:/root/.config/trmnlp" \
19
32
  trmnl/trmnlp "$@"
20
33
  exit
21
34
  fi
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trmnl_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rockwell Schrock
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-08-19 00:00:00.000000000 Z
10
+ date: 2025-08-26 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: sinatra