bundler 1.9.2 → 1.9.3

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

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8959dab2aca0f74b3cf2ef31a9cfdefdb5b979a3
4
- data.tar.gz: f8d8e8bb0eba3964ad33f760e113b517f4d0352d
3
+ metadata.gz: d7681f71e2a98a61c620cce98492c9f6a4b164e6
4
+ data.tar.gz: b803256dd20226d4e93ae449ce381215219b4926
5
5
  SHA512:
6
- metadata.gz: 6d020ea8360eff4a45a0cc985a79023a9d8d2e3a0c6e884dc7519fc73a8ce9c56edfaa8d27189e2e4d3483093bbdae1cc84be2823f54eff003135f46f3f9de17
7
- data.tar.gz: d6ebd846da9c842b5ba185e18d7c17d9818e60c293ef1879e862cfce13c94246664ba911a915cadb9a8a61904d80dde8aa98601921db6c26be87b305884082b6
6
+ metadata.gz: a309d9e32520643cb7a19e79763332f6cede63cdade247459276ec4d36a0dfbf113a0d262b3424ad38e1a660a51aac8340d3fbc8292cb7f722812ff5489e223b
7
+ data.tar.gz: 7e8fb55ec89093f0e8e7aaa03ecf8081c693f0452990d2db317858ea2bc27c1e636e0d8820d3e2b52c68755f125f36e47b9709fdc9fdb67090ba4cfcbf177e94
@@ -1,3 +1,12 @@
1
+ ## 1.9.3 (2015-04-12)
2
+
3
+ Bugfixes:
4
+
5
+ - handle removal of `specs` from rubygems/rubygems@620910 (#3558, @indirect)
6
+ - install 'universal' gems on Windows (#3066, @jdmundrawala)
7
+ - stop passing --local during `rake install` task (#3236, @indirect)
8
+ - guard against all possible accidental public gem pushes (#3533, @indirect)
9
+
1
10
  ## 1.9.2 (2015-03-30)
2
11
 
3
12
  Bugfixes:
@@ -5,7 +14,7 @@ Bugfixes:
5
14
  - ensure gem executables are executable (#3517, #3511, @indirect)
6
15
  - fix warnings in Molinillo (#3516, @segiddins)
7
16
  - ensure duplicate dependencies do not propagate (#3522, @segiddins)
8
- - keep gems locked when updating another gem from the same source (#3250, @indirect)
17
+ - keep gems locked when updating another gem from the same source (#3520, @indirect)
9
18
  - resolve race that could build gems without saved arguments (#3404, @indirect)
10
19
 
11
20
  ## 1.9.1 (2015-03-21)
@@ -70,7 +70,7 @@ module Bundler
70
70
 
71
71
  def self.issues_url(exception)
72
72
  'https://github.com/bundler/bundler/search?q=' \
73
- "#{CGI.escape(exception.message)}&type=Issues"
73
+ "#{CGI.escape(exception.message.lines.first.chomp)}&type=Issues"
74
74
  end
75
75
 
76
76
  end
@@ -44,6 +44,11 @@ module Bundler
44
44
  install_gem(built_gem_path)
45
45
  end
46
46
 
47
+ desc "Build and install #{name}-#{version}.gem into system gems without network access."
48
+ task 'install:local' => 'build' do
49
+ install_gem(built_gem_path, :local)
50
+ end
51
+
47
52
  desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to Rubygems\n" \
48
53
  "To prevent publishing in Rubygems use `gem_push=no rake release`"
49
54
  task 'release' => ['build', 'release:guard_clean',
@@ -76,9 +81,9 @@ module Bundler
76
81
  File.join(base, 'pkg', file_name)
77
82
  end
78
83
 
79
- def install_gem(built_gem_path=nil)
84
+ def install_gem(built_gem_path = nil, local = false)
80
85
  built_gem_path ||= build_gem
81
- out, _ = sh_with_code("gem install '#{built_gem_path}' --local")
86
+ out, _ = sh_with_code("gem install '#{built_gem_path}'#{' --local' if local}")
82
87
  raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/]
83
88
  Bundler.ui.confirm "#{name} (#{version}) installed."
84
89
  end
@@ -6,6 +6,7 @@ module Bundler
6
6
  [Gem::Platform.new('java'), Gem::Platform.new('java')],
7
7
  [Gem::Platform.new('mswin32'), Gem::Platform.new('mswin32')],
8
8
  [Gem::Platform.new('mswin64'), Gem::Platform.new('mswin64')],
9
+ [Gem::Platform.new('universal-mingw32'), Gem::Platform.new('universal-mingw32')],
9
10
  [Gem::Platform.new('x64-mingw32'), Gem::Platform.new('x64-mingw32')],
10
11
  [Gem::Platform.new('x86_64-mingw32'), Gem::Platform.new('x64-mingw32')],
11
12
  [Gem::Platform.new('mingw32'), Gem::Platform.new('x86-mingw32')]
@@ -7,7 +7,8 @@ module Bundler
7
7
  def match_platform(p)
8
8
  Gem::Platform::RUBY == platform or
9
9
  platform.nil? or p == platform or
10
- generic(Gem::Platform.new(platform)) == p
10
+ generic(Gem::Platform.new(platform)) == p or
11
+ platform === p
11
12
  end
12
13
  end
13
14
  end
@@ -88,9 +88,6 @@ module Bundler
88
88
  raise if $1 != namespaced_file
89
89
  end
90
90
  end
91
- rescue => e
92
- Bundler.ui.debug e
93
- Bundler.ui.warn "Unable to require #{required_file}. #{e.class}: #{e.message}."
94
91
  end
95
92
  end
96
93
  end
@@ -3,6 +3,8 @@ module Bundler
3
3
  class Path
4
4
 
5
5
  class Installer < Bundler::GemInstaller
6
+ attr_reader :spec
7
+
6
8
  def initialize(spec, options = {})
7
9
  @spec = spec
8
10
  @tmp_bin_dir = "#{Bundler.tmp(spec.full_name)}/bin"
@@ -16,6 +16,14 @@ Gem::Specification.new do |spec|
16
16
  spec.license = "MIT"
17
17
  <%- end -%>
18
18
 
19
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
20
+ # delete this section to allow pushing this gem to any host.
21
+ if spec.respond_to?(:metadata)
22
+ spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
25
+ end
26
+
19
27
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
28
  spec.bindir = "exe"
21
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -24,10 +32,6 @@ Gem::Specification.new do |spec|
24
32
  spec.extensions = ["ext/<%=config[:underscored_name]%>/extconf.rb"]
25
33
  <%- end -%>
26
34
 
27
- if spec.respond_to?(:metadata)
28
- spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
29
- end
30
-
31
35
  spec.add_development_dependency "bundler", "~> <%= config[:bundler_version] %>"
32
36
  spec.add_development_dependency "rake", "~> 10.0"
33
37
  <%- if config[:ext] -%>
@@ -2,5 +2,5 @@ module Bundler
2
2
  # We're doing this because we might write tests that deal
3
3
  # with other versions of bundler and we are unsure how to
4
4
  # handle this better.
5
- VERSION = "1.9.2" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.9.3" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -102,9 +102,15 @@ learn more about their operation in [bundle install(1)][bundle-install].
102
102
  * `ssl_client_cert` (`BUNDLE_SSL_CLIENT_CERT`):
103
103
  Path to a designated file containing a X.509 client certificate
104
104
  and key in PEM format.
105
+ * `cache_path` (`BUNDLE_CACHE_PATH`): The directory that bundler will place
106
+ cached gems in when running <code>bundle package</code>, and that bundler
107
+ will look in when installing gems.
108
+ * `disable_multisource` (`BUNDLE_DISABLE_MULTISOURCE`): When set, Gemfiles
109
+ containing multiple sources will produce errors instead of warnings. Use
110
+ `bundle config --delete disable_multisource` to unset.
105
111
 
106
112
  In general, you should set these settings per-application by using the applicable
107
- flag to the [bundle install(1)][bundle-install] command.
113
+ flag to the [bundle install(1)][bundle-install] or [bundle package(1)][bundle-package] command.
108
114
 
109
115
  You can set them globally either via environment variables or `bundle config`,
110
116
  whichever is preferable for your setup. If you use both, environment variables
@@ -8,10 +8,12 @@ bundle-install(1) -- Install the dependencies specified in your Gemfile
8
8
  [--full-index]
9
9
  [--gemfile=GEMFILE]
10
10
  [--jobs=NUMBER]
11
- [--local] [--deployment]
11
+ [--local]
12
+ [--deployment]
12
13
  [--no-cache]
13
14
  [--no-prune]
14
- [--path PATH] [--system]
15
+ [--path PATH]
16
+ [--system]
15
17
  [--quiet]
16
18
  [--retry=NUMBER]
17
19
  [--shebang]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-03-31 00:00:00.000000000 Z
14
+ date: 2015-04-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mustache