diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-25 14:17:12 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-25 14:17:12 +0200 |
| commit | 2a70161abe24ae130041aaca3eec79e63d08a5f5 (patch) | |
| tree | 5dd5cbdfda525eaaaf857513dafc322096eeaf47 /Rakefile | |
| parent | 14b7da239879d5299775c48666b43f3016add8ec (diff) | |
| download | caxlsx-2a70161abe24ae130041aaca3eec79e63d08a5f5.tar.gz caxlsx-2a70161abe24ae130041aaca3eec79e63d08a5f5.zip | |
Fix StringConcatenation offenses (non-production)
Prefer interpolation over concatenation
```
Comparison ("String#{'String'}" vs 'String' + 'String'):
interpolation: 11821321.0 i/s
concatenation: 8849491.7 i/s - 1.34x (± 0.00) slower
```
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,13 +1,13 @@ # frozen_string_literal: true -require File.expand_path(File.dirname(__FILE__) + '/lib/axlsx/version.rb') +require File.expand_path("#{File.dirname(__FILE__)}/lib/axlsx/version.rb") task build: :gendoc do system "gem build axlsx.gemspec" end task :benchmark do - require File.expand_path(File.dirname(__FILE__) + '/test/benchmark.rb') + require File.expand_path("#{File.dirname(__FILE__)}/test/benchmark.rb") end task :gendoc do |
