Skip to content

Commit

Permalink
Cleanup Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Sep 8, 2022
1 parent 73d1afe commit 1a854ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
21 changes: 8 additions & 13 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
require 'bundler/gem_tasks'
# frozen_string_literal: true

require "bundler/gem_tasks"

# Run test by default.
task :default => :spec
task :test => :spec
task default: [:test]


require 'rspec/core/rake_task'
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new do |t|
t.verbose = !ENV["VERBOSE"].nil?
end

task test: :spec

require 'yard'

require "yard/rake/yardoc_task"

YARD::Rake::YardocTask.new(:yardoc) do |y|
y.options = ["--output-dir", "yardoc"]
end

namespace :yardoc do
task :clobber do
rm_r "yardoc" rescue nil
end
end

task :clobber => "yardoc:clobber"
CLOBBER.include "yardoc"


Dir["tasks/**/*.rake"].each do |file|
Expand Down
18 changes: 9 additions & 9 deletions whois-parser.gemspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
require 'whois/parser/version'
$:.push File.expand_path("../lib", __FILE__)
require "whois/parser/version"

Gem::Specification.new do |s|
s.name = 'whois-parser'
s.name = "whois-parser"
s.version = Whois::Parser::VERSION
s.authors = ['Simone Carletti']
s.email = ['weppos@weppos.net']
s.homepage = 'https://whoisrb.org/'
s.summary = 'A pure Ruby WHOIS parser.'
s.description = 'Whois Parser is a WHOIS parser written in pure Ruby. It can parse and convert responses into easy-to-use Ruby objects.'
s.license = 'MIT'
s.authors = ["Simone Carletti"]
s.email = ["weppos@weppos.net"]
s.homepage = "https://whoisrb.org/"
s.summary = "A pure Ruby WHOIS parser."
s.description = "Whois Parser is a WHOIS parser written in pure Ruby. It can parse and convert responses into easy-to-use Ruby objects."
s.license = "MIT"

s.required_ruby_version = ">= 2.3"

Expand Down

0 comments on commit 1a854ad

Please sign in to comment.