aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
Commit message (Collapse)AuthorAgeFilesLines
* test/rubygems/test_gem.rb: early failure when there is /tmp/GemfileYusuke Endoh2019-10-291-0/+4
| | | | | | | | | | | | | | | Some test cases in rubygems assume that /tmp/Gemfile does not exist. If it does, they fail with very difficult-to-understand message: ``` [ 149/2108] TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler = 0.00 1) Failure: TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler [/home/mame/work/ruby/test/rubygems/test_gem_bundler_version_finder.rb:38]: Expected Gem::Version.new("2.0.2") to be nil. ``` I spent one hour to debug this issue. To prevent the same accident, this change makes the test suite stop when /tmp/Gemfile explicitly.
* [rubygems/rubygems] Also bump test variableHiroshi SHIBATA2019-10-151-1/+1
| | | | https://github.com/rubygems/rubygems/commit/97e9768612
* [rubygems/rubygems] Do not compare with unreliable Gem::Specification::TODAYNobuyoshi Nakada2019-10-101-15/+18
| | | | | | https://gist.github.com/ko1/a88834d744a0682711dab53fd9015a04#file-brlog-trunk-nopara-20191005-235153-L393-L472 https://github.com/rubygems/rubygems/commit/707408d8e7
* [rubygems/rubygems] Restrict possible date rangeNobuyoshi Nakada2019-10-101-2/+3
| | | | https://github.com/rubygems/rubygems/commit/1bd77f53df
* Now keyword parameter warnings are suppressed by 871005bdd204Nobuyoshi Nakada2019-10-051-2/+2
| | | | | | | | | | This reverts commits: * 2a490d5660ac869f8f2bbcec4887b1dc2950643f Suppress assert_match warnings. * d4a86e407ec2057c2c7ad757aa76dad757f34c3a Assert warnings message for the last argument is keyword parameter.
* [rubygems/rubygems] The date might have advanced since TODAY has been setNobuyoshi Nakada2019-10-051-1/+3
| | | | | | https://bugs.ruby-lang.org/issues/16189 https://github.com/rubygems/rubygems/commit/e331222163
* [rubygems/rubygems] Add Gem::Dependency#identity methodbronzdoc2019-10-051-0/+7
| | | | https://github.com/rubygems/rubygems/commit/05146bb2fd
* [rubygems/rubygems] Suppress keywords warning in ruby 2.7Nobuyoshi Nakada2019-10-051-1/+1
| | | | https://github.com/rubygems/rubygems/commit/892bfc11fe
* [rubygems/rubygems] Use dedicated assertion methodsNobuyoshi Nakada2019-10-051-3/+3
| | | | | | For better messages at failures. https://github.com/rubygems/rubygems/commit/971455b16e
* [rubygems/rubygems] Fixed assertion argumentsNobuyoshi Nakada2019-10-051-1/+1
| | | | | | It is `assert_eqal(expected, actual)`. https://github.com/rubygems/rubygems/commit/1d6197a090
* Suppress assert_match warnings.Hiroshi SHIBATA2019-09-261-2/+2
|
* Assert warnings message for the last argument is keyword parameter.Hiroshi SHIBATA2019-09-261-2/+2
|
* [rubygems/rubygems] Make sure our modifications to kernel.warn workDavid Rodríguez2019-09-261-0/+15
| | | | | | And test the fix we're adding. https://github.com/rubygems/rubygems/commit/6f86637b98
* [rubygems/rubygems] indentHiroshi SHIBATA2019-09-261-4/+4
| | | | https://github.com/rubygems/rubygems/commit/8cdb2fd66f
* [rubygems/rubygems] Fix test_gem_attrbronzdoc2019-09-261-4/+4
| | | | https://github.com/rubygems/rubygems/commit/7c5b66f9ef
* [rubygems/rubygems] add testsf2019-09-261-0/+1
| | | | https://github.com/rubygems/rubygems/commit/8a7e27381c
* [rubygems/rubygems] Fix underscore version for bundler itselfDavid Rodríguez2019-09-261-0/+34
| | | | | | Previously it wouldn't play nice with the bundler version finder. https://github.com/rubygems/rubygems/commit/d8bb81556d
* [rubygems/rubygems] Update expectation in test_to_ruby_with_rsa_keybronzdoc2019-09-261-2/+1
| | | | https://github.com/rubygems/rubygems/commit/2e65f7d4ae
* [rubygems/rubygems] Make ruby_code method handle OpenSSL::PKey::RSA objectsbronzdoc2019-09-261-0/+30
| | | | https://github.com/rubygems/rubygems/commit/b1d825ab3a
* [rubygems/rubygems] Set SOURCE_DATE_EPOCH env var if not provided.Ellen Marie Dash2019-09-262-0/+59
| | | | | | | | | | | | | Fixes #2290. 1. `Gem::Specification.date` returns SOURCE_DATE_EPOCH when defined, 2. this commit makes RubyGems set it _persistently_ when not provided. This combination means that you can build a gem, check the build time, and use that value to generate a new build -- and then verify they're the same. https://github.com/rubygems/rubygems/commit/d830d53f59
* [rubygems/rubygems] Add a gem attr to the Gem::Package class.Daniel Berger2019-09-261-0/+5
| | | | https://github.com/rubygems/rubygems/commit/5b81f364ae
* [rubygems/rubygems] Bump rubocop to 0.74.0 and fix new offensesDavid Rodríguez2019-09-055-6/+6
| | | | https://github.com/rubygems/rubygems/commit/d4fc383497
* [rubygems/rubygems] Fix Layout/SpaceAroundOperators: Operator = should be ↵bronzdoc2019-09-051-1/+1
| | | | | | surrounded by a single space. https://github.com/rubygems/rubygems/commit/eaa38ebeb1
* [rubygems/rubygems] Error out if there are multiple gemspecs and no gemspec ↵bronzdoc2019-09-051-31/+7
| | | | | | is specified https://github.com/rubygems/rubygems/commit/547947bbf0
* [rubygems/rubygems] Remove useless gem setupbronzdoc2019-09-051-10/+1
| | | | https://github.com/rubygems/rubygems/commit/c8913e37a7
* [rubygems/rubygems] Test building a gem with multiple gemspec without a gem ↵bronzdoc2019-09-051-0/+59
| | | | | | name specified https://github.com/rubygems/rubygems/commit/38c72fd145
* [rubygems/rubygems] Build the first gemspec we found if no gemspec is specifiedbronzdoc2019-09-051-0/+39
| | | | https://github.com/rubygems/rubygems/commit/ab186266b7
* [rubygems/rubygems] Improve gemspec assignment and error messagebronzdoc2019-09-051-1/+1
| | | | https://github.com/rubygems/rubygems/commit/dc70c5a192
* [rubygems/rubygems] Don't fail when `uninstall --all` with default gemDavid Rodríguez2019-09-052-4/+49
| | | | | | | 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
* [rubygems/rubygems] Little refactor to avoid rubocop's false positiveDavid Rodríguez2019-09-051-6/+8
| | | | | | | Otherwise it detects duplicate methods here, because it doesn't see that we are reopening the class in two different places. https://github.com/rubygems/rubygems/commit/ae3fb47f5f
* Skip teardown with JRubyHiroshi SHIBATA2019-08-171-1/+1
|
* Revert "Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem""Hiroshi SHIBATA2019-08-171-0/+33
| | | | This reverts commit 75d29db8f965893bb6ab38b9008abc80cdda246e.
* Revert "[rubygems/rubygems] [Require] Ensure -I beats a default gem"Hiroshi SHIBATA2019-08-171-33/+0
| | | | This reverts commit 00cd5d74cecb6aa4a184e57e2b8246ef6e45d458.
* Move lib directory to the last of $LOAD_PATH on ruby repository.Hiroshi SHIBATA2019-08-171-0/+10
| | | | | | https://github.com/rubygems/rubygems/pull/1868 changes the behavior of require when it used with -I options. Therefore, the options of ruby repository was different from rubygems/rubygems.
* [rubygems/rubygems] Do not mutate uri.query during s3 signature creationAlexander Pakulov2019-08-171-0/+3
| | | | https://github.com/rubygems/rubygems/commit/c0275ee537
* [rubygems/rubygems] Autoswitch to exact bundler version if presentDavid Rodríguez2019-08-172-1/+35
| | | | https://github.com/rubygems/rubygems/commit/bb02953a97
* [rubygems/rubygems] Fix removing unresolved default spec files from mapDavid Rodríguez2019-08-171-0/+20
| | | | https://github.com/rubygems/rubygems/commit/7964917bbc
* [rubygems/rubygems] Replace domain parameter in ↵bronzdoc2019-08-171-1/+1
| | | | | | Gem::Command#show_lookup_failure with a parameter to suppress suggestions https://github.com/rubygems/rubygems/commit/760b7d834f
* [rubygems/rubygems] [Require] Ensure -I beats a default gemSamuel Giddins2019-08-171-0/+33
| | | | https://github.com/rubygems/rubygems/commit/6fbda98eb3
* [rubygems/rubygems] Make test also assert the gems that it should loadDavid Rodríguez2019-08-171-0/+1
| | | | https://github.com/rubygems/rubygems/commit/a6375920bf
* [rubygems/rubygems] Use `assert_require`David Rodríguez2019-08-171-1/+1
| | | | | | For consistency with the other specs. https://github.com/rubygems/rubygems/commit/44b93aec4c
* [rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of ↵Benoit Daloze2019-08-052-31/+20
| | | | | | | | | 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
* [rubygems/rubygems] Fix error handling of #with_engine_versionBenoit Daloze2019-08-051-12/+13
| | | | | | | * If settings constants fail, show that exception instead of getting another one due to variables being unset and hiding the real cause. https://github.com/rubygems/rubygems/commit/f38cd67874
* [rubygems/rubygems] Cleanup after testing `rake package`David Rodríguez2019-08-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it happens to me that my local tests start failing because I pull some file removals or renames into my local copy, and those are still present on my last copy of pkg/. In those cases, the test about `rake package` will fail with something like the following: ```` Failure: TestRakePackage#test_builds_ok [/home/deivid/Code/rubygems/test/rubygems/test_rake_package.rb:13]: Expected `rake package` to work, but got errors: ``` cd pkg/rubygems-update-3.1.0.pre1 WARNING: See http://guides.rubygems.org/specification-reference/ for help rake aborted! Gem::InvalidSpecificationException: ["test/rubygems/test_rake_package.rb"] are not files Tasks: TOP => package => gem => pkg/rubygems-update-3.1.0.pre1.gem (See full trace by running task with --trace) ``` If you have added or removed files, make sure you run `rake update_manifest` to update the `Manifest.txt` accordingly. Expected: true Actual: false ```` So, make sure, package is always built from scratch. https://github.com/rubygems/rubygems/commit/4e2cc9eb26
* [rubygems/rubygems] Revert cadb66037d9b58c80fc795f39384d533229a1f73bronzdoc2019-08-051-0/+18
| | | | https://github.com/rubygems/rubygems/commit/5c3158d975
* test/rubygems/test_gem_remote_fetcher.rb: suppress deprecation warningsYusuke Endoh2019-07-311-3/+9
|
* File.exists? is deprecated.Hiroshi SHIBATA2019-07-311-1/+1
|
* [rubygems/rubygems] Skip integration test for rake package task.Hiroshi SHIBATA2019-07-311-0/+2
| | | | https://github.com/rubygems/rubygems/commit/ca8afc01a3
* [rubygems/rubygems] Drop support for 'gem env packageversion'bronzdoc2019-07-311-11/+0
| | | | https://github.com/rubygems/rubygems/commit/be962ca0c4
* [rubygems/rubygems] Improve `rake package` test error messageDavid Rodríguez2019-07-311-1/+9
| | | | https://github.com/rubygems/rubygems/commit/be962ca0c4