bundler 1.1.rc.6 → 1.1.rc.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.

@@ -1,3 +1,9 @@
1
+ ## 1.1.rc.7 (Dec 29, 2011)
2
+
3
+ Bugfixes:
4
+
5
+ - Fix bug where `clean` would break when using :path with no gemspec
6
+
1
7
  ## 1.1.rc.6 (Dec 22, 2011)
2
8
 
3
9
  Bugfixes:
@@ -269,7 +269,8 @@ module Bundler
269
269
  # Rubygems 1.8+
270
270
  def backport_base_dir
271
271
  Gem::Specification.send(:define_method, :base_dir) do
272
- installation_path
272
+ return Gem.dir unless loaded_from
273
+ File.dirname File.dirname loaded_from
273
274
  end
274
275
  end
275
276
 
@@ -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.1.rc.6" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.1.rc.7" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -468,4 +468,25 @@ describe "bundle clean" do
468
468
  exitstatus.should == 0
469
469
  out.should == "1.0"
470
470
  end
471
+
472
+ it "doesn't blow up on path gems without a .gempsec" do
473
+ relative_path = "vendor/private_gems/bar-1.0"
474
+ absolute_path = bundled_app(relative_path)
475
+ FileUtils.mkdir_p("#{absolute_path}/lib/bar")
476
+ File.open("#{absolute_path}/lib/bar/bar.rb", 'wb') do |file|
477
+ file.puts "module Bar; end"
478
+ end
479
+
480
+ gemfile <<-G
481
+ source "file://#{gem_repo1}"
482
+
483
+ gem "foo"
484
+ gem "bar", "1.0", :path => "#{relative_path}"
485
+ G
486
+
487
+ bundle "install --path vendor/bundle"
488
+ bundle :clean, :exitstatus => true
489
+
490
+ exitstatus.should eq(0)
491
+ end
471
492
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424241
4
+ hash: 15424243
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - rc
10
- - 6
11
- version: 1.1.rc.6
10
+ - 7
11
+ version: 1.1.rc.7
12
12
  platform: ruby
13
13
  authors:
14
14
  - "Andr\xC3\xA9 Arko"
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2011-12-23 00:00:00 -08:00
22
+ date: 2011-12-29 00:00:00 -05:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
@@ -235,20 +235,20 @@ files:
235
235
  - spec/update/gems_spec.rb
236
236
  - spec/update/git_spec.rb
237
237
  - spec/update/source_spec.rb
238
- - lib/bundler/man/bundle
239
- - lib/bundler/man/bundle-config
240
- - lib/bundler/man/bundle-config.txt
241
238
  - lib/bundler/man/bundle-exec
242
- - lib/bundler/man/bundle-exec.txt
239
+ - lib/bundler/man/bundle
243
240
  - lib/bundler/man/bundle-install
244
- - lib/bundler/man/bundle-install.txt
241
+ - lib/bundler/man/gemfile.5
245
242
  - lib/bundler/man/bundle-package
246
- - lib/bundler/man/bundle-package.txt
247
243
  - lib/bundler/man/bundle-update
244
+ - lib/bundler/man/bundle-exec.txt
245
+ - lib/bundler/man/gemfile.5.txt
248
246
  - lib/bundler/man/bundle-update.txt
247
+ - lib/bundler/man/bundle-config
248
+ - lib/bundler/man/bundle-config.txt
249
249
  - lib/bundler/man/bundle.txt
250
- - lib/bundler/man/gemfile.5
251
- - lib/bundler/man/gemfile.5.txt
250
+ - lib/bundler/man/bundle-package.txt
251
+ - lib/bundler/man/bundle-install.txt
252
252
  has_rdoc: true
253
253
  homepage: http://gembundler.com
254
254
  licenses: []
@@ -285,81 +285,5 @@ rubygems_version: 1.3.7
285
285
  signing_key:
286
286
  specification_version: 3
287
287
  summary: The best way to manage your application's dependencies
