Sha256: 2c2d1561c1720512067ddfdcb30f9107ddedb653a0837fccdaa23b5b24f31d1c

Contents?: true

Size: 948 Bytes

Versions: 11

Compression:

Stored size: 948 Bytes

Contents

require 'bundler/gem_tasks'

require 'rubygems/tasks'
Gem::Tasks.new(release: false)

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

task :test do
  sh "rspec"
  sh "rubocop"
end

task default: :spec

desc "copy in PayrollHero's current style config files"
task :styleguide do
  require 'faraday'
  require 'pry'
  base = "https://raw.githubusercontent.com/payrollhero/styleguide/master/"
  files = %w{
    .rubocop.hound.yml
    .rubocop.yml
    .codeclimate.yml
  }
  files.each do |file|
    puts "Fetching #{file} ..."
    url = "#{base}#{file}"
    rsp = Faraday.get(url)
    unless rsp.status == 200
      $stderr.puts "failing fetching: #{url}"
      $stderr.puts "  response: #{rsp.status}: #{rsp.body}"
      exit 1
    end
    File.open(file, "w") do |fh|
      fh.write(rsp.body)
    end
  end
end

desc "Updates the changelog"
task :changelog do
  sh "github_changelog_generator payrollhero/webhook_system --simple-list"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webhook_system-2.3.1 Rakefile
webhook_system-2.3.0 Rakefile
webhook_system-2.2.0 Rakefile
webhook_system-2.1.6 Rakefile
webhook_system-2.1.5 Rakefile
webhook_system-2.1.4 Rakefile
webhook_system-2.1.3 Rakefile
webhook_system-2.1.2 Rakefile
webhook_system-2.1.1 Rakefile
webhook_system-2.1.0 Rakefile
webhook_system-2.0.0 Rakefile