Skip to content

Commit c07e5e7

Browse files
committed
Simplify
1 parent 4dfed8c commit c07e5e7

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

Rakefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,8 @@ task default: :spec
1111
namespace :spec do
1212
desc 'Runs real-model integration test (downloads ~357MB unless GLINER_MODEL_DIR is set)'
1313
task :integration do
14-
repo_id = ENV['REPO_ID'] || DEFAULT_REPO_ID
15-
model_file = ENV['MODEL_FILE'] || DEFAULT_MODEL_FILE
16-
model_subdir = ENV['MODEL_SUBDIR'] || DEFAULT_MODEL_SUBDIR
14+
env = { 'GLINER_INTEGRATION' => '1', }
1715

18-
Rake::Task['model:pull'].invoke unless ENV['GLINER_MODEL_DIR'] && !ENV['GLINER_MODEL_DIR'].empty?
19-
20-
model_dir = ENV['GLINER_MODEL_DIR']
21-
model_dir = File.expand_path("tmp/models/#{repo_id.tr('/', '__')}", __dir__) if model_dir.nil? || model_dir.empty?
22-
23-
env = {
24-
'GLINER_INTEGRATION' => '1',
25-
'GLINER_MODEL_DIR' => model_dir,
26-
'GLINER_MODEL_FILE' => model_file,
27-
'GLINER_MODEL_SUBDIR' => model_subdir
28-
}
2916
sh env, 'rspec', 'spec/integration_spec.rb'
3017
end
3118
end

lib/gliner/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Gliner
4-
VERSION = '0.2.1'
4+
VERSION = '0.2.2'
55
end

0 commit comments

Comments
 (0)