trackler 2.0.1.2 → 2.0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/trackler/track.rb +9 -1
- data/lib/trackler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 880e54dbb6ac913d08c43187b90fff91cff7e0fb
|
4
|
+
data.tar.gz: 1c352e1b8632680d52a202dad1d0f26c193d77b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/trackler/track.rb
CHANGED
@@ -63,7 +63,7 @@ module Trackler
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def icon
|
66
|
-
@icon ||=
|
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
|
data/lib/trackler/version.rb
CHANGED