diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 691241a..be18252 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,12 +7,10 @@ jobs: matrix: ruby-version: - 2.0 - - 2.5 - - 2.6 - 2.7 - 3.0 + - 3.4 - ruby-head - - jruby-9.1 - jruby-head name: Ruby ${{ matrix.ruby-version }} sample steps: diff --git a/detect_language.gemspec b/detect_language.gemspec index 47d2552..ccdcdea 100644 --- a/detect_language.gemspec +++ b/detect_language.gemspec @@ -8,7 +8,9 @@ Gem::Specification.new do |gem| gem.summary = %q{Detects language of given text. Returns detected language codes and scores.} gem.homepage = "https://github.com/detectlanguage/detectlanguage-ruby" - gem.files = `git ls-files`.split($\) + gem.files = %w(LICENSE README.md detect_language.gemspec) + gem.files += Dir.glob('lib/**/*.{rb}') + gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.name = "detect_language" diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..c85867a --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +ruby = "3.4.5"