aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/ext/ext_conf_builder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor and fix usage of Gem.rubyなつき2023-03-231-4/+1
|
* Move duplicated logic to parent classなつき2023-03-231-13/+1
|
* Make sure native extensions are loaded correctly in ext_conf builderなつき2023-03-231-1/+15
|
* util/rubocop -A --only Layout/EmptyLineAfterMagicCommentHiroshi SHIBATA2023-03-231-0/+1
|
* [rubygems/rubygems] util/rubocop -A --only Style/CommentAnnotationHiroshi SHIBATA2023-03-171-1/+1
| | | | https://github.com/rubygems/rubygems/commit/4e77a1d1d5
* [rubygems/rubygems] util/rubocop -A --only Lint/UselessAccessModifierHiroshi SHIBATA2023-03-171-2/+0
| | | | https://github.com/rubygems/rubygems/commit/5070f90987
* [rubygems/rubygems] Cleanup intermediate artifacts after installing built ↵Eloy Espinaco2022-12-201-0/+2
| | | | | | extensions https://github.com/rubygems/rubygems/commit/98b6a959bd
* Merge rubygems/bundler HEAD.Hiroshi SHIBATA2022-08-091-2/+2
| | | | Pick from https://github.com/rubygems/rubygems/commit/dfbb5a38114640e0d8d616861607f3de73ee0199
* RubyGems: Enable Style/StringLiterals copTakuya Noguchi2022-07-221-6/+6
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* [rubygems/rubygems] Bring TODO message up to dateDavid Rodríguez2022-06-171-1/+1
| | | | https://github.com/rubygems/rubygems/commit/e07dba0923
* [rubygems/rubygems] Remove part of comment that fell out of dateDavid Rodríguez2022-06-171-7/+2
| | | | https://github.com/rubygems/rubygems/commit/272ac23aa8
* [rubygems/rubygems] Don't modify RbConfig at all when building extensionsDavid Rodríguez2022-06-171-48/+31
| | | | | | | | | Instead, pass sitearchdir and sitelibdir directly to `make`. This also removes the need to create and use the siteconf file at all when generating makefiles. https://github.com/rubygems/rubygems/commit/dea41fa2dc
* [rubygems/rubygems] Remove unnecessary conditionDavid Rodríguez2022-06-171-14/+12
| | | | | | This variable can't be falsy. https://github.com/rubygems/rubygems/commit/b838f9a6f0
* [rubygems/rubygems] No need to change `RbConfig::CONFIG` at allDavid Rodríguez2022-06-171-1/+0
| | | | | | Only `RbConfig::MAKEFILE_CONFIG` is actually used. https://github.com/rubygems/rubygems/commit/b767cc0929
* Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5Hiroshi SHIBATA2022-04-281-1/+1
|
* [rubygems/rubygems] Lazily load `shellwords` libraryDavid Rodríguez2021-07-271-2/+1
| | | | https://github.com/rubygems/rubygems/commit/e5532ef886
* Sync latest bundler & rubygems development versionDavid Rodríguez2021-07-071-4/+4
|
* Merge prepare version of RubyGems 3.2.0Hiroshi SHIBATA2020-12-081-14/+19
|
* Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"Hiroshi SHIBATA2020-09-231-2/+0
| | | | | 31a6eaabc165d8a222e176f2c809d90622d88ec2 is obsoleted with https://github.com/rubygems/rubygems/pull/3820
* Manually merged from https://github.com/rubygems/rubygems/pull/2636Hiroshi SHIBATA2020-09-231-0/+2
| | | | Enable Style/EmptyLinesAroundClassBody rubocop cop.
* Revert changes to rdoc & rubygems regarding Tempfile.open(&block)Benoit Daloze2020-08-291-0/+2
| | | | | * They likely want to support older Ruby/tempfile versions * Reverts part of e8c3872555fc85640505974e6b1c39d315572689
* Simplify Tempfile.open calls with a block as they now unlink the file ↵Benoit Daloze2020-08-291-2/+0
| | | | automatically
* Enforce no empty lines around class body in rubygemsDavid Rodríguez2020-07-311-2/+0
| | | | To normalize the code style with `bundler`.
* Use space inside block braces everywhereDavid Rodríguez2020-06-151-1/+1
| | | | To make rubygems code style consistent with bundler.
* [rubygems/rubygems] Delay `fileutils` loading to fix some warningsDavid Rodríguez2020-06-051-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the following conditions are met: * You have a default version of fileutils and a higher version of fileutils installed as a regular gem. This case is common on ruby 2.6. * You use a bundler generated binstub on a gem setup with a `Gemfile` using the `gemspec` DSL. Then `fileutils` redefinition warnings happen because of the following: The gist of a bundler generated binstub is: ```ruby require "bundler/setup" load Gem.bin_path("rake", "rake") ``` First configure bundler, then load the requested gem. When `require "bundler/setup"` is called under the previously mentioned setup, `ext_conf_builder.rb` ends up being required because of the new validation that gemspecs with rake extensions depend on `rake`. And that loads the latest version of `fileutils` because of using "rubygems monkeypatched require" that auto-chooses the latest version of default gems. After that, when `Gem.bin_path` gets called, `ext_conf_builder.rb` gets required again, but this time already using "bundler's unmonkeypatched require" which means the default version is chosen and thus the redefinition warning happens. The solution as usual is to lazily load `fileutils`. https://github.com/rubygems/rubygems/commit/08d64e5f06
* [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygemsDavid Rodríguez2020-03-301-1/+1
| | | | | | So it matches the style used by bundler. https://github.com/rubygems/rubygems/commit/ab0580fd65
* [rubygems/rubygems] Fixed to warn with shadowing outer local variable.Hiroshi SHIBATA2019-08-051-4/+4
| | | | https://github.com/rubygems/rubygems/commit/b0588a87b1
* [rubygems/rubygems] Enable `Layout/EmptyLinesAroundAccessModifier`David Rodríguez2019-07-311-0/+1
| | | | https://github.com/rubygems/rubygems/commit/41b1cebc33
* [rubygems/rubygems] Migrate extension builder to use Open3David Rodríguez2019-07-311-8/+8
| | | | | | Since it works on jruby. https://github.com/rubygems/rubygems/commit/5229e00df4
* Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9chsbt2019-02-141-1/+2
| | | | | | | | | | | This version contains the some style changes by RuboCop. * https://github.com/rubygems/rubygems/commit/9d810be0ede925fb2e3af535848582c3f8e0e72f * https://github.com/rubygems/rubygems/commit/61ea98a727fb1b76b6fac52d74107ee4b02aaef2 * https://github.com/rubygems/rubygems/commit/795893dce3c5f8540804fc08144cc6a90f086b13 * https://github.com/rubygems/rubygems/commit/9be7858f7f17eae3058204f3c03e4b798ba18b9c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge master branch from rubygems/rubygems upstream.hsbt2018-11-211-2/+2
| | | | | | | | | | | | | * Enable Style/MethodDefParentheses in Rubocop https://github.com/rubygems/rubygems/pull/2478 * Enable Style/MultilineIfThen in Rubocop https://github.com/rubygems/rubygems/pull/2479 * Fix required_ruby_version with prereleases and improve error message https://github.com/rubygems/rubygems/pull/2344 * Fix bundler rubygems binstub not properly looking for bundler https://github.com/rubygems/rubygems/pull/2426 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge upstream from rubygems/rubygems master branch.hsbt2018-10-311-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge rubygems master branch from github.com/rubygems/rubygems.hsbt2018-10-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge RubyGems 3.0.0.beta1.hsbt2018-05-301-4/+2
| | | | | | | | | * It drop to support < Ruby 2.2 * Cleanup deprecated methods and classes. * Mark obsoleted methods to deprecate. * and other enhancements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix tempfile leaks on Windowsnobu2017-05-161-4/+2
| | | | | | | * lib/rubygems/ext/ext_conf_builder.rb (build): needs to close before unlink on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update Rubygems 2.6.10hsbt2017-01-241-3/+5
| | | | | | | * https://github.com/rubygems/rubygems/commit/2ee5bf9fd3bd7649d3e244bc40107ff32070ef47 * https://github.com/rubygems/rubygems/commit/be510dd4097e65c6a256a6e173d6b724a3a96472 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2.hsbt2016-02-011-5/+15
| | | | | | | | | It supports to enable frozen string literal and add `--norc` option for disable to `.gemrc` configuration. See 2.5.2 release notes for other fixes and enhancements. https://github.com/rubygems/rubygems/blob/a8aa3bac723f045c52471c7b9328310a048561e0/History.txt#L3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-161-0/+1
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems HEAD(c202db2).hsbt2015-07-011-1/+6
| | | | | | | this version contains many enhancements see http://git.io/vtNwF * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems 2.4.5.drbrain2014-12-071-1/+1
| | | | | | | * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems 2.4.1 master(713ab65)hsbt2014-09-141-10/+12
| | | | | | | | Complete history at: https://github.com/rubygems/rubygems/blob/master/History.txt#L3-L216 * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext_conf_builder.rb: fix tempfile leaknobu2014-05-261-1/+1
| | | | | | | * lib/rubygems/ext/ext_conf_builder.rb (build): ensure to remove temporary siteconf script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems 2.2.2 prerelease to check fixes todrbrain2014-02-041-1/+5
| | | | | | | | CI. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems master 1c5f4b3. Allows rubygemsdrbrain2013-12-161-1/+1
| | | | | | | | | repackagers to disable backward-compatible shared gem directory behavior. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems master baa965b. Notable changes:drbrain2013-12-011-6/+8
| | | | | | | | | | Copy directories to lib/ when installing extensions. This completes the fix for [ruby-trunk - Bug #9106] * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems master 6a3d9f9. Changes include:drbrain2013-11-191-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Compatibly renamed Gem::DependencyResolver to Gem::Resolver. Added support for git gems in gem.deps.rb and Gemfile. Fixed resolver bugs. * test/rubygems: ditto. * lib/rubygems/LICENSE.txt: Updated to license from RubyGems trunk. [ruby-trunk - Bug #9086] * lib/rubygems/commands/which_command.rb: RubyGems now indicates failure when any file is missing. [ruby-trunk - Bug #9004] * lib/rubygems/ext/builder: Extensions are now installed into the extension install directory and the first directory in the require path from the gem. This allows backwards compatibility with msgpack and other gems that calculate full require paths. [ruby-trunk - Bug #9106] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems master 2abce58. Changes:drbrain2013-10-161-2/+0
| | | | | | | | | | Fixed documentation generation when sdoc and json are installed as gems. Added some missing documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Import RubyGems from master as of commit b165260drbrain2013-07-221-3/+4
| | | | | | | * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use Tempfile.create to unlink the tempfile on Windowsnaruse2013-07-101-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/ext/ext_conf_builder.rb: Remove siteconf file afterdrbrain2013-07-091-0/+1
| | | | | | | | | | | | | | building the gem. * test/rubygems/test_gem_ext_ext_conf_builder.rb: Test for the above. * lib/rubygems/psych_tree.rb (module Gem): Add backward compatibility for r41148 * test/rubygems/test_gem_package.rb: Add backward compatibility for double-slash elimination. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e