agilibox 1.3.3 → 1.3.4
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/app/helpers/agilibox/font_awesome_helper.rb +11 -1
- data/lib/agilibox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a9379230e4aad6c54c0d2d50e8817e44b06b0b96e2c21a69bbc954f304e577d
|
4
|
+
data.tar.gz: 0a585a25d2957a902b3ba8148860ccb13bbd5d90d37f318fbea93efafce9a023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 156b0dc96de93996f93687a907e0f591a3401c3a4732f43ce85a3f1dd6494e814a2e2a9abb4dc0cc7f35b5024ee5d9287f23571702f23331d61257851508f0b6
|
7
|
+
data.tar.gz: 3b7c85f43f220f855c357167d2987418d79e22b71e2fb8a98b5e0dab9937fa5b637dfa67f2d3e874471e723fef2c62acf75524f3454095cf46d4adcb16cb7f23
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@ module Agilibox::FontAwesomeHelper
|
|
3
3
|
id = id.to_s.tr("_", "-").to_sym
|
4
4
|
|
5
5
|
if fa_style.nil?
|
6
|
-
fa_style = Agilibox::FontAwesomeHelper.
|
6
|
+
fa_style = Agilibox::FontAwesomeHelper.default_fa_style_for_id(id)
|
7
7
|
end
|
8
8
|
|
9
9
|
css_classes = options.delete(:class).to_s.split(" ")
|
@@ -43,5 +43,15 @@ module Agilibox::FontAwesomeHelper
|
|
43
43
|
require "font_awesome/sass/version"
|
44
44
|
FontAwesome::Sass::VERSION
|
45
45
|
end
|
46
|
+
|
47
|
+
def default_fa_style_for_id(id)
|
48
|
+
return if version.start_with?("4")
|
49
|
+
|
50
|
+
if version.start_with?("5")
|
51
|
+
return Agilibox::FontAwesomeHelper.database.dig(id, :styles).to_a.first
|
52
|
+
end
|
53
|
+
|
54
|
+
raise "invalid font-awesome-sass version"
|
55
|
+
end
|
46
56
|
end # class << self
|
47
57
|
end
|
data/lib/agilibox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agilibox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agilidée
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-i18n
|