ui_bibz 2.1.3 → 2.1.4

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: d5c8ee009ca6a7751e3c7201b975e3943acb6065
4
- data.tar.gz: c87cd2632f56a8e05db95992200aa3936229c904
3
+ metadata.gz: 4a39899ab9d132cc84ba4177ae331f20b5aea5e6
4
+ data.tar.gz: f966b6906aa6ca843e1a097e57d1c5d94d7a6c7f
5
5
  SHA512:
6
- metadata.gz: d2aa81787c42ae4e542c818dc55bb0aa2ecfc1abd42b1411d11e8bc38e33dbda3e2e9beebf12af73bd8704d987bb7d3400c0feb39e483f9e118c5cadf0762a2e
7
- data.tar.gz: 64c48f832fc4ee7e25ee964ecf8b3fe0e8349b31b0bd3a4125a3ee7199d9034e67fd2d67859f75986092da436cc091d882e0b6fd1d005f60a7c3589552502d25
6
+ metadata.gz: 3cf60fc265ae65066246f684ce477809cd2f6c5cc88b967b29de8eb5cce252adf27ece75cdf1025c11346b88d1189d5a478ac3bfb3a6d1143e59f9a9293acf0f
7
+ data.tar.gz: 0e55735e910c8f7120b5a72bf3c4cebe051d0097e10944ca2cb8604b76f45e1687eda7691a5e61af2eab93e481ad89d52857992e2558c5da44897244d7dd3e79
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (2.1.3)
4
+ ui_bibz (2.1.4)
5
5
  bootstrap (= 4.1.3)
6
6
  haml
7
7
  haml-rails
@@ -110,7 +110,7 @@ GEM
110
110
  mini_mime (>= 0.1.1)
111
111
  marcel (0.3.3)
112
112
  mimemagic (~> 0.3.2)
113
- method_source (0.9.1)
113
+ method_source (0.9.2)
114
114
  mimemagic (0.3.2)
115
115
  mini_mime (1.0.1)
116
116
  mini_portile2 (2.3.0)
@@ -118,7 +118,7 @@ GEM
118
118
  nio4r (2.3.1)
119
119
  nokogiri (1.8.5)
120
120
  mini_portile2 (~> 2.3.0)
121
- popper_js (1.14.3)
121
+ popper_js (1.14.5)
122
122
  rack (2.0.6)
123
123
  rack-test (1.1.0)
124
124
  rack (>= 1.0, < 3)
@@ -152,7 +152,7 @@ GEM
152
152
  ffi (>= 0.5.0, < 2)
153
153
  ruby_parser (3.11.0)
154
154
  sexp_processor (~> 4.9)
155
- sass (3.7.1)
155
+ sass (3.7.2)
156
156
  sass-listen (~> 4.0.0)
157
157
  sass-listen (4.0.0)
158
158
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -181,7 +181,7 @@ GEM
181
181
  sprockets (>= 3.0.0)
182
182
  sqlite3 (1.3.13)
183
183
  temple (0.8.0)
184
- thor (0.20.0)
184
+ thor (0.20.3)
185
185
  thread_safe (0.3.6)
186
186
  tilt (2.0.8)
187
187
  tzinfo (1.2.5)
@@ -42,26 +42,27 @@
42
42
 
43
43
  constructor: (args = {}) ->
44
44
  @turbolinks = args.turbolinks
45
- @fontawesomejs = args.fontawesomejs || true
46
- return this
45
+ @fontawesomejs = if args.fontawesomejs? then args.fontawesomejs else true
46
+ return false
47
47
 
48
- load: ->
49
- # https://github.com/tomkra/font_awesome5_rails/issues/17
50
- FontAwesome.config =
51
- observeMutations: false
52
- FontAwesome.dom.i2svg()
48
+ initial: (fontawesomejs) ->
49
+ if fontawesomejs
50
+ # https://github.com/tomkra/font_awesome5_rails/issues/17
51
+ FontAwesome.config =
52
+ observeMutations: false
53
+ FontAwesome.dom.i2svg()
53
54
 
54
55
  new window.UiBibzTable()
55
56
  new window.UiBibzForm()
56
57
  new window.UiBibzInterface()
57
58
  new window.UiBibzFormula()
58
- $( "textarea[data-provide*='markdown']" ).markdown() # fix markdown js if turbolinks exists
59
+ $("textarea[data-provide*='markdown']").markdown() # fix markdown js if turbolinks exists
59
60
  return false
60
61
 
61
62
  ready: ->
62
63
  me = this
63
64
  if @turbolinks?
64
- $(document).on('turbolinks:load', me.load) # catch event for turbolinks and fix in ready() function
65
+ $(document).on('turbolinks:load', me.initial(@fontawesomejs)) # catch event for turbolinks and fix in ready() function
65
66
  else
66
- $(document).on('ready', me.load)
67
+ $(document).on('ready', me.initial(@fontawesomejs))
67
68
 
data/lib/ui_bibz/infos.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module UiBibz
2
2
  NAME = "Ui Bibz"
3
- VERSION = "2.1.3"
3
+ VERSION = "2.1.4"
4
4
  DESCRIPTION = "A Rails Interface Framework using Bootstrap."
5
5
  SUMMARY = "Create your project with Ui Bibz. Over a thirty reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more."
6
6
  LICENSE = "MIT"
@@ -30,8 +30,9 @@ module GlyphExtension
30
30
  {}
31
31
  end
32
32
 
33
- glyph_options[:text] = options[:text] unless options[:text].nil?
34
- glyph_options[:content] = options[:content] unless options[:content].nil?
33
+ glyph_options[:text] = options[:text] unless options[:text].nil?
34
+ glyph_options[:content] = options[:content] unless options[:content].nil?
35
+ glyph_options[:shortcut] = options[:shortcut] unless options[:shortcut].nil?
35
36
 
36
37
  UiBibz::Utils::GlyphChanger.new(glyph_options[:name], glyph_options).render unless glyph_options[:name].nil?
37
38
  end
@@ -34,7 +34,8 @@ module UiBibz::Utils
34
34
  else
35
35
  glyph_name = @glyph_options
36
36
  glyph_opts = @options
37
- glyph_html_opts = @options[:text].nil? ? {} : (@options[:text] ? {} : { title: @options[:content] })
37
+ title = [(@options[:content] unless @options[:text]), ("<kbd>#{ @options[:shortcut] }</kbd>" unless @options[:shortcut].nil?)].compact.join(" ")
38
+ glyph_html_opts = title.blank? ? {} : { title: title.html_safe }
38
39
  end
39
40
 
40
41
  UiBibz::Ui::Core::Icons::Glyph.new(glyph_name, glyph_opts, glyph_html_opts).render unless glyph_name.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails