bundler 1.0.0.beta.10 → 1.0.0.rc.1

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,7 @@
1
+ ## 1.0.0.rc.1 (July 26, 2010)
2
+
3
+ - Fixed a bug with `bundle install` on multiple machines and git
4
+
1
5
  ## 1.0.0.beta.10 (July 25, 2010)
2
6
 
3
7
  - Last release before 1.0.0.rc.1
data/TODO.md CHANGED
@@ -6,3 +6,8 @@
6
6
  - Interactive mode for bundle (install) to work out conflicts
7
7
  - bundle irb / bundle ruby / bundle [whatever] -> bundle exec
8
8
  - Generate a bundle stub into the application
9
+ - bundle install --production
10
+ - (recommend symlinking vendor/bundle to a shared location for perf)
11
+ - defaults to bundle install vendor/bundle --disable-shared-gems
12
+ - if vendor/cache exists, defaults to --local
13
+ - disallow modifications to Gemfile.lock
@@ -232,6 +232,9 @@ module Bundler
232
232
  # to keep a list of every spot a failure happened.
233
233
  debug { " -> Jumping to: #{parent.name}" }
234
234
  if parent
235
+ p [parent, parent.name]
236
+ p current
237
+ throw parent.name, nil if !existing.respond_to?(:required_by) || !existing.required_by.last
235
238
  throw parent.name, existing.respond_to?(:required_by) && existing.required_by.last.name
236
239
  else
237
240
  # The original set of dependencies conflict with the base set of specs
@@ -258,7 +258,8 @@ module Bundler
258
258
  class Path
259
259
  attr_reader :path, :options
260
260
  # Kind of a hack, but needed for the lock file parser
261
- attr_accessor :name, :version
261
+ attr_writer :name
262
+ attr_accessor :version
262
263
 
263
264
  DEFAULT_GLOB = "{,*/}*.gemspec"
264
265
 
@@ -328,7 +329,7 @@ module Bundler
328
329
  begin
329
330
  Gem::Specification.from_yaml(file.basename)
330
331
  # Raises ArgumentError if the file is not valid YAML
331
- rescue ArgumentError, Gem::EndOfYAMLException, Gem::Exception
332
+ rescue ArgumentError, SyntaxError, Gem::EndOfYAMLException, Gem::Exception
332
333
  begin
333
334
  eval(File.read(file.basename), TOPLEVEL_BINDING, file.expand_path.to_s)
334
335
  rescue LoadError
@@ -558,7 +559,7 @@ module Bundler
558
559
  out = %x{git #{command}}
559
560
 
560
561
  if $? != 0
561
- raise GitError, "An error has occurred in git. Cannot complete bundling."
562
+ raise GitError, "An error has occurred in git when running `git #{command}. Cannot complete bundling."
562
563
  end
563
564
  out
564
565
  else
@@ -630,8 +631,10 @@ module Bundler
630
631
 
631
632
  def has_revision_cached?
632
633
  return unless @revision
633
- in_cache { git %|cat-file -t #{@revision}| }
634
- $? == 0
634
+ in_cache { git %|rev-parse --verify --quiet #{@revision}| }
635
+ true
636
+ rescue GitError
637
+ false
635
638
  end
636
639
 
637
640
  def allow_git_ops?
@@ -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.0.0.beta.10" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.0.0.rc.1" unless defined?(::Bundler::VERSION)
6
6
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15424055
4
5
  prerelease: true
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
9
  - 0
9
- - beta
10
- - 10
11
- version: 1.0.0.beta.10
10
+ - rc
11
+ - 1
12
+ version: 1.0.0.rc.1
12
13
  platform: ruby
13
14
  authors:
14
15
  - Carl Lerche
@@ -18,16 +19,18 @@ autorequire:
18
19
  bindir: bin
19
20
  cert_chain: []
20
21
 
21
- date: 2010-07-25 00:00:00 -07:00
22
+ date: 2010-07-26 00:00:00 -07:00
22
23
  default_executable:
23
24
  dependencies:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: rspec
26
27
  prerelease: false
27
28
  requirement: &id001 !ruby/object:Gem::Requirement
29
+ none: false
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
33
+ hash: 3
31
34
  segments:
32
35
  - 0
33
36
  version: "0"
@@ -102,16 +105,20 @@ rdoc_options: []
102
105
  require_paths:
103
106
  - lib
104
107
  required_ruby_version: !ruby/object:Gem::Requirement
108
+ none: false
105
109
  requirements:
106
110
  - - ">="
107
111
  - !ruby/object:Gem::Version
112
+ hash: 3
108
113
  segments:
109
114
  - 0
110
115
  version: "0"
111
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
112
118
  requirements:
113
119
  - - ">="
114
120
  - !ruby/object:Gem::Version
121
+ hash: 23
115
122
  segments:
116
123
  - 1
117
124
  - 3
@@ -120,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
127
  requirements: []
121
128
 
122
129
  rubyforge_project: bundler
123
- rubygems_version: 1.3.6
130
+ rubygems_version: 1.3.7
124
131
  signing_key:
125
132
  specification_version: 3
126
133
  summary: The best way to manage your application's dependencies