rubygems-update 3.1.0.pre1 → 3.1.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3e6ab15d3fa155e8062867d9b707cd822ebb64a6dba4e16f0924574c602613b
4
- data.tar.gz: e4d1770fde676ca1590d4d42bd530a7916cc9a9844cbb3eb2e5ec2aa4bbdaf49
3
+ metadata.gz: 12c655396b1a51084dcafe66034d401555499af6244eb36898acd718b7e4747f
4
+ data.tar.gz: 1ccf2e1b53df91037dc9ae294717261226dd1681241e8dbdad1bc76255abb57a
5
5
  SHA512:
6
- metadata.gz: 0add84680770904a905630ed3eb4ab262e8b7d68ea9ce893eb7ead52d35cb657c500c4eeee79eacc48ea4459adea0a5a36ec84d798ac935587f71fc4c1dbdc37
7
- data.tar.gz: 657bb74c56efd72b427500202660f8599d39678d8f35a5de2670cb1c1663ffb2c53c61ddc161f1132d4231c20660b9dfb581b8b67916780cd3e6da6336ef9584
6
+ metadata.gz: 4b4819b33be36c276db078c5cee97968870091c58b19db4dff609d370e26f55fb7675aa1b18429a60024fffd200d33b647e59bc91574720be049313ec9d1fd61
7
+ data.tar.gz: cc26746cc527a6aa96dea72c2c5660f4295b96e5bc4af6e5bad6d04e4ad9b799a0080b7a5650e9562b3a479639f3bce611882c9f1498172d3d587a0780165213
@@ -1,5 +1,232 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 3.1.0.pre2 / 2018-12-19
4
+
5
+ Minor enhancements:
6
+
7
+ * Optimize Gem::Package::TarReader#each. Pull request #2941 by Jean byroot
8
+ Boussier.
9
+ * Time comparison around date boundary. Pull request #2944 by Nobuyoshi
10
+ Nakada.
11
+
12
+ === 3.1.0.pre1 / 2018-12-19
13
+
14
+ Major enhancements:
15
+
16
+ * Try to use bundler-2.1.0.pre.2. Pull request #2923 by SHIBATA Hiroshi.
17
+ * [Require] Ensure -I beats a default gem. Pull request #1868 by Samuel
18
+ Giddins.
19
+ * [Specification] Prefer user-installed gems to default gems. Pull request
20
+ #2112 by Samuel Giddins.
21
+ * Multifactor authentication for yank command. Pull request #2514 by Qiu
22
+ Chaofan.
23
+ * Autoswitch to exact bundler version if present. Pull request #2583 by
24
+ David Rodríguez.
25
+
26
+ Minor enhancements:
27
+
28
+ * Fix Gem::Requirement equality comparison when ~> operator is used. Pull
29
+ request #2554 by Grey Baker.
30
+ * Don't use a proxy if https_proxy env var is empty. Pull request #2567 by
31
+ Luis Sagastume.
32
+ * Fix typo in specs warning. Pull request #2585 by Rui.
33
+ * Bin/gem: remove initial empty line. Pull request #2602 by Kenyon Ralph.
34
+ * Avoid rdoc hook when it's failed to load rdoc library. Pull request
35
+ #2604 by SHIBATA Hiroshi.
36
+ * Refactor get_proxy_from_env logic. Pull request #2611 by Luis Sagastume.
37
+ * Allow to easily bisect flaky failures. Pull request #2626 by David
38
+ Rodríguez.
39
+ * Fix `--ignore-dependencies` flag not installing platform specific gems.
40
+ Pull request #2631 by David Rodríguez.
41
+ * Make `gem install --explain` list platforms. Pull request #2634 by David
42
+ Rodríguez.
43
+ * Make `gem update --explain` list platforms. Pull request #2635 by David
44
+ Rodríguez.
45
+ * Refactoring install and update explanations. Pull request #2643 by David
46
+ Rodríguez.
47
+ * Restore transitiveness of version comparison. Pull request #2651 by
48
+ David Rodríguez.
49
+ * Undo requirement sorting. Pull request #2652 by David Rodríguez.
50
+ * Update dummy version of Bundler for #2581. Pull request #2584 by SHIBATA
51
+ Hiroshi.
52
+ * Ignore to handle the different platform. Pull request #2672 by SHIBATA
53
+ Hiroshi.
54
+ * Make Gem::Specification.default_stubs to public methods. Pull request
55
+ #2675 by SHIBATA Hiroshi.
56
+ * Sort files and test_files in specifications. Pull request #2524 by
57
+ Christopher Baines.
58
+ * Fix comment of Gem::Specification#required_ruby_version=. Pull request
59
+ #2732 by Alex Junger.
60
+ * Config_file.rb - update path separator in ENV['GEMRC'] logic. Pull
61
+ request #2735 by MSP-Greg.
62
+ * Fix `ruby setup.rb` warnings. Pull request #2737 by David Rodríguez.
63
+ * Don't use regex delimiters when searching for a dependency. Pull request
64
+ #2738 by Luis Sagastume.
65
+ * Refactor query command. Pull request #2739 by Luis Sagastume.
66
+ * Don't remove default spec files from mapping after require. Pull request
67
+ #2741 by David Rodríguez.
68
+ * Cleanup base test case. Pull request #2742 by David Rodríguez.
69
+ * Simplify Specification#gems_dir. Pull request #2745 by David Rodríguez.
70
+ * Fix test warning. Pull request #2746 by David Rodríguez.
71
+ * Extract an `add_to_load_path` method. Pull request #2749 by David
72
+ Rodríguez.
73
+ * Fix setup command if format_executable is true by default. Pull request
74
+ #2766 by Jeremy Evans.
75
+ * Update the certificate files to make the test pass on Debian 10. Pull
76
+ request #2777 by Yusuke Endoh.
77
+ * Write to the correct config file(.gemrc). Pull request #2779 by Luis
78
+ Sagastume.
79
+ * Fix for large values in UID/GID fields in tar archives. Pull request
80
+ #2780 by Alexey Shein.
81
+ * Lazy require stringio. Pull request #2781 by Luis Sagastume.
82
+ * Make Gem::Specification#ruby_code handle OpenSSL::PKey::RSA objects.
83
+ Pull request #2782 by Luis Sagastume.
84
+ * Fix setup command test for bundler with program_suffix. Pull request
85
+ #2783 by Sorah Fukumori.
86
+ * Make sure `rake package` works. Pull request #2787 by David Rodríguez.
87
+ * Synchronize access to the Gem::Specification::LOAD_CACHE Hash. Pull
88
+ request #2789 by Benoit Daloze.
89
+ * Task to install rubygems to local system. Pull request #2795 by David
90
+ Rodríguez.
91
+ * Add an attr_reader to Gem::Installer for the package instance variable.
92
+ Pull request #2796 by Daniel Berger.
93
+ * Switch CI script to bash. Pull request #2799 by David Rodríguez.
94
+ * Move gemcutter utilities code to Gem::Command. Pull request #2803 by
95
+ Luis Sagastume.
96
+ * Add raw spec method to gem package. Pull request #2806 by Luis
97
+ Sagastume.
98
+ * Improve `rake package` test error message. Pull request #2815 by David
99
+ Rodríguez.
100
+ * Resolve `@@project_dir` from test file paths. Pull request #2843 by
101
+ Nobuyoshi Nakada.
102
+ * Remove dead code in Gem::Validator. Pull request #2537 by Ellen Marie
103
+ Dash.
104
+ * The date might have advanced since TODAY has been set. Pull request
105
+ #2938 by Nobuyoshi Nakada.
106
+ * Remove old ci configurations. Pull request #2917 by SHIBATA Hiroshi.
107
+ * Add Gem::Dependency identity. Pull request #2936 by Luis Sagastume.
108
+ * Filter dependency type and name strictly. Pull request #2930 by SHIBATA
109
+ Hiroshi.
110
+ * Always pass an encoding option to Zlib::GzipReader.wrap. Pull request
111
+ #2933 by Nobuyoshi Nakada.
112
+ * Introduce default prerelease requirement. Pull request #2925 by David
113
+ Rodríguez.
114
+ * Detect libc version, closes #2918. Pull request #2922 by fauno.
115
+ * Use IAM role to extract security-credentials for EC2 instance. Pull
116
+ request #2894 by Alexander Pakulov.
117
+ * Improve `gem uninstall --all`. Pull request #2893 by David Rodríguez.
118
+ * Use `RbConfig::CONFIG['rubylibprefix']`. Pull request #2889 by Nobuyoshi
119
+ Nakada.
120
+ * Build the first gemspec we found if no arguments are passed to gem
121
+ build. Pull request #2887 by Luis Sagastume.
122
+ * $LOAD_PATH elements should be real paths. Pull request #2885 by
123
+ Nobuyoshi Nakada.
124
+ * Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION. Pull
125
+ request #2864 by Benoit Daloze.
126
+ * Cleanup after testing `rake package`. Pull request #2862 by David
127
+ Rodríguez.
128
+ * Cherry-pick shushing deprecation warnings from ruby-core. Pull request
129
+ #2861 by David Rodríguez.
130
+ * Ext/builder.rb cleanup. Pull request #2849 by Luis Sagastume.
131
+ * Fix @ran_rake assignment in builder.rb. Pull request #2850 by Luis
132
+ Sagastume.
133
+ * Remove test suite warnings. Pull request #2845 by Luis Sagastume.
134
+ * Replace domain parameter with a parameter to suppress suggestions. Pull
135
+ request #2846 by Luis Sagastume.
136
+ * Move default specifications dir definition out of BasicSpecification.
137
+ Pull request #2841 by Vít Ondruch.
138
+ * There is no usage of @orig_env_* variables in test suite. Pull request
139
+ #2838 by SHIBATA Hiroshi.
140
+ * Use File#open instead of Kernel#open in stub_specification.rb. Pull
141
+ request #2834 by Luis Sagastume.
142
+ * Simplify #to_ruby code. Pull request #2825 by Nobuyoshi Nakada.
143
+ * Add a gem attr to the Gem::Package class. Pull request #2828 by Daniel
144
+ Berger.
145
+ * Remove useless TODO comment. Pull request #2818 by Luis Sagastume.
146
+
147
+ Bug fixes:
148
+
149
+ * Fix typos in History.txt. Pull request #2565 by Igor Zubkov.
150
+ * Remove unused empty sources array. Pull request #2598 by Aaron
151
+ Patterson.
152
+ * Fix windows specific executables generated by `gem install`. Pull
153
+ request #2628 by David Rodríguez.
154
+ * Gem::Specification#to_ruby needs OpenSSL. Pull request #2937 by
155
+ Nobuyoshi Nakada.
156
+ * Set SOURCE_DATE_EPOCH env var if not provided. Pull request #2882 by
157
+ Ellen Marie Dash.
158
+ * Installer.rb - fix #windows_stub_script. Pull request #2876 by MSP-Greg.
159
+ * Fixed deprecation message. Pull request #2867 by Nobuyoshi Nakada.
160
+ * Fix requiring default gems to consider prereleases. Pull request #2728
161
+ by David Rodríguez.
162
+ * Forbid `find_spec_for_exe` without an `exec_name`. Pull request #2706 by
163
+ David Rodríguez.
164
+ * Do not prompt for passphrase when key can be loaded without it. Pull
165
+ request #2710 by Luis Sagastume.
166
+ * Add missing wrapper. Pull request #2690 by David Rodríguez.
167
+ * Remove long ago deprecated methods. Pull request #2704 by David
168
+ Rodríguez.
169
+ * Renamed duplicate test. Pull request #2678 by Nobuyoshi Nakada.
170
+ * File.exists? is deprecated. Pull request #2855 by SHIBATA Hiroshi.
171
+ * Fixed to warn with shadowing outer local variable. Pull request #2856 by
172
+ SHIBATA Hiroshi.
173
+ * Fix explain with ignore-dependencies. Pull request #2647 by David
174
+ Rodríguez.
175
+ * Fix default gem executable installation when folder is not `bin/`. Pull
176
+ request #2649 by David Rodríguez.
177
+ * Fix cryptic error on local and ignore-dependencies combination. Pull
178
+ request #2650 by David Rodríguez.
179
+
180
+ Compatibility changes:
181
+
182
+ * Remove commented code from command.rb. Pull request #2620 by Luis
183
+ Sagastume.
184
+ * Suppress keywords warning. Pull request #2934 by Nobuyoshi Nakada.
185
+ * Suppress Ruby 2.7's real kwargs warning. Pull request #2912 by Koichi
186
+ ITO.
187
+ * Fix Kernel#warn override. Pull request #2911 by Jeremy Evans.
188
+ * Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap. Pull request
189
+ #2857 by SHIBATA Hiroshi.
190
+ * Deprecate Gem::RemoteFetcher#fetch_size. Pull request #2833 by Luis
191
+ Sagastume.
192
+ * Remove conflict.rb code that was supposed to be removed in Rubygems 3.
193
+ Pull request #2802 by Luis Sagastume.
194
+ * Explicitly deprecate `rubyforge_project`. Pull request #2798 by David
195
+ Rodríguez.
196
+ * Compatibility cleanups. Pull request #2754 by David Rodríguez.
197
+ * Remove `others_possible` activation request param. Pull request #2747 by
198
+ David Rodríguez.
199
+ * Remove dependency installer deprecated code. Pull request #2740 by Luis
200
+ Sagastume.
201
+ * Deprecate unused Gem::Installer#unpack method. Pull request #2715 by Vít
202
+ Ondruch.
203
+ * Removed guard condition with USE_BUNDLER_FOR_GEMDEPS. Pull request #2716
204
+ by SHIBATA Hiroshi.
205
+ * Skip deprecation warning during specs. Pull request #2718 by David
206
+ Rodríguez.
207
+ * Remove QuickLoader reference. Pull request #2719 by David Rodríguez.
208
+ * Removed circular require. Pull request #2679 by Nobuyoshi Nakada.
209
+ * Removed needless environmental variable for Travis CI. Pull request
210
+ #2685 by SHIBATA Hiroshi.
211
+ * Deprecate a few unused methods. Pull request #2674 by David Rodríguez.
212
+ * Removing yaml require. Pull request #2538 by Luciano Sousa.
213
+ * Add deprecation warnings for cli options. Pull request #2607 by Luis
214
+ Sagastume.
215
+
216
+ Style changes:
217
+
218
+ * Enable `Layout/SpaceInsideParens` rubocop cop. Pull request #2630 by
219
+ David Rodríguez.
220
+ * Remove some extra empty lines from the repo. Pull request #2669 by David
221
+ Rodríguez.
222
+ * Enable Style/EmptyLinesAroundClassBody rubocop cop. Pull request #2636
223
+ by David Rodríguez.
224
+ * Enable Style/BlockDelimiters rubocop cop. Pull request #2640 by David
225
+ Rodríguez.
226
+ * Enable Layout/SpaceAroundOperators rubocop cop. Pull request #2642 by
227
+ David Rodríguez.
228
+ * Rubocop 0.71. Pull request #2785 by David Rodríguez.
229
+
3
230
  === 3.0.6 / 2019-08-17
