analytics_charts 1.6.0 → 1.6.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
  SHA1:
3
- metadata.gz: b1fe13a3abb1a9960b01bc1f0d0034875e9464f0
4
- data.tar.gz: 2bfa1096789e03bc367f403e5ce0774e1927ab0a
3
+ metadata.gz: c011002b0791849d7f7ed8fbeaefc60906cb1e9a
4
+ data.tar.gz: bf72ab89b134779a91df419ccb360bcf747726c8
5
5
  SHA512:
6
- metadata.gz: 5a7550b13469ce6109d6c8535dc307ecff84498a9a682cd1d21fa63e838103c702027086b2f91e0554f2bb90a9e79acb694374636cc75b495cb236ae2495ab9e
7
- data.tar.gz: 7be10e86a4a73e9242ed1df4d58824e22d3a5192580704df6e527cd6c758b26581fc6997808a414452a1d1779b44ed01b29bae5b0745b3df95ec257a147bb19c
6
+ metadata.gz: a426ec31bd0182deeaad6ec10ab886121ec8b04be4da237546393694e94ed7938e685d6cef512d0458d2638bc66838dff5e39e36f3c6838baa4edb18e693e959
7
+ data.tar.gz: d87da7ed8e3b49832cc74ca7d7de99cd816871ca31ca3807f7cca1742103931f5e32206b0278c039952fb5861bcb4201cd4a34c2f48b87dd5265cfd51b73864f
@@ -15,12 +15,14 @@ class AnalyticsCharts::PieAndLabels < AnalyticsCharts::CustomPie
15
15
  puts @composite_columns
16
16
  @composite_rows = @composite_image.rows
17
17
  @org_text_size = 14
18
+ organization = organization.gsub(/['%]/, '%' => '%%', "'" => "\'")
18
19
  @org_texts = tokenize_text_by_lines(organization,
19
20
  {'fill' => '#FFFFFF', 'pointsize'=> @org_text_size, 'font_weight'=> 500 })
20
21
  @label_size = 16
21
22
  org_text_offset = @org_texts.size * @org_text_size
22
23
  # (num_labels + 1) to account for white key on bottom of labels
23
24
  @height_with_no_disclaimer = [200 + 20, 20 + @label_size * (num_labels + 1) + 20].max + @composite_rows + org_text_offset
25
+ disclaimer = disclaimer.gsub(/['%]/, '%' => '%%', "'" => "\'")
24
26
  @disclaimer_texts = tokenize_text_by_lines(disclaimer)
25
27
  @height = @height_with_no_disclaimer + @disclaimer_texts.size * 12 + 5
26
28
  @data = Hash.new # Value is array with two items
@@ -1,3 +1,3 @@
1
1
  module AnalyticsCharts
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analytics_charts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - STEPHEN YU