Граф коммитов

7643 Коммитов

Автор SHA1 Сообщение Дата
Hiroshi SHIBATA d041c6cebb
Added comments for extended require by RubyGems 2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA 260ef51a73
`Gem.load_path_insert_index always returns non-nil index after Ruby 1.9 2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA d8148650f6
Try to continue on LoadError with gem_original_require 2019-08-17 15:12:46 +09:00
Hiroshi SHIBATA 22d9bd944d
Keep the existance behavior with symlink path 2019-08-17 15:12:45 +09:00
Hiroshi SHIBATA dd16f8524c
Revert "Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem""
This reverts commit 75d29db8f9.
2019-08-17 15:12:45 +09:00
Kazuhiro NISHIYAMA ccbfb054b1
Fix typos 2019-08-17 13:57:12 +09:00
Hiroshi SHIBATA 75d29db8f9
Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem"
This reverts commit 00cd5d74ce.
2019-08-17 08:52:39 +09:00
Hiroshi SHIBATA 7624154595
Fixed Insecure Operation in require
Caused by 00cd5d74ce
2019-08-17 08:44:31 +09:00
Hiroshi SHIBATA ae3002b540
[rubygems/rubygems] Fixup #2844
https://github.com/rubygems/rubygems/commit/5924286ae2
2019-08-17 07:35:49 +09:00
MSP-Greg 56a28a8728
[rubygems/rubygems] installer.rb - fix #windows_stub_script
use ruby_exe in heredocs instead of ruby.exe

https://github.com/rubygems/rubygems/commit/9f1b7d6590
2019-08-17 07:35:49 +09:00
Alexander Pakulov 25a327d41b
[rubygems/rubygems] Do not mutate uri.query during s3 signature creation
https://github.com/rubygems/rubygems/commit/c0275ee537
2019-08-17 07:35:48 +09:00
Hiroshi SHIBATA c4f7c260f9
[rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap.
https://github.com/rubygems/rubygems/commit/1133c2f700
2019-08-17 07:35:48 +09:00
David Rodríguez c78839902b
[rubygems/rubygems] Return `nil` to clarify return value is ignored
https://github.com/rubygems/rubygems/commit/8702f59d32
2019-08-17 07:35:48 +09:00
David Rodríguez 5998012a0c
[rubygems/rubygems] Autoswitch to exact bundler version if present
https://github.com/rubygems/rubygems/commit/bb02953a97
2019-08-17 07:35:48 +09:00
David Rodríguez 3587824d71
[rubygems/rubygems] Don't unregister default specifications
I think this should be more efficient?

https://github.com/rubygems/rubygems/commit/a1de78104f
2019-08-17 07:35:48 +09:00
David Rodríguez 1ac6890bd0
[rubygems/rubygems] Fix removing unresolved default spec files from map
https://github.com/rubygems/rubygems/commit/7964917bbc
2019-08-17 07:35:48 +09:00
David Rodríguez f42ad4a425
[rubygems/rubygems] Little refactor
There's already a method called `suffix_pattern`, that's different from
this local variable. So, move the local variable to a `suffix_regexp`
that clearly differenciates from `suffix_pattern`.

https://github.com/rubygems/rubygems/commit/4ec69c48b9
2019-08-17 07:35:48 +09:00
bronzdoc 89ad5df979
[rubygems/rubygems] Replace domain parameter in Gem::Command#show_lookup_failure with a parameter to suppress suggestions
https://github.com/rubygems/rubygems/commit/760b7d834f
2019-08-17 07:35:48 +09:00
David Rodríguez b8984370da
[rubygems/rubygems] Fix jruby issue
https://github.com/rubygems/rubygems/commit/fc3f722164
2019-08-17 07:35:48 +09:00
David Rodríguez 37abd2c390
[rubygems/rubygems] Fix old rubies compat
https://github.com/rubygems/rubygems/commit/41e60cdb6b
2019-08-17 07:35:48 +09:00
Samuel Giddins 00cd5d74ce
[rubygems/rubygems] [Require] Ensure -I beats a default gem
https://github.com/rubygems/rubygems/commit/6fbda98eb3
2019-08-17 07:35:48 +09:00
Yusuke Endoh 229ae3269d lib/rdoc/store.rb: Use `Marshal.dump(obj, io)`
instead of dumping obj to a string and then saving the string.
It omits object creation.
2019-08-16 21:27:05 +09:00
David Rodríguez b587e8c7f1 [bundler/bundler] Add `--[no-]git` option to `bundle gem`
I think using `--no-git` can be useful when creating gems inside
monorepos.

https://github.com/bundler/bundler/commit/154c687310
2019-08-16 14:30:23 +09:00
David Rodríguez 8f28ae65a8 [bundler/bundler] Remove misleading comment in Gemfile
Since we no longer use `git` to find out the list of files, the comment
is misleading.

https://github.com/bundler/bundler/commit/54d85d5349
2019-08-16 14:30:23 +09:00
David Rodríguez cd15d27d10 [bundler/bundler] Stop printing deprecation messages during specs
Previously under some circunstances (met during some specs), bundler
would print deprecations to a separate UI different from "bundler's UI".
This UI would not be captured by the specs, and thus would be printed to
screen during the specs.

This commit fixes that by making sure all deprecation messages always go
through bundler's UI.

https://github.com/bundler/bundler/commit/220c54b7fa
2019-08-16 14:30:23 +09:00
Masato Ohba 6412121b00 [bundler/bundler] Fix typo in comment: attibutes -> attributes
https://github.com/bundler/bundler/commit/876545805e
2019-08-16 14:30:23 +09:00
Benoit Daloze 2b0f3aa095 [bundler/bundler] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION
* RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby.
* There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION.

https://github.com/bundler/bundler/commit/f9d910403b
2019-08-16 14:30:23 +09:00
David Rodríguez 6711343d5a [bundler/bundler] Fix inconsistent lockfile order
When Gemfile would specify path sources as relative paths starting with
"./", the lockfile would have inconsistent order on `bundle install` and
`bundle update`.

https://github.com/bundler/bundler/commit/c7532ced89
2019-08-16 14:30:23 +09:00
David Rodríguez 500c3cb6a5 [bundler/bundler] Reuse `root` method
https://github.com/bundler/bundler/commit/42363091da
2019-08-16 14:30:23 +09:00
Yusuke Endoh cd41378ef9 lib/rdoc/parser/ruby.rb: Avoid `.chars.to_a.last`
The code creates a lot of useless objects.
Instead, using a regexp is shorter and faster.
2019-08-16 11:36:47 +09:00
Yusuke Endoh f71bd7477e RDoc::Parser::C: Integrate do_classes and do_modules by one regexp match
The full scan of the C source code (`@content.scan`) is very slow.
The old code invokes the scan six times in `do_classes` and
`do_modules`.

This change integrates the six scans into one by merging the regexps.
The integrated regexp is a bit hard to maintain, but the speed up is
significant: approx. 30 sec -> 20 sec in Ruby's `make rdoc`.

In addition, this change omits `do_boot_defclass` unless the file name
is `class.c`.  `boot_defclass` is too specific to Ruby's source code, so
RDoc should handle it as a special case.

Before this change:

     TOTAL    (pct)     SAMPLES    (pct)     FRAME
       858  (13.6%)         858  (13.6%)     (garbage collection)
       292   (4.6%)         264   (4.2%)     RDoc::Parser::C#do_define_class
       263   (4.2%)         250   (3.9%)     RDoc::Parser::C#do_define_module
       275   (4.3%)         241   (3.8%)     RDoc::Parser::C#do_define_class_under
       248   (3.9%)         237   (3.7%)     RDoc::Parser::C#do_define_module_under
       234   (3.7%)         234   (3.7%)     RDoc::Parser::C#gen_body_table
       219   (3.5%)         219   (3.5%)     Ripper::Lexer#state_obj
       217   (3.4%)         216   (3.4%)     RDoc::Parser::C#do_struct_define_without_accessor
       205   (3.2%)         205   (3.2%)     RDoc::Parser::C#do_boot_defclass
       205   (3.2%)         205   (3.2%)     RDoc::Parser::C#do_singleton_class

The six methods take approx. 22.2%.
`do_define_class` (4.2%) + `do_define_class_under` (3.8%) +
`do_define_module` (3,9$) + `do_define_module_under` (3.7%) +
`do_struct_define_without_accessor` (3.4%) + `do_singleton_class` (3.2%)

After this change, the methods are integrated to `do_classes_and_modules`
which takes only 5.8%.

     TOTAL    (pct)     SAMPLES    (pct)     FRAME
       812  (16.7%)         812  (16.7%)     (garbage collection)
       355   (7.3%)         284   (5.8%)     RDoc::Parser::C#do_classes_and_modules
       225   (4.6%)         225   (4.6%)     RDoc::Parser::C#gen_body_table
       429   (8.8%)         210   (4.3%)     RDoc::Parser::RubyTools#get_tk
       208   (4.3%)         208   (4.3%)     RDoc::TokenStream#add_tokens
2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA e87e10e5e7 Use test/unit instead of test-unit. Because test-unit is only provided standalone gem. 2019-08-16 06:07:11 +09:00
Hiroshi SHIBATA 8a18a639b7 Use Gemfile instead of add_development_dependency. 2019-08-16 06:07:11 +09:00
Nobuyoshi Nakada 1a5304228a Use test-unit instead of minitest
Minitest 6 will err `assert_equal` with `nil`.
https://github.com/seattlerb/minitest/issues/779
2019-08-16 06:07:11 +09:00
aycabta 64f9f512c5 Treat linking to Markdown label correctly 2019-08-16 06:02:45 +09:00
Yusuke Endoh 723a37d038 Separate RDoc::TokenStream#add_tokens and #add_token
The old version of `add_tokens` accepts an array of tokens, and
multiple arguments of tokens by using `Array#flatten`.
And `add_token` was an alias to `add_tokens`.

