summaryrefslogtreecommitdiff
path: root/test/racc/scandata/percent
blob: fded9a385cd88aadc27b4efdaa76ed7cd13cbf0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    3 % 5         # mod
    3%5           # mod
    3% 5          # mod
    i % 5         # mod
    i%5           # mod
    i% 5          # mod
    call %{str}   # string
    call(%{str})  # string
    %q{string}    # string
    %Q{string}    # string
    %r{string}    # string
    %w(array)     # array
    %x{array}     # command string
    %{string}     # string
    %_string_     # string
    %/string/     # regexp
}
likely that you need to grant write permissions for that path. ``` This happened because the EACCESS error was caught by `SharedHelpers.filesystem_access`, which makes it look like the target directory is at fault instead of the source. We can't simply drop this guard because that causes the opposite problem: the permission error appears to come from the source instead of the target, since `CompactIndexClient::Cache#lines` also wraps read access errors. Instead, bring a minimal implementation of `FileUtils.cp` and nest calls to `SharedHelpers.filesystem_access` properly. https://github.com/rubygems/rubygems/commit/320822c070 Co-authored-by: Stan Hu <stanhu@gmail.com> 2022-01-19Merge rubygems/rubygems HEAD.Hiroshi SHIBATA Picked at 12aeef6ba9a3be0022be9934c1a3e4c46a03ed3a Notes: Merged: https://github.com/ruby/ruby/pull/5462 2021-12-04[rubygems/rubygems] Let original EACCES error be raisedDavid Rodríguez This block of code already wraps file operations with `SharedHelpers.filesystem_access`, which rescues and re-raises more friendly errors. Also, I'm not fully sure creating a temporary directory can end up raising an `Errno::EACCES` error from reading `tmpdir` sources. Finally, this rescue block apparently leads to some false positives when firewall is blocking the ruby executable on Windows, or at least that's what we've got reported. In any case, I think it's best to let the original error be raised. https://github.com/rubygems/rubygems/commit/f7dbe54404 2021-05-11Sync bundler & rubygemsDavid Rodríguez Notes: Merged: https://github.com/ruby/ruby/pull/4367 2021-04-15Merge the master branch of BundlerHiroshi SHIBATA Notes: Merged: https://github.com/ruby/ruby/pull/4383 2021-03-08Sync latest development version of bundler & rubygemsDavid Rodríguez Notes: Merged: https://github.com/ruby/ruby/pull/4143 2020-12-23Merge RubyGems 3.2.3 and Bundler 2.2.3Hiroshi SHIBATA Notes: Merged: https://github.com/ruby/ruby/pull/3982 2020-12-08Merge prepare version of Bundler 2.2.0Hiroshi SHIBATA Notes: Merged: https://github.com/ruby/ruby/pull/3864 2020-10-15Merge bundler-2.2.0.rc.2Hiroshi SHIBATA Notes: Merged: https://github.com/ruby/ruby/pull/3659 2020-06-05[rubygems/rubygems] Revert multi ruby{,gems} version requirement fixDavid Rodríguez This reverts commit 20f06d9e178211a3016133852b72d21ac7bb93ad, reversing changes made to f2b30cb70df8a518bef0e8a64bbceb86234d922d. https://github.com/rubygems/rubygems/commit/40802bdb18 Notes: Merged: https://github.com/ruby/ruby/pull/3184 2020-05-13Update the bundler version with master branchHiroshi SHIBATA Notes: Merged: https://github.com/ruby/ruby/pull/3086 2019-06-09Merge bundler master from upstream.Hiroshi SHIBATA Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0 2019-04-14Merge Bundler 2.1.0.pre.1 as developed version from upstream.hsbt https://github.com/bundler/bundler/commit/a53709556b95a914e874b22ed2116a46b0528852 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2018-11-02Added bundler as default gems. Revisit [Feature #12733]hsbt * bin/*, lib/bundler/*, lib/bundler.rb, spec/bundler, man/*: Merge from latest stable branch of bundler/bundler repository and added workaround patches. I will backport them into upstream. * common.mk, defs/gmake.mk: Added `test-bundler` task for test suite of bundler. * tool/sync_default_gems.rb: Added sync task for bundler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2017-12-22Postponing the Bundler merge.hsbt I faced a big issue about Bundler with ruby core. I have no time to resolve it issue before 2.5 final release. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2017-11-01Update bundled bundler to 1.16.0.hsbt * lib/bundler, spec/bundler: Merge bundler-1.16.0. * common.mk: rspec examples of bundler-1.16.0 needs require option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2017-09-08Merge bundler to standard libraries.hsbt rubygems 2.7.x depends bundler-1.15.x. This is preparation for rubygems and bundler migration. * lib/bundler.rb, lib/bundler/*: files of bundler-1.15.4 * spec/bundler/*: rspec examples of bundler-1.15.4. I applied patches. * https://github.com/bundler/bundler/pull/6007 * Exclude not working examples on ruby repository. * Fake ruby interpriter instead of installed ruby. * Makefile.in: Added test task named `test-bundler`. This task is only working macOS/linux yet. I'm going to support Windows environment later. * tool/sync_default_gems.rb: Added sync task for bundler. [Feature #12733][ruby-core:77172] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e