Sha256: d98e03cb02dd50a4de7580f380adb9c5455e0e85a5e0f5174fcc24f3cde4ef5d

Contents?: true

Size: 973 Bytes

Versions: 16

Compression:

Stored size: 973 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

# # temp fix for NoMethodError: undefined method `last_comment'
# # remove when fixed in Rake 11.x and higher
# module TempFixForRakeLastComment
#   def last_comment
#     last_description
#   end
# end
# Rake::Application.send :include, TempFixForRakeLastComment
# ### end of tempfix

RSpec::Core::RakeTask.new(:spec)

require "rubocop/rake_task"

RuboCop::RakeTask.new

require "rake/extensiontask"

if RUBY_ENGINE == 'jruby'

  task default: %i[spec]

else
  task build: :compile

  Rake::ExtensionTask.new("smarter_csv") do |ext|
    ext.lib_dir = "lib/smarter_csv"
    ext.ext_dir = "ext/smarter_csv"
    ext.source_pattern = "*.{c,h}"
  end

  # task default: %i[clobber compile spec rubocop]
  task default: %i[clobber compile spec]
end

desc 'Run spec with coverage'
task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['spec'].execute
  `open coverage/index.html`
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
smarter_csv-1.13.0 Rakefile
smarter_csv-1.12.1 Rakefile
smarter_csv-1.12.0 Rakefile
smarter_csv-1.12.0.pre1 Rakefile
smarter_csv-1.11.2 Rakefile
smarter_csv-1.11.1 Rakefile
smarter_csv-1.11.0 Rakefile
smarter_csv-1.10.3 Rakefile
smarter_csv-1.10.2 Rakefile
smarter_csv-1.11.0.pre2 Rakefile
smarter_csv-1.11.0.pre1 Rakefile
smarter_csv-1.10.1 Rakefile
smarter_csv-1.10.0 Rakefile
smarter_csv-1.9.3 Rakefile
smarter_csv-1.9.2 Rakefile
smarter_csv-1.9.2.pre01 Rakefile