Age | Commit message (Collapse) | Author |
|
This decouples `gem exec` behavior (and tests) from the sort order of
the gemspec.
https://github.com/rubygems/rubygems/commit/911cd29159
|
|
When `gem exec foo` is run, and "foo" is a gem that has multiple
executables, none of them named "foo", raise an error explaining the
situation and telling user to be more specific.
Currently the first command in the executables array is run, but this
may come as surprising sometimes, so better raise an error.
https://github.com/rubygems/rubygems/commit/acda5d8f6e
Notes:
Merged: https://github.com/ruby/ruby/pull/12968
|
|
https://github.com/rubygems/rubygems/commit/2af077ee38
|
|
helpful.
https://github.com/rubygems/rubygems/commit/e7d6b92e31
|
|
https://github.com/rubygems/rubygems/commit/032b3c518a
|
|
add_runtime_dependency
https://github.com/rubygems/rubygems/commit/9a08043858
|
|
https://github.com/rubygems/rubygems/commit/bb66253f2c
|
|
Originally, the failed test case reported following error:
~~~
Failure: test_gem_exec_gem_uninstall(TestGemCommandsExecCommand):
<""> was expected to include
<"Successfully uninstalled a-2\n">.
/mnt/test/rubygems/test_gem_commands_exec_command.rb:742:in `block in test_gem_exec_gem_uninstall'
739:
740: # assert_empty @ui.error
741: refute_includes @ui.output, "running gem exec with"
=> 742: assert_includes @ui.output, "Successfully uninstalled a-2\n"
743:
744: invoke "--verbose", "gem", "uninstall", "b"
745: assert_includes @ui.output, "Successfully uninstalled b-2\n"
/mnt/lib/rubygems/user_interaction.rb:46:in `use_ui'
/mnt/lib/rubygems/user_interaction.rb:69:in `use_ui'
/mnt/test/rubygems/test_gem_commands_exec_command.rb:726:in `test_gem_exec_gem_uninstall'
~~~
This does not tell much. Empty string is more often good sign, but not
in this case. However, checking error output first helps with
understanding possible issue:
~~~
Failure: test_gem_exec_gem_uninstall(TestGemCommandsExecCommand):
<"ERROR: While executing gem ... (Gem::FilePermissionError)\n" +
" You don't have write permissions for the /builddir/bin directory.\n" +
"\t/mnt/lib/rubygems/uninstaller.rb:213:in `remove_executables'\n" +
... snip ...
/mnt/test/rubygems/test_gem_commands_exec_command.rb:740:in `block in test_gem_exec_gem_uninstall'
737: nil
738: end
739:
=> 740: assert_empty @ui.error
741: refute_includes @ui.output, "running gem exec with"
742: assert_includes @ui.output, "Successfully uninstalled a-2\n"
743:
/mnt/lib/rubygems/user_interaction.rb:46:in `use_ui'
/mnt/lib/rubygems/user_interaction.rb:69:in `use_ui'
/mnt/test/rubygems/test_gem_commands_exec_command.rb:726:in `test_gem_exec_gem_uninstall'
~~~
BTW this issue is caused by operating_system.rb overriding
`Gem.operating_system_defaults` method and explicitly adding `--bindir`
option.
https://github.com/rubygems/rubygems/commit/d98e36bbe7
|
|
https://github.com/rubygems/rubygems/commit/67ece7b8b6
|
|
https://github.com/rubygems/rubygems/commit/1d52eff8bf
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7582
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/7582
|
|
https://github.com/rubygems/rubygems/commit/80b57da926
|
|
https://github.com/rubygems/rubygems/commit/b490379eab
|
|
Layout/SpaceInsidePercentLiteralDelimiters
https://github.com/rubygems/rubygems/commit/c6de27fc6d
|
|
https://github.com/rubygems/rubygems/commit/75abd2e504
|
|
```
/path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:745: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
```
https://github.com/rubygems/rubygems/commit/e6a538b5c8
|
|
```
/path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:180: warning: assigned but unused variable - platforms
```
https://github.com/rubygems/rubygems/commit/7e022cb5e3
|
|
```
/path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:42: warning: `*' interpreted as argument prefix
```
https://github.com/rubygems/rubygems/commit/0806ebf4e0
|
|
https://github.com/rubygems/rubygems/commit/4403613fae
|
|
This test skipped sometimes due to failure to load 'rake/packagetask'.
This is due to manipulation of $LOAD_PATH by other rubygems tests. If
rake is loaded before any rubygems tests run, then it works fine.
To reproduce the skipping behavior:
$ make test-all TESTOPTS="-j6 --test-order=sorted test/rubygems/test_*.rb"
Notes:
Merged: https://github.com/ruby/ruby/pull/7394
|
|
|
|
https://github.com/rubygems/rubygems/commit/38ee82c297
|
|
https://github.com/rubygems/rubygems/commit/5fa0ebf09b
|
|
Gem.path_separator can also be a regexp...
https://github.com/rubygems/rubygems/commit/7e6e56a5f3
|
|
https://github.com/rubygems/rubygems/commit/3135ad91d4
|
|
For ruby-core compat
https://github.com/rubygems/rubygems/commit/c8f85c91a8
|
|
https://github.com/rubygems/rubygems/commit/f6877c29b9
|
|
for gem exec gem
https://github.com/rubygems/rubygems/commit/13a6dd4992
|
|
https://github.com/rubygems/rubygems/commit/a767f7b9be
|
|
Also fix native extensions that load dependencies
https://github.com/rubygems/rubygems/commit/a06f9870c7
|
|
gem exec
https://github.com/rubygems/rubygems/commit/664f3e1e5f
|
|
https://github.com/rubygems/rubygems/commit/3078e5834e
|