bundler 1.9.6 → 1.9.7
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 +4 -4
- data/CHANGELOG.md +8 -2
- data/lib/bundler.rb +3 -5
- data/lib/bundler/cli.rb +0 -2
- data/lib/bundler/fetcher.rb +2 -0
- data/lib/bundler/lockfile_parser.rb +9 -3
- data/lib/bundler/source/path/installer.rb +11 -8
- data/lib/bundler/source/rubygems.rb +1 -3
- data/lib/bundler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9da845ed48643f130b627dbdb032cb956e9e31c9
|
4
|
+
data.tar.gz: 0918eef63ba429595173b14172905fcb2d1626e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e4d0bac4e002f42948dae0daaf690f38408dde5e240525f37cda092a04078233f41f916baee55604d557a2cf28e47d4a1c3f5312b68906e0e9ba9a41c61312b
|
7
|
+
data.tar.gz: ba9684a0fcdfe506bf0dc3fac3b380fa57614a17550a848b1c314d84bba987cbb392dd34d753bf204873e34b7217ad0ac876d3cd286dd4f02eb532110b2b3bae
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
## 1.9.7 (2015-05-05)
|
2
|
+
|
3
|
+
Bugfixes:
|
4
|
+
|
5
|
+
- always clean up tmp dirs (#3277, @hone, @indirect, @segiddins)
|
6
|
+
|
1
7
|
## 1.9.6 (2015-05-02)
|
2
8
|
|
3
9
|
Bugfixes:
|
4
10
|
|
5
|
-
-
|
11
|
+
- use RubyGems spec stubs if available (@segiddins)
|
6
12
|
- allow creating gems with names containing two dashes (#3483, @janlelis)
|
7
13
|
- allow creating gems with names extending constants (#3603, @amatsuda)
|
8
14
|
|
@@ -75,7 +81,7 @@ Features:
|
|
75
81
|
|
76
82
|
Bugfixes:
|
77
83
|
|
78
|
-
-
|
84
|
+
- Use RubyGems spec stubs if available (@segiddins)
|
79
85
|
|
80
86
|
## 1.8.8 (2015-04-29)
|
81
87
|
|
data/lib/bundler.rb
CHANGED
@@ -212,13 +212,11 @@ module Bundler
|
|
212
212
|
end
|
213
213
|
|
214
214
|
def tmp(name = Process.pid.to_s)
|
215
|
-
|
216
|
-
@tmp.join(name)
|
215
|
+
Pathname.new(Dir.mktmpdir(["bundler", name]))
|
217
216
|
end
|
218
217
|
|
219
|
-
def
|
220
|
-
FileUtils.remove_entry_secure(
|
221
|
-
rescue
|
218
|
+
def rm_rf(path)
|
219
|
+
FileUtils.remove_entry_secure(path) if path && File.exist?(path)
|
222
220
|
end
|
223
221
|
|
224
222
|
def settings
|
data/lib/bundler/cli.rb
CHANGED
data/lib/bundler/fetcher.rb
CHANGED
@@ -21,12 +21,13 @@ module Bundler
|
|
21
21
|
PATH = "PATH"
|
22
22
|
SPECS = " specs:"
|
23
23
|
OPTIONS = /^ ([a-z]+): (.*)$/i
|
24
|
+
SOURCE = [GIT, GEM, PATH]
|
24
25
|
|
25
26
|
def initialize(lockfile)
|
26
27
|
@platforms = []
|
27
28
|
@sources = []
|
28
29
|
@dependencies = []
|
29
|
-
@state =
|
30
|
+
@state = nil
|
30
31
|
@specs = {}
|
31
32
|
|
32
33
|
@rubygems_aggregate = Source::Rubygems.new
|
@@ -37,11 +38,16 @@ module Bundler
|
|
37
38
|
end
|
38
39
|
|
39
40
|
lockfile.split(/(?:\r?\n)+/).each do |line|
|
40
|
-
if line
|
41
|
+
if SOURCE.include?(line)
|
42
|
+
@state = :source
|
43
|
+
parse_source(line)
|
44
|
+
elsif line == DEPENDENCIES
|
41
45
|
@state = :dependency
|
42
46
|
elsif line == PLATFORMS
|
43
47
|
@state = :platform
|
44
|
-
|
48
|
+
elsif line =~ /^[^\s]/
|
49
|
+
@state = nil
|
50
|
+
elsif @state
|
45
51
|
send("parse_#{@state}", line)
|
46
52
|
end
|
47
53
|
end
|
@@ -7,31 +7,34 @@ module Bundler
|
|
7
7
|
|
8
8
|
def initialize(spec, options = {})
|
9
9
|
@spec = spec
|
10
|
-
@tmp_bin_dir = "#{Bundler.tmp(spec.full_name)}/bin"
|
11
|
-
@gem_bin_dir = "#{Bundler.rubygems.gem_dir}/bin"
|
12
|
-
@bin_dir = Bundler.requires_sudo? ? @tmp_bin_dir : @gem_bin_dir
|
13
10
|
@gem_dir = Bundler.rubygems.path(spec.full_gem_path)
|
14
11
|
@wrappers = options[:wrappers] || true
|
15
12
|
@env_shebang = options[:env_shebang] || true
|
16
13
|
@format_executable = options[:format_executable] || false
|
17
14
|
@build_args = options[:build_args] || Bundler.rubygems.build_args
|
15
|
+
@gem_bin_dir = "#{Bundler.rubygems.gem_dir}/bin"
|
16
|
+
|
17
|
+
if Bundler.requires_sudo?
|
18
|
+
@tmp_dir = Bundler.tmp(spec.full_name).to_s
|
19
|
+
@bin_dir = "#{@tmp_dir}/bin"
|
20
|
+
else
|
21
|
+
@bin_dir = @gem_bin_dir
|
22
|
+
end
|
18
23
|
end
|
19
24
|
|
20
25
|
def generate_bin
|
21
26
|
return if spec.executables.nil? || spec.executables.empty?
|
22
27
|
|
23
|
-
if Bundler.requires_sudo?
|
24
|
-
FileUtils.mkdir_p(@tmp_bin_dir) unless File.exist?(@tmp_bin_dir)
|
25
|
-
end
|
26
|
-
|
27
28
|
super
|
28
29
|
|
29
30
|
if Bundler.requires_sudo?
|
30
31
|
Bundler.mkdir_p @gem_bin_dir
|
31
32
|
spec.executables.each do |exe|
|
32
|
-
Bundler.sudo "cp -R #{@
|
33
|
+
Bundler.sudo "cp -R #{@bin_dir}/#{exe} #{@gem_bin_dir}"
|
33
34
|
end
|
34
35
|
end
|
36
|
+
ensure
|
37
|
+
Bundler.rm_rf(@tmp_dir) if Bundler.requires_sudo?
|
35
38
|
end
|
36
39
|
end
|
37
40
|
|
@@ -145,9 +145,7 @@ module Bundler
|
|
145
145
|
spec.loaded_from = loaded_from(spec)
|
146
146
|
["Installing #{version_message(spec)}", spec.post_install_message]
|
147
147
|
ensure
|
148
|
-
|
149
|
-
FileUtils.remove_entry_secure(install_path)
|
150
|
-
end
|
148
|
+
Bundler.rm_rf(install_path) if Bundler.requires_sudo?
|
151
149
|
end
|
152
150
|
|
153
151
|
def cache(spec, custom_path = nil)
|
data/lib/bundler/version.rb
CHANGED
@@ -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.
|
5
|
+
VERSION = "1.9.7" unless defined?(::Bundler::VERSION)
|
6
6
|
end
|
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.
|
4
|
+
version: 1.9.7
|
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-05-
|
14
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mustache
|