bundler 1.9.5 → 1.9.6

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: 2b1aaf8e4e40f84d9eca9b9d919d08c10f5b426c
4
- data.tar.gz: e7d8a3f164414640330e9d82da8ca3d697f72065
3
+ metadata.gz: 553a69b15deef7d959ae0290d04daa23e0caa732
4
+ data.tar.gz: 221e5cb9211137431446b472826c5494d808a7ab
5
5
  SHA512:
6
- metadata.gz: c412782fb44f681f0d932a2315aea509c12592788993ecf9fc91ca6fe1608ff51b1733b17048879b0bb3a61fb9fb5c9c928f08422527a0d38d5acd5e35f02f89
7
- data.tar.gz: 925bf88b4902b053e2f16348fac713091b1390e386c036bca32066a61ea52e890a9bd906faf84fd5e10084b98584dc03226022fba515c2af04944f24ae788b6f
6
+ metadata.gz: 9cb54b02735aa3eeac4ec223c8cfb3e25906526590d1d59bcd89271f79aa53e3ef5462017a96ac12b4d2079091a5c217e58947bbc257e674552d590fdf372c2d
7
+ data.tar.gz: 07d82e6e251c21f7a745820d2d7a320452c170c2354abb8ce90424b4496bf44223995bed880d511a17bea8129c23e800edad3aa0608d811bebebfa2628a08fac
@@ -1,8 +1,16 @@
1
+ ## 1.9.6 (2015-05-02)
2
+
3
+ Bugfixes:
4
+
5
+ - support RubyGems versions above 2.4.6 (@tenderlove, @segiddins, @indirect)
6
+ - allow creating gems with names containing two dashes (#3483, @janlelis)
7
+ - allow creating gems with names extending constants (#3603, @amatsuda)
8
+
1
9
  ## 1.9.5 (2015-04-29)
2
10
 
3
11
  Bugfixes:
4
12
 
5
- - Respect Gemfile sources when installing a gem present in two sources (#3585, @tmoore)
13
+ - respect Gemfile sources when installing a gem present in two sources (#3585, @tmoore)
6
14
 
7
15
  ## 1.9.4 (2015-04-13)
8
16
 
@@ -63,6 +71,24 @@ Features:
63
71
  - Molinillo resolver, shared with CocoaPods (@segiddins)
64
72
  - updated Thor to v0.19.1 (@segiddins)
65
73
 
74
+ ## 1.8.9 (2015-05-02)
75
+
76
+ Bugfixes:
77
+
78
+ - Support RubyGems versions above 2.4.6 (@tenderlove, @segiddins, @indirect)
79
+
80
+ ## 1.8.8 (2015-04-29)
81
+
82
+ Bugfixes:
83
+
84
+ - Respect Gemfile sources when installing a gem present in two sources (#3585, @tmoore)
85
+
86
+ ## 1.8.7 (2015-04-07)
87
+
88
+ Bugfixes:
89
+
90
+ - stop suppressing errors inside gems that get required (#3549, @indirect)
91
+
66
92
  ## 1.8.6 (2015-03-30)
67
93
 
68
94
  Bugfixes:
@@ -169,6 +195,19 @@ Documentation:
169
195
 
170
196
  - add missing Gemfile global `path` explanation (@agenteo)
171
197
 
198
+ ## 1.7.15 (2015-04-29)
199
+
200
+ Bugfixes:
201
+
202
+ - Respect Gemfile sources when installing a gem present in two sources (#3585, @tmoore)
203
+
204
+ ## 1.7.14 (2015-03-30)
205
+
206
+ Bugfixes:
207
+
208
+ - Keep gems locked when updating another gem from the same source (#3250, @indirect)
209
+ - Don't add extra quotes around long, quoted config values (@aroben, #3338)
210
+
172
211
  ## 1.7.13 (2015-02-07)
173
212
 
174
213
  Bugfixes:
data/Rakefile CHANGED
@@ -291,12 +291,15 @@ begin
291
291
  task :clean do
292
292
  rm_rf "lib/bundler/man"
293
293
  end
294
+
295
+ task(:require) { }
294
296
  end
295
297
 
296
298
  rescue LoadError
297
299
  namespace :man do
298
- task(:build) { warn "Install the ronn gem to be able to release!" }
299
- task(:clean) { warn "Install the ronn gem to be able to release!" }
300
+ task(:require) { abort "Install the ronn gem to be able to release!" }
301
+ task(:build) { warn "Install the ronn gem to build the help pages" }
302
+ task(:clean) { }
300
303
  end
301
304
  end
302
305
 
@@ -308,6 +311,6 @@ end
308
311
 
309
312
  require 'bundler/gem_tasks'
310
313
  task :build => ["man:clean", "man:build"]
311
- task :release => ["man:clean", "man:build"]
314
+ task :release => ["man:require", "man:clean", "man:build"]
312
315
 
313
316
  task :default => :spec
@@ -20,9 +20,9 @@ module Bundler
20
20
 
21
21
  underscored_name = name.tr('-', '_')
22
22
  namespaced_path = name.tr('-', '/')
23
- constant_name = name.split('_').map{|p| p[0..0].upcase + p[1..-1] unless p.empty?}.join
24
- constant_name = constant_name.split('-').map{|q| q[0..0].upcase + q[1..-1] }.join('::') if constant_name =~ /-/
23
+ constant_name = name.gsub(/-[_-]*(?![_-]|$)/){ '::' }.gsub(/([_-]+|(::)|^)(.|$)/){ $2.to_s + $3.upcase }
25
24
  constant_array = constant_name.split('::')
25
+
26
26
  git_user_name = `git config user.name`.chomp
27
27
  git_user_email = `git config user.email`.chomp
28
28
 
@@ -185,7 +185,7 @@ module Bundler
185
185
  if name =~ /^\d/
186
186
  Bundler.ui.error "Invalid gem name #{name} Please give a name which does not start with numbers."
187
187
  exit 1
188
- elsif Object.const_defined?(constant_array.first)
188
+ elsif constant_array.inject(Object) {|c, s| (c.const_defined?(s) && c.const_get(s)) || break }
189
189
  Bundler.ui.error "Invalid gem name #{name} constant #{constant_array.join("::")} is already in use. Please choose another gem name."
190
190
  exit 1
191
191
  end
@@ -521,7 +521,7 @@ module Bundler
521
521
  converged = []
522
522
  @locked_specs.each do |s|
523
523
  # Replace the locked dependency's source with the equivalent source from the Gemfile
524
- dep = @dependencies.find { |dep| s.satisfies?(dep) }
524
+ dep = @dependencies.find { |d| s.satisfies?(d) }
525
525
  s.source = (dep && dep.source) || sources.get(s.source)
526
526
 
527
527
  # Don't add a spec to the list if its source is expired. For example,
@@ -41,18 +41,27 @@ module Bundler
41
41
 
42
42
  def self.request_issue_report_for(e)
43
43
  Bundler.ui.info <<-EOS.gsub(/^ {6}/, '')
44
- #{'――― ERROR REPORT TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――'}
44
+ #{'--- ERROR REPORT TEMPLATE -------------------------------------------------------'}
45
45
  - What did you do?
46
+
47
+ I ran the command `#{$PROGRAM_NAME} #{ARGV.join(' ')}`
48
+
46
49
  - What did you expect to happen?
50
+
51
+ I expected Bundler to...
52
+
47
53
  - What happened instead?
48
54
 
55
+ Instead, what actually happened was...
56
+
57
+
49
58
  Error details
50
59
 
51
60
  #{e.class}: #{e.message}
52
- #{e.backtrace.join("\n ")}
61
+ #{e.backtrace.join("\n ")}
53
62
 
54
63
  #{Bundler::Env.new.report(:print_gemfile => false).gsub(/\n/, "\n ").strip}
55
- #{'――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'}
64
+ #{'--- TEMPLATE END ----------------------------------------------------------------'}
56
65
 
57
66
  EOS
58
67
 
@@ -585,6 +585,12 @@ module Bundler
585
585
  def ext_lock
586
586
  Gem::Ext::Builder::CHDIR_MONITOR
587
587
  end
588
+
589
+ def find_name(name)
590
+ Gem::Specification.stubs.find_all do |spec|
591
+ spec.name == name
592
+ end.map(&:to_spec)
593
+ end
588
594
  end
589
595
 
590
596
  end
@@ -208,6 +208,8 @@ module Bundler
208
208
  remotes.map(&method(:suppress_configured_credentials))
209
209
  end
210
210
 
211
+ private
212
+
211
213
  def source_uris_for_spec(spec)
212
214
  specs.search_all(spec.name).inject([]) do |uris, s|
213
215
  uris << s.source_uri.without_credentials if s.source_uri
@@ -215,8 +217,6 @@ module Bundler
215
217
  end
216
218
  end
217
219
 
218
- private
219
-
220
220
  def loaded_from(spec)
221
221
  "#{Bundler.rubygems.gem_dir}/specifications/#{spec.full_name}.gemspec"
222
222
  end
@@ -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" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.9.6" 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.5
4
+ version: 1.9.6
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-04-30 00:00:00.000000000 Z
14
+ date: 2015-05-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mustache