chartkick 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +30 -4
- data/lib/chartkick/engine.rb +0 -1
- data/lib/chartkick/version.rb +1 -1
- metadata +1 -2
- data/config/importmap.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc72b4105d5e863040aec42ff49f32623f8fa3c74488b8ecdf5bb80d465653b3
|
4
|
+
data.tar.gz: 1e17d23367ad1ab3dd619d654e36f3f7cf179ed67f16164c22262460720627d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cadb32e90ef25fa335d00410e753d28770f9ad245be0cd7d6b42e8de3fb984f8cb821f75d8cf61f0521fe25134110b6e3d5ff21c22fe8a54d441bb00b82ada54
|
7
|
+
data.tar.gz: 1a10102ebd8b97a6b4b27572c9efd825f75cdcb8353ab75505924c72e3424481f1220a0a7960dacba29b997e48af8f1d812c1a9d5cd5672d8faad8d6465fa401
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -39,7 +39,14 @@ For Rails 5 / Sprockets, in `app/assets/javascripts/application.js`, add:
|
|
39
39
|
//= require Chart.bundle
|
40
40
|
```
|
41
41
|
|
42
|
-
For Rails 7 / Importmap (experimental), in `
|
42
|
+
For Rails 7 / Importmap (experimental), in `config/importmap.rb`, add:
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
pin "chartkick", to: "chartkick.js"
|
46
|
+
pin "Chart.bundle", to: "Chart.bundle.js"
|
47
|
+
```
|
48
|
+
|
49
|
+
And in `app/javascript/application.js`, add:
|
43
50
|
|
44
51
|
```js
|
45
52
|
import "chartkick"
|
@@ -440,7 +447,14 @@ For Rails 5 / Sprockets, in `app/assets/javascripts/application.js`, add:
|
|
440
447
|
//= require Chart.bundle
|
441
448
|
```
|
442
449
|
|
443
|
-
For Rails 7 / Importmap (experimental), in `
|
450
|
+
For Rails 7 / Importmap (experimental), in `config/importmap.rb`, add:
|
451
|
+
|
452
|
+
```ruby
|
453
|
+
pin "chartkick", to: "chartkick.js"
|
454
|
+
pin "Chart.bundle", to: "Chart.bundle.js"
|
455
|
+
```
|
456
|
+
|
457
|
+
And in `app/javascript/application.js`, add:
|
444
458
|
|
445
459
|
```js
|
446
460
|
import "chartkick"
|
@@ -473,7 +487,13 @@ For Rails 5 / Sprockets, in `app/assets/javascripts/application.js`, add:
|
|
473
487
|
//= require chartkick
|
474
488
|
```
|
475
489
|
|
476
|
-
For Rails 7 / Importmap (experimental), in `
|
490
|
+
For Rails 7 / Importmap (experimental), in `config/importmap.rb`, add:
|
491
|
+
|
492
|
+
```ruby
|
493
|
+
pin "chartkick", to: "chartkick.js"
|
494
|
+
```
|
495
|
+
|
496
|
+
And in `app/javascript/application.js`, add:
|
477
497
|
|
478
498
|
```js
|
479
499
|
import "chartkick"
|
@@ -508,7 +528,13 @@ For Rails 5 / Sprockets, download [highcharts.js](https://code.highcharts.com/hi
|
|
508
528
|
//= require highcharts
|
509
529
|
```
|
510
530
|
|
511
|
-
For Rails 7 / Importmap (experimental),
|
531
|
+
For Rails 7 / Importmap (experimental), in `config/importmap.rb`, add:
|
532
|
+
|
533
|
+
```ruby
|
534
|
+
pin "chartkick", to: "chartkick.js"
|
535
|
+
```
|
536
|
+
|
537
|
+
And run:
|
512
538
|
|
513
539
|
```sh
|
514
540
|
bin/importmap pin highcharts --download
|
data/lib/chartkick/engine.rb
CHANGED
@@ -5,7 +5,6 @@ module Chartkick
|
|
5
5
|
# for importmap
|
6
6
|
if defined?(Importmap)
|
7
7
|
initializer "chartkick.importmap", after: "importmap" do |app|
|
8
|
-
app.importmap.draw(Engine.root.join("config/importmap.rb"))
|
9
8
|
app.config.assets.precompile << "chartkick.js"
|
10
9
|
app.config.assets.precompile << "Chart.bundle.js"
|
11
10
|
end
|
data/lib/chartkick/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chartkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
@@ -19,7 +19,6 @@ files:
|
|
19
19
|
- CHANGELOG.md
|
20
20
|
- LICENSE.txt
|
21
21
|
- README.md
|
22
|
-
- config/importmap.rb
|
23
22
|
- lib/chartkick.rb
|
24
23
|
- lib/chartkick/engine.rb
|
25
24
|
- lib/chartkick/enumerable.rb
|
data/config/importmap.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pin_all_from File.expand_path("../vendor/assets/javascripts", __dir__)
|