4
231
 
5
232
  Bug fixes:
@@ -9,7 +9,7 @@
9
9
  require 'rbconfig'
10
10
 
11
11
  module Gem
12
- VERSION = "3.1.0.pre1".freeze
12
+ VERSION = "3.1.0.pre2".freeze
13
13
  end
14
14
 
15
15
  # Must be first since it unloads the prelude from 1.9.2
@@ -55,6 +55,8 @@ class Gem::Package::TarReader
55
55
  def each
56
56
  return enum_for __method__ unless block_given?
57
57
 
58
+ use_seek = @io.respond_to?(:seek)
59
+
58
60
  until @io.eof? do
59
61
  header = Gem::Package::TarHeader.from @io
60
62
  return if header.empty?
@@ -67,18 +69,22 @@ class Gem::Package::TarReader
67
69
  skip = (512 - (size % 512)) % 512
68
70
  pending = size - entry.bytes_read
69
71
 
70
- begin
71
- # avoid reading...
72
- @io.seek pending, IO::SEEK_CUR
73
- pending = 0
74
- rescue Errno::EINVAL, NameError
75
- while pending > 0 do
76
- bytes_read = @io.read([pending, 4096].min).size
77
- raise UnexpectedEOF if @io.eof?
78
- pending -= bytes_read
72
+ if use_seek
73
+ begin
74
+ # avoid reading if the @io supports seeking
75
+ @io.seek pending, IO::SEEK_CUR
76
+ pending = 0
77
+ rescue Errno::EINVAL
79
78
  end
80
79
  end
81
80
 
81
+ # if seeking isn't supported or failed
82
+ while pending > 0 do
83
+ bytes_read = @io.read([pending, 4096].min).size
84
+ raise UnexpectedEOF if @io.eof?
85
+ pending -= bytes_read
86
+ end
87
+
82
88
  @io.read skip # discard trailing zeros
83
89
 
84
90
  # make sure nobody can use #read, #getc or #rewind anymore
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubygems-update"
5
- s.version = "3.1.0.pre1"
5
+ s.version = "3.1.0.pre2"
6
6
  s.authors = ["Jim Weirich", "Chad Fowler", "Eric Hodel", "Luis Lavena", "Aaron Patterson", "Samuel Giddins", "André Arko", "Evan Phoenix", "Hiroshi SHIBATA"]
7
7
  s.email = ["", "", "drbrain@segment7.net", "luislavena@gmail.com", "aaron@tenderlovemaking.com", "segiddins@segiddins.me", "andre@arko.net", "evan@phx.io", "hsbt@ruby-lang.org"]
8
8
 
@@ -74,6 +74,12 @@ end
74
74
  end
75
75
  end
76
76
 
77
+ def assert_date(date)
78
+ assert_kind_of Time, date
79
+ assert_equal [0, 0, 0], [date.hour, date.min, date.sec]
80
+ assert_operator (Gem::Specification::TODAY..Time.now), :cover?, date
81
+ end
82
+
77
83
  def setup
78
84
  super
79
85
 
@@ -1035,7 +1041,7 @@ dependencies: []
1035
1041
  end
1036
1042
  assert_equal 'keyedlist', spec.name
1037
1043
  assert_equal '0.4.0', spec.version.to_s
1038
- assert_equal Gem::Specification::TODAY, spec.date
1044
+ assert_kind_of Time, spec.date
1039
1045
  assert spec.required_ruby_version.satisfied_by?(Gem::Version.new('1'))
1040
1046
  assert_equal false, spec.has_unit_tests?
1041
1047
  end
@@ -1694,9 +1700,7 @@ dependencies: []
1694
1700
  end
1695
1701
 
1696
1702
  def test_date
1697
- today = Gem::Specification::TODAY
1698
- tomorrow = today + 86401 # +1 for leap second
1699
- assert_operator (today..tomorrow), :cover?, @a1.date
1703
+ assert_date @a1.date
1700
1704
  end
1701
1705
 
1702
1706
  def test_date_equals_date
@@ -2420,7 +2424,7 @@ Gem::Specification.new do |s|
2420
2424
  s.required_rubygems_version = Gem::Requirement.new(\"> 0\".freeze) if s.respond_to? :required_rubygems_version=
2421
2425
  s.require_paths = ["lib".freeze, "other".freeze]
2422
2426
  s.authors = ["A User".freeze]
2423
- s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
2427
+ s.date = "#{@a2.date.strftime("%Y-%m-%d")}"
2424
2428
  s.description = "This is a test description".freeze
2425
2429
  s.email = "example@example.com".freeze
2426
2430
  s.files = ["lib/code.rb".freeze]
@@ -2463,12 +2467,12 @@ Gem::Specification.new do |s|
2463
2467
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
2464
2468
  s.require_paths = ["lib".freeze]
2465
2469
  s.authors = ["A User".freeze]
2466
- s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
2470
+ s.date = "#{@a2.date.strftime("%Y-%m-%d")}"
2467
2471
  s.description = "This is a test description".freeze
2468
2472
  s.email = "example@example.com".freeze
2469
2473
  s.files = ["lib/code.rb".freeze]
2470
2474
  s.homepage = "http://example.com".freeze
2471
- s.rubygems_version = "3.1.0.pre1".freeze
2475
+ s.rubygems_version = "3.1.0.pre2".freeze
2472
2476
  s.summary = "this is a summary".freeze
2473
2477
  end
2474
2478
  SPEC
@@ -2496,7 +2500,7 @@ Gem::Specification.new do |s|
2496
2500
  s.required_rubygems_version = Gem::Requirement.new(\"> 0\".freeze) if s.respond_to? :required_rubygems_version=
2497
2501
  s.require_paths = ["lib".freeze]
2498
2502
  s.authors = ["A User".freeze]
2499
- s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
2503
+ s.date = "#{@a2.date.strftime("%Y-%m-%d")}"
2500
2504
  s.description = "This is a test description".freeze
2501
2505
  s.email = "example@example.com".freeze
2502
2506
  s.homepage = "http://example.com".freeze
@@ -2551,7 +2555,7 @@ Gem::Specification.new do |s|
2551
2555
  s.required_rubygems_version = Gem::Requirement.new(\">= 0\".freeze) if s.respond_to? :required_rubygems_version=
2552
2556
  s.require_paths = ["lib".freeze]
2553
2557
  s.authors = ["A User".freeze]
2554
- s.date = "#{Gem::Specification::TODAY.strftime "%Y-%m-%d"}"
2558
+ s.date = "#{@c1.date.strftime("%Y-%m-%d")}"
2555
2559
  s.description = "This is a test description".freeze
2556
2560
  s.email = "example@example.com".freeze
2557
2561
  s.executables = ["exec".freeze]
@@ -3623,6 +3627,11 @@ Did you mean 'Ruby'?
3623
3627
  end
3624
3628
 
3625
3629
  def test_metadata_specs
3630
+ @m1 = quick_gem 'm', '1' do |s|
3631
+ s.files = %w[lib/code.rb]
3632
+ s.metadata = { 'one' => "two", 'two' => "three" }
3633
+ end
3634
+
3626
3635
  valid_ruby_spec = <<-EOF
3627
3636
  # -*- encoding: utf-8 -*-
3628
3637
  # stub: m 1 ruby lib
@@ -3635,7 +3644,7 @@ Gem::Specification.new do |s|
3635
3644
  s.metadata = { "one" => "two", "two" => "three" } if s.respond_to? :metadata=
3636
3645
  s.require_paths = ["lib".freeze]
3637
3646
  s.authors = ["A User".freeze]
3638
- s.date = "#{Gem::Specification::TODAY.strftime("%Y-%m-%d")}"
3647
+ s.date = "#{@m1.date.strftime("%Y-%m-%d")}"
3639
3648
  s.description = "This is a test description".freeze
3640
3649
  s.email = "example@example.com".freeze
3641
3650
  s.files = ["lib/code.rb".freeze]
@@ -3645,11 +3654,6 @@ Gem::Specification.new do |s|
3645
3654
  end
3646
3655
  EOF
3647
3656
 
3648
- @m1 = quick_gem 'm', '1' do |s|
3649
- s.files = %w[lib/code.rb]
3650
- s.metadata = { 'one' => "two", 'two' => "three" }
3651
- end
3652
-
3653
3657
  assert_equal @m1.to_ruby, valid_ruby_spec
3654
3658
  end
3655
3659
 
@@ -517,18 +517,20 @@ class TestGemRequire < Gem::TestCase
517
517
  end
518
518
  end
519
519
 
520
- def test_no_other_behavioral_changes_with_kernel_warn
521
- lib = File.realpath("../../../lib", __FILE__)
522
- Dir.mktmpdir("warn_test") do |dir|
523
- File.write(dir + "/main.rb", "warn({x:1}, {y:2}, [])\n")
524
- _, err = capture_subprocess_io do
525
- system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
526
- end
527
- assert_equal "{:x=>1}\n{:y=>2}\n", err
528
- _, err = capture_subprocess_io do
529
- system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
520
+ if RUBY_VERSION >= "2.7"
521
+ def test_no_other_behavioral_changes_with_kernel_warn
522
+ lib = File.realpath("../../../lib", __FILE__)
523
+ Dir.mktmpdir("warn_test") do |dir|
524
+ File.write(dir + "/main.rb", "warn({x:1}, {y:2}, [])\n")
525
+ _, err = capture_subprocess_io do
526
+ system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
527
+ end
528
+ assert_match(/main.rb:1: warning: The last argument is used as the keyword parameter/, err)
529
+ _, err = capture_subprocess_io do
530
+ system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
531
+ end
532
+ assert_match(/main.rb:1: warning: The last argument is used as the keyword parameter/, err)
530
533
  end
531
- assert_equal "{:x=>1}\n{:y=>2}\n", err
532
534
  end
533
535
  end
534
536
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.pre1
4
+ version: 3.1.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2019-10-08 00:00:00.000000000 Z
19
+ date: 2019-10-15 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: builder