# -*- ruby -*- # Release: # * update *.wiki markdown documentation for GitLab # * enable :git # * rake run_before_release # * disable :git # * Checkin # * rake release # * rake run_after_release require 'rubygems' require 'hoe' # rubocop:disable Metrics/LineLength ############################################# DEVELOPING ZONE ######################################################### Hoe.plugin :bundler Hoe.plugin :doofus Hoe.plugin :email #Hoe.plugin :gemspec # Hoe.plugin :gem_prelude_sucks Hoe.plugins.delete :git #Hoe.plugin :git Hoe.plugin :highline #Hoe.plugin :inline Hoe.plugin :manns Hoe.plugin :rubocop Hoe.plugin :rubygems # Hoe.plugin :seattlerb Hoe.plugin :travis Hoe.plugin :version Hoe.plugin :website Hoe.spec 'publican_creators' do developer('Sascha Manns', 'samannsml@directbox.com') license 'MIT' # this should match the license in the README require_ruby_version '>= 2.2.0' email_to << 'ruby-talk@ruby-lang.org' #email_to << 'Sascha.Manns@bdvb.de self.history_file = 'History.rdoc' self.readme_file = 'README.rdoc' self.extra_rdoc_files = FileList['*.rdoc'].to_a self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://gitlab.com/saigkill/publican_creators/issue' dependency 'setup', '~> 5.2' dependency 'nokogiri', '~> 1.6.7' dependency 'parseconfig', '~> 1.0' dependency 'rainbow', '~> 2.1' dependency 'notifier', '~> 0.5' extra_dev_deps << ['coveralls', '~> 0.8'] extra_dev_deps << ['hoe-bundler', '~> 1.2'] extra_dev_deps << ['hoe-gemspec', '~> 1.0'] extra_dev_deps << ['hoe-git', '~> 1.6'] extra_dev_deps << ['hoe-rubygems', '~> 1.0'] extra_dev_deps << ['hoe-manns', '~> 1.4'] extra_dev_deps << ['hoe-reek', '~> 1.1'] extra_dev_deps << ['hoe-rubocop', '~> 1.0'] extra_dev_deps << ['hoe-version', '~> 1.2'] extra_dev_deps << ['hoe-seattlerb', '~> 1.3'] extra_dev_deps << ['hoe', '~> 3.14'] extra_dev_deps << ['rake', '~> 10.5'] extra_dev_deps << ['gem-release', '~> 0.7'] extra_dev_deps << ['indexer', '~> 0.3'] extra_dev_deps << ['manns_shared', '~> 1.0'] extra_dev_deps << ['bundler', '~> 1.11'] extra_dev_deps << ['rspec', '~> 3.4'] extra_dev_deps << ['rubocop', '~> 0.36'] extra_dev_deps << ['simplecov', '~> 0.11'] end ###################################### SETUP ZONE ##################################################################### require 'etc' require 'fileutils' desc 'Create Desktop files' task :create_desktop_cre do home = Dir.home prefix = "#{home}/.rvm/rubies/default" datadir = "#{prefix}/share" publicancre = "#{home}/.local/share/applications/publicancreators.desktop" publicancreico = "#{datadir}/publican_creators/publican.png" system("sudo rm #{publicancre}") if File.exists?(publicancre) puts 'Creating Desktop file for PublicanCreators'.color(:yellow) FileUtils.touch "#{publicancre}" File.write "#{publicancre}", < [:setup_start, :create_desktop_cre, :create_desktop_rev, :backup_config] do system('setup.rb uninstall --force') system('setup.rb config --sysconfdir=$HOME/.manns_shared') system('setup.rb install') end # vim: syntax=ruby