I think it is unnecessarily flexible; in fact, all callsites of
`add_tokens` (except test) passes only an array of tokens.
And the code created a lot of temporal arrays.

This change makes `add_tokens` accept only one array of tokens,
and does `add_token` accept one token.  It is a bit faster (about
1 second in Ruby's `make rdoc`), and it ls also cleaner in my point of
view.
2019-08-16 06:02:45 +09:00
Yusuke Endoh 0a0760aa63 Refactor and improve performance of RDoc::Markup::Parser
This change introduces a wrapper of StringScanner that is aware of the
current position (column and lineno).
It has two advantages: faster and more modular.

The old code frequently runs `@input.byteslice(0, byte_offset).length`
to get the current position, but it was painfully slow.  This change
keeps track of the position at each scan, which reduces about half of
time of "Generating RI format into ..." in Ruby's `make rdoc`
(5.5 sec -> 3.0 sec).

And the old code used four instance variables (`@input`, `@line`,
`@line_pos`, and `@s`) to track the position.  This change factors them
out into MyStringScanner, so now only one variable (`@s`) is needed.
2019-08-16 06:02:45 +09:00
Steven Willis 9d2fed2ccd Don't echo results of assignment expressions 2019-08-16 06:02:45 +09:00
Nobuyoshi Nakada 40806793a9
Fixed class, module and method references [ci skip] 2019-08-16 00:00:50 +09:00
Nobuyoshi Nakada b1003301af
Fixed a markup in different format [ci skip] 2019-08-15 23:59:28 +09:00
Nikolai B 48e9155e65 Remove strange formatting from English [ci skip]
\vref is not valid doc syntax
2019-08-14 23:13:06 +09:00
Koichi Sasada 1cffd5b4f0 fix last commit. 2019-08-14 16:30:30 +09:00
Koichi Sasada 182a408c2c
change Proc#to_s format ('@...' -> ' ...') (#2362)
Now Proc#to_s returns
"#<Proc:0x00000237a0f5f170@t.rb:1>".
However, it is convenient to select a file name by (double-)clicking
on some terminals by separating ' ' instead of '@' like
"#<Proc:0x00000237a0f5f170 t.rb:1>"
[Feature #16101]
2019-08-14 16:25:15 +09:00
Kazuhiro NISHIYAMA ffab84fa3e
Fix a typo [ci skip] 2019-08-13 15:27:46 +09:00
ohbarye b1678338e5
Fix typo: duplicated the [skip-ci] 2019-08-09 16:23:49 -07:00
Kazuhiro NISHIYAMA a4a2dd7942
Revert a6e32855d0 partially
Fix TypeError when typing `''.[TAB]`
2019-08-09 16:29:43 +09:00
Nobuyoshi Nakada e6901cea74
Fixed deprecation message 2019-08-07 10:41:12 +09:00
aycabta 43b52ac0a5 Revert "Don't echo results of assignment expressions"
This reverts commit 1ee88c51b3.
2019-08-06 20:28:48 +09:00
Steven Willis 1ee88c51b3 Don't echo results of assignment expressions 2019-08-06 20:15:07 +09:00
Charles Oliver Nutter 842364792f Use host_os from RbConfig to detect host OS.
RUBY_PLATFORM on JRuby is always "java", so it will not reflect
the host operating system. This regex appears to be the consensus
way to detect Windows based on a search of Ruby code on Github:

https://github.com/search?q=%2Fmswin%7Cmsys%7Cmingw%7Ccygwin%7Cbccwin%7Cwince%7Cemc%2F&type=Code
2019-08-06 20:03:23 +09:00
aycabta d626ca1e98 Remove obsolete TODO comment 2019-08-06 20:03:23 +09:00
aycabta 81a15d636e Update Unicode URL to 12.1.0 2019-08-06 20:03:23 +09:00
Justin Collins 4f1a00a746
Improve same directory detection in FileUtils
Closes: https://github.com/ruby/ruby/pull/1425
2019-08-06 09:01:04 +09:00
Benoit Daloze 86ac51c301 [rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION
* RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby.
* There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION.

https://github.com/rubygems/rubygems/commit/431d0aefdd
2019-08-05 18:45:24 +09:00
Kazuhiro NISHIYAMA 42a9e27d84 [rubygems/rubygems] Use gsub with Hash
https://github.com/rubygems/rubygems/commit/83eced0b39
2019-08-05 18:44:59 +09:00
bronzdoc 87bc29fe28 [rubygems/rubygems] Revert cadb66037d9b58c80fc795f39384d533229a1f73
https://github.com/rubygems/rubygems/commit/5c3158d975
2019-08-05 18:44:53 +09:00
Hiroshi SHIBATA 8eb2921f56 [rubygems/rubygems] Fixed to warn with shadowing outer local variable.
https://github.com/rubygems/rubygems/commit/b0588a87b1
2019-08-05 18:44:46 +09:00
bronzdoc 5a8d848849 [rubygems/rubygems] Remove FIXME comment
https://github.com/rubygems/rubygems/commit/5a1d3d618d
2019-08-05 18:44:40 +09:00
Sutou Kouhei 2d8c037e97 [ruby/rexml] gemspec: update
https://github.com/ruby/rexml/commit/404bd99a7c
2019-08-04 11:56:02 +09:00
Kouhei Sutou 310a2a9860 [ruby/rexml] xpath: add missing value conversions for equality and relational expressions
GitHub: fix #18

Reported by Mirko Budszuhn. Thanks!!!

https://github.com/ruby/rexml/commit/0dca2a2ba0
2019-08-04 11:55:55 +09:00
Kouhei Sutou 39f275edf7 [ruby/rexml] xpath number: fix a bug that false is converted to NaN
GitHub: fix #18

It must be 0.

Reported by Mirko Budszuhn. Thanks!!!

https://github.com/ruby/rexml/commit/b48f3afa3b
2019-08-04 11:55:49 +09:00
Kouhei Sutou 643344dc94 [ruby/rexml] xpath local_name: fix a bug that nil is returned for nonexistent case
It must be an empty string.

https://github.com/ruby/rexml/commit/81bc7cd4f5
2019-08-04 11:55:43 +09:00
Kouhei Sutou 5f78b138b1 [ruby/rexml] xpath boolean: implement
https://github.com/ruby/rexml/commit/feb8ddb1ec
2019-08-04 11:55:37 +09:00
Kouhei Sutou 6ef8294397 [ruby/rexml] xpath: fix a bug for equality or relational expressions
GitHub: fix #17

There is a bug when they are used against node set. They should return
boolean value but they returned node set.

Reported by Mirko Budszuhn. Thanks!!!

https://github.com/ruby/rexml/commit/a02bf38440
2019-08-04 11:55:31 +09:00
Kouhei Sutou c46ba8e9a3 [ruby/rexml] Use PP
https://github.com/ruby/rexml/commit/185062a4a4
2019-08-04 11:55:26 +09:00
Kouhei Sutou 54525fbfd4 [ruby/rexml] xpath: add support for changing to debug mode by environment variable
https://github.com/ruby/rexml/commit/59378a16ea
2019-08-04 11:55:20 +09:00
Kouhei Sutou de55e0a008 [ruby/rexml] Bump version
https://github.com/ruby/rexml/commit/54452c103a
2019-08-04 11:55:14 +09:00
ujihisa f85caf40a6 [ruby/rexml] Message less confusing error to human (#16)
* Message less confusing error to human

* Problem: Following error message is not helpful, because you have to reason
  that '' actually means it's in the top-level, and the 'div' (not '</div>') is
  an end tag

        require "rexml/parsers/lightparser"
        REXML::Parsers::LightParser.new('</div>').parse
        #=> Missing end tag for '' (got 'div')

* Solution: add a special case in error handling just to change the error message

        require "rexml/parsers/lightparser"
        REXML::Parsers::LightParser.new('</div>').parse
        #=> Unexpected top-level end tag (got 'div')

* Refactor by removing unnecessary `md` check

* Thanks @a_matsuda to review this at asakusa.rb!

https://github.com/ruby/rexml/commit/f6528d4477
2019-08-04 11:55:03 +09:00
Alyssa Ross ee8985ef0e [ruby/rexml] Fix crash with nil XPath variables (#13)
Patch by Alyssa Ross. Thanks!!!
https://github.com/ruby/rexml/commit/2a53c54f58
2019-08-04 11:54:50 +09:00
FUJI Goro (gfx) 982208c650 [ruby/rexml] use #inspect to print meta-characters in error messages
https://github.com/ruby/rexml/commit/a124a19b9a
2019-08-04 11:54:44 +09:00
Kouhei Sutou 81354bbd1b [ruby/rexml] Bump version
https://github.com/ruby/rexml/commit/c0e3f14564
2019-08-04 11:54:38 +09:00
Kouhei Sutou 0f18bc7fca [ruby/rexml] Fix attribute's default namespace behavior
NOTE: It's a backward incompatible change. If we have any serious
problems with this change, we may revert this change.

The XML namespace specification says the default namespace doesn't
apply to attribute names but it does in REXML without this change:

https://www.w3.org/TR/xml-names/#uniqAttrs

> the default namespace does not apply to attribute names

REXML reports a parse error for the following XML that is described as
a valid XML in the XML nsmaspace specification without this change:

    <!-- http://www.w3.org is bound to n1 and is the default -->
    <x xmlns:n1="http://www.w3.org"
       xmlns="http://www.w3.org" >
      <good a="1"     b="2" />
      <good a="1"     n1:a="2" />
    </x>

If attribute doesn't have prefix, the attribute should return "" for
both #prefix and #namespace.

https://github.com/ruby/rexml/commit/9e4fd552bc
2019-08-04 11:54:27 +09:00
Kouhei Sutou 9b36f0a787 [ruby/rexml] Format
https://github.com/ruby/rexml/commit/2384586811
2019-08-04 11:54:22 +09:00
Kouhei Sutou 84c3742466 [ruby/rexml] Revert "xpath: remove needless nil check"
This reverts commit 61b73c1bf8dc64d97fba7f0a8c503c24b11313f5.

"*:local_name" becomes prefix=nil.

https://github.com/ruby/rexml/commit/9e7dd4cd4e
2019-08-04 11:54:16 +09:00
Kouhei Sutou 096e766355 [ruby/rexml] xpath: remove needless nil check
It must not be nil.

https://github.com/ruby/rexml/commit/61b73c1bf8
2019-08-04 11:54:11 +09:00
Kouhei Sutou 27c11892c8 [ruby/rexml] Add a TODO for Attribute#namespace
https://github.com/ruby/rexml/commit/70310a06e5
2019-08-04 11:54:05 +09:00
Kouhei Sutou 3583fa166c [ruby/rexml] xpath: fix a bug that no namespace attribute isn't matched with prefix
[ruby-list:50733]

Reported by Yasuhiro KIMURA. Thanks!!!

https://github.com/ruby/rexml/commit/8f3c5c176a
2019-08-04 11:54:00 +09:00
Kouhei Sutou f76cfb55d7 [ruby/rexml] Bump version
https://github.com/ruby/rexml/commit/0f79e71210
2019-08-04 11:53:49 +09:00
Semyon Pupkov 4173258fd0
change call CGI methods from :: to .
Closes: https://github.com/ruby/ruby/pull/1749
2019-08-04 09:19:30 +09:00
Hiroshi SHIBATA 0bd1cd677f
[bundler/bundler] Remove Bundler.rubygems.config_map because it was deprecated.
https://github.com/bundler/bundler/commit/5215ae7fa3
2019-08-03 09:41:17 +09:00
Adam Wanninger aad7443e16
[bundler/bundler] Point to CoC which contains the contributor covenant
https://github.com/bundler/bundler/commit/a94f74682e
2019-08-03 09:32:38 +09:00
David Rodríguez 7ed1fc527e
[bundler/bundler] Bump rubocop to 0.74.0
And reenable exclusion because the bug why we added them has been fixed.
See https://github.com/rubocop-hq/rubocop/issues/6861.

https://github.com/bundler/bundler/commit/bda63fcffc
2019-08-03 09:30:00 +09:00
David Rodríguez dab944e6ca
[bundler/bundler] net-http-persistent 3.1.0 has been released
https://github.com/bundler/bundler/commit/ffb7d6fa53
2019-08-03 09:30:00 +09:00
David Rodríguez fcb58f65b1
[bundler/bundler] Adapt to the way my automatiek patch works
https://github.com/bundler/bundler/commit/b8ee4aec0b
2019-08-03 09:30:00 +09:00
David Rodríguez 97f3ceeaa5
[bundler/bundler] Bump net-http-persistent to 3.0.1
* Adds an extra artifice task to vendorize new `connection_pool`
dependency.

* Cherry-pick's needed Windows fix not yet merged into master branch of
`net-http-persistent`.

* Update bundler usages to be compatible with the new version, and fix
unit specs.

https://github.com/bundler/bundler/commit/0575baa6bb
2019-08-03 09:30:00 +09:00
David Rodríguez 267a72be80
[bundler/bundler] Enable `Style/UnneededInterpolation` cop
https://github.com/bundler/bundler/commit/4c6a3c3cf7
2019-08-03 09:30:00 +09:00
David Rodríguez e84e63230b
[bundler/bundler] Check for straneous quotes
And use single quotes consistenly.

https://github.com/bundler/bundler/commit/8b9fbbb2df
2019-08-03 09:30:00 +09:00
Samuel Giddins 4dea1356c3
[bundler/bundler] [CurrentRuby] Say we are ruby? when the generic local platform is Gem::Platform::RUBY
This allows us to always say we're ruby? when force_ruby_platform is
set, and fixes using gemspec & force_ruby_platform on windows.

https://github.com/bundler/bundler/commit/3cb89b7e5c
2019-08-03 09:30:00 +09:00
David Rodríguez 6fb73e6043
[bundler/bundler] Fully remove compatibility guard
https://github.com/bundler/bundler/commit/2a7a5daba0
2019-08-03 09:30:00 +09:00
David Rodríguez 452516f50f
[bundler/bundler] Remove development dependencies from gemspec
And refactor development setup.

https://github.com/bundler/bundler/commit/f288806d02
2019-08-03 09:30:00 +09:00
David Rodríguez 7255f55dba
[bundler/bundler] RUBY_ENGINE should always be defined after 1.8.7
https://github.com/bundler/bundler/commit/d6c9196d18
2019-08-03 09:30:00 +09:00
David Rodríguez b855e33b65
[bundler/bundler] Add exclamation mark to method
To indicate that it can raise.

Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/bundler/bundler/commit/584e841624
2019-08-03 09:29:59 +09:00
David Rodríguez 1fbd6a1fe0
[bundler/bundler] Move `strict` to an attribute
Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/bundler/bundler/commit/7b68d86bdd
2019-08-03 09:29:59 +09:00
David Rodríguez 1069139a33
[bundler/bundler] Extract some methods
Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/bundler/bundler/commit/027aba0cff
2019-08-03 09:29:59 +09:00
David Rodríguez ee7ec87007
[bundler/bundler] Unfold message to single line for readability
https://github.com/bundler/bundler/commit/d845a213ca
2019-08-03 09:29:59 +09:00
Guillermo Guerrero e1ccaa8782
[bundler/bundler] Extract a `print_gems` method
https://github.com/bundler/bundler/commit/0d8c8d207e
2019-08-03 09:29:59 +09:00
Guillermo Guerrero 759930dd11
[bundler/bundler] Less complexity
https://github.com/bundler/bundler/commit/be9d6e7cfc
2019-08-03 09:29:59 +09:00
David Rodríguez fd3411c73f
[bundler/bundler] Move more locals to attributes
Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/bundler/bundler/commit/4335df3e4c
2019-08-03 09:29:59 +09:00
David Rodríguez a42478502c
[bundler/bundler] Move `any?` logic to the attribute
It's the only usage of the `options_include_groups` attribute and its
name suggests a boolean, so it fits better now.

Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/bundler/bundler/commit/53c0fae760
2019-08-03 09:29:59 +09:00
David Rodríguez 4e76aef280
[bundler/bundler] Move `options_include_groups` to an attribute
Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>

https://github.com/bundler/bundler/commit/832fb900f0
2019-08-03 09:29:59 +09:00
David Rodríguez 30d10be036
[bundler/bundler] Prefer feature flag to harcoded check
https://github.com/bundler/bundler/commit/8c83921d08
2019-08-03 09:29:59 +09:00
David Rodríguez 76d205c840
[bundler/bundler] Restore `cache_all` flag removal
https://github.com/bundler/bundler/commit/04a04719f0
2019-08-03 09:29:59 +09:00
David Rodríguez bb50f87b69
[bundler/bundler] Add workaround from old rubygems
In these versions, the `approximate_recommendation` method doesn't
include the prerelease logic.

https://github.com/bundler/bundler/commit/caf13e9e4f
2019-08-03 09:29:59 +09:00
David Rodríguez cb6abf551a
[bundler/bundler] Update error messages to be more precise
https://github.com/bundler/bundler/commit/9ddeeb1fe1
2019-08-03 09:29:59 +09:00
David Rodríguez f40914e3cf
[bundler/bundler] Remove unnecessary method parameter
https://github.com/bundler/bundler/commit/72194d1aac
2019-08-03 09:29:59 +09:00
David Rodríguez a1c69991a5
[bundler/bundler] Use a consistent requirement in binstub
https://github.com/bundler/bundler/commit/50ccdb32c2
2019-08-03 09:29:59 +09:00
David Rodríguez bb6b9b4929
[bundler/bundler] Remove redundant begin-end block
https://github.com/bundler/bundler/commit/1d017c3f36
2019-08-03 09:29:59 +09:00
David Rodríguez bd0f19f137
[bundler/bundler] Don't need 1.8 compatibility
https://github.com/bundler/bundler/commit/7ca4d4e83c
2019-08-03 09:29:59 +09:00
David Rodríguez 6794724548
[bundler/bundler] Remove uneeded bundler key
It sounds like this was mistankenly added in
4337a499d0108fc3748084934aaed7591b355a26. Then the forgotten MANPATH key
was added in bf5bf106230772934602768bb31a68dc925691f0, but this one
should've been removed I think.

https://github.com/bundler/bundler/commit/a82ad111e5
2019-08-03 09:29:58 +09:00
MSP-Greg 432285c004
[bundler/bundler] fix nested bundle exec's when bundler is a default gem
https://github.com/bundler/bundler/commit/537c0ab712
2019-08-03 09:29:58 +09:00
MSP-Greg 24062bd323
[bundler/bundler] build_metadata.rb - fix 'warning: instance variable @git_commit_sha not initialized'
https://github.com/bundler/bundler/commit/37a1eec8c8
2019-08-03 09:29:58 +09:00
David Rodríguez a1549fba83
[bundler/bundler] Alias `cache` to `package` now
The additions of the `package` command are not actually backwards
incompatible, so we can do this transition without further care. All
existing specs of `bundle cache` pass when using the `bundle package`
implementation for it.

https://github.com/bundler/bundler/commit/69497adf90
2019-08-03 09:29:58 +09:00
David Rodríguez 4f5e1b6ebf
[bundler/bundler] Remove `cache_command_is_package` feature flag
So that we handle the removal of `bundle cache` just like we'll handle
the removal of `bundle show` and `bundle console`.

https://github.com/bundler/bundler/commit/ff1a669efb
2019-08-03 09:29:58 +09:00
David Rodríguez f73020d493
[bundler/bundler] Always keep `bundle package --all` option
Just change the default. The reason to do this is that the deprecation
message talks about the default being changed, not the option being
removed.

https://github.com/bundler/bundler/commit/eca1757792
2019-08-03 09:29:58 +09:00
David Rodríguez 33ce42dd5d
[bundler/bundler] Fix incorrect flag usage
https://github.com/bundler/bundler/commit/4df9edef95
2019-08-03 09:29:58 +09:00
David Rodríguez ad3cba02cf
[bundler/bundler] Remove redundant condition
This is inside a code branch where the condition is already met.

https://github.com/bundler/bundler/commit/8cdd6c37e6
2019-08-03 09:29:58 +09:00
David Rodríguez 31541d7389
[bundler/bundler] Drop rubygems 2.5.0 and 2.5.1 support
https://github.com/bundler/bundler/commit/8ecd722b9f
2019-08-03 09:29:58 +09:00
David Rodríguez a181df7542
[bundler/bundler] No need to make `Gem.refresh` a noop
The rubygems integration sets up a `post_reset` hook that resets the
specs back to what bundler knows after `Gem::Specification.reset` is
called (which is what `Gem.refresh` calls under the hood).

https://github.com/bundler/bundler/commit/3810f9945c
2019-08-03 09:29:58 +09:00
David Rodríguez d0c19d1f87
[bundler/bundler] Use `tap` for `current_platforms`
https://github.com/bundler/bundler/commit/78608acf83
2019-08-03 09:29:57 +09:00
David Rodríguez 6e0dc5594c
[bundler/bundler] Remove now unused method
https://github.com/bundler/bundler/commit/3a2d2f0250
2019-08-03 09:29:57 +09:00
David Rodríguez 6492f23d91
[bundler/bundler] Remove now meaningless setting
https://github.com/bundler/bundler/commit/52c5a0eede
2019-08-03 09:29:57 +09:00
David Rodríguez dae6d303d5
[bundler/bundler] Remove now meaningless warning
https://github.com/bundler/bundler/commit/00b095b98f
2019-08-03 09:29:57 +09:00
David Rodríguez c1ca77281d
[bundler/bundler] Add all platforms to lockfile by default
https://github.com/bundler/bundler/commit/3dc509e645
2019-08-03 09:29:57 +09:00
David Rodríguez ff908983be
[bundler/bundler] Extract `expanded_platforms`
https://github.com/bundler/bundler/commit/60d720eb06
2019-08-03 09:29:57 +09:00
David Rodríguez 3af9d8bb67
[bundler/bundler] Extract `current_platforms`
https://github.com/bundler/bundler/commit/9f07207d64
2019-08-03 09:29:57 +09:00
Samuel Giddins ead2dc0ec9
[bundler/bundler] [GemHelpers] Remove the special code path for ruby platform being its own generic
https://github.com/bundler/bundler/commit/3b9abc8932
2019-08-03 09:29:57 +09:00
David Rodríguez f8c03b24ca
[bundler/bundler] Bump rubocop to 0.72.0
https://github.com/bundler/bundler/commit/babbc112c6
2019-08-03 09:29:57 +09:00
David Rodríguez 81a84076c2
[bundler/bundler] Don't persist the cache_all_platforms setting
We only want it temporarily during the duration of the cache saving.

https://github.com/bundler/bundler/commit/1e9818c0da
2019-08-03 09:29:57 +09:00
Samuel Giddins 82bf064375
[bundler/bundler] [Package] Ensure uninstallable gems are _never_ installed
https://github.com/bundler/bundler/commit/899aeeebb0
2019-08-03 09:29:57 +09:00
Samuel Giddins 215d846ea5
[bundler/bundler] [Package] Dont always update on --all-platforms
https://github.com/bundler/bundler/commit/723611f6ee
2019-08-03 09:29:56 +09:00
Samuel Giddins d761a0f6ff
[bundler/bundler] [Package] Always resolve remotely for --all-platforms
https://github.com/bundler/bundler/commit/e45d2272ea
2019-08-03 09:29:56 +09:00
David Rodríguez 5a56f4a541
[bundler/bundler] Remove unnecessary `order_matters` param
https://github.com/bundler/bundler/commit/0b40b5b784
2019-08-03 09:29:56 +09:00
David Rodríguez 4b1395ab4a
[bundler/bundler] Clearer MissingRevision git errors
https://github.com/bundler/bundler/commit/b47d23edf5
2019-08-03 09:29:56 +09:00
David Rodríguez e405aede09
[bundler/bundler] Not sure how much this buys us, remove it
https://github.com/bundler/bundler/commit/f8584fb864
2019-08-03 09:29:56 +09:00
David Rodríguez ed37de1c82
[bundler/bundler] Inline `expanded_deps`
It's now only used once, and doing it like this is consistent with the
previous line.

https://github.com/bundler/bundler/commit/7d27330fc7
2019-08-03 09:29:56 +09:00
David Rodríguez bdcd1990ad
[bundler/bundler] Generate new gem development dependencies in Gemfile
https://github.com/bundler/bundler/commit/02177d0e10
2019-08-03 09:29:56 +09:00
David Rodríguez 2771789302
[bundler/bundler] Don't re-resolve locked platform specific gems
https://github.com/bundler/bundler/commit/7da2bf75f5
2019-08-03 09:29:56 +09:00
David Rodríguez df011b0238
[bundler/bundler] Lock rubocop-performance to 1.4.0
https://github.com/bundler/bundler/commit/595dd6af6c
2019-08-03 09:29:56 +09:00
David Rodríguez 1a8d9a0d5d
[bundler/bundler] Bump rubocop to 0.71
https://github.com/bundler/bundler/commit/efa69583dd
2019-08-03 09:29:56 +09:00
David Rodríguez 4089f8df1e
[bundler/bundler] Use real paths for `bundle clean`
https://github.com/bundler/bundler/commit/0646f9e286
2019-08-03 09:29:56 +09:00
Miklos Fazekas a12557dbfd
[bundler/bundler] Add `required_ruby_version` to gemspec template
https://github.com/bundler/bundler/commit/f47421f92d
2019-08-03 09:29:56 +09:00
David Rodríguez cad71f7089
[bundler/bundler] Migrate git proxy helpers to use Open3
https://github.com/bundler/bundler/commit/4a37d66f3f
2019-08-03 09:29:55 +09:00
David Rodríguez a685a8643f
[bundler/bundler] Fix `rake release` not prompting for OTP code
Co-authored-by: Colby Swandale <me@colby.fyi>
Co-authored-by: Kevin Deisz <kevin.deisz@gmail.com>

https://github.com/bundler/bundler/commit/1b2bbc7364
2019-08-03 09:29:55 +09:00
David Rodríguez 51bdc9433b
[bundler/bundler] Normalize usages of `Gem::Util` in rubygems integration
https://github.com/bundler/bundler/commit/b35d7fc74a
2019-08-03 09:29:55 +09:00
David Rodríguez 81779e2246
[bundler/bundler] Use rubygems utility if available
https://github.com/bundler/bundler/commit/7eccba0e52
2019-08-03 09:29:55 +09:00
David Rodríguez e111f38f34
[bundler/bundler] Fix file:// handling under Windows
Windows paths do not start with a slash, so we add an extra slash to
separate the host from the path in file:// urls. Otherwise "D:" is
parsed as the host segment in the URI.

The path for those URLs now starts with "/", so we ignore that leading
character when using the URI's path.

This reduces Windows CI spec failures from 429 to 355.

https://github.com/bundler/bundler/commit/1b7e274cbc
2019-08-03 09:29:55 +09:00
David Rodríguez c3ddd47ce7
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
2019-08-03 09:29:55 +09:00
David Rodríguez 9596f43250
[bundler/bundler] Migrate two more requires to be relative
https://github.com/bundler/bundler/commit/80217bfe0b
2019-08-03 09:29:55 +09:00
David Rodríguez c5737a9ae1
[bundler/bundler] Migrate thor to use relative requires
https://github.com/bundler/bundler/commit/ca28a04668
2019-08-03 09:29:55 +09:00
David Rodríguez 580e165873
[bundler/bundler] Respect color option when instantiating shells
Thor's base shell will be memoized the first time it is set. So if we
instantiate a no-color shell first, further instantiations of a bundler
shell will be initialized with a no-color shell by default. This is
caused some sources specs to fail, depending on the order they run.

See for example https://travis-ci.org/bundler/bundler/builds/500328994.

What we do to fix it is to reset the shell unless no-color is explicitly
specified. That way, further instantiations will rerun thor's internal
logic to choose the default shell.

https://github.com/bundler/bundler/commit/786b5d9894
2019-08-03 09:29:55 +09:00
David Rodríguez b95756c7a9
[bundler/bundler] Remove unnecessary condition
The builtin thor's color shell already checks this before printing, and
if not a tty, prints just the string without added color codes.

https://github.com/bundler/bundler/commit/4f62611c87
2019-08-03 09:29:55 +09:00
Hiroshi SHIBATA 4c2255fd5c
[bundler/bundler] Added Ruby 2.6 to dsl.
https://github.com/bundler/bundler/commit/1892626858
2019-08-03 09:29:55 +09:00
Yusuke Endoh c683763865 Use source_location instead of eval(__FILE__,binding) in Binding#irb
e9e17cbc05 (enabling the warning by
default) caused a warning in test-spec:
```
/data/chkbuild/tmp/build/20190802T213005Z/ruby/spec/ruby/core/binding/irb_spec.rb
Binding#irb
- creates an IRB session with the binding in scope/data/chkbuild/tmp/build/20190802T213005Z/ruby/spec/ruby/core/binding/fixtures/irb.rb:3: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
```
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-master/log/20190802T213005Z.log.html.gz

ref: [Bug #4352]
2019-08-03 07:44:44 +09:00
Yusuke Endoh 4562c13093 lib/bundler/shared_helpers.rb: remove require "rubygems"
Because it causes circular require.
2019-07-31 19:51:58 +09:00
Hiroshi SHIBATA 77c0e23b0c
[rubygems/rubygems] Partly reverted be962ca0c411f3b4bcfebfb6e714c78cbad12775
* `Gem::ConfigMap` is still used by Bundler.
  * `Gem::RubyGemsVersion` is also still referred by the old gems.

https://github.com/rubygems/rubygems/commit/249c3ff44f
2019-07-31 07:47:02 +08:00
bronzdoc ab8d9a5325
[rubygems/rubygems] Initialize '@ran_rake' correctly, so we don't have to set it up later and cause confusion
https://github.com/rubygems/rubygems/commit/6ec3ba983c
2019-07-31 07:47:02 +08:00
bronzdoc 5824981d98
[rubygems/rubygems] Remove extension 'double pipe equals' assigment since is not needed anymore
https://github.com/rubygems/rubygems/commit/930de86a24
2019-07-31 07:47:02 +08:00
bronzdoc b73ad4999a
[rubygems/rubygems] Move 'build_for' to handle extension type before the extension is used
https://github.com/rubygems/rubygems/commit/2a32c5ef0a
2019-07-31 07:47:02 +08:00
bronzdoc 9dc0f39de5
[rubygems/rubygems] Do not pass +build_dir+ argument to build_error
https://github.com/rubygems/rubygems/commit/107fea3432
2019-07-31 07:47:02 +08:00
bronzdoc d97fc48e92
[rubygems/rubygems] Remove useless param +build_dir+
https://github.com/rubygems/rubygems/commit/0402974149
2019-07-31 07:47:02 +08:00
bronzdoc a51661d378
[rubygems/rubygems] Drop support for 'gem env packageversion'
https://github.com/rubygems/rubygems/commit/be962ca0c4
2019-07-31 07:47:02 +08:00
David Rodríguez bb6bd7e985
[rubygems/rubygems] Generate a licenses.rb file with correct style
https://github.com/rubygems/rubygems/commit/469fceeb2f
2019-07-31 07:47:02 +08:00
David Rodríguez 497efa0ec9
[rubygems/rubygems] Enable `Layout/AlignArray` cop
https://github.com/rubygems/rubygems/commit/1ea674d8f7
2019-07-31 07:47:02 +08:00
David Rodríguez 0817d95714
[rubygems/rubygems] Enable `Layout/EmptyLinesAroundAccessModifier`
https://github.com/rubygems/rubygems/commit/41b1cebc33
2019-07-31 07:47:02 +08:00
bronzdoc 33025d9768
[rubygems/rubygems] Make error code a constant and remove TODO comment
https://github.com/rubygems/rubygems/commit/3d6c7c92e4
2019-07-31 07:47:02 +08:00
Vít Ondruch a3b784b3a0
[rubygems/rubygems] Move default specifications dir definition out of BasicSpecification.
This was never the right place. The method got there just by evolution,
not by design. Move it within default methods, where it suits better.

Since this method is presumably used just internally, it should be safe
to deprecate it and remove later.

https://github.com/rubygems/rubygems/commit/0c0dd9458a
2019-07-31 07:47:02 +08:00
Hiroshi SHIBATA d1806bd8da
[rubygems/rubygems] There is no usage of @orig_env_* variables in test suite.
https://github.com/rubygems/rubygems/commit/2adef51dc9
2019-07-31 07:47:02 +08:00
Hiroshi SHIBATA a3c0ea55f8
[rubygems/rubygems] Ignore GEMRC variable for test suite. It affects with some test case.
https://github.com/rubygems/rubygems/commit/4a0ca2583a
2019-07-31 07:47:02 +08:00
bronzdoc 1eaacb1ef5
[rubygems/rubygems] Use File#open instead of Kernel#open
https://github.com/rubygems/rubygems/commit/bfb3f67494
2019-07-31 07:47:02 +08:00
bronzdoc 41dd9f7e67
[rubygems/rubygems] Deprecate Gem::RemoteFetcher#fetch_size
https://github.com/rubygems/rubygems/commit/c2049c3276
2019-07-31 07:47:02 +08:00
bronzdoc a34168f2ac
[rubygems/rubygems] Autorequire was used by old RubyGems, it is neither supported nor functional.
https://github.com/rubygems/rubygems/commit/cadb66037d
2019-07-31 07:47:02 +08:00
Nobuyoshi Nakada a2f0331c4e
[rubygems/rubygems] Simplify #to_ruby code
Separate #add_runtime_dependency and #add_development_dependency
availability condition from #specification_version availability,
which is not related to directly.
Also check if the former method is available, instead of comparing
the version.

https://github.com/rubygems/rubygems/commit/5cccc2b836
2019-07-31 07:47:02 +08:00
Alexander Pakulov 0d596c1ab2
[rubygems/rubygems] Making Gem::S3URISigner.sign method smaller with helper methods
https://github.com/rubygems/rubygems/commit/2a96494d91
2019-07-31 07:47:01 +08:00
Alexander Pakulov 74419711ad
[rubygems/rubygems] Use default value for expiration in the method signature
https://github.com/rubygems/rubygems/commit/1372e50c17
2019-07-31 07:47:01 +08:00
Alexander Pakulov aa9015dd84
[rubygems/rubygems] Moving rubygems/request dependencies into ec2_metadata
https://github.com/rubygems/rubygems/commit/6a1856517f
2019-07-31 07:47:01 +08:00
Alexander Pakulov 4a8c2dd419
[rubygems/rubygems] Extracting sign_s3_url & s3_source_auth into a separate S3URISigner class
https://github.com/rubygems/rubygems/commit/c30d21ec7a
2019-07-31 07:47:01 +08:00
bronzdoc 1dfe132aa5
[rubygems/rubygems] Move TODO comment to an information comment
https://github.com/rubygems/rubygems/commit/853ecdd417
2019-07-31 07:47:01 +08:00
bronzdoc 7081185664
[rubygems/rubygems] Remove unused 'raise' from test_case
https://github.com/rubygems/rubygems/commit/2481efcb37
2019-07-31 07:47:01 +08:00
bronzdoc eb35124cca
[rubygems/rubygems] Remove TODO comment, there's no Gem::Dirs constant
https://github.com/rubygems/rubygems/commit/4bacf577f1
2019-07-31 07:47:01 +08:00
bronzdoc 60d3f9ef9f
[rubygems/rubygems] Remove useless TODO comment
https://github.com/rubygems/rubygems/commit/44bc809dc8
2019-07-31 07:47:01 +08:00
Alexander Pakulov bd78eabcf3
[rubygems/rubygems] Addressing PR comments
https://github.com/rubygems/rubygems/commit/fb62d3043c
2019-07-31 07:47:01 +08:00
bronzdoc b2a54744f2
[rubygems/rubygems] check_version_conflict don't have a 'dep' variable available for use
https://github.com/rubygems/rubygems/commit/1783cf0fd3
2019-07-31 07:47:01 +08:00
bronzdoc 56801d4532
[rubygems/rubygems] Remove missleading comment, no reason to move Gem.host to Gem::Util
https://github.com/rubygems/rubygems/commit/e12c98aa72
2019-07-31 07:47:01 +08:00
bronzdoc ff214e9232
[rubygems/rubygems] Remove useless comment in exceptions.rb
https://github.com/rubygems/rubygems/commit/d7ad696fa2
2019-07-31 07:47:01 +08:00
bronzdoc 6bd7772361
[rubygems/rubygems] Rename Gem::Package.metadata to Gem::Package.raw_spec
https://github.com/rubygems/rubygems/commit/a76f25dff0
2019-07-31 07:47:01 +08:00
Alexander Pakulov 38daeded66
[rubygems/rubygems] Upgrading S3 source signature to AWS SigV4
https://github.com/rubygems/rubygems/commit/f289788ca5
2019-07-31 07:47:01 +08:00
bronzdoc 688ccc9602
[rubygems/rubygems] Move metadata method to Gem::Package
https://github.com/rubygems/rubygems/commit/2c9cfcb666
2019-07-31 07:47:01 +08:00
Daniel Berger 8103d46a4d
[rubygems/rubygems] Add a package attr_reader to Gem::Installer.
Add some basic specs for the package attr_reader.

https://github.com/rubygems/rubygems/commit/68af2a0ee3
2019-07-31 07:47:01 +08:00
bronzdoc 6be927ff4a
[rubygems/rubygems] Remove missleading TODO comment. Can't use @parser.accept since not
every class where this is used has a parser available. i.e lib/rubygems/install_update_options.rb

https://github.com/rubygems/rubygems/commit/519fd4dcc0
2019-07-31 07:47:01 +08:00
bronzdoc c421ef1142
[rubygems/rubygems] Move gemcutter utilities code to Gem::Command
https://github.com/rubygems/rubygems/commit/f296645033
2019-07-31 07:47:01 +08:00
bronzdoc 5eacb4c52e
[rubygems/rubygems] Remove conflict.rb code that was supposed to be removed in Rubygems 3
https://github.com/rubygems/rubygems/commit/6d5f743a89
2019-07-31 07:47:01 +08:00
bronzdoc a7bce01175
[rubygems/rubygems] Remove unnecessary &&= operator
https://github.com/rubygems/rubygems/commit/a10b5265d7
2019-07-31 07:47:01 +08:00
bronzdoc 8b91a6d0a0
[rubygems/rubygems] Remove unnecessary TODO comment
https://github.com/rubygems/rubygems/commit/ad7e379f79
2019-07-31 07:47:01 +08:00
David Rodríguez df0b41fc72
[rubygems/rubygems] Explicitly deprecate `rubyforge_project`
https://github.com/rubygems/rubygems/commit/9094740109
2019-07-31 07:47:01 +08:00
Benoit Daloze 05ae2c11fa
[rubygems/rubygems] Do not replace the cache entry if there is already one
* That way, multiple lookups for the same file always return the same object.

https://github.com/rubygems/rubygems/commit/50a431b6db
2019-07-31 07:47:00 +08:00
Benoit Daloze 2453d16f5e
[rubygems/rubygems] Synchronize access to the Gem::Specification::LOAD_CACHE Hash
* It's accessed concurrently, notably when installing a gem with a C extension.

https://github.com/rubygems/rubygems/commit/543294d7dd
2019-07-31 07:47:00 +08:00
bronzdoc 89bd1df895
[rubygems/rubygems] Add a blank line after private to be consistent with the current style
https://github.com/rubygems/rubygems/commit/df7c0e4223
2019-07-31 07:47:00 +08:00
bronzdoc 673ef894ac
[rubygems/rubygems] Return early if filename is empty
https://github.com/rubygems/rubygems/commit/1b9ab33083
2019-07-31 07:47:00 +08:00
bronzdoc d74ea2eeb2
[rubygems/rubygems] Simplify config_file_name assigment
https://github.com/rubygems/rubygems/commit/1b3154f905
2019-07-31 07:47:00 +08:00
bronzdoc 6c5170634a
[rubygems/rubygems] Lazy require stringio
https://github.com/rubygems/rubygems/commit/82f0d4ca69
2019-07-31 07:47:00 +08:00
bronzdoc 7990d8dc50
[rubygems/rubygems] Set config_file_name to the value of ENV["GEMRC"] if available
https://github.com/rubygems/rubygems/commit/471239f1fa
2019-07-31 07:47:00 +08:00
bronzdoc 6f60ead756
[rubygems/rubygems] Move config_file_name logic to its own method
https://github.com/rubygems/rubygems/commit/ac4596aace
2019-07-31 07:47:00 +08:00
David Rodríguez d64cc80b66
[rubygems/rubygems] Migrate extension builder to use Open3
Since it works on jruby.

https://github.com/rubygems/rubygems/commit/5229e00df4
2019-07-31 07:47:00 +08:00
David Rodríguez 4e27319c2c
[rubygems/rubygems] Remove unused method
https://github.com/rubygems/rubygems/commit/f2dbf242ea
2019-07-31 07:47:00 +08:00
Kazuhiro NISHIYAMA 2e6f777f9e
`/o` should not use with instance variable
for example:
```
class C;def initialize(pat);@pat=pat;end;def re;/#{@pat}/o;end;end
C.new('1').re #=> /1/
C.new('2').re #=> /1/
```
2019-07-30 12:44:38 +09:00
Tanaka Akira 1da3a31a5f Use lowercase letters for IPv6 addresses.
Reported by chucke (Tiago Cardoso).
Patch by jeremyevans0 (Jeremy Evans).
[Bug #14612]
2019-07-30 11:59:54 +09:00
Nobuyoshi Nakada e62a60927e
Should match the beginning/end of string 2019-07-29 23:05:41 +09:00
Nobuyoshi Nakada 3ee63cfe88
Match suffix for content type more precisely
Suffix needs a dot and should match the end of string.
2019-07-29 23:05:41 +09:00
Nobuyoshi Nakada bef398eb87
Chomp html suffix literally
Unescaped dot does not mean a suffix.
2019-07-29 23:05:41 +09:00
Nobuyoshi Nakada b40589802b
[reline] Do not compile regexp for each line 2019-07-28 09:52:19 +09:00
Nobuyoshi Nakada a6e32855d0
[reline] Do not escape and compile regexp for each byte 2019-07-28 09:47:40 +09:00
Jeremy Evans a06301b103 Ignore history file without saving if permissions cannot be changed
Fixes [Ruby Bug 13907]
2019-07-27 16:56:04 +09:00
Charles Oliver Nutter f9f02e8216 Use JRuby equivalent of RubyVM.compile.
RubyVM is specific to CRuby and not supported on JRuby. This is
the equivalent operation.
2019-07-27 16:56:04 +09:00
Jeremy Evans 4b7d7d007f Document and add spec for delegating to constants in Forwardable
Fixes [Bug #13142]
2019-07-26 07:35:58 -07:00
Maxime Lapointe 21ce8b3298 [ruby/rdoc] Fix image links in rdoc.css
Every image in the rdoc.css that use url has the wrong one. They end up pointing to `css/images/zoom.png` instead of `images/zoom.png`.

Just open this page https://ruby.github.io/rdoc/RDoc/CodeObject.html on chrome and you can see in the console the spam of the failed GET queries.

This fixes it.
https://github.com/ruby/rdoc/commit/daf36f9894
2019-07-26 17:32:46 +08:00
aycabta 8bb4892376
[ruby/rdoc] Update jQuery to 3.3.1
https://github.com/ruby/rdoc/commit/17df871ee
2019-07-26 17:32:19 +08:00
aycabta 3b0f952ec8 [ruby/rdoc] Support nesting text page URL
RDoc::Servlet#documentation_page replaces "/" in URL with "::" for class
or module but it's also used for the replaced name on text pages. This
causes a bug when text pages are in nesting directory.

This commit fixes #615.

https://github.com/ruby/rdoc/commit/d73b915b1e
2019-07-26 17:29:17 +08:00
aycabta a86d4eef4b [ruby/rdoc] Normalization of comment should check language
RDoc::Text#normalize_comment that is included RDoc::Comment always
remove Ruby style comment indicator "#" and C style comment indicator
"/**/", but should check language and remove only the language's comment
indicator.

https://github.com/ruby/rdoc/commit/ca68ba1e73
2019-07-26 17:20:58 +08:00
aycabta f7cbbc7074 [ruby/rdoc] ClassModule#add_comment should receive RDoc::Comment
https://github.com/ruby/rdoc/commit/3fb03bf399
2019-07-26 17:20:27 +08:00
aycabta 0f9ec4a877 Check wether multibyte character is split 2019-07-25 17:19:16 +09:00
Kazuhiro NISHIYAMA d8e90f5558
Fix a typo in inspect 2019-07-25 16:39:28 +09:00
Nobuyoshi Nakada 99680f81e8 [rubygems/rubygems] Resolve `@@project_dir` from test file paths
`Dir.pwd` may differ from the source path.  Test directories and
files should be resolved from test file paths.

https://github.com/rubygems/rubygems/commit/e18e7c81b4
2019-07-24 18:15:47 +08:00
Nobuyoshi Nakada c9826c20d2
Show the caller's location
* lib/net/http/header.rb: show the caller's location instead of
  the current lines.
2019-07-24 00:26:28 +09:00
Jeremy Evans 325f7b6008 Make pkg_config in mkmf include -I cflags in return value
This was the historical behavior, it was modified unintentionally
by 097c3e9cbb, which started storing
these flags in a different global variable.

Also, include the incflags when logging, and document that the
method modifies $INCFLAGS.

Fixes [Bug #10651]
2019-07-23 07:57:38 -07:00
aycabta de18328192 Some keywords, "true", "false", and "nil" should be treated as a variable 2019-07-20 02:53:47 +09:00
aycabta c8ee44f44c Fix showing doc of "nil.to_s", nil doesn't have #name 2019-07-19 08:23:41 +09:00
Nobuyoshi Nakada cd372f8db2
Get rid of LoadError with $DEBUG 2019-07-17 14:45:33 +09:00
aycabta c20445ab56 Require Ruby 2.4 or later because needs lex_state from Ripper 2019-07-15 17:22:18 +09:00
Hiroshi SHIBATA 5349aa23c8
Also fixed up with 036039c8a2 2019-07-15 14:47:47 +09:00
Hiroshi SHIBATA 036039c8a2
Fixed LoadError of version file. 2019-07-15 14:45:30 +09:00
Hiroshi SHIBATA 0eafa1dce8
Fixed inconsitency locations of default gems. 2019-07-15 14:43:08 +09:00
Rafael Mendonça França 58065b8701
[ruby/logger] Add option to set the binary mode of the log device
Without binmode strings with incompatible encoding can't be written in
the file. This is very common in applications that log user provided
parameters.

We need to allow changing the binnary mode because right now it is impossible to use
the built-in log rotation feature when you provide a File object to the
LogDevice, and if you provide a filename you can't have binmode.

https://github.com/ruby/logger/commit/9114b3ac7e
2019-07-15 14:43:08 +09:00
Jeremy Evans f4064a0a0c
[ruby/logger] Set filename when initializing logger with a File object
This should allow reopen to work.  Requested in ruby issue #14595.

https://github.com/ruby/logger/commit/bd367aff12
2019-07-15 14:43:08 +09:00
Samuel Williams 2c22051b4b
[ruby/logger] Enable `frozen_string_literal: true` in `logger.rb`.
https://github.com/ruby/logger/commit/2dc832e901
2019-07-15 14:43:08 +09:00
Samuel Williams 3fdb963827
[ruby/logger] Prefer require_relative, it's a little bit faster.
https://github.com/ruby/logger/commit/1e2aab4bea
2019-07-15 14:43:07 +09:00
sonots 7ef0856287
[ruby/logger] Update logger.gemspec
https://github.com/ruby/logger/commit/1335a71d98
2019-07-15 14:43:07 +09:00
sonots 7f10da9d27
[ruby/logger] require 'logger/errors' just for compat
https://github.com/ruby/logger/commit/255a51dc10
2019-07-15 14:43:07 +09:00
Colby Swandale bbe157f340
[ruby/logger] split logger classes/modules into separate files
https://github.com/ruby/logger/commit/f10ce9fff2
2019-07-15 14:43:07 +09:00
Samuel Williams 47500f2055
[ruby/logger] Add support for changing severity using bang methods.
https://github.com/ruby/logger/commit/ae4c6dfcbb
2019-07-15 14:43:07 +09:00
Samuel Giddins 310198d6be
[ruby/logger] Add missing closing "
https://github.com/ruby/logger/commit/b4b3caae40
2019-07-15 14:43:07 +09:00
Samuel Giddins 227eae79ac
[ruby/logger] Say that logger requires ruby >= 2.3
Since it uses `&.`, it can't be used on older rubies
https://github.com/ruby/logger/commit/b872f90ab9
2019-07-15 14:43:07 +09:00
Colby Swandale b9ba07a05c
[ruby/logger] dont lock bundler to a specific version in travis
https://github.com/ruby/logger/commit/eb5ac229a5
2019-07-15 14:43:07 +09:00
Colby Swandale 99c14fb694
[ruby/logger] remove files that dont need to be included in gem releases
https://github.com/ruby/logger/commit/9a3be8650f
2019-07-15 14:43:07 +09:00
Kazuhiro NISHIYAMA b789648830
Change PROMPT_S of simple-prompt
When input `"` or `/` with simple-prompt,

Before:
`"` or `/`
(prompt disappeared and indent is changed)

After:
`"> "` or `/> /`
(indent is unchanged since `>> `)
2019-07-15 10:29:48 +09:00
aycabta 0af897ab59 Simplify history saving code 2019-07-15 10:20:23 +09:00
Tanaka Akira 8f7884761e The default charset of text/* media type is UTF-8.
Thanks for the patch  gareth (Gareth Adams).  [Bug #15933]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

> When no explicit charset parameter is provided by the sender, media
> subtypes of the "text" type are defined to have a default charset
> value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
2019-07-15 09:36:52 +09:00
aycabta 17ccda5413 Use #to_a for Readline::HISTORY directly 2019-07-15 08:33:07 +09:00
aycabta 2b78a93bcf Add lib/irb/color.rb to destribution file list 2019-07-15 07:59:33 +09:00
aycabta 266f6cd8a1 Remove debug print 2019-07-15 07:54:47 +09:00
aycabta 4b7a04a5b8 Support multiline irb_history
A history line ends with "\" to escape newline if it's a continuous
line.
2019-07-15 07:51:57 +09:00