rubygems-update 2.7.6 → 2.7.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -23
  3. data/History.txt +53 -0
  4. data/Manifest.txt +1 -0
  5. data/bundler/CHANGELOG.md +50 -0
  6. data/bundler/README.md +4 -0
  7. data/bundler/lib/bundler.rb +2 -2
  8. data/bundler/lib/bundler/cli.rb +2 -0
  9. data/bundler/lib/bundler/cli/check.rb +1 -1
  10. data/bundler/lib/bundler/cli/exec.rb +3 -4
  11. data/bundler/lib/bundler/cli/gem.rb +5 -2
  12. data/bundler/lib/bundler/cli/init.rb +5 -0
  13. data/bundler/lib/bundler/cli/install.rb +2 -2
  14. data/bundler/lib/bundler/cli/outdated.rb +1 -1
  15. data/bundler/lib/bundler/compact_index_client/updater.rb +10 -1
  16. data/bundler/lib/bundler/definition.rb +16 -11
  17. data/bundler/lib/bundler/fetcher.rb +2 -2
  18. data/bundler/lib/bundler/fetcher/index.rb +2 -2
  19. data/bundler/lib/bundler/friendly_errors.rb +2 -0
  20. data/bundler/lib/bundler/injector.rb +4 -4
  21. data/bundler/lib/bundler/installer.rb +12 -4
  22. data/bundler/lib/bundler/installer/gem_installer.rb +6 -1
  23. data/bundler/lib/bundler/plugin/index.rb +6 -1
  24. data/bundler/lib/bundler/resolver/spec_group.rb +0 -1
  25. data/bundler/lib/bundler/rubygems_integration.rb +9 -3
  26. data/bundler/lib/bundler/runtime.rb +1 -1
  27. data/bundler/lib/bundler/source/git.rb +2 -1
  28. data/bundler/lib/bundler/source/git/git_proxy.rb +6 -1
  29. data/bundler/lib/bundler/source/rubygems.rb +6 -1
  30. data/bundler/lib/bundler/spec_set.rb +4 -1
  31. data/bundler/lib/bundler/templates/Executable +1 -1
  32. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -2
  33. data/bundler/lib/bundler/ui/shell.rb +3 -1
  34. data/bundler/lib/bundler/version.rb +1 -1
  35. data/bundler/man/bundle-binstubs.ronn +3 -3
  36. data/bundler/man/bundle-check.ronn +3 -3
  37. data/bundler/man/bundle-config.ronn +13 -9
  38. data/bundler/man/bundle-doctor.ronn +33 -0
  39. data/bundler/man/bundle-exec.ronn +3 -3
  40. data/bundler/man/bundle-gem.ronn +1 -1
  41. data/bundler/man/bundle-init.ronn +15 -4
  42. data/bundler/man/bundle-inject.ronn +3 -3
  43. data/bundler/man/bundle-install.ronn +1 -1
  44. data/bundler/man/bundle-lock.ronn +1 -1
  45. data/bundler/man/bundle-outdated.ronn +1 -1
  46. data/bundler/man/bundle-package.ronn +3 -3
  47. data/bundler/man/bundle-show.ronn +2 -2
  48. data/bundler/man/bundle-update.ronn +8 -8
  49. data/bundler/man/bundle-viz.ronn +1 -1
  50. data/bundler/man/bundle.ronn +25 -25
  51. data/bundler/man/gemfile.5.ronn +3 -3
  52. data/lib/rubygems.rb +21 -3
  53. data/lib/rubygems/bundler_version_finder.rb +5 -1
  54. data/lib/rubygems/commands/push_command.rb +1 -1
  55. data/lib/rubygems/commands/setup_command.rb +3 -3
  56. data/lib/rubygems/commands/unpack_command.rb +1 -1
  57. data/lib/rubygems/dependency.rb +1 -0
  58. data/lib/rubygems/dependency_installer.rb +4 -2
  59. data/lib/rubygems/exceptions.rb +5 -1
  60. data/lib/rubygems/indexer.rb +1 -1
  61. data/lib/rubygems/installer.rb +5 -1
  62. data/lib/rubygems/package.rb +10 -2
  63. data/lib/rubygems/remote_fetcher.rb +1 -1
  64. data/lib/rubygems/request_set.rb +3 -1
  65. data/lib/rubygems/server.rb +3 -3
  66. data/lib/rubygems/source.rb +1 -1
  67. data/lib/rubygems/specification.rb +7 -10
  68. data/lib/rubygems/test_case.rb +21 -3
  69. data/lib/rubygems/test_utilities.rb +1 -1
  70. data/lib/rubygems/user_interaction.rb +4 -0
  71. data/lib/rubygems/version.rb +1 -0
  72. data/lib/ubygems.rb +3 -0
  73. data/test/rubygems/test_gem.rb +7 -7
  74. data/test/rubygems/test_gem_commands_setup_command.rb +6 -1
  75. data/test/rubygems/test_gem_package.rb +54 -5
  76. data/test/rubygems/test_gem_package_tar_header.rb +2 -1
  77. data/test/rubygems/test_gem_remote_fetcher.rb +1 -1
  78. data/test/rubygems/test_gem_security_policy.rb +3 -3
  79. data/test/rubygems/test_gem_server.rb +12 -12
  80. data/test/rubygems/test_gem_specification.rb +1 -1
  81. data/test/rubygems/test_gem_util.rb +4 -2
  82. data/test/rubygems/test_gem_version.rb +1 -0
  83. data/util/ci +1 -0
  84. metadata +6 -5
