Skip to content

Commit e97a0f5

Browse files
committed
fix bug in generated gemspec for Ruby 3.3
1 parent 31fa4e2 commit e97a0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gli/commands/scaffold.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def self.mk_rakefile(root_dir,dry_run,project_name,create_test_dir)
121121
rd.title = 'Your application title'
122122
end
123123
124-
spec = eval(File.read('#{project_name}.gemspec'))
124+
spec = Gem::Specification.load("#{project_name}.gemspec")
125125
126126
Gem::PackageTask.new(spec) do |pkg|
127127
end

0 commit comments

Comments
 (0)