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

7751 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 842f600a93
Look up the language module
Look up language module with `MakeMakefile.[]`, insted of a
accessing constant under that module directly, to get rid of
expose the constant to the toplevel inadvertently.
2019-09-19 00:03:18 +09:00
Nobuyoshi Nakada f9d0778fca
Removed MakeMakefile::C
It is exposed to the topleven namespace via included MakeMakefile.
2019-09-18 22:53:23 +09:00
Nobuyoshi Nakada 9bd77d7cf3
Removed a debug print [ci skip] 2019-09-18 22:53:22 +09:00
Nobuyoshi Nakada c3f03da494
[EXPERIMENTAL] MakeMakefile::CXX for C++ 2019-09-18 18:47:02 +09:00
Bundlerbot 434af7303c
[bundler/bundler] Merge #7340
7340: Fix bundle clean issue r=deivid-rodriguez a=deivid-rodriguez

### What was the end-user problem that led to this PR?

The problem was that `bundle clean` is crashing under some conditions.

### What was your diagnosis of the problem?

My diagnosis was that sometimes (when the bundle includes git sourced gems with extensions), it assumes that some paths exist, but they don't.

### What is your fix for the problem, implemented in this PR?

My fix is to ignore those paths.

### Why did you choose this fix out of the possible options?

I chose this fix because it fixes the issue.

Fixes #7338.

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
(cherry picked from commit b007fde67c77c1f15f13b97eda186644c2a2be04)

https://github.com/bundler/bundler/commit/3766053507
2019-09-18 18:26:33 +09:00
David Rodríguez e6ad9452b6
[bundler/bundler] Fix remembered flag deprecation message
It was suggested a deprecated command as a fix.

https://github.com/bundler/bundler/commit/e330a9a34f
2019-09-18 18:26:33 +09:00
David Rodríguez 1cb8cf5df0
[bundler/bundler] Version 2.1.0.pre.2
https://github.com/bundler/bundler/commit/6e9774b377
2019-09-18 18:26:33 +09:00
David Rodríguez 0c6529bac2
[bundler/bundler] Revert "Add all platforms to lockfile by default"
This reverts commit 3dc509e645abb497e4dc92a7c42be471ff87db0b.

https://github.com/bundler/bundler/commit/b5766564fb
2019-09-18 18:26:32 +09:00
David Rodríguez 6f16ededdd
[bundler/bundler] Revert "Remove now meaningless warning"
This reverts commit 00b095b98fe4bd44950beaf3bc9f1d91eac7b69e.

https://github.com/bundler/bundler/commit/e93bce3b20
2019-09-18 18:26:32 +09:00
David Rodríguez f18d88b535
[bundler/bundler] Revert "Remove now meaningless setting"
This reverts commit 52c5a0eedec34b5d86464b3cf135dc2002486f1d.

https://github.com/bundler/bundler/commit/b4cc36deb9
2019-09-18 18:26:32 +09:00
David Rodríguez 399501cdfe
[bundler/bundler] Revert "Remove now unused method"
This reverts commit 3a2d2f025081755bdb38af660897e7b2f749a33a.

https://github.com/bundler/bundler/commit/13cef81582
2019-09-18 18:26:32 +09:00
Takayuki Nakata c27aaf1a8f
[bundler/bundler] Fix comments and messages to refer to https url
https://github.com/bundler/bundler/commit/a86b49f1b9
2019-09-18 18:26:32 +09:00
David Rodríguez c92e098781
[bundler/bundler] Fix --path option descriptions
To not mention that the flag is remembered when it's not.

