From 2872a7a10a05c8a90c23e1925c0bddf782885685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 5 Aug 2015 13:03:27 +0200 Subject: No publishing tools on 1.8 --- Rakefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Rakefile b/Rakefile index 30b3fc0..adcac18 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,5 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' -require 'github_changelog_generator/task' -require 'puppet_blacksmith' -require 'puppet_blacksmith/rake_tasks' Rake::Task[:lint].clear PuppetLint::RakeTask.new :lint do |config| @@ -13,8 +10,14 @@ end PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] -GitHubChangelogGenerator::RakeTask.new :changelog do |config| - m = Blacksmith::Modulefile.new - config.future_release = m.version - config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s" +# Publishing tasks +unless RUBY_VERSION =~ /^1\.8/ + require 'puppet_blacksmith' + require 'puppet_blacksmith/rake_tasks' + require 'github_changelog_generator/task' + GitHubChangelogGenerator::RakeTask.new :changelog do |config| + m = Blacksmith::Modulefile.new + config.future_release = m.version + config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s" + end end -- cgit v1.2.3