288
- test_files:
289
- - spec/bundler/dsl_spec.rb
290
- - spec/bundler/gem_helper_spec.rb
291
- - spec/bundler/source_spec.rb
292
- - spec/cache/gems_spec.rb
293
- - spec/cache/git_spec.rb
294
- - spec/cache/path_spec.rb
295
- - spec/cache/platform_spec.rb
296
- - spec/install/deploy_spec.rb
297
- - spec/install/deprecated_spec.rb
298
- - spec/install/gems/c_ext_spec.rb
299
- - spec/install/gems/dependency_api_spec.rb
300
- - spec/install/gems/env_spec.rb
301
- - spec/install/gems/flex_spec.rb
302
- - spec/install/gems/groups_spec.rb
303
- - spec/install/gems/packed_spec.rb
304
- - spec/install/gems/platform_spec.rb
305
- - spec/install/gems/post_install_spec.rb
306
- - spec/install/gems/resolving_spec.rb
307
- - spec/install/gems/simple_case_spec.rb
308
- - spec/install/gems/standalone_spec.rb
309
- - spec/install/gems/sudo_spec.rb
310
- - spec/install/gems/win32_spec.rb
311
- - spec/install/gemspec_spec.rb
312
- - spec/install/git_spec.rb
313
- - spec/install/invalid_spec.rb
314
- - spec/install/path_spec.rb
315
- - spec/install/upgrade_spec.rb
316
- - spec/lock/git_spec.rb
317
- - spec/lock/lockfile_spec.rb
318
- - spec/other/check_spec.rb
319
- - spec/other/clean_spec.rb
320
- - spec/other/config_spec.rb
321
- - spec/other/console_spec.rb
322
- - spec/other/exec_spec.rb
323
- - spec/other/ext_spec.rb
324
- - spec/other/help_spec.rb
325
- - spec/other/init_spec.rb
326
- - spec/other/newgem_spec.rb
327
- - spec/other/open_spec.rb
328
- - spec/other/outdated_spec.rb
329
- - spec/other/show_spec.rb
330
- - spec/quality_spec.rb
331
- - spec/realworld/edgecases_spec.rb
332
- - spec/resolver/basic_spec.rb
333
- - spec/resolver/platform_spec.rb
334
- - spec/runtime/executable_spec.rb
335
- - spec/runtime/load_spec.rb
336
- - spec/runtime/platform_spec.rb
337
- - spec/runtime/require_spec.rb
338
- - spec/runtime/setup_spec.rb
339
- - spec/runtime/with_clean_env_spec.rb
340
- - spec/spec_helper.rb
341
- - spec/support/artifice/endopint_marshal_fail_basic_authentication.rb
342
- - spec/support/artifice/endpoint.rb
343
- - spec/support/artifice/endpoint_500.rb
344
- - spec/support/artifice/endpoint_api_missing.rb
345
- - spec/support/artifice/endpoint_basic_authentication.rb
346
- - spec/support/artifice/endpoint_extra.rb
347
- - spec/support/artifice/endpoint_extra_missing.rb
348
- - spec/support/artifice/endpoint_fallback.rb
349
- - spec/support/artifice/endpoint_marshal_fail.rb
350
- - spec/support/artifice/endpoint_redirect.rb
351
- - spec/support/builders.rb
352
- - spec/support/fakeweb/rack-1.0.0.marshal
353
- - spec/support/fakeweb/windows.rb
354
- - spec/support/helpers.rb
355
- - spec/support/indexes.rb
356
- - spec/support/matchers.rb
357
- - spec/support/path.rb
358
- - spec/support/platforms.rb
359
- - spec/support/ruby_ext.rb
360
- - spec/support/rubygems_ext.rb
361
- - spec/support/rubygems_hax/platform.rb
362
- - spec/support/sudo.rb
363
- - spec/update/gems_spec.rb
364
- - spec/update/git_spec.rb
365
- - spec/update/source_spec.rb
288
+ test_files: []
289
+