activeinsights 0.2.1 → 0.2.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: 76e005aeac4566e4090e0b0eaf1109f15ebe7b9ad1593bc0fa2182d1dbcdc219
4
- data.tar.gz: 04c8d6d629166c53342b3b49ee6ade131d2aa8b9e4664d9e0f7ee461e7112d6c
3
+ metadata.gz: e8c6d359d683ccf4da16accfa45684989a4f57f9bc9713c0d15c9c0c72927c3e
4
+ data.tar.gz: e14e9c7becaf024f5a5890e04371994948e88c16bd8e1fd4b06aaec20a77162e
5
5
  SHA512:
6
- metadata.gz: '07459ea24e4941797ce69358fca6a478f17c80a029db7d4fa5b3f99f768b8901867ccda21334f38e89e24ed6877525c008496a52e5b5dd9cb386cac4d30143c1'
7
- data.tar.gz: 262cb9bfb588175b8018159d6eea787c7d8fc9ea9fd5290a0214f82c7a8636cbbee848430cd8b6062beebb267727963f16af4c25c700471b817529e94263cca7
6
+ metadata.gz: 9842e1147eab99529d9f3ec92c5f8bc2ec0dec55658f27fa73c6157aa06ec6d4c4f416763c861aeea718c0de068212c1578265e160fbe88392d11bfa08759445
7
+ data.tar.gz: 91ecb70edb2a74ea793babfb6547496814807157d91ff5dcadb585477b5acf7311fdd51d8a5ab2a269fe07f297d2ede33d584e6cbefdacd9afce87b0e9c33fb3
data/README.md CHANGED
@@ -45,13 +45,13 @@ You can supply a hash of connection options to `connects_to` set the connection
45
45
  options for the `Request` model.
46
46
 
47
47
  ```ruby
48
- ActiveInsights.connects_to = { database: { writing: :requests, reading: :requests } }
48
+ config.active_insights.connects_to = { database: { writing: :requests, reading: :requests } }
49
49
  ```
50
50
 
51
51
  You can supply an array of ignored endpoints
52
52
 
53
53
  ```ruby
54
- ActiveInsights.ignored_endpoints = ["Rails::HealthController#show"]
54
+ config.active_insights.ignored_endpoints = ["Rails::HealthController#show"]
55
55
  ```
56
56
 
57
57
  ## Development
@@ -1,5 +1,13 @@
1
- import "chartkick"
2
- import "Chart.bundle"
1
+ import {Chart, registerables} from "chart.js"
2
+
3
+ Chart.register(...registerables)
4
+
5
+ import "chartjs-adapter-date-fns"
3
6
  import zoomPlugin from 'chartjs-plugin-zoom'
7
+ import Chartkick from "chartkick"
8
+
9
+ window.Chartkick = Chartkick
10
+ window.Chart = Chart
4
11
 
12
+ Chartkick.use(Chart)
5
13
  Chart.register(zoomPlugin)
@@ -5,8 +5,10 @@ require "active_insights"
5
5
  ActiveInsights::Engine.importmap.draw do
6
6
  pin "application", to: "active_insights/application.js"
7
7
 
8
- pin "chartkick", to: "chartkick.js"
9
- pin "Chart.bundle", to: "Chart.bundle.js"
8
+ pin "chartkick", to: "https://ga.jspm.io/npm:chartkick@5.0.1/dist/chartkick.esm.js"
9
+ pin "chart.js", to: "https://ga.jspm.io/npm:chart.js@4.4.1/dist/chart.js"
10
+ pin "chartjs-adapter-date-fns", to: "https://ga.jspm.io/npm:chartjs-adapter-date-fns@3.0.0/dist/chartjs-adapter-date-fns.esm.js"
11
+ pin "date-fns", to: "https://ga.jspm.io/npm:date-fns@3.2.0/index.mjs"
10
12
 
11
13
  pin "chartjs-plugin-zoom", to: "https://ga.jspm.io/npm:chartjs-plugin-zoom@2.0.1/dist/chartjs-plugin-zoom.esm.js"
12
14
  pin "hammerjs", to: "https://ga.jspm.io/npm:hammerjs@2.0.8/hammer.js"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveInsights
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeinsights
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza