weloveiconfonts_rails 1.0.3 → 1.1.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: c597e96c2dbdb1e9e03df1d3a4d7c36d22824d11
4
- data.tar.gz: 948f1df897274edc3448387c5ba895e07abd11bf
3
+ metadata.gz: 099fa8710fdfd9d9855d7b40ce01d5d57a91cb6d
4
+ data.tar.gz: 9e05f8bfc3f5600a4828c066bf067a61ab2f9d58
5
5
  SHA512:
6
- metadata.gz: b19ce1913a1bf4b96b2dc7c24833ff4368be1acb2d515465225c789464fe188b9e2b232f27f4e48eab9bc7ffe06d1ec4bf7edaa7b79c911c4790a56290195945
7
- data.tar.gz: 3b992b0c97de727913e7370fbd2d868903a5c5d3b79b2355fad98f411568d699619b874471715cb604aa826f19982da9bf1e1cc75f115f1bdff0dc5a7088138e
6
+ metadata.gz: b3c5322937d9da9c4d8eac4ff5a2a93d9f2b677bc1d044731b98bfd0ce112c2d413554317acd334aef5b07dbab006864343c7de58149ef5ff9d40efc3885bd06
7
+ data.tar.gz: 4437c53b5e139a9685eda71149f2e059d36944f7d60145faf45cb6f5f93c556eeb6ec62c4571856c282ec1a5b1fc714d7e9b8004b434eb03ebed2bd7f1e3b17c
@@ -1,7 +1,37 @@
1
1
  module WeLoveIconFontsHelper
2
2
  def iconfont_facebook(options = {})
3
- options[:background] = '#3b5998' if options[:background].to_s.empty?
3
+ options[:background] = '#4b70ab' if options[:background].to_s.empty?
4
4
  options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
5
5
  iconfont('fontawesome-facebook', options)
6
6
  end
7
+
8
+ def iconfont_linkedin(options = {})
9
+ options[:background] = '#0087be' if options[:background].to_s.empty?
10
+ options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
11
+ iconfont('zocial-linkedin', options)
12
+ end
13
+
14
+ def iconfont_github(options = {})
15
+ options[:background] = '#333333' if options[:background].to_s.empty?
16
+ options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
17
+ iconfont('fontawesome-github', options)
18
+ end
19
+
20
+ def iconfont_bitbucket(options = {})
21
+ options[:background] = '#205081' if options[:background].to_s.empty?
22
+ options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
23
+ iconfont('zocial-bitbucket', options)
24
+ end
25
+
26
+ def iconfont_mail(options = {})
27
+ options[:background] = '#dd4b39' if options[:background].to_s.empty?
28
+ options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
29
+ iconfont('zocial-email', options)
30
+ end
31
+
32
+ def iconfont_document(options = {})
33
+ options[:background] = '#fb7629' if options[:background].to_s.empty?
34
+ options[:foreground] = '#ffffff' if options[:foreground].to_s.empty?
35
+ iconfont('entypo-doc-text', options)
36
+ end
7
37
  end
@@ -1,6 +1,6 @@
1
- if defined?(ActionView::Helpers)
1
+ ActiveSupport.on_load(:action_view) do
2
2
  require 'we_love_icon_fonts/base'
3
- ActionView::Helpers.include(WeLoveIconFonts::Base)
3
+ include WeLoveIconFonts::Base
4
4
  end
5
5
 
6
6
  if defined?(Rails)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weloveiconfonts_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herman Zvonimir Došilović