https://github.com/bundler/bundler/commit/82f0b95854
2019-09-18 18:26:32 +09:00
David Rodríguez a29ead52e1
[bundler/bundler] Deprecate `--path` flag to `bundle check`
https://github.com/bundler/bundler/commit/0a0e7cf5ec
2019-09-18 18:26:32 +09:00
Nobuyoshi Nakada 68ffb679d4 Undefine DSUSP key
Enable `Ctrl+Y`, which is bound with it by default on BSD-like
systems, for editing.
2019-09-17 15:16:12 +09:00
Adam Cammack f9332ad833 Fix previous history in vi_insert mode 2019-09-17 15:14:38 +09:00
Adam Cammack a3533bc904 Fix history navigation in vi_insert mode 2019-09-17 15:14:38 +09:00
Nobuyoshi Nakada 3bb1162cac
Folded files in gemspec 2019-09-16 21:51:48 +09:00
aycabta 98f919ed47 The stdlib readline should raise Interrupt when pressing C-c 2019-09-14 00:16:31 +09:00
aycabta 83ef23bd75 Revert "Use IO#getch to read one char in raw mode"
This reverts commit 805b0a4811.
2019-09-14 00:11:01 +09:00
aycabta e8fff0ec9c Revert "Use IO#getbyte"
This reverts commit 685f12bbca.
2019-09-14 00:10:45 +09:00
aycabta 06bbacc086 Revert "Support multibyte input"
This reverts commit 6d9e54816f.
2019-09-14 00:10:34 +09:00
Nobuyoshi Nakada 6d9e54816f Support multibyte input 2019-09-10 00:56:31 +09:00
Nobuyoshi Nakada 685f12bbca Use IO#getbyte 2019-09-10 00:56:31 +09:00
Nobuyoshi Nakada 805b0a4811 Use IO#getch to read one char in raw mode 2019-09-10 00:56:31 +09:00
Lars Kanis 551edf64bc Reline: Fix wrong variable name
This raised a NameError before.
2019-09-09 19:16:01 +09:00
aycabta e9bc8b35c6 Behave ESC key correctly when vi command mode 2019-09-08 03:26:35 +09:00
aycabta 3568029823 Remove .document and .gitignore from file list of rdoc.gemspec 2019-09-08 03:07:45 +09:00
Jeremy Evans 434582d888 Fix Tempfile.open to correctly pass keywords to Tempfile.new 2019-09-06 19:41:23 -07:00
Jeremy Evans 258843106f Fix SortedSet subclasses that override initialize
The first time SortedSet#initialize is called, it overwrites
itself, then recalls #initialize, which results in calling the
subclass's initialize, not the current initialize.

Just inline the default initialize behavior to avoid this issue.

No test for this as it can only be triggered the very first time
that SortedSet#initialize is called.

