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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODM1ZDBmNDQzYmJlNzQ0YTQzOTY0YzZiYjI1YThhMTM3MmUwNTQyNQ==
4
+ NGEzODRkMWJhYjY5ZGNhZWQyZjViMWM1ZTllYmZlNGZlNTA0YTBmNg==
5
5
  data.tar.gz: !binary |-
6
- ZjE2N2I2NGJiODE3YWRkZGY2NDA3YTJmNTYxZjJkODNhMDFkZDI3OA==
6
+ NGQwMTVmM2NmMTc2NWQ2ZWUxNzU4YTM4MTdjN2EyYTU5YTg5ZDNhNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGY1ODBjZTc2MWJmM2ZjMDI3MzU4Nzk2YTZlMjljZTUzMDJhMzgzZGM2NWI4
10
- MzZkNmVlZTM0ZDgwNzVmZjhlNmMwN2ZhMGU0OWU5MGU4Y2NlNjkwZTE3Njky
11
- ZDhmNzUyZTM4NmJkMjg0NjAyMzIyOTdiNmJjNDAzYzY5Yjc3NGU=
9
+ NjQyZmZlMmI5MjA5NzdiZjQ4OWNiZmY4YTM0Y2Y0YTQ1NjgyNzllY2E2NDkz
10
+ MTE4YTY3OTdhNDNhZTRkNjliZDhjODA5MWQ1OGUyZDVmN2RkNzkxODg1ODNh
11
+ ZjQwODhhZmMxZDFmY2I4OTA3YmY0YjBhY2NiMDFkNGFmMGE5MWE=
12
12
  data.tar.gz: !binary |-
13
- ZGQ5ZDRmMjZmNjU1YjU5OWIzN2U3MGVlOTg2M2ZkMmI4MjRkN2E5YjRkM2Zl
14
- N2MzMTViYTdhYzgzZTdhMWU5ZjcwZGNhYmM1MmZmYmVlMjY5ZjcwNTg2OTRl
15
- Yzg4ZmZmZjdkYmY1MTE1YTRiNDUwMjBhMTZlZDY3MzlmYzcwMjQ=
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
- alias_method :draw_options!, :draw_options
7
- def draw_options
8
- if icon = computed_options[:fa_icon]
9
- @padding_top = 0
10
- draw_options!.merge(
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
- else
16
- draw_options!
14
+ }) if icon
15
+ @computed_options
17
16
  end
18
17
  end
19
18
  end
@@ -1,3 +1,3 @@
1
1
  module PrimeAwesome
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prime_awesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Haziev