From 2ced5a74660775ffea5c656d9a781190b8eccdfc Mon Sep 17 00:00:00 2001 From: Eric Proulx Date: Sun, 22 Oct 2023 16:57:17 +0200 Subject: [PATCH] Refactor files to includes only 'lib/**/*', '*.md', 'LICENSE', 'roo.gemspec', 'examples/**/*' --- roo.gemspec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/roo.gemspec b/roo.gemspec index c6561c22..d5c78f13 100644 --- a/roo.gemspec +++ b/roo.gemspec @@ -1,7 +1,6 @@ -# encoding: utf-8 -lib = File.expand_path('../lib', __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'roo/version' +# frozen_string_literal: true + +require_relative 'lib/roo/version' Gem::Specification.new do |spec| spec.name = 'roo' @@ -13,14 +12,13 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/roo-rb/roo' spec.license = 'MIT' - spec.files = `git ls-files -z`.split("\x0") - spec.files.reject! { |fn| fn.include?('test/files') } + spec.files = Dir['lib/**/*', '*.md', 'LICENSE', 'roo.gemspec', 'examples/**/*'] spec.require_paths = ['lib'] if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' - spec.required_ruby_version = ">= 2.6.0" + spec.required_ruby_version = '>= 2.6.0' else - spec.required_ruby_version = ">= 2.7.0" + spec.required_ruby_version = '>= 2.7.0' end spec.add_dependency 'nokogiri', '~> 1'