udongo 7.1.2 → 7.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/icon_helper.rb +17 -3
- data/app/inputs/button_radios_input.rb +6 -0
- data/changelog.md +6 -0
- data/config/environment.rb +0 -0
- data/lib/udongo/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a8868b90455b60b96f91fe0c563ab19bac5adb6
|
4
|
+
data.tar.gz: 67b57f1669cd4bde2ae0bb680e1a24d7922ede61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7b5b8e9df01cf64d6dd188dd19ae627bf0674ca4ac65130b7101d65e3288fc70b0e5099664c364762fead9ac932bbef151c969e3be44177b7775797f193b0ee
|
7
|
+
data.tar.gz: cb560a8b8025d206a9e78f357e179ba62298fe21c6de05a535137b135a9342074f243c02473556d855694e832f55b2571641c8a4bc3441891a278a5703f0617a
|
data/app/helpers/icon_helper.rb
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
module IconHelper
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
# I wanted to make a named param out of label, though this would imply a
|
3
|
+
# backwards incompatible change that would require a non-trivial amount of
|
4
|
+
# editing.
|
5
|
+
#
|
6
|
+
# If you want to take this along with the next planned major release, you can
|
7
|
+
# use the following CMD in bash (assuming you have silver searcher installed)
|
8
|
+
# to get a list of all icon calls that pass anything more than just a name.
|
9
|
+
#
|
10
|
+
# ag 'icon\((:|")(\w+), '
|
11
|
+
#
|
12
|
+
def icon(name, lbl = nil, options = {})
|
13
|
+
classes = "fa fa-#{name.to_s.tr('_', '-')}"
|
14
|
+
classes = classes.concat(" #{options[:class].to_s}") if options[:class]
|
15
|
+
options[:class] = classes
|
16
|
+
|
17
|
+
markup = content_tag :i, nil, options
|
18
|
+
lbl ? "#{markup} #{lbl}".html_safe : markup
|
5
19
|
end
|
6
20
|
end
|
data/changelog.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
7.1.3 - 2017-11-30
|
2
|
+
--
|
3
|
+
* Added a third parameter to IconHelper#icon that makes it possible to pass
|
4
|
+
additional HTML attributes, including additional classes.
|
5
|
+
|
6
|
+
|
1
7
|
7.1.2 - 2017-11-19
|
2
8
|
--
|
3
9
|
* Make the plain/html content storage of the email model a lot bigger.
|
File without changes
|
data/lib/udongo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: udongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davy Hellemans
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-11-
|
12
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -536,6 +536,7 @@ files:
|
|
536
536
|
- app/helpers/page_helper.rb
|
537
537
|
- app/helpers/snippet_helper.rb
|
538
538
|
- app/helpers/udongo_helper.rb
|
539
|
+
- app/inputs/button_radios_input.rb
|
539
540
|
- app/inputs/date_picker_input.rb
|
540
541
|
- app/inputs/date_range_picker_input.rb
|
541
542
|
- app/mailers/general_mailer.rb
|
@@ -744,6 +745,7 @@ files:
|
|
744
745
|
- app/views/layouts/backend/login.html.erb
|
745
746
|
- app/views/layouts/frontend/application.html.erb
|
746
747
|
- changelog.md
|
748
|
+
- config/environment.rb
|
747
749
|
- config/initializers/assets.rb
|
748
750
|
- config/initializers/ckeditor.rb
|
749
751
|
- config/initializers/core_ext/string.rb
|