maplibre-preview 1.4.0 → 1.4.1

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: a800d72c98751ed645b6c3e49dfcaa5d5560e258412d6d360cdf4ce85b747384
4
- data.tar.gz: 555af4aac0846b6e50aea699bab368cb4ab9585ade0d2e2510d209af8aa892ae
3
+ metadata.gz: c77ead5ccf5ff35082ce55f81de3ac6edc8cfe20b468b5bd96120fc1c3e1a3ea
4
+ data.tar.gz: 45e3418367216b9beed3c90ba0972bd52f1be2272ea0430a4a14d81d088660fd
5
5
  SHA512:
6
- metadata.gz: e2052b52a76ca7071c52bb989f80d52c153bae0fd0ba9bf4d1ca4c8cc8705795c0784e8949b2f320bb9d826210a6ce58f1f4e78684ac30923fc1a999efedc7c2
7
- data.tar.gz: 1c4560519a20b975f31796394ab36d0213eb5b94596ccfdc37772943f40733eeb0a95a662797963c2010b89886504e7466188ea562c9c3ea27b51cc02ba45604
6
+ metadata.gz: 42b45e964f3935c8e8a351ab504b357aec1794f365c19b8d8fffb6d26dd9e2b37e08675400eac1ff1d438ea8e393b4d5dc4d563d431dcd456c48aee68140817a
7
+ data.tar.gz: 62dd94272a2ec97175bddc53308eb4f36dc0de7a21cb086c0220fab40029d400556cda5b9c9a833fda106408d38c75705b3f50689ae325ee9b9cf7f073a4747e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.1] - 2025-12-17
4
+
5
+ ### Fixed
6
+ - **Static assets paths** - fixed paths to favicon and JS files to support non-root application mounting using `request.script_name`
7
+
3
8
  ## [1.4.0] - 2025-12-04
4
9
 
5
10
  ### Added
@@ -1,3 +1,3 @@
1
1
  module MapLibrePreview
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
@@ -4,14 +4,15 @@ html
4
4
  meta[charset="utf-8"]
5
5
  title Map Preview
6
6
  meta[name="viewport" content="width=device-width, initial-scale=1.0"]
7
- link[rel="icon" type="image/png" href="/icons/favicon.png"]
7
+ - base_path = request.script_name
8
+ link[rel="icon" type="image/png" href="#{base_path}/icons/favicon.png"]
8
9
  link[href="https://unpkg.com/maplibre-gl@#{MapLibrePreview::MAPLIBRE_VERSION}/dist/maplibre-gl.css" rel='stylesheet']
9
10
  script[src="https://unpkg.com/maplibre-gl@#{MapLibrePreview::MAPLIBRE_VERSION}/dist/maplibre-gl.js"]
10
11
  script[src="https://unpkg.com/maplibre-contour@#{MapLibrePreview::CONTOUR_VERSION}/dist/index.min.js"]
11
12
  script[src="https://d3js.org/d3.v#{MapLibrePreview::D3_VERSION}.min.js"]
12
- script[src='/js/filters.js']
13
- script[src='/js/contour.js']
14
- script[src='/js/tilegrid.js']
13
+ script[src="#{base_path}/js/filters.js"]
14
+ script[src="#{base_path}/js/contour.js"]
15
+ script[src="#{base_path}/js/tilegrid.js"]
15
16
  style
16
17
  | * { margin: 0; padding: 0; box-sizing: border-box; }
17
18
  | html { height: 100%; }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maplibre-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Ludov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-04 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack