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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3cd32b4e76ede95b8dfd9b807efef5977524461
4
- data.tar.gz: 7dc480de3a68cb155adb6148d6a32dcefcb8a95e
3
+ metadata.gz: 9a8868b90455b60b96f91fe0c563ab19bac5adb6
4
+ data.tar.gz: 67b57f1669cd4bde2ae0bb680e1a24d7922ede61
5
5
  SHA512:
6
- metadata.gz: 852918bdc15d73352738b828373e1bc965657b9be960e6d5ecc3ee4432abfdcf9c1d52e58dd581e6178a1d705126cbe52679f0942ef9a95917c9b0055f073394
7
- data.tar.gz: 5762059b9bbe743f8c98272da0ea612c516554d2150886818150705914d61f8c9f62926982c6a2389215b8573b2ed9c3f80e02fae38c5aefe6f7666b8c8889e3
6
+ metadata.gz: b7b5b8e9df01cf64d6dd188dd19ae627bf0674ca4ac65130b7101d65e3288fc70b0e5099664c364762fead9ac932bbef151c969e3be44177b7775797f193b0ee
7
+ data.tar.gz: cb560a8b8025d206a9e78f357e179ba62298fe21c6de05a535137b135a9342074f243c02473556d855694e832f55b2571641c8a4bc3441891a278a5703f0617a
@@ -1,6 +1,20 @@
1
1
  module IconHelper
2
- def icon(name, label = nil)
3
- markup = content_tag :i, nil, class: "fa fa-#{name.to_s.tr('_', '-')}"
4
- label ? "#{markup} #{label}".html_safe : markup
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
@@ -0,0 +1,6 @@
1
+ class ButtonRadiosInput < SimpleForm::Inputs::Base
2
+ def input(wrapper_options = nil)
3
+ merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
4
+ f.radio_button :toggle, value: 'success_message', as: :boolean
5
+ end
6
+ 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
@@ -1,3 +1,3 @@
1
1
  module Udongo
2
- VERSION = '7.1.2'
2
+ VERSION = '7.1.3'
3
3
  end
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.2
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-19 00:00:00.000000000 Z
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