List support for setting_set and fontawesome update to 5.0.4

This commit is contained in:
Alexander Meindl 2018-01-15 11:30:42 +01:00
parent 910afc9126
commit 5ceead7d28
20 changed files with 25 additions and 10 deletions

View File

@ -5,7 +5,8 @@ Changelog
++++++++++++++++++++
- Provide XLSX helper (and drop XLS helper)
- FontAwsome 5.0.3 support
- FontAwsome 5.0.4 support
- add list support for rake task setting_set
2.0.7
+++++

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,6 +1,6 @@
<?xml version="1.0" standalone="no"?>
<!--
Font Awesome Free 5.0.3 by @fontawesome - http://fontawesome.com
Font Awesome Free 5.0.4 by @fontawesome - http://fontawesome.com
License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
-->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >

Before

Width:  |  Height:  |  Size: 491 KiB

After

Width:  |  Height:  |  Size: 491 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
<?xml version="1.0" standalone="no"?>
<!--
Font Awesome Free 5.0.3 by @fontawesome - http://fontawesome.com
Font Awesome Free 5.0.4 by @fontawesome - http://fontawesome.com
License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
-->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
<?xml version="1.0" standalone="no"?>
<!--
Font Awesome Free 5.0.3 by @fontawesome - http://fontawesome.com
Font Awesome Free 5.0.4 by @fontawesome - http://fontawesome.com
License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
-->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >

Before

Width:  |  Height:  |  Size: 354 KiB

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -33,6 +33,7 @@ setting_set
:param string name: name of the plugin or redmine (this is optional, if not defined redmine is used)
:param string setting: name of setting
:param string value: value for setting
:param string values: list of values (seperator is ,) to generate value array automaticaly
Examples
++++++++
@ -41,7 +42,14 @@ Set application title for Redmine
.. code-block:: smarty
bundle exec rake redmine:additionals:setting_set RAILS_ENV=production name="additionals" setting="external_urls" value="2"
bundle exec rake redmine:additionals:setting_set RAILS_ENV=production setting="app_title" value="Redmine test instance"
Set default modules for new projects
.. code-block:: smarty
bundle exec rake redmine:additionals:setting_set RAILS_ENV=production setting="default_projects_modules" values="issue_tracking,time_tracking,wiki"
Set plugin setting ``external_urls`` for plugin additionals to value 2

View File

@ -22,13 +22,19 @@ namespace :redmine do
desc <<-DESCRIPTION
Set settings.
Example:
Example for value:
bundle exec rake redmine:additionals:setting_set RAILS_ENV=production name="additionals" setting="external_urls" value="2"
Example for list of value:
bundle exec rake redmine:additionals:setting_set RAILS_ENV=production setting="default_projects_modules" value="issue_tracking,time_tracking,wiki"
DESCRIPTION
task setting_set: :environment do
name = ENV['name'] ||= 'redmine'
setting = ENV['setting']
value = ENV['value']
value = if ENV['values'].present?
ENV['values'].split(',')
else
ENV['value']
end
if name.blank? || setting.blank? || value.blank?
puts 'Parameters setting and value are required.'