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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1c6635aa6f9381865c09e22712c65eb6ce6df71
4
- data.tar.gz: f7e85da257a62822115cb5450a4a77a538499bae
3
+ metadata.gz: a55dd2e2969802758ae392f5be881b51dca84355
4
+ data.tar.gz: 77b178808d29ac2895509f4bd43aa0eb01844176
5
5
  SHA512:
6
- metadata.gz: 6effd53e12307044062ea6905c96f7435c8cb986d657483707e6c44daff0360f0cee0d3083d8b5939dec53b79e91282adbca66abe3484ebd20d87676c4d8a6da
7
- data.tar.gz: 3e46d038f7c07fbc627766dd87e2e120d79bbd303c0168de029c73f3b90cb91596ec9eb9249c34903aa5ad93a3a8a4862365ffec82f4031430c205dacb581a62
6
+ metadata.gz: 19680456643187a2e4f5ae83e380403bf4ea42f7e71649542febc5e0583a97c70a04f055287304ca4380aa832fa0040c066ac4069c18309e714e3ebcfbdb374f
7
+ data.tar.gz: 1c7b78aff2f46af2a16813d388f0bdaae7fb0925eda42db989f51f6a530ea5691218faae53d3bec46d306e43cbd9e37d60677940bfda19a61cc8fe3cf4f18457
@@ -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, @tmoore)
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, @tmoore)
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, @tmoore)
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 (@tmoore)
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 (@tmoore)
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 (@tmoore)
75
- - Added the `:source` option to `gem` to specify a source (@tmoore)
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 (@tmoore)
89
+ - Warn on ambiguous gems available from more than one source (@TimMoore)
80
90
 
81
91
  ## 1.6.5 (2014-07-23)
82
92
 
@@ -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
@@ -14,6 +14,7 @@ module Bundler
14
14
  :ruby_19 => Gem::Platform::RUBY,
15
15
  :ruby_20 => Gem::Platform::RUBY,
16
16
  :ruby_21 => Gem::Platform::RUBY,
17
+ :ruby_22 => Gem::Platform::RUBY,
17
18
  :mri => Gem::Platform::RUBY,
18
19
  :mri_18 => Gem::Platform::RUBY,
19
20
  :mri_19 => Gem::Platform::RUBY,
@@ -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
- all_sources.to_set != replacement_sources.to_set ||
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
 
@@ -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.9" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.7.10" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -181,6 +181,8 @@ There are a number of `Gemfile` platforms:
181
181
  _ruby_ `AND` version 2.0
182
182
  * `ruby_21`:
183
183
  _ruby_ `AND` version 2.1
184
+ * `ruby_22`:
185
+ _ruby_ `AND` version 2.2
184
186
  * `mri`:
185
187
  Same as _ruby_, but not Rubinius
186
188
  * `mri_18`:
@@ -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.4'
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.4"
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.9
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-10 00:00:00.000000000 Z
14
+ date: 2014-12-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mustache