Fixes [Bug #15830]
2019-09-06 14:20:22 -07:00
David Rodríguez d9e6315177
[rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offenses
https://github.com/rubygems/rubygems/commit/d4fc383497
2019-09-05 18:48:15 +09:00
Alexander Pakulov 0b9b0774c3 [rubygems/rubygems] Minor fix
https://github.com/rubygems/rubygems/commit/95c1f4e179
2019-09-05 18:44:02 +09:00
bronzdoc 73574756f9 [rubygems/rubygems] Add missing parentheses
https://github.com/rubygems/rubygems/commit/f5972338e0
2019-09-05 18:43:37 +09:00
bronzdoc 92be07b1e1 [rubygems/rubygems] Remove unnecessary gem_name method
https://github.com/rubygems/rubygems/commit/d1bb122651
2019-09-05 18:43:29 +09:00
bronzdoc b11cfed4c4 [rubygems/rubygems] Error out if there are multiple gemspecs and no gemspec is specified
https://github.com/rubygems/rubygems/commit/547947bbf0
2019-09-05 18:43:21 +09:00
bronzdoc a02da1012b [rubygems/rubygems] Build the first gemspec we found if no gemspec is specified
https://github.com/rubygems/rubygems/commit/ab186266b7
2019-09-05 18:42:56 +09:00
bronzdoc bcf51dd763 [rubygems/rubygems] Improve gemspec assignment and error message
https://github.com/rubygems/rubygems/commit/dc70c5a192
2019-09-05 18:42:49 +09:00
bronzdoc 68937fe0e4 [rubygems/rubygems] Make passing a gem name to be optional
https://github.com/rubygems/rubygems/commit/4ba4ffebbe
2019-09-05 18:42:41 +09:00
bronzdoc 95326150fa [rubygems/rubygems] Move build gem logic to its own method
https://github.com/rubygems/rubygems/commit/a16eacd650
2019-09-05 18:42:33 +09:00
David Rodríguez fea91d69a3 [rubygems/rubygems] Don't fail when `uninstall --all` with default gem
Instead, display an informative message saying that uninstallation of
specific versions is being skipped because of being default gems.

https://github.com/rubygems/rubygems/commit/b44845aa1d
2019-09-05 18:42:26 +09:00
Alexander Pakulov d84b9b6d0a [rubygems/rubygems] Use IAM role to extract security-credentials for EC2 instance
https://github.com/rubygems/rubygems/commit/9a401646e1
2019-09-05 18:41:58 +09:00
David Rodríguez d219be4a1c [rubygems/rubygems] Move empty check earlier
https://github.com/rubygems/rubygems/commit/fc224e9717
2019-09-05 18:41:49 +09:00
Shugo Maeda 633ae3278e
Add Net::FTP#features and Net::FTP#option
Patch by darkphnx (Dan Wentworth) .  Thanks!
[Feature #15964]
2019-09-02 14:43:51 +09:00
aycabta 85dc89c907 Treat Japanese IME on/off code correctly 2019-09-02 06:37:25 +09:00
aycabta e5dd63ba8c IRB 1.1.0.pre.3 2019-09-01 11:23:58 +09:00
aycabta 11d6094cbe Reline 0.0.2 2019-09-01 11:23:52 +09:00
aycabta c5bb074fe7 Re-calculate state variables of screen when screen size changes 2019-09-01 11:02:58 +09:00
aycabta d4eef04883 Use double splat for keyword args by a hash object in lib/un.rb 2019-08-31 20:55:35 +09:00
Jeremy Evans b5b3afadfa Fix a couple of bundler issues with keyword argument separation
There are more issues than this, but hopefully this is enough
to get make test-bundler passing in CI.
2019-08-30 12:39:31 -07:00
Jeremy Evans d08e1004e0 Fix keyword argument separation issues in lib
Mostly requires adding ** in either calls or method definitions.
2019-08-30 12:39:31 -07:00
Kazuhiro NISHIYAMA 998ee350b9
Revert "require 'pp' before use PP"
of lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb.
This reverts commit 500149709b partially.
2019-08-30 16:09:08 +09:00
Nobuyoshi Nakada 631db0de27
Removed debug print
It seems to be fixed by b870ca5879.
2019-08-30 16:00:18 +09:00
Kazuhiro NISHIYAMA b870ca5879
Add guard as same as `==`
Try to fix failure at https://github.com/ruby/ruby/runs/207580232#step:10:382
```
       undefined method `name' for "Gemfile.lock":String
       /home/runner/work/ruby/ruby/lib/bundler/resolver/spec_group.rb:65:in `eql?'
```
2019-08-30 12:49:27 +09:00
Yusuke Endoh c9fc82983c lib/pp.rb: Use UnboundMethod#bind_call instead of .bind(obj).call(...)
Related to [Feature #15955].
2019-08-30 11:13:00 +09:00
Kazuhiro NISHIYAMA 500149709b
require 'pp' before use PP
`Kernel#pp` has wrapper, but `PP` does not.

https://github.com/ruby/ruby/runs/207405029#step:10:141
`NameError: uninitialized constant Bundler::Molinillo::Resolver::Resolution::PP`
2019-08-30 10:21:50 +09:00
aycabta a39b26b594 Check events that console window size changed on Windows 2019-08-29 21:11:53 +09:00
aycabta 3a425c7623 Fix alignment of a SHORT variable
typedef struct _COORD {
  SHORT X;
  SHORT Y; // I wanted to take this...
} COORD, *PCOORD;

typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
  COORD      dwSize;
  COORD      dwCursorPosition; // ...of this one
  WORD       wAttributes;      // But it's combined with first 2bytes of this
  SMALL_RECT srWindow;
  COORD      dwMaximumWindowSize;
} CONSOLE_SCREEN_BUFFER_INFO;

If wAttributes has non-zero value, the code breaks.
2019-08-29 21:05:19 +09:00
aycabta b74dd665c0 CONSOLE_SCREEN_BUFFER_INFO is 22bytes
typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
  COORD      dwSize;              // 4(SHORT X, Y)
  COORD      dwCursorPosition;    // 4
  WORD       wAttributes;         // 2
  SMALL_RECT srWindow;            // 8(SHORT Left, Top, Right, Bottom)
  COORD      dwMaximumWindowSize; // 4
} CONSOLE_SCREEN_BUFFER_INFO;
2019-08-29 21:03:44 +09:00
aycabta 893900dc78 Add stub set_screen_size for other platforms 2019-08-29 15:21:00 +09:00
aycabta 0f405541bf Support SIGWINCH 2019-08-29 14:37:19 +09:00
aycabta e82719c651 Remove jquery.js from file list of rdoc.gemspec 2019-08-28 19:47:22 +09:00
Nobuyoshi Nakada a506b7f35a Adjusted indents and supplied last commas
Fixed unmatched indent of the closing bracket for
`:irb_current_working_workspace`, and adjusted following elements.
2019-08-28 16:08:14 +09:00
Kazuhiro NISHIYAMA 989e8ad322
Remove debug print [ci skip] 2019-08-28 10:34:56 +09:00
aycabta f308ab2131 Remove jquery.js 2019-08-28 01:12:14 +09:00
aycabta d8fa88294f Version 6.2.0 2019-08-28 00:48:12 +09:00
aycabta 39810b4035 Good bye jQuery 2019-08-28 00:48:12 +09:00
aycabta 744be55fad Remove duplicated delegation 2019-08-27 06:30:32 +09:00
aycabta fd0a4a64a3 Delegete an instance method to a class method correctly 2019-08-27 05:59:56 +09:00
aycabta f13db4adde Save value to @ambiguous_width because of a accessor 2019-08-27 05:33:27 +09:00
aycabta f2a5c50f94 The "private" doesn't make sence for class methods and a constant 2019-08-27 05:18:51 +09:00
aycabta 68207bb4fc Use preposing "private" to define methods 2019-08-27 05:18:51 +09:00
aycabta d8bcede9c3 Adjust method forwardings of Reline 2019-08-27 05:18:46 +09:00
manga_osyo 344f507e4e Remove .freeze. 2019-08-27 01:23:50 +09:00
manga_osyo 195f545c14 Fix `Reline::Windows`. 2019-08-27 01:23:24 +09:00
manga_osyo 298ac04710 Refactoring Reline. 2019-08-27 01:23:19 +09:00
manga_osyo f60e5a1f99 Remove test_mode in `lib/reline`. 2019-08-27 01:23:10 +09:00
manga_osyo 9c0cd6a09e Refactoring Reline accessor. 2019-08-27 01:23:04 +09:00
Jeremy Evans 7d9c3a5712 Handle binding.irb for frozen objects and BasicObjects using a delegate
Fixes Ruby Bug 13264
2019-08-27 00:10:34 +09:00
Jeremy Evans caeafbe825 Move private call without arguments inside method
This code did not have the desired effect.  I'm not sure if
irb_binding is supposed to be private or not.  If not, the private
call can just be removed.
2019-08-27 00:10:34 +09:00
Yusuke Endoh 6944a1aa4f lib/webrick.rb: use require_relative for webrick/utils.rb
`require "webrick/utils.rb"` should load `lib/webrick/utils.rb`, but on
some CI machines, it wrongly loads `test/webrick/utils.rb`, which caused
circular require warning:

https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20190825T093007Z.log.html.gz
```
/data/chkbuild/tmp/build/20190825T093007Z/ruby/lib/rubygems/core_ext/kernel_require.rb:61: warning: /data/chkbuild/tmp/build/20190825T093007Z/ruby/lib/rubygems/core_ext/kernel_require.rb:61: warning: loading in progress, circular require considered harmful - /data/chkbuild/tmp/build/20190825T093007Z/ruby/lib/webrick.rb
```
2019-08-25 19:29:52 +09:00
aycabta 800821831d Always check multiline termination 2019-08-22 06:02:27 +09:00
Fernando Wolf Bona 8d804e41a0 Add abs to Matrix (#2199) 2019-08-21 16:36:39 -04:00
aycabta 48fdc37ad5 IRB's multiline history is enable only when Reidline mode 2019-08-22 05:09:08 +09:00
Nobuyoshi Nakada 4419b5dbc2
The investigation is going on... 2019-08-21 13:31:22 +09:00
David Rodríguez 5ea08883cf
[bundler/bundler] Remove old rubies stuff no longer needed
https://github.com/bundler/bundler/commit/36fb3287f4
2019-08-21 07:58:46 +09:00
Akira Matsuda 9557069299
Avoid creating Hash objects per each mon_synchronize call (#2393) 2019-08-20 22:08:41 +09:00
Nobuyoshi Nakada 73af1c4d00 [rubygems/rubygems] Use `RbConfig::CONFIG['rubylibprefix']`
It is defined since ruby 1.9.2.

https://github.com/rubygems/rubygems/commit/84981ca908
2019-08-20 17:00:13 +09:00
David Rodríguez 5a384e2c08 Fix some bundler specs (#2380)
* These seem to consistenly pass already

* Show actual command when running `make test-bundler`

Current the setup command that installs the necessary gems for testing
bundler was printed, but not the actual command that runs the tests.
That was a bit confusing.

* Borrow trick from setproctitle specs

* A title that long doesn't get set sometimes

No idea why, but the test doesn't need that the title is that long.

* Fix most gem helper spec ruby-core failures

* Fix the rest of the gem helper failures

* Fix version spec by improving the assertion

* Remove unnecessary `BUNDLE_RUBY` environment var

We can use `RUBY` when necessary, and `BUNDLE_RUBY` is not a good name
because bundler considers `BUNDLE_*` variables as settings.

* Rename `BUNDLE_GEM` to `GEM_COMMAND`

This is more descriptive I think, and also friendlier for bundler
because `BUNDLE_` env variables are interpreted by bundler as settings,
and this is not a bundler setting.

This fixes one bundler spec failure in config specs against ruby-core.

* Fix quality spec when run in core

Use the proper path helper.

* Fix dummy lib builder to never load default gems

If a dummy library is named as a default gem, when requiring the library
from its executable, the default gem would be loaded when running from
core, because in core all default gems share path with bundler, and thus
they are always in the $LOAD_PATH. We fix the issue by loading lib
relatively inside dummy lib executables.

* More exact assertions

Sometimes I have the problem that I do some "print debugging" inside
specs, and suddently the spec passes. This happens when the assertion is
too relaxed, and the things I print make it match, specially when they
are simple strings like "1.0" than can be easily be part of gem paths
that I print for debugging.

I fix this by making a more exact assertion.

* Detect the correct shebang when ENV["RUBY"] is set

* Relax assertion

So that the spec passes even if another paths containing "ext" are in
the load path. This works to fix a ruby-core issue, but it's a better
assertion in general. We just want to know that the extension path was
added.

* Use folder structure independent path helper

It should fix this spec for ruby-core.

* Fix the last failing spec on ruby-core

* Skip `bundle open <default_gem>` spec when no default gems
2019-08-20 09:46:31 +09:00
aycabta aa03de8ba1 Treat two types "do" correctly
A "do" what has followed a token what has EXPR_CMDARG is for a block,
and in other cases "do" is for "while", "until" or "for".
2019-08-20 08:31:02 +09:00
Hiroshi SHIBATA 355acbafde
Update the canonical repository url 2019-08-19 17:52:20 +09:00
Nobuyoshi Nakada 45454bdb8b
Prefer Regexp#=~ to Regexp#match when the RHS may be nil 2019-08-19 16:39:42 +09:00
Yusuke Endoh bc1e2271af lib/rdoc/markup/parser.rb: remove a unused variable initialization 2019-08-19 10:07:05 +09:00
David Rodríguez 683f9e1dbf [bundler/bundler] No need to activate the `fileutils` default gem
The version we're vendoring actually relaxed this restriction back to
2.3.0+, so we can always use the vendored version.

https://github.com/bundler/bundler/commit/d366cbfe5d
2019-08-18 13:45:45 +09:00
David Rodríguez 998204882b [bundler/bundler] Last relative requires
https://github.com/bundler/bundler/commit/fb587b9ebb
2019-08-18 13:44:56 +09:00
David Rodríguez 7659f00a8d [bundler/bundler] Move local variable to only branch where it's used
https://github.com/bundler/bundler/commit/3995b3345d
2019-08-18 13:44:36 +09:00
Zehan Zhao d80f5399ad [bundler/bundler] Fix open default gem error
https://github.com/bundler/bundler/commit/792d724752
2019-08-18 13:44:26 +09:00
David Rodríguez cc644c7116 [bundler/bundler] Fix `bundle doctor` command
Previously `bundle doctor` would fail on any bundle that does not
include git gems or plugins. This is because the previously used
`Bundler.home` does not exist unless the bundle includes git gems or
plugins. For example, with `bundle config set path .bundle`, it points
to which does not exist unless this kind of gems exist in the Gemfile.

The name `Bundler.home` is really unfortunate, it should probably be
have more descriptive name, and be private. But for now I just want to
make `bundle doctor` usable.

https://github.com/bundler/bundler/commit/5531a18c1e
2019-08-18 13:44:03 +09:00
David Stosik a02dbcecb1 [bundler/bundler] Bundler displays a duplicate gem entries warning even if gems only appear once per group
https://github.com/bundler/bundler/commit/d18a83109e
2019-08-18 13:43:59 +09:00
aycabta 113a5c1e1d The "exe" dir doesn't exist in this repostiroy 2019-08-18 08:05:08 +09:00
Alan Wu e9f82585ee Don't crash when deleting at the end of the line
To reproduce this bug, type one character into irb, then press the
delete key on your keyboard.
2019-08-18 07:43:19 +09:00
Nobuyoshi Nakada 8b8e7e6e9e
$LOAD_PATH elements should be real paths
Installed path may contain symbolic links.
2019-08-18 00:32:21 +09:00
aycabta 2a65498ca2 Remove CI files from list 2019-08-17 20:20:04 +09:00
Hiroshi SHIBATA e095803c37 Removed formatter_test_case and text_formatter_test_case from Gem::Specification#files. 2019-08-17 20:20:04 +09:00
Hiroshi SHIBATA 3a06c11a7d Removed autoload from Markup. 2019-08-17 20:20:04 +09:00
Hiroshi SHIBATA 79fe84edf5 Removed test_case files from lib directory. 2019-08-17 20:20:04 +09:00
David Rodríguez 6357540945
[bundler/bundler] Fix bundle bin location in core repo
https://github.com/bundler/bundler/commit/9437568ab4
2019-08-17 17:08:49 +09:00
Hiroshi SHIBATA 7664b5cb65
Support the current stable version of Ruby like 2.5 and 2.6. 2019-08-17 17:06:36 +09:00
Hiroshi SHIBATA 221ba9b66c
Revert "`Gem.load_path_insert_index always returns non-nil index after Ruby 1.9"
This reverts commit 260ef51a73.

  This broke the stable versions of Ruby like 2.4 and 2.5
2019-08-17 17:01:23 +09:00
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