analytics_charts 1.3.3 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72d4818d428573d924a3ce1568e50e55ecabfa77
4
- data.tar.gz: bfcf55035baf60d8038a9fe1a2c7bbbb4e6fc3ab
3
+ metadata.gz: 8ffc208c657b21353a664ada4ed4fec601b346c2
4
+ data.tar.gz: 34ab319ed9f7d9c1d0d7783b13415a0056928be1
5
5
  SHA512:
6
- metadata.gz: 7eeecdf9897588c502f3b2311be8ed3431cbf61bd9286466f0c027c6fbc210f3f0a5493deb40b5e2f45be596596313aea80b1fd68daca25a2f8e2449a40b6dfa
7
- data.tar.gz: 94f39e0532d49a4a071b0e31d780807567bf00a40c0c97427ac84c56b1fe57fa8081315b9e7dcb3b1ab02073c1d25031c883997bf1a5f1e87a5710878ee73c5e
6
+ metadata.gz: 92d50986fc755bed5e4c73f2009c23a1fe84471cc612d639b7ab1ddf4e9a08d0f53dd1ea54d46b7d51ffc5148916bd3a8090d5394d9aabc6a73d8b735dc39b16
7
+ data.tar.gz: e60b4a4d3031e9cf590ff1513b599f907caf5cc42e779fbd3213847a20fd874e1d614b7df57fe596dc103d22e5fbfbcb7a5490461531512754f2427d2ea39b16
@@ -29,6 +29,7 @@ class AnalyticsCharts::CustomModule
29
29
  @d.draw(@base_image)
30
30
  y_offset = 22 + @composite_rows + @d.get_type_metrics(@dummy_image,"a").height / 2
31
31
  @rows_of_text.each do |text|
32
+ text = text.gsub(/['%]/, '%' => '%%', "'" => "\'")
32
33
  if text.include? "@$$" # No paragraph break if we insert this uncommonly used word
33
34
  text.sub!("@$$", "")
34
35
  @d.annotate(@base_image, 0 ,0, 22, y_offset, text)
@@ -50,7 +50,7 @@ class AnalyticsCharts::CustomPie
50
50
  # Figure out whether to give name a 0,1,2, or 3
51
51
  [0,1,2,3].each do |rank|
52
52
  next if @thresholds[rank].is_a?(String)
53
- if quality < @thresholds[rank]
53
+ if quality <= @thresholds[rank]
54
54
  @data[name] = [amount, rank]
55
55
  @aggregate[rank] += amount
56
56
  break
@@ -1,3 +1,3 @@
1
1
  module AnalyticsCharts
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.5"
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.3.3
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - STEPHEN YU