File: Rakefile

package info (click to toggle)
ruby-prawn-icon 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,228 kB
  • sloc: ruby: 1,370; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# encoding: utf-8
#
# Copyright October 2014, Jesse Doyle. All rights reserved.
#
# This is free software. Please see the LICENSE and COPYING files for details.

require 'bundler'
Bundler.setup

require 'rake'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

task :default => [:spec, :rubocop]

desc 'Run all rspec files'
RSpec::Core::RakeTask.new('spec') do |c|
  c.rspec_opts = '-t ~unresolved'
end

desc 'Generate the legend documents for all icon fonts.'
task :legend do
  example = File.join(File.dirname(__FILE__), 'examples', '*.rb')
  files = Dir[example]
  files.reject! { |f| File.basename(f) == 'example_helper.rb' }
  files.each do |file|
    puts "Generating from: #{file}"
    require file
  end
  puts 'All Done!'
end

RuboCop::RakeTask.new