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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72d125397684b6a65e9e3982dab00818b1387be38099f45ab340c0d6d78c8911
4
- data.tar.gz: 9465bd9225d1e97ade176c1769d4ed84664a6a069a0e181d0e8e271505711be0
3
+ metadata.gz: fc72b4105d5e863040aec42ff49f32623f8fa3c74488b8ecdf5bb80d465653b3
4
+ data.tar.gz: 1e17d23367ad1ab3dd619d654e36f3f7cf179ed67f16164c22262460720627d7
5
5
  SHA512:
6
- metadata.gz: 514165df39581c34f1d6e929cf679475c929b36e9f47fdc9cdb7d415364833ba6bd1134bc272a364f1c11731c3cee68f48a7e0598e6394e95c1c2e0607c58e91
7
- data.tar.gz: 83eec680a359d68461c4258f98cb5f99f387624ae9c7f222f49592f5fc19b2ead5ee83aa69ff5db8a3e58408f2a9bb9887de9059cb91b9dad556c334f8ecebcf
6
+ metadata.gz: cadb32e90ef25fa335d00410e753d28770f9ad245be0cd7d6b42e8de3fb984f8cb821f75d8cf61f0521fe25134110b6e3d5ff21c22fe8a54d441bb00b82ada54
7
+ data.tar.gz: 1a10102ebd8b97a6b4b27572c9efd825f75cdcb8353ab75505924c72e3424481f1220a0a7960dacba29b997e48af8f1d812c1a9d5cd5672d8faad8d6465fa401
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.1.2 (2021-11-06)
2
+
3
+ - Removed automatic pinning for `importmap-rails` (still experimental)
4
+
1
5
  ## 4.1.1 (2021-11-06)
2
6
 
3
7
  - Updated Chartkick.js to 4.1.1
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 `app/javascript/application.js`, add:
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 `app/javascript/application.js`, add:
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 `app/javascript/application.js`, add:
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), run:
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "4.1.1"
2
+ VERSION = "4.1.2"
3
3
  end
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.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__)