diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9330ac6..3ef7dbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', 'ruby-head'] + ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', 'ruby-head'] continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }} steps: - uses: actions/checkout@v3 @@ -21,3 +21,5 @@ jobs: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Tests run: bundle exec rake test + env: + RUBYOPT: "--enable=frozen_string_literal" diff --git a/lib/net/scp.rb b/lib/net/scp.rb index 1bb4333..c4eacf1 100644 --- a/lib/net/scp.rb +++ b/lib/net/scp.rb @@ -329,7 +329,7 @@ def download!(remote, local=nil, options={}, &progress) # (:verbose, :recursive, :preserve). Returns the command-line as a # string, ready to execute. def scp_command(mode, options) - command = "scp " + command = String.new("scp ") command << (mode == :upload ? "-t" : "-f") command << " -v" if options[:verbose] command << " -r" if options[:recursive]