chartkick 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of chartkick might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b6eb4f5b6f498a122e58ca1dd4cf7e3e1f5d610e19faa5a702291e422549026
4
- data.tar.gz: ec143cc0f819cdd1ccd955f43425d992daa87052aeede53f563beda9bace04a5
3
+ metadata.gz: 93ec8731d7c59fefb8a68177487d611056e7b97ad239d71fb40e2fbe3ecb3765
4
+ data.tar.gz: 188133762bb0f53b70bd5a4bde03f8fef59233affae22f007908b1f9effd7272
5
5
  SHA512:
6
- metadata.gz: 1a494948bc4eeb5c1567e82777601982d7f3f90bfeb5c8b8b29335620cc0eaac7659a8b91e72fe9672d29a3b580b2c512fd0524c553be2de9fb57b4dcfa27b7a
7
- data.tar.gz: 9f2e116c8c529e744e078b368ece8aebd7235dec00aa297a0745f309a494e57a2e29b2243dd5873d159a4346be0ee331f1df474f2a4166133a8a9e6159a0e9d7
6
+ metadata.gz: d88b8cd9d7a5afef0a372a52c2b50e6833a445f3824ad14d00645d558546db8c1b3396c6a4c970510404eaa33bbae0bf816a582f77576d065f1e17e7ab5b7e59
7
+ data.tar.gz: 63bc3b1d692d0fcaff545e326b632fd2f59cc71ff41bf414fa6df2568c7a712b7cdc1a53dd4a50244c5a80bce313c5ef6f37c72e4828f29bfc74be64850e2046
@@ -1,3 +1,7 @@
1
+ ## 3.2.1
2
+
3
+ - Updated Chartkick.js to 3.1.1
4
+
1
5
  ## 3.2.0
2
6
 
3
7
  - Fixed XSS vulnerability - see [#488](https://github.com/ankane/chartkick/issues/488)
@@ -74,7 +74,7 @@ module Chartkick
74
74
 
75
75
  # js vars
76
76
  js_vars = {
77
- type: klass, # don't convert to JSON, but still escape
77
+ type: klass.to_json,
78
78
  id: element_id.to_json,
79
79
  data: data_source.respond_to?(:chart_json) ? data_source.chart_json : data_source.to_json,
80
80
  options: options.to_json
@@ -82,7 +82,7 @@ module Chartkick
82
82
  js_vars.each_key do |k|
83
83
  js_vars[k] = chartkick_json_escape(js_vars[k])
84
84
  end
85
- createjs = "new Chartkick.%{type}(%{id}, %{data}, %{options});" % js_vars
85
+ createjs = "new Chartkick[%{type}](%{id}, %{data}, %{options});" % js_vars
86
86
 
87
87
  if defer
88
88
  js = <<JS
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  * Chartkick.js
3
3
  * Create beautiful charts with one line of JavaScript
4
4
  * https://github.com/ankane/chartkick.js
5
- * v3.1.0
5
+ * v3.1.1
6
6
  * MIT License
7
7
  */
8
8
 
@@ -780,7 +780,9 @@
780
780
  defaultExport.prototype.renderColumnChart = function renderColumnChart (chart, chartType) {
781
781
  var options;
782
782
  if (chartType === "bar") {
783
- options = jsOptionsFunc(merge(baseOptions, defaultOptions), hideLegend, setTitle, setBarMin, setBarMax, setStacked, setXtitle, setYtitle)(chart, chart.options);
783
+ var barOptions = merge(baseOptions, defaultOptions);
784
+ delete barOptions.scales.yAxes[0].ticks.maxTicksLimit;
785
+ options = jsOptionsFunc(barOptions, hideLegend, setTitle, setBarMin, setBarMax, setStacked, setXtitle, setYtitle)(chart, chart.options);
784
786
  } else {
785
787
  options = jsOptions(chart, chart.options);
786
788
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-04 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.0.3
91
+ rubygems_version: 3.0.4
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Create beautiful JavaScript charts with one line of Ruby