mapkick-rb 0.1.5 → 0.3.0

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: 3fe67a4f4f194dbcd7a4c1c5b0955afe1293e1c7aefe3a568624cf8437b0cd39
4
- data.tar.gz: dd9d5486bfacdd560e645bbfd59c6443dbf8e6c10dd1ef22750c7c253ef25380
3
+ metadata.gz: 3199f7d47355fb291d3f4157e0a2ac505830e0132b93640bb91e2918a667d46f
4
+ data.tar.gz: bcb3dc4c48d2da6e36bf8ab07e7453fd6de460a7c65f65808566eb388571f50f
5
5
  SHA512:
6
- metadata.gz: df625004ba2e24d600d877dfc372de269ffeb4ec5637672c3db36557c632af5f16e6d5811e54fc157c6e9b1929327129f32271f46c4c619c44df620fe93efb8a
7
- data.tar.gz: 6b721f26b678719477ea0e8413a836a4f97ca623dc49f134e695ad459d8a6a6905c9c911a63bc4a81b97627842ebcdac2054028f5732c247fbed4914672bb3e6
6
+ metadata.gz: ea752fa93c9fd4ef5c6789809555f0599ea1764eccbaf7f0d912ab3b3b9add3d900d7040d81e62df21869fb8a34c0a53742fa0e2cbf07d3793eab09815a46bbb
7
+ data.tar.gz: be1f60848398517d679b8a2f2a897c31688f62bbd5cbd13feee8f7f4b6b69b5bc2d33c1acbf70b14edbfef158bf9f853089b9840d621a189f0b01ca654cd6fc8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.0 (2026-04-15)
2
+
3
+ - Dropped support for Ruby < 3.3
4
+
5
+ ## 0.2.0 (2024-10-26)
6
+
7
+ - Dropped support for Ruby < 3.1
8
+
1
9
  ## 0.1.5 (2023-07-24)
2
10
 
3
11
  - Updated Mapkick.js to 0.2.6
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2023 Andrew Kane
1
+ Copyright (c) 2023-2026 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -6,7 +6,7 @@ Create beautiful JavaScript maps with one line of Ruby. No more fighting with ma
6
6
 
7
7
  :fire: For static maps, check out [Mapkick Static](https://github.com/ankane/mapkick-static), and for charts, check out [Chartkick](https://chartkick.com)
8
8
 
9
- [![Build Status](https://github.com/ankane/mapkick/workflows/build/badge.svg?branch=master)](https://github.com/ankane/mapkick/actions)
9
+ [![Build Status](https://github.com/ankane/mapkick/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/mapkick/actions)
10
10
 
11
11
  ## Installation
12
12
 
@@ -20,9 +20,8 @@ Mapkick uses [Mapbox GL JS v1](https://github.com/mapbox/mapbox-gl-js/tree/v1.13
20
20
 
21
21
  Then follow the instructions for your JavaScript setup:
22
22
 
23
- - [Importmap](#importmap) (Rails 7 default)
24
- - [esbuild, rollup.js, or Webpack](#esbuild-rollupjs-or-webpack)
25
- - [Webpacker](#webpacker) (Rails 6 default)
23
+ - [Importmap](#importmap) (Rails default)
24
+ - [Bun, esbuild, rollup.js, or Webpack](#bun-esbuild-rollupjs-or-webpack)
26
25
  - [Sprockets](#sprockets)
27
26
 
28
27
  ### Importmap
@@ -39,11 +38,13 @@ And in `app/javascript/application.js`, add:
39
38
  import "mapkick/bundle"
40
39
  ```
41
40
 
42
- ### esbuild, rollup.js, or Webpack
41
+ ### Bun, esbuild, rollup.js, or Webpack
43
42
 
44
43
  Run:
45
44
 
46
45
  ```sh
46
+ bun add mapkick
47
+ # or
47
48
  yarn add mapkick
48
49
  ```
49
50
 
@@ -53,22 +54,6 @@ And in `app/javascript/application.js`, add:
53
54
  import "mapkick/bundle"
54
55
  ```
55
56
 
56
- Note: For rollup.js, this requires `format: "iife"` in `rollup.config.js`.
57
-
58
- ### Webpacker
59
-
60
- Run:
61
-
62
- ```sh
63
- yarn add mapkick
64
- ```
65
-
66
- And in `app/javascript/packs/application.js`, add:
67
-
68
- ```js
69
- import "mapkick/bundle"
70
- ```
71
-
72
57
  ### Sprockets
73
58
 
74
59
  In `app/assets/javascripts/application.js`, add:
@@ -186,7 +171,7 @@ Pass options directly to the mapping library
186
171
  <%= js_map data, library: {hash: true} %>
187
172
  ```
188
173
 
189
- See the documentation for [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/api/map/) and [MapLibre GL JS](https://maplibre.org/maplibre-gl-js-docs/api/map/) for more info
174
+ See the documentation for [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/api/map/) for more info
190
175
 
191
176
  ### Global Options
192
177
 
@@ -4,7 +4,7 @@ module Mapkick
4
4
 
5
5
  # for importmap
6
6
  initializer "mapkick.importmap" do |app|
7
- if defined?(Importmap)
7
+ if app.config.respond_to?(:assets) && defined?(Importmap) && defined?(Sprockets)
8
8
  app.config.assets.precompile << "mapkick.bundle.js"
9
9
  end
10
10
  end
@@ -50,7 +50,7 @@ module Mapkick
50
50
  # limit to alphanumeric and % for simplicity
51
51
  # this prevents things like calc() but safety is the priority
52
52
  # dot does not need escaped in square brackets
53
- raise ArgumentError, "Invalid #{k}" unless html_vars[k] =~ /\A[a-zA-Z0-9%.]*\z/
53
+ raise ArgumentError, "Invalid #{k}" unless /\A[a-zA-Z0-9%.]*\z/.match?(html_vars[k])
54
54
  end
55
55
 
56
56
  html_vars.each_key do |k|
@@ -1,3 +1,3 @@
1
1
  module Mapkick
2
- VERSION = "0.1.5"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mapkick-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description:
14
12
  email: andrew@ankane.org
15
13
  executables: []
16
14
  extensions: []
@@ -32,7 +30,6 @@ homepage: https://chartkick.com/mapkick
32
30
  licenses:
33
31
  - MIT
34
32
  metadata: {}
35
- post_install_message:
36
33
  rdoc_options: []
37
34
  require_paths:
38
35
  - lib
@@ -40,15 +37,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
- version: '2.7'
40
+ version: '3.3'
44
41
  required_rubygems_version: !ruby/object:Gem::Requirement
45
42
  requirements:
46
43
  - - ">="
47
44
  - !ruby/object:Gem::Version
48
45
  version: '0'
49
46
  requirements: []
50
- rubygems_version: 3.4.10
51
- signing_key:
47
+ rubygems_version: 4.0.6
52
48
  specification_version: 4
53
49
  summary: Create beautiful JavaScript maps with one line of Ruby
54
50
  test_files: []