@@ -8,9 +8,9 @@ bundle-inject(1) -- Add named gem(s) with version requirements to Gemfile
8
8
  ## DESCRIPTION
9
9
 
10
10
  Adds the named gem(s) with their version requirements to the resolved
11
- `Gemfile(5)`.
11
+ [`Gemfile(5)`][Gemfile(5)].
12
12
 
13
- This command will add the gem to both your `Gemfile(5)` and Gemfile.lock if it
13
+ This command will add the gem to both your [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock if it
14
14
  isn't listed yet.
15
15
 
16
16
  Example:
@@ -19,4 +19,4 @@ Example:
19
19
  bundle inject 'rack' '> 0'
20
20
 
21
21
  This will inject the 'rack' gem with a version greater than 0 in your
22
- `Gemfile(5)` and Gemfile.lock
22
+ [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock
@@ -361,7 +361,7 @@ which other gems in the Gemfile(5) still depend on, run
361
361
  `Summary`: In general, after making a change to the Gemfile(5) , you
362
362
  should first try to run `bundle install`, which will guarantee that no
363
363
  other gem in the Gemfile(5) is impacted by the change. If that
364
- does not work, run [bundle update(1)][bundle-update].
364
+ does not work, run [bundle update(1)][bundle-update(1)].
365
365
 
366
366
  ## SEE ALSO
367
367
 
@@ -91,4 +91,4 @@ For a full explanation of gem platforms, see `gem help platform`.
91
91
 
92
92
  ## PATCH LEVEL OPTIONS
93
93
 
94
- See [bundle update(1)][bundle-update] for details.
94
+ See [bundle update(1)][bundle-update(1)] for details.
@@ -69,7 +69,7 @@ are up to date, Bundler will exit with a status of 0. Otherwise, it will exit 1.
69
69
 
70
70
  ## PATCH LEVEL OPTIONS
71
71
 
72
- See [bundle update(1)][bundle-update] for details.
72
+ See [bundle update(1)][bundle-update(1)] for details.
73
73
 
74
74
  One difference between the patch level options in `bundle update` and here is the `--strict` option.
75
75
  `--strict` was already an option on outdated before the patch level options were added. `--strict`
@@ -27,8 +27,8 @@ in your local bundler configuration.
27
27
 
28
28
  ## REMOTE FETCHING
29
29
 
30
- By default, if you run [bundle install(1)][bundle-install] after running
31
- [bundle package(1)][bundle-package], bundler will still connect to `rubygems.org`
30
+ By default, if you run `bundle install(1)`][bundle-install(1)] after running
31
+ [bundle package(1)][bundle-package(1)], bundler will still connect to `rubygems.org`
32
32
  to check whether a platform-specific gem exists for any of the gems
33
33
  in `vendor/cache`.
34
34
 
@@ -66,7 +66,7 @@ machine and check in the gems. For instance, you can run
66
66
  staging process, and check in the `vendor/cache` before
67
67
  deploying to production.
68
68
 
69
- By default, [bundle package(1)][bundle-package] fetches and also
69
+ By default, [bundle package(1)][bundle-package(1)] fetches and also
70
70
  installs the gems to the default location. To package the
71
71
  dependencies to `vendor/cache` without installing them to the
72
72
  local install location, you can run `bundle package --no-install`.
@@ -9,7 +9,7 @@ bundle-show(1) -- Shows all the gems in your bundle, or the path to a gem
9
9
  ## DESCRIPTION
10
10
 
11
11
  Without the [GEM] option, `show` will print a list of the names and versions of
12
- all gems that are required by your `Gemfile(5)`.
12
+ all gems that are required by your [`Gemfile(5)`][Gemfile(5)].
13
13
 
14
14
  Calling show with [GEM] will list the exact location of that gem on your
15
15
  machine.
@@ -17,4 +17,4 @@ machine.
17
17
  ## OPTIONS
18
18
 
19
19
  * `--paths`:
20
- List the paths of all gems that are required by your `Gemfile(5)`.
20
+ List the paths of all gems that are required by your [`Gemfile(5)`][Gemfile(5)].
@@ -20,7 +20,7 @@ bundle-update(1) -- Update your gems to the latest available versions
20
20
 
21
21
  Update the gems specified (all gems, if none are specified), ignoring
22
22
  the previously installed gems specified in the `Gemfile.lock`. In
23
- general, you should use [bundle install(1)][bundle-install] to install the same exact
23
+ general, you should use [bundle install(1)][bundle-install(1)] to install the same exact
24
24
  gems and versions across machines.
25
25
 
26
26
  You would use `bundle update` to explicitly update the version of a
@@ -91,7 +91,7 @@ Consider the following Gemfile(5):
91
91
  gem "rails", "3.0.0.rc"
92
92
  gem "nokogiri"
93
93
 
94
- When you run [bundle install(1)][bundle-install] the first time, bundler will resolve
94
+ When you run [bundle install(1)][bundle-install(1)] the first time, bundler will resolve
95
95
  all of the dependencies, all the way down, and install what you need:
96
96
 
97
97
  Fetching gem metadata from https://rubygems.org/.........
@@ -128,11 +128,11 @@ all of the dependencies, all the way down, and install what you need:
128
128
 
129
129
  As you can see, even though you have two gems in the Gemfile(5), your application
130
130
  needs 26 different gems in order to run. Bundler remembers the exact versions
131
- it installed in `Gemfile.lock`. The next time you run [bundle install(1)][bundle-install], bundler skips
131
+ it installed in `Gemfile.lock`. The next time you run [bundle install(1)][bundle-install(1)], bundler skips
132
132
  the dependency resolution and installs the same gems as it installed last time.
133
133
 
134
134
  After checking in the `Gemfile.lock` into version control and cloning it on another
135
- machine, running [bundle install(1)][bundle-install] will _still_ install the gems that you installed
135
+ machine, running [bundle install(1)][bundle-install(1)] will _still_ install the gems that you installed
136
136
  last time. You don't need to worry that a new release of `erubis` or `mail` changes
137
137
  the gems you use.
138
138
 
@@ -192,12 +192,12 @@ update all dependencies of that gem, including those that are also dependencies
192
192
  of another gem.
193
193
 
194
194
  To prevent updating shared dependencies, prior to version 1.14 the only option
195
- was the `CONSERVATIVE UPDATING` behavior in [bundle install(1)][bundle-install]:
195
+ was the `CONSERVATIVE UPDATING` behavior in [bundle install(1)][bundle-install(1)]:
196
196
 
197
197
  In this scenario, updating the `thin` version manually in the Gemfile(5),
198
- and then running [bundle install(1)][bundle-install] will only update `daemons` and `eventmachine`,
198
+ and then running [bundle install(1)][bundle-install(1)] will only update `daemons` and `eventmachine`,
199
199
  but not `rack`. For more information, see the `CONSERVATIVE UPDATING` section
200
- of [bundle install(1)][bundle-install].
200
+ of [bundle install(1)][bundle-install(1)].
201
201
 
202
202
  Starting with 1.14, specifying the `--conservative` option will also prevent shared
203
203
  dependencies from being updated.
@@ -335,7 +335,7 @@ use the following workflow:
335
335
 
336
336
  $ git add Gemfile.lock
337
337
 
338
- * If [bundle install(1)][bundle-install] reports a conflict, manually update the specific
338
+ * If [bundle install(1)][bundle-install(1)] reports a conflict, manually update the specific
339
339
  gems that you changed in the Gemfile(5)
340
340
 
341
341
  $ bundle update rails thin
@@ -14,7 +14,7 @@ bundle-viz(1) -- Generates a visual dependency graph for your Gemfile
14
14
  `viz` generates a PNG file of the current `Gemfile(5)` as a dependency graph.
15
15
  `viz` requires the ruby-graphviz gem (and its dependencies).
16
16
 
17
- The associated gems must also be installed via `bundle install(1)`.
17
+ The associated gems must also be installed via [`bundle install(1)`][bundle-install(1)].
18
18
 
19
19
  ## OPTIONS
20
20
 
@@ -26,73 +26,73 @@ started, and Gemfile(5) for more information on the `Gemfile` format.
26
26
 
27
27
  ## BUNDLE COMMANDS
28
28
 
29
- We divide `bundle` subcommands into primary commands and utilities.
29
+ We divide `bundle` subcommands into primary commands and utilities:
30
30
 
31
31
  ## PRIMARY COMMANDS
32
32
 
33
- * [`bundle install(1)`][bundle-install]:
33
+ * [`bundle install(1)`][bundle-install(1)]:
34
34
  Install the gems specified by the `Gemfile` or `Gemfile.lock`
35
35
 
36
- * [`bundle update(1)`][bundle-update]:
36
+ * [`bundle update(1)`][bundle-update(1)]:
37
37
  Update dependencies to their latest versions
38
38
 
39
- * [`bundle package(1)`][bundle-package]:
39
+ * [`bundle package(1)`][bundle-package(1)]:
40
40
  Package the .gem files required by your application into the
41
41
  `vendor/cache` directory
42
42
 
43
- * [`bundle exec(1)`][bundle-exec]:
44
- Execute a script in the context of the current bundle
43
+ * [`bundle exec(1)`][bundle-exec(1)]:
44
+ Execute a script in the current bundle
45
45
 
46
- * [`bundle config(1)`][bundle-config]:
47
- Specify and read configuration options for bundler
46
+ * [`bundle config(1)`][bundle-config(1)]:
47
+ Specify and read configuration options for Bundler
48
48
 
49
49
  * `bundle help(1)`:
50
50
  Display detailed help for each subcommand
51
51
 
52
52
  ## UTILITIES
53
53
 
54
- * `bundle add(1)`:
54
+ * [`bundle add(1)`][bundle-add(1)]:
55
55
  Add the named gem to the Gemfile and run `bundle install`
56
56
 
57
- * `bundle binstubs(1)`:
57
+ * [`bundle binstubs(1)`][bundle-binstubs(1)]:
58
58
  Generate binstubs for executables in a gem
59
59
 
60
- * `bundle check(1)`:
60
+ * [`bundle check(1)`][bundle-check(1)]:
61
61
  Determine whether the requirements for your application are installed
62
- and available to bundler
62
+ and available to Bundler
63
63
 
64
- * `bundle show(1)`:
64
+ * [`bundle show(1)`][bundle-show(1)]:
65
65
  Show the source location of a particular gem in the bundle
66
66
 
67
- * [`bundle outdated(1)`][bundle-outdated]:
67
+ * [`bundle outdated(1)`][bundle-outdated(1)]:
68
68
  Show all of the outdated gems in the current bundle
69
69
 
70
70
  * `bundle console(1)`:
71
- Start an IRB session in the context of the current bundle
71
+ Start an IRB session in the current bundle
72
72
 
73
- * `bundle open(1)`:
73
+ * [`bundle open(1)`][bundle-open(1)]:
74
74
  Open an installed gem in the editor
75
75
 
76
76
  * [`bundle lock(1)`][bundle-lock]:
77
77
  Generate a lockfile for your dependencies
78
78
 
79
- * `bundle viz(1)`:
79
+ * [`bundle viz(1)`][bundle-viz(1)]:
80
80
  Generate a visual representation of your dependencies
81
81
 
82
- * `bundle init(1)`:
82
+ * [`bundle init(1)`][bundle-init(1)]:
83
83
  Generate a simple `Gemfile`, placed in the current directory
84
84
 
85
- * [`bundle gem(1)`][bundle-gem]:
86
- Create a simple gem, suitable for development with bundler
85
+ * [`bundle gem(1)`][bundle-gem(1)]:
86
+ Create a simple gem, suitable for development with Bundler
87
87
 
88
- * [`bundle platform(1)`][bundle-platform]:
88
+ * [`bundle platform(1)`][bundle-platform(1)]:
89
89
  Display platform compatibility information
90
90
 
91
- * `bundle clean(1)`:
92
- Clean up unused gems in your bundler directory
91
+ * [`bundle clean(1)`][bundle-clean(1)]:
92
+ Clean up unused gems in your Bundler directory
93
93
 
94
94
  * `bundle doctor(1)`:
95
- Display warnings about common potential problems
95
+ Display warnings about common problems
96
96
 
97
97
  ## PLUGINS
98
98
 
@@ -102,7 +102,7 @@ and execute it, passing down any extra arguments to it.
102
102
 
103
103
  ## OBSOLETE
104
104
 
105
- These commands are obsolete and should no longer be used
105
+ These commands are obsolete and should no longer be used:
106
106
 
107
107
  * `bundle cache(1)`
108
108
  * `bundle show(1)`
@@ -35,7 +35,7 @@ this warning, by using the [`:source` option](#SOURCE) or a
35
35
 
36
36
  ### CREDENTIALS
37
37
 
38
- Some gem sources require a username and password. Use [bundle config(1)][bundle-config] to set
38
+ Some gem sources require a username and password. Use [bundle config(1)][bundle-config(1)] to set
39
39
  the username and password for any of the sources that need it. The command must
40
40
  be run once on each computer that will install the Gemfile, but this keeps the
41
41
  credentials from being stored in plain text in version control.
@@ -228,7 +228,7 @@ As with groups, you can specify one or more platforms:
228
228
  gem "ruby-debug", :platforms => :mri_18
229
229
  gem "nokogiri", :platforms => [:mri_18, :jruby]
230
230
 
231
- All operations involving groups (`bundle install`, `Bundler.setup`,
231
+ All operations involving groups ([`bundle install`][bundle-install(1)], `Bundler.setup`,
232
232
  `Bundler.require`) behave exactly the same as if any groups not
233
233
  matching the current platform were explicitly excluded.
234
234
 
@@ -465,7 +465,7 @@ software is installed or some other conditions are met.
465
465
 
466
466
  ## GEMSPEC
467
467
 
468
- The [.gemspec](http://guides.rubygems.org/specification-reference/) file is where
468
+ The [`.gemspec`](http://guides.rubygems.org/specification-reference/) file is where
469
469
  you provide metadata about your gem to Rubygems. Some required Gemspec
470
470
  attributes include the name, description, and homepage of your gem. This is
471
471
  also where you specify the dependencies your gem needs to run.
@@ -10,7 +10,7 @@ require 'rbconfig'
10
10
  require 'thread'
11
11
 
12
12
  module Gem
13
- VERSION = "2.7.6"
13
+ VERSION = "2.7.7"
14
14
  end
15
15
 
16
16
  # Must be first since it unloads the prelude from 1.9.2
@@ -604,7 +604,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
604
604
 
605
605
  private_class_method :find_home
606
606
 
607
- # FIXME deprecate these in 3.0
607
+ # TODO: remove in RubyGems 4.0
608
608
 
609
609
  ##
610
610
  # Zlib::GzipReader wrapper that unzips +data+.
@@ -613,6 +613,11 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
613
613
  Gem::Util.gunzip data
614
614
  end
615
615
 
616
+ class << self
617
+ extend Gem::Deprecate
618
+ deprecate :gunzip, "Gem::Util.gunzip", 2018, 12
619
+ end
620
+
616
621
  ##
617
622
  # Zlib::GzipWriter wrapper that zips +data+.
618
623
 
@@ -620,6 +625,11 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
620
625
  Gem::Util.gzip data
621
626
  end
622
627
 
628
+ class << self
629
+ extend Gem::Deprecate
630
+ deprecate :gzip, "Gem::Util.gzip", 2018, 12
631
+ end
632
+
623
633
  ##
624
634
  # A Zlib::Inflate#inflate wrapper
625
635
 
@@ -627,6 +637,11 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
627
637
  Gem::Util.inflate data
628
638
  end
629
639
 
640
+ class << self
641
+ extend Gem::Deprecate
642
+ deprecate :inflate, "Gem::Util.inflate", 2018, 12
643
+ end
644
+
630
645
  ##
631
646
  # Top level install helper method. Allows you to install gems interactively:
632
647
  #
@@ -1225,9 +1240,12 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
1225
1240
 
1226
1241
  class << self
1227
1242
  ##
1228
- # TODO remove with RubyGems 3.0
1243
+ # TODO remove with RubyGems 4.0
1229
1244
 
1230
1245
  alias detect_gemdeps use_gemdeps # :nodoc:
1246
+
1247
+ extend Gem::Deprecate
1248
+ deprecate :detect_gemdeps, "Gem.use_gemdeps", 2018, 12
1231
1249
  end
1232
1250
 
1233
1251
  # FIX: Almost everywhere else we use the `def self.` way of defining class
@@ -1,3 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rubygems/util"
4
+
1
5
  module Gem::BundlerVersionFinder
2
6
  @without_filtering = false
3
7
 
@@ -102,7 +106,7 @@ To install the missing version, run `gem install bundler:#{vr.first}`
102
106
  lockfile = case gemfile
103
107
  when "gems.rb" then "gems.locked"
104
108
  else "#{gemfile}.lock"
105
- end.untaint
109
+ end.dup.untaint
106
110
 
107
111
  return unless File.file?(lockfile)
108
112
 
@@ -13,7 +13,7 @@ class Gem::Commands::PushCommand < Gem::Command
13
13
  The push command uploads a gem to the push server (the default is
14
14
  https://rubygems.org) and adds it to the index.
15
15
 
16
- The gem can be removed from the index (but only the index) using the yank
16
+ The gem can be removed from the index and deleted from the server using the yank
17
17
  command. For further discussion see the help for the yank command.
18
18
  EOF
19
19
  end
@@ -351,7 +351,7 @@ By default, this RubyGems will install gem as:
351
351
  return unless Gem::USE_BUNDLER_FOR_GEMDEPS
352
352
 
353
353
  specs_dir = Gem::Specification.default_specifications_dir
354
- File.join(options[:destdir], specs_dir) unless Gem.win_platform?
354
+ specs_dir = File.join(options[:destdir], specs_dir) unless Gem.win_platform?
355
355
  mkdir_p specs_dir
356
356
 
357
357
  # Workaround for non-git environment.
@@ -385,8 +385,8 @@ By default, this RubyGems will install gem as:
385
385
  each {|default_gem| rm_r File.join(bundler_spec.gems_dir, default_gem) }
386
386
  end
387
387
 
388
- bundler_bin_dir = File.join(Gem.default_dir, 'gems', bundler_spec.full_name, bundler_spec.bindir)
389
- File.join(options[:destdir], bundler_bin_dir) unless Gem.win_platform?
388
+ bundler_bin_dir = bundler_spec.bin_dir
389
+ bundler_bin_dir = File.join(options[:destdir], bundler_bin_dir) unless Gem.win_platform?
390
390
  mkdir_p bundler_bin_dir
391
391
  bundler_spec.executables.each do |e|
392
392
  cp File.join("bundler", bundler_spec.bindir, e), File.join(bundler_bin_dir, e)
@@ -183,7 +183,7 @@ command help for an example.
183
183
  when 'metadata' then
184
184
  metadata = entry.read
185
185
  when 'metadata.gz' then
186
- metadata = Gem.gunzip entry.read
186
+ metadata = Gem::Util.gunzip entry.read
187
187
  end
188
188
  end
189
189
  end
@@ -2,6 +2,7 @@
2
2
  ##
3
3
  # The Dependency class holds a Gem name and a Gem::Requirement.
4
4
 
5
+ require "rubygems/bundler_version_finder"
5
6
  require "rubygems/requirement"
6
7
 
7
8
  class Gem::Dependency
@@ -113,7 +113,7 @@ class Gem::DependencyInstaller
113
113
 
114
114
  ##
115
115
  #--
116
- # TODO remove, no longer used
116
+ # TODO remove at RubyGems 4, no longer used
117
117
 
118
118
  def add_found_dependencies to_do, dependency_list # :nodoc:
119
119
  seen = {}
@@ -163,6 +163,7 @@ class Gem::DependencyInstaller
163
163
 
164
164
  dependency_list.remove_specs_unsatisfied_by dependencies
165
165
  end
166
+ deprecate :add_found_dependencies, :none, 2018, 12
166
167
 
167
168
  ##
168
169
  # Creates an AvailableSet to install from based on +dep_or_name+ and
@@ -321,7 +322,7 @@ class Gem::DependencyInstaller
321
322
  # Gathers all dependencies necessary for the installation from local and
322
323
  # remote sources unless the ignore_dependencies was given.
323
324
  #--
324
- # TODO remove at RubyGems 3
325
+ # TODO remove at RubyGems 4
325
326
 
326
327
  def gather_dependencies # :nodoc:
327
328
  specs = @available.all_specs
@@ -354,6 +355,7 @@ class Gem::DependencyInstaller
354
355
 
355
356
  @gems_to_install = dependency_list.dependency_order.reverse
356
357
  end
358
+ deprecate :gather_dependencies, :none, 2018, 12
357
359
 
358
360
  def in_background what # :nodoc:
359
361
  fork_happened = false
@@ -4,6 +4,8 @@
4
4
  # Each exception needs a brief description and the scenarios where it is
5
5
  # likely to be raised
6
6
 
7
+ require 'rubygems/deprecate'
8
+
7
9
  ##
8
10
  # Base exception class for RubyGems. All exception raised by RubyGems are a
9
11
  # subclass of this one.
@@ -11,10 +13,12 @@ class Gem::Exception < RuntimeError
11
13
 
12
14
  ##
13
15
  #--
14
- # TODO: remove in RubyGems 3, nobody sets this
16
+ # TODO: remove in RubyGems 4, nobody sets this
15
17
 
16
18
  attr_accessor :source_exception # :nodoc:
17
19
 
20
+ extend Gem::Deprecate
21
+ deprecate :source_exception, :none, 2018, 12
18
22
  end
19
23
 
20
24
  class Gem::CommandLineError < Gem::Exception; end