bundler 1.7.9 → 1.7.10
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 +18 -8
- data/lib/bundler/current_ruby.rb +60 -0
- data/lib/bundler/dependency.rb +1 -0
- data/lib/bundler/source_list.rb +2 -2
- data/lib/bundler/version.rb +1 -1
- data/man/gemfile.5.ronn +2 -0
- data/spec/cache/platform_spec.rb +2 -2
- data/spec/install/gems/sources_spec.rb +32 -0
- data/spec/realworld/edgecases_spec.rb +2 -2
- data/spec/realworld/parallel_spec.rb +2 -0
- 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: a55dd2e2969802758ae392f5be881b51dca84355
|
4
|
+
data.tar.gz: 77b178808d29ac2895509f4bd43aa0eb01844176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19680456643187a2e4f5ae83e380403bf4ea42f7e71649542febc5e0583a97c70a04f055287304ca4380aa832fa0040c066ac4069c18309e714e3ebcfbdb374f
|
7
|
+
data.tar.gz: 1c7b78aff2f46af2a16813d388f0bdaae7fb0925eda42db989f51f6a530ea5691218faae53d3bec46d306e43cbd9e37d60677940bfda19a61cc8fe3cf4f18457
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 1.7.10 (2014-12-29)
|
2
|
+
|
3
|
+
Bugfixes:
|
4
|
+
|
5
|
+
- Fix source blocks sometimes causing deployment mode to fail wrongly (#3298, @TimMoore)
|
6
|
+
|
7
|
+
Features(?):
|
8
|
+
|
9
|
+
- Support `platform :mri_22` and related version bits (#3309, @thomasfedb)
|
10
|
+
|
1
11
|
## 1.7.9 (2014-12-09)
|
2
12
|
|
3
13
|
Bugfixes:
|
@@ -10,7 +20,7 @@ Bugfixes:
|
|
10
20
|
|
11
21
|
Bugfixes:
|
12
22
|
|
13
|
-
- Hide credentials while warning about gems with ambiguous sources (#3256, @
|
23
|
+
- Hide credentials while warning about gems with ambiguous sources (#3256, @TimMoore)
|
14
24
|
|
15
25
|
## 1.7.7 (2014-11-19)
|
16
26
|
|
@@ -30,14 +40,14 @@ Bugfixes:
|
|
30
40
|
|
31
41
|
Bugfixes:
|
32
42
|
|
33
|
-
- Fix --deployment with source blocks and non-alphabetical gems (#3224, @
|
43
|
+
- Fix --deployment with source blocks and non-alphabetical gems (#3224, @TimMoore)
|
34
44
|
- Vendor CA chain to validate new rubygems.org HTTPS certificate (@indirect)
|
35
45
|
|
36
46
|
## 1.7.4 (2014-10-19)
|
37
47
|
|
38
48
|
Bugfixes:
|
39
49
|
|
40
|
-
- Allow --deployment after `pack` while using source blocks (#3167, @
|
50
|
+
- Allow --deployment after `pack` while using source blocks (#3167, @TimMoore)
|
41
51
|
- Use dependency API even when HTTP credentials are in ENV (#3191, @fvaleur)
|
42
52
|
- Silence warnings (including root warning) in --quiet mode (#3186, @indirect)
|
43
53
|
- Stop asking gem servers for gems already found locally (#2909, @dubek)
|
@@ -60,23 +70,23 @@ Bugfixes:
|
|
60
70
|
Bugfixes:
|
61
71
|
|
62
72
|
- Install gems from one source needed by gems in another source (@indirect)
|
63
|
-
- Install the same gem versions even after some are installed (@
|
73
|
+
- Install the same gem versions even after some are installed (@TimMoore)
|
64
74
|
- Download specs only when installing from servers (@indirect)
|
65
75
|
|
66
76
|
## 1.7.0 (2014-08-13)
|
67
77
|
|
68
78
|
Security:
|
69
79
|
|
70
|
-
- Fix for CVE-2013-0334, installing gems from an unexpected source (@
|
80
|
+
- Fix for CVE-2013-0334, installing gems from an unexpected source (@TimMoore)
|
71
81
|
|
72
82
|
Features:
|
73
83
|
|
74
|
-
- Gemfile `source` calls now take a block containing gems from that source (@
|
75
|
-
- Added the `:source` option to `gem` to specify a source (@
|
84
|
+
- Gemfile `source` calls now take a block containing gems from that source (@TimMoore)
|
85
|
+
- Added the `:source` option to `gem` to specify a source (@TimMoore)
|
76
86
|
|
77
87
|
Bugfixes:
|
78
88
|
|
79
|
-
- Warn on ambiguous gems available from more than one source (@
|
89
|
+
- Warn on ambiguous gems available from more than one source (@TimMoore)
|
80
90
|
|
81
91
|
## 1.6.5 (2014-07-23)
|
82
92
|
|
data/lib/bundler/current_ruby.rb
CHANGED
@@ -23,6 +23,10 @@ module Bundler
|
|
23
23
|
RUBY_VERSION =~ /^2\.1/
|
24
24
|
end
|
25
25
|
|
26
|
+
def on_22?
|
27
|
+
RUBY_VERSION =~ /^2\.2/
|
28
|
+
end
|
29
|
+
|
26
30
|
def ruby?
|
27
31
|
!mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev")
|
28
32
|
end
|
@@ -43,6 +47,10 @@ module Bundler
|
|
43
47
|
ruby? && on_21?
|
44
48
|
end
|
45
49
|
|
50
|
+
def ruby_22?
|
51
|
+
ruby? && on_22?
|
52
|
+
end
|
53
|
+
|
46
54
|
def mri?
|
47
55
|
!mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
|
48
56
|
end
|
@@ -63,6 +71,10 @@ module Bundler
|
|
63
71
|
mri? && on_21?
|
64
72
|
end
|
65
73
|
|
74
|
+
def mri_22?
|
75
|
+
mri? && on_22?
|
76
|
+
end
|
77
|
+
|
66
78
|
def rbx?
|
67
79
|
ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
|
68
80
|
end
|
@@ -87,6 +99,46 @@ module Bundler
|
|
87
99
|
Bundler::WINDOWS
|
88
100
|
end
|
89
101
|
|
102
|
+
def mswin_18?
|
103
|
+
mswin? && on_18?
|
104
|
+
end
|
105
|
+
|
106
|
+
def mswin_19?
|
107
|
+
mswin? && on_19?
|
108
|
+
end
|
109
|
+
|
110
|
+
def mswin_20?
|
111
|
+
mswin? && on_20?
|
112
|
+
end
|
113
|
+
|
114
|
+
def mswin_21?
|
115
|
+
mswin? && on_21?
|
116
|
+
end
|
117
|
+
|
118
|
+
def mswin_22?
|
119
|
+
mswin? && on_22?
|
120
|
+
end
|
121
|
+
|
122
|
+
def mswin64?
|
123
|
+
Bundler::WINDOWS && Gem::Platform.local.os == "mswin64" && Gem::Platform.local.cpu == 'x64'
|
124
|
+
end
|
125
|
+
|
126
|
+
def mswin64_19?
|
127
|
+
mswin64? && on_19?
|
128
|
+
end
|
129
|
+
|
130
|
+
def mswin64_20?
|
131
|
+
mswin64? && on_20?
|
132
|
+
end
|
133
|
+
|
134
|
+
def mswin64_21?
|
135
|
+
mswin64? && on_21?
|
136
|
+
end
|
137
|
+
|
138
|
+
def mswin64_22?
|
139
|
+
mswin64? && on_22?
|
140
|
+
end
|
141
|
+
|
90
142
|
def mingw?
|
91
143
|
Bundler::WINDOWS && Gem::Platform.local.os == "mingw32" && Gem::Platform.local.cpu != 'x64'
|
92
144
|
end
|
@@ -107,6 +159,10 @@ module Bundler
|
|
107
159
|
mingw? && on_21?
|
108
160
|
end
|
109
161
|
|
162
|
+
def mingw_22?
|
163
|
+
mingw? && on_22?
|
164
|
+
end
|
165
|
+
|
110
166
|
def x64_mingw?
|
111
167
|
Bundler::WINDOWS && Gem::Platform.local.os == "mingw32" && Gem::Platform.local.cpu == 'x64'
|
112
168
|
end
|
@@ -119,5 +175,9 @@ module Bundler
|
|
119
175
|
x64_mingw? && on_21?
|
120
176
|
end
|
121
177
|
|
178
|
+
def x64_mingw_22?
|
179
|
+
x64_mingw? && on_22?
|
180
|
+
end
|
181
|
+
|
122
182
|
end
|
123
183
|
end
|
data/lib/bundler/dependency.rb
CHANGED
data/lib/bundler/source_list.rb
CHANGED
@@ -59,10 +59,10 @@ module Bundler
|
|
59
59
|
|
60
60
|
replacement_rubygems =
|
61
61
|
replacement_sources.detect { |s| s.is_a?(Source::Rubygems) }
|
62
|
-
@rubygems_aggregate = replacement_rubygems
|
62
|
+
@rubygems_aggregate = replacement_rubygems if replacement_rubygems
|
63
63
|
|
64
64
|
# Return true if there were changes
|
65
|
-
|
65
|
+
lock_sources.to_set != replacement_sources.to_set ||
|
66
66
|
rubygems_remotes.to_set != replacement_rubygems.remotes.to_set
|
67
67
|
end
|
68
68
|
|
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.7.
|
5
|
+
VERSION = "1.7.10" unless defined?(::Bundler::VERSION)
|
6
6
|
end
|
data/man/gemfile.5.ronn
CHANGED
data/spec/cache/platform_spec.rb
CHANGED
@@ -5,7 +5,7 @@ describe "bundle cache with multiple platforms" do
|
|
5
5
|
gemfile <<-G
|
6
6
|
source "file://#{gem_repo1}"
|
7
7
|
|
8
|
-
platforms :ruby, :ruby_18, :ruby_19, :ruby_20, :ruby_21 do
|
8
|
+
platforms :ruby, :ruby_18, :ruby_19, :ruby_20, :ruby_21, :ruby_22 do
|
9
9
|
gem "rack", "1.0.0"
|
10
10
|
end
|
11
11
|
|
@@ -13,7 +13,7 @@ describe "bundle cache with multiple platforms" do
|
|
13
13
|
gem "activesupport", "2.3.5"
|
14
14
|
end
|
15
15
|
|
16
|
-
platforms :mri, :mri_18, :mri_19, :mri_20, :mri_21 do
|
16
|
+
platforms :mri, :mri_18, :mri_19, :mri_20, :mri_21, :mri_22 do
|
17
17
|
gem "activerecord", "2.3.2"
|
18
18
|
end
|
19
19
|
G
|
@@ -239,6 +239,38 @@ describe "bundle install with gems on multiple sources" do
|
|
239
239
|
expect(out).to include("Could not find gem 'not_in_repo1 (>= 0) ruby'")
|
240
240
|
end
|
241
241
|
end
|
242
|
+
|
243
|
+
context "with an existing lockfile" do
|
244
|
+
before do
|
245
|
+
system_gems "rack-0.9.1", "rack-1.0.0"
|
246
|
+
|
247
|
+
lockfile <<-L
|
248
|
+
GEM
|
249
|
+
remote: file:#{gem_repo1}
|
250
|
+
remote: file:#{gem_repo3}
|
251
|
+
specs:
|
252
|
+
rack (0.9.1)
|
253
|
+
|
254
|
+
PLATFORMS
|
255
|
+
ruby
|
256
|
+
|
257
|
+
DEPENDENCIES
|
258
|
+
rack!
|
259
|
+
L
|
260
|
+
|
261
|
+
gemfile <<-G
|
262
|
+
source "file://#{gem_repo1}"
|
263
|
+
source "file://#{gem_repo3}" do
|
264
|
+
gem 'rack'
|
265
|
+
end
|
266
|
+
G
|
267
|
+
end
|
268
|
+
|
269
|
+
# Reproduction of https://github.com/bundler/bundler/issues/3298
|
270
|
+
it "does not unlock the installed gem on exec" do
|
271
|
+
should_be_installed("rack 0.9.1")
|
272
|
+
end
|
273
|
+
end
|
242
274
|
end
|
243
275
|
|
244
276
|
context "when an older version of the same gem also ships with Ruby" do
|
@@ -27,7 +27,7 @@ describe "real world edgecases", :realworld => true do
|
|
27
27
|
install_gemfile <<-G
|
28
28
|
source :rubygems
|
29
29
|
|
30
|
-
gem 'i18n', '~> 0.
|
30
|
+
gem 'i18n', '~> 0.6.0'
|
31
31
|
gem 'activesupport', '~> 3.0'
|
32
32
|
gem 'activerecord', '~> 3.0'
|
33
33
|
gem 'builder', '~> 2.1.2'
|
@@ -61,7 +61,7 @@ describe "real world edgecases", :realworld => true do
|
|
61
61
|
install_gemfile <<-G
|
62
62
|
source "https://rubygems.org"
|
63
63
|
|
64
|
-
gem "i18n", "~> 0.
|
64
|
+
gem "i18n", "~> 0.6.0"
|
65
65
|
gem "activesupport", "~> 3.0"
|
66
66
|
gem "activerecord", "~> 3.0"
|
67
67
|
gem "builder", "~> 2.1.2"
|
@@ -6,6 +6,7 @@ describe "parallel", :realworld => true do
|
|
6
6
|
source "https://rubygems.org"
|
7
7
|
gem 'activesupport', '~> 3.2.13'
|
8
8
|
gem 'faker', '~> 1.1.2'
|
9
|
+
gem 'i18n', '~> 0.6.0' # Because 1.7+ requires Ruby 1.9.3+
|
9
10
|
G
|
10
11
|
|
11
12
|
bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
|
@@ -52,6 +53,7 @@ describe "parallel", :realworld => true do
|
|
52
53
|
source "https://rubygems.org"
|
53
54
|
gem 'activesupport', '~> 3.2.12'
|
54
55
|
gem 'faker', '~> 1.1.2'
|
56
|
+
gem 'i18n', '~> 0.6.0' # Because 1.7+ requires Ruby 1.9.3+
|
55
57
|
G
|
56
58
|
|
57
59
|
bundle :update, :jobs => 4, :env => {"DEBUG" => "1"}
|
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.7.
|
4
|
+
version: 1.7.10
|
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: 2014-12-
|
14
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: mustache
|