prime_awesome 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/prime_awesome/draw_label.rb +7 -8
- data/lib/prime_awesome/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGEzODRkMWJhYjY5ZGNhZWQyZjViMWM1ZTllYmZlNGZlNTA0YTBmNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGQwMTVmM2NmMTc2NWQ2ZWUxNzU4YTM4MTdjN2EyYTU5YTg5ZDNhNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjQyZmZlMmI5MjA5NzdiZjQ4OWNiZmY4YTM0Y2Y0YTQ1NjgyNzllY2E2NDkz
|
10
|
+
MTE4YTY3OTdhNDNhZTRkNjliZDhjODA5MWQ1OGUyZDVmN2RkNzkxODg1ODNh
|
11
|
+
ZjQwODhhZmMxZDFmY2I4OTA3YmY0YjBhY2NiMDFkNGFmMGE5MWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTY5ZTRiODY1NDE3YjkzNjU1ZmEyNTQ3N2M5MTU3MGZhZGU5ZTllNDA0MGMz
|
14
|
+
MjI0MmRjM2E5NzMyOTM1ZWQxYWU2OTgwZWRlMzcwZWU2YmY0ODZlMTNkODM3
|
15
|
+
OGQ5MTRjMmRjZThmODMxMTMzYWI5ZTc4YmM5Y2Q5YjI2YmJjNGM=
|
@@ -3,17 +3,16 @@ module PrimeAwesome
|
|
3
3
|
|
4
4
|
def self.included(base)
|
5
5
|
base.class_eval do
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
def computed_options
|
7
|
+
@computed_options || begin
|
8
|
+
super
|
9
|
+
icon = computed_options[:fa_icon]
|
10
|
+
@computed_options.merge!({
|
11
11
|
text: MotionAwesome.hex_for_icon(icon.to_s.gsub('_', '-')),
|
12
12
|
force_attributed: true,
|
13
13
|
font: 'FontAwesome'.uifont(computed_options[:fa_size] || 14)
|
14
|
-
)
|
15
|
-
|
16
|
-
draw_options!
|
14
|
+
}) if icon
|
15
|
+
@computed_options
|
17
16
|
end
|
18
17
|
end
|
19
18
|
end
|