amcharts.rb 3.4.7.3 → 3.4.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGUwZDE5ZDNkOGZhYWFmZDQ3NDY4YWExODUzMGJmZDcxMzkzZGMzYw==
4
+ NDM5ZjUxNGRkNzk3ZWFiMGY2NzZhYzdhN2ZmYjM1YWVkNTYyMjE3Yg==
5
5
  data.tar.gz: !binary |-
6
- ZTMzZWE0ZDgxMWNkMTYyNjYxZGIzZjEzM2NhYzgzOWYyZGFkYzQzYw==
6
+ NTIzMzYyN2RhYzk4YWU3ZTMzYjA5Mjc4NzYwNDE4ZjI0OTNiOTY4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTMyYmM1N2U4YTE5OTg5ZmU1MjZhYTc1YzY2Y2U3YTVmNGY2NzNmZTJkM2U0
10
- ODExMDMwMDEyOWJkZDQ1ZjBjMDg0NDcxMzA5ZDFmYmNlMTk0ZjZjN2Y3OWZh
11
- N2Y1NTk0YTIwYjFhMDY1NjNkYzQ3ZTI0OTA4MDQzNmQxZjQ3NDk=
9
+ MGJhM2M5YTJjN2M4NTU4YWMxZjE1YmViMDkwMWFiOGU0Yjg0OWE5NGQzZWNm
10
+ NTY3OWU1MjM1OGQ4Nzg5MWFhNDdjZTFhZjBmMGE1MTE1ZDNiNDc3ZjliNzA2
11
+ NGE5NmVmZGU5ZDhkM2E5YWVkMThlODQ2YzQ1Njg3ZGJhZDhiMDY=
12
12
  data.tar.gz: !binary |-
13
- OTU2NTIyM2UwYjg3MzllNjMyOTJjZjcxZGIwMTg5MzExM2RhOWQwZTM5ODI2
14
- MmFmZWU0NzM4NjZjZWZlNjhlM2VhYjcxNDExNTFjZDljN2FmOGExNTY1NTQ0
15
- YjNhNTkwNDQ4OTczODViNjc5ZGUzZTVlYmU1NWI4NTc0NmFhMmQ=
13
+ YjRiOWMyNzhjODA2NWRjNGFiNDU5ZDA3NTZkZjEwODIxYjBmMDg1Y2RkOWQy
14
+ MDQzOTQ2ZWFhODVlNGVlMDU3YjcwODkxYzVjYzE1NDgwNmE3NTVhNTc5NmRl
15
+ NmY0NmY4OTg0OWNlZmZlYTBkYjczYTFjNWM4NGMyMTVkOTNhOWE=
@@ -24,7 +24,7 @@ module AmCharts
24
24
  @legends = Collection[Legend]
25
25
  @listeners = Collection[Listener]
26
26
  @settings = Settings.new
27
- @export = ExportSettings.new
27
+ @export = nil
28
28
  @titles = []
29
29
  update_settings(&block) if block_given?
30
30
  end
@@ -60,13 +60,15 @@ module AmCharts
60
60
  end
61
61
 
62
62
  def export?
63
- !@export.empty?
63
+ !@export.nil?
64
64
  end
65
65
 
66
66
  def export(&block)
67
+ @export ||= ExportSettings.new
67
68
  yield @export if block_given?
68
69
  @export
69
70
  end
71
+ alias_method :exportable!, :export
70
72
 
71
73
  def add_title(text, options = {})
72
74
  @titles << [text, options.reverse_merge(size: 13, bold: true, alpha: 1, color: '#000000')]
@@ -39,6 +39,11 @@ module AmCharts
39
39
  return false if menus.empty?
40
40
  menus.flat_map(&:formats).any?{ |f| f == :pdf }
41
41
  end
42
+
43
+ def empty?
44
+ settings.empty? and menus.empty?
45
+ end
46
+
42
47
  private
43
48
 
44
49
  def method_missing(name, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module AmCharts
2
- VERSION = "3.4.7.3"
2
+ VERSION = "3.4.7.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amcharts.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.7.3
4
+ version: 3.4.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Vandersluis