trackler 2.0.1.2 → 2.0.2.0

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: 7b688c37ee3986356aaadb9bd39b4dd72524ed7f
4
- data.tar.gz: 0023dcfdc396190c1c7ee84988a9e183d9ec1459
3
+ metadata.gz: 880e54dbb6ac913d08c43187b90fff91cff7e0fb
4
+ data.tar.gz: 1c352e1b8632680d52a202dad1d0f26c193d77b2
5
5
  SHA512:
6
- metadata.gz: c723690b00d103e004d70e3b1436ce5fb406e2ad06dd4d18e120f16578c3b31164430936bc3f5127e2431426be5a2e814923b98cfca95af03247ef64044708aa
7
- data.tar.gz: a45271733dc3dc85ba092a50293cf267acdd14343cecffa9fac2cbf980be3b9b7b8c26e29f90c5b3fc499faef4ad4f2a5671070ab03c827cb2ba88d4393e9488
6
+ metadata.gz: 2e60354077415fff4f66ce4cd18ea59e7e3f7060b7b8a708d410fd74d18a25b81e1c9fd8ffdc7fe569c239863cb495c9e0fb8698d5110497e136664371e1b903
7
+ data.tar.gz: 9148ef5f7532b4fca0e351f7297b9392e239a9fa7760b86590056c342d728103b36d37e1ce4e4ee96ae54d89de94bb8b4ba58e50eeec279501d942f294252168
data/CHANGELOG.md CHANGED
@@ -15,6 +15,10 @@ The changelog will not be updated for content updates.
15
15
  ## Next Release
16
16
  * **Your contribution here**
17
17
 
18
+ ## v2.0.2.0 (2016-11-29)
19
+
20
+ * Add support for SVG icons by default
21
+
18
22
  ## v2.0.1.0 (2016-11-25)
19
23
 
20
24
  * Make track documentation accessible via messages.
@@ -63,7 +63,7 @@ module Trackler
63
63
  end
64
64
 
65
65
  def icon
66
- @icon ||= Image.new(File.join(dir, "img/icon.png"))
66
+ @icon ||= svg_icon.exists? ? svg_icon : png_icon
67
67
  end
68
68
 
69
69
  %w(language repository).each do |name|
@@ -163,5 +163,13 @@ module Trackler
163
163
  path = File.join(dir, "docs", topic.upcase)
164
164
  Dir.glob("%s.*" % path).sort.first
165
165
  end
166
+
167
+ def svg_icon
168
+ @svg_icon ||= Image.new(File.join(dir, "img/icon.svg"))
169
+ end
170
+
171
+ def png_icon
172
+ @png_icon ||= Image.new(File.join(dir, "img/icon.png"))
173
+ end
166
174
  end
167
175
  end
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.0.1.2"
2
+ VERSION = "2.0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.2
4
+ version: 2.0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen