rubygems-update 2.7.1 → 2.7.2

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba913d1f15fcbb87aa5e85a13f080ba2f3bd0e4df466617447da75fdb0b7c0b7
4
- data.tar.gz: 50c69bcefbed82ac149f8bb0daa152901b7db39f5e9824c68fd4a704c170dbc4
3
+ metadata.gz: 3ea44a86262942cc9381a4c361b856716d959ea3f27d12d7f3a7cc37add42495
4
+ data.tar.gz: 13f531a5157a93c69acd9cf69669026377a359baa67dc09b0c4ff34897238068
5
5
  SHA512:
6
- metadata.gz: e24ef886cac09752a824235ce18869b1cb972063a7f834ed16282fdd5df48b71945382dea9ea957b8060063b8c7f2a88d835efb4ce53a3b98fe1d4c44271c9d6
7
- data.tar.gz: e4a57e729bbe21f0a627ecb52f35e97e8cb50e30c3c8fd3ae04264e2beeb55e01abb4bc8b4ba9bb55a59d1da5ee2fa4aec5702bd545e59154499ca47bce9ca51
6
+ metadata.gz: 17d9721ea2535d7141f7df7685b991d99b9a1a6112a4e7e17c066e5041fe9f57b60fa36cc09d9c5b753a59a2cb2278b03d74de611629fbaa1abeb67b515d2323
7
+ data.tar.gz: 12f6af1ed4585e46e6801094ce314bd1d0bcf62e8c471696008fa583ae437bf0f1719164b5957d3d3bc0215d561ff8c6a7c70506d60a7f91693c043641bde61d
@@ -47,5 +47,12 @@ matrix:
47
47
  - rvm: ruby-head
48
48
  env: "TEST_TOOL=rubygems YAML=syck"
49
49
  allow_failures:
50
+ - rvm: 1.8.7
51
+ env: "TEST_TOOL=bundler RGV=master"
52
+ - rvm: 1.9.3
53
+ env: "TEST_TOOL=bundler RGV=master"
54
+ - rvm: 2.0.0
55
+ env: "TEST_TOOL=bundler RGV=master"
56
+ - rvm: 2.1.10
57
+ env: "TEST_TOOL=bundler RGV=master"
50
58
  - rvm: ruby-head
51
-
@@ -1,5 +1,14 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.7.2
4
+
5
+ Bug fixes:
6
+
7
+ * Added template files to vendoerd bundler. Pull request #2065 by SHIBATA
8
+ Hiroshi.
9
+ * Added workaround for non-git environment. Pull request #2066 by SHIBATA
10
+ Hiroshi.
11
+
3
12
  === 2.7.1 (2017-11-03)
4
13
 
5
14
  Bug fixes:
@@ -10,7 +10,7 @@ require 'rbconfig'
10
10
  require 'thread'
11
11
 
12
12
  module Gem
13
- VERSION = "2.7.1"
13
+ VERSION = "2.7.2"
14
14
  end
15
15
 
16
16
  # Must be first since it unloads the prelude from 1.9.2
@@ -294,6 +294,8 @@ By default, this RubyGems will install gem as:
294
294
  say "Installing #{tool}" if @verbose
295
295
 
296
296
  lib_files = rb_files_in path
297
+ lib_files.concat(template_files) if tool == 'Bundler'
298
+
297
299
  pem_files = pem_files_in path
298
300
 
299
301
  Dir.chdir path do
@@ -354,6 +356,10 @@ By default, this RubyGems will install gem as:
354
356
 
355
357
  mkdir_p Gem::Specification.default_specifications_dir
356
358
 
359
+ # Workaround for non-git environment.
360
+ gemspec = File.read('bundler/bundler.gemspec').gsub(/`git ls-files -z`/, "''")
361
+ File.open('bundler/bundler.gemspec', 'w'){|f| f.write gemspec }
362
+
357
363
  bundler_spec = Gem::Specification.load("bundler/bundler.gemspec")
358
364
  bundler_spec.files = Dir.chdir("bundler") { Dir["{*.md,{lib,exe,man}/**/*}"] }
359
365
  bundler_spec.executables -= %w[bundler bundle_ruby]
@@ -433,6 +439,22 @@ By default, this RubyGems will install gem as:
433
439
  end
434
440
  end
435
441
 
442
+ # for installation of bundler as default gems
443
+ def template_files
444
+ Dir.chdir "bundler/lib" do
445
+ (Dir[File.join('bundler', 'templates', '**', '*')] + Dir[File.join('bundler', 'templates', '**', '.*')]).
446
+ select{|f| !File.directory?(f)}
447
+ end
448
+ end
449
+
450
+ # for cleanup old bundler files
451
+ def template_files_in dir
452
+ Dir.chdir dir do
453
+ (Dir[File.join('templates', '**', '*')] + Dir[File.join('templates', '**', '.*')]).
454
+ select{|f| !File.directory?(f)}
455
+ end
456
+ end
457
+
436
458
  def remove_old_bin_files(bin_dir)
437
459
  old_bin_files = {
438
460
  'gem_mirror' => 'gem mirror',
@@ -470,8 +492,10 @@ abort "#{deprecation_message}"
470
492
  lib_dirs[File.join(lib_dir, 'bundler')] = 'bundler/lib/bundler' if Gem::USE_BUNDLER_FOR_GEMDEPS
471
493
  lib_dirs.each do |old_lib_dir, new_lib_dir|
472
494
  lib_files = rb_files_in(new_lib_dir)
495
+ lib_files.concat(template_files_in(new_lib_dir)) if new_lib_dir =~ /bundler/
473
496
 
474
497
  old_lib_files = rb_files_in(old_lib_dir)
498
+ old_lib_files.concat(template_files_in(old_lib_dir)) if old_lib_dir =~ /bundler/
475
499
 
476
500
  to_remove = old_lib_files - lib_files
477
501
 
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: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-04 00:00:00.000000000 Z
13
+ date: 2017-11-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder
@@ -803,7 +803,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
803
803
  version: '0'
804
804
  requirements: []
805
805
  rubyforge_project:
806
- rubygems_version: 2.7.0
806
+ rubygems_version: 2.7.2
807
807
  signing_key:
808
808
  specification_version: 4
809
809
  summary: ''