maplibre-preview 1.4.1 → 1.4.3
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -3
- data/lib/maplibre-preview/public/vendor/d3/d3.v7.min.js +2 -0
- data/lib/maplibre-preview/public/vendor/maplibre-contour/index.min.js +15 -0
- data/lib/maplibre-preview/public/vendor/maplibre-gl/maplibre-gl.css +1 -0
- data/lib/maplibre-preview/public/vendor/maplibre-gl/maplibre-gl.js +59 -0
- data/lib/maplibre-preview/version.rb +2 -2
- data/lib/maplibre-preview/views/maplibre_layout.slim +4 -4
- data/lib/maplibre-preview.rb +1 -6
- data/spec/maplibre_preview_spec.rb +19 -8
- metadata +26 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff0508a77186b4b42b987de36d9f307556f182cd184d62a206963d211719963f
|
|
4
|
+
data.tar.gz: d547c84b4b1ca39ffe52b065a493dbec416d6aa5c5829c401bcafebd0dd9ad6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61b409020f21b43cf1b7cdb75ff6ea28980927d73cd60aa9e3acb7105eda17b9843c2789ef6eaa03437c8068b028441c01f78487b5e8df294fe0aecae478d4c1
|
|
7
|
+
data.tar.gz: b066ef7e588b70d8ececa8eb3d90c66dae571f2ec15082dc2859b27ac3834d605b35f6e5722f4684fd0ba21ab21d45b21423de82794f3ae9d7f03a5459b849c4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.2] - 2026-04-23
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- **Bundled frontend libraries** - vendored MapLibre GL JS, MapLibre Contour, and D3 into gem public assets
|
|
7
|
+
- **Offline-safe UI assets** - replaced CDN references with local `/vendor/...` asset paths served by the gem
|
|
8
|
+
|
|
3
9
|
## [1.4.1] - 2025-12-17
|
|
4
10
|
|
|
5
11
|
### Fixed
|
data/README.md
CHANGED
|
@@ -30,7 +30,7 @@ The gem consists of several integrated components:
|
|
|
30
30
|
|
|
31
31
|
1. **Sinatra Integration** → Register extension → Configure options → Use helpers
|
|
32
32
|
2. **Asset Serving** → StaticMiddleware intercepts `/js/*` requests → Serves from gem
|
|
33
|
-
3. **Map Rendering** → Helper methods render Slim templates → Include
|
|
33
|
+
3. **Map Rendering** → Helper methods render Slim templates → Include bundled frontend assets
|
|
34
34
|
4. **Client Interaction** → JavaScript modules handle filtering and terrain features
|
|
35
35
|
|
|
36
36
|
## Quick Start
|
|
@@ -141,7 +141,7 @@ The gem provides Slim templates that can be used directly in your routes:
|
|
|
141
141
|
| Template | Description | Usage |
|
|
142
142
|
|----------|-------------|-------|
|
|
143
143
|
| `maplibre_map` | Main map interface template | `slim :maplibre_map, layout: :maplibre_layout` |
|
|
144
|
-
| `maplibre_layout` | HTML layout with
|
|
144
|
+
| `maplibre_layout` | HTML layout with bundled frontend assets | Used as layout for map template |
|
|
145
145
|
|
|
146
146
|
### Standalone Application
|
|
147
147
|
|
|
@@ -309,4 +309,4 @@ end
|
|
|
309
309
|
|
|
310
310
|
## License
|
|
311
311
|
|
|
312
|
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
312
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|