bundler 1.0.9 → 1.0.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.

@@ -1,4 +1,11 @@
1
- ## 1.0.9 (January 19, 2010)
1
+ ## 1.0.10 (February 1, 2011)
2
+
3
+ Bugfixes:
4
+
5
+ - Fix a regression loading YAML gemspecs from :git and :path gems
6
+ - Requires, namespaces, etc. to work with changes in Rubygems 1.5
7
+
8
+ ## 1.0.9 (January 19, 2011)
2
9
 
3
10
  Bugfixes:
4
11
 
@@ -6,7 +13,7 @@ Bugfixes:
6
13
  path. In Rails apps with a default application.rb, this removed
7
14
  all gems in groups other than :default and Rails.env.
8
15
 
9
- ## 1.0.8 (January 18, 2010)
16
+ ## 1.0.8 (January 18, 2011)
10
17
 
11
18
  Features:
12
19
 
data/LICENSE CHANGED
@@ -1,6 +1,8 @@
1
1
  Portions copyright (c) 2010 Andre Arko
2
2
  Portions copyright (c) 2009 Engine Yard
3
3
 
4
+ MIT License
5
+
4
6
  Permission is hereby granted, free of charge, to any person obtaining
5
7
  a copy of this software and associated documentation files (the
6
8
  "Software"), to deal in the Software without restriction, including
data/Rakefile CHANGED
@@ -60,7 +60,7 @@ begin
60
60
  namespace :rubygems do
61
61
  # Rubygems 1.3.5, 1.3.6, and HEAD specs
62
62
  rubyopt = ENV["RUBYOPT"]
63
- %w(master v1.3.5 v1.3.6 v1.3.7 v1.4.0 v1.4.1).each do |rg|
63
+ %w(master v1.3.6 v1.3.7 v1.4.0 v1.4.1 v1.5.0).each do |rg|
64
64
  desc "Run specs with Rubygems #{rg}"
65
65
  RSpec::Core::RakeTask.new(rg) do |t|
66
66
  t.rspec_opts = %w(-fs --color)
@@ -68,10 +68,11 @@ begin
68
68
  end
69
69
 
70
70
  task "clone_rubygems_#{rg}" do
71
- unless File.directory?("tmp/rubygems_#{rg}")
72
- system("git clone git://github.com/rubygems/rubygems.git tmp/rubygems_#{rg} && cd tmp/rubygems_#{rg} && git reset --hard #{rg}")
71
+ unless File.directory?("tmp/rubygems")
72
+ system("git clone git://github.com/rubygems/rubygems.git tmp/rubygems")
73
73
  end
74
- ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems_#{rg}/lib")} #{rubyopt}"
74
+ system("cd tmp/rubygems && git remote update && git reset --hard origin/#{rg}")
75
+ ENV["RUBYOPT"] = "-I#{File.expand_path("tmp/rubygems/lib")} #{rubyopt}"
75
76
  end
76
77
 
77
78
  task rg => "clone_rubygems_#{rg}"
@@ -1,6 +1,12 @@
1
1
  require 'rbconfig'
2
2
  require 'fileutils'
3
3
  require 'pathname'
4
+
5
+ begin
6
+ require 'psych'
7
+ rescue LoadError
8
+ end
9
+
4
10
  require 'yaml'
5
11
  require 'bundler/rubygems_ext'
6
12
  require 'bundler/version'
@@ -224,12 +230,13 @@ module Bundler
224
230
  path = Pathname.new(file)
225
231
  # Eval the gemspec from its parent directory
226
232
  Dir.chdir(path.dirname.to_s) do
233
+ contents = File.read(path.basename.to_s)
227
234
  begin
228
- Gem::Specification.from_yaml(path.basename.to_s)
235
+ Gem::Specification.from_yaml(contents)
229
236
  # Raises ArgumentError if the file is not valid YAML
230
237
  rescue ArgumentError, SyntaxError, Gem::EndOfYAMLException, Gem::Exception
231
238
  begin
232
- eval(File.read(path.basename.to_s), TOPLEVEL_BINDING, path.expand_path.to_s)
239
+ eval(contents, TOPLEVEL_BINDING, path.expand_path.to_s)
233
240
  rescue LoadError => e
234
241
  original_line = e.backtrace.find { |line| line.include?(path.to_s) }
235
242
  msg = "There was a LoadError while evaluating #{path.basename}:\n #{e.message}"
@@ -1,6 +1,7 @@
1
1
  $:.unshift File.expand_path('../vendor', __FILE__)
2
2
  require 'thor'
3
3
  require 'thor/actions'
4
+ require 'rubygems/user_interaction'
4
5
  require 'rubygems/config_file'
5
6
 
6
7
  # Work around a RubyGems bug
@@ -105,6 +105,12 @@ module Gem
105
105
 
106
106
  alias eql? ==
107
107
 
108
+ def encode_with(coder)
109
+ to_yaml_properties.each do |ivar|
110
+ coder[ivar.to_s.sub(/^@/, '')] = instance_variable_get(ivar)
111
+ end
112
+ end
113
+
108
114
  def to_yaml_properties
109
115
  instance_variables.reject { |p| ["@source", "@groups"].include?(p.to_s) }
110
116
  end
@@ -1,4 +1,5 @@
1
1
  require "uri"
2
+ require 'rubygems/user_interaction'
2
3
  require "rubygems/installer"
3
4
  require "rubygems/spec_fetcher"
4
5
  require "rubygems/format"
@@ -1,3 +1,5 @@
1
+ require 'rubygems/user_interaction'
2
+
1
3
  module Bundler
2
4
  class UI
3
5
  def warn(message)
@@ -53,9 +55,10 @@ module Bundler
53
55
  end
54
56
  end
55
57
 
56
- class RGProxy < Gem::SilentUI
58
+ class RGProxy < ::Gem::SilentUI
57
59
  def initialize(ui)
58
60
  @ui = ui
61
+ super()
59
62
  end
60
63
 
61
64
  def say(message)
@@ -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.9" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.0.10" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -545,6 +545,15 @@ describe "bundle install with gem sources" do
545
545
  bundle :install
546
546
  err.should be_empty
547
547
  end
548
+
549
+ it "still installs correctly when using path" do
550
+ build_lib 'yaml_spec', :gemspec => :yaml
551
+
552
+ install_gemfile <<-G
553
+ gem 'yaml_spec', :path => "#{lib_path('yaml_spec-1.0')}"
554
+ G
555
+ err.should == ""
556
+ end
548
557
  end
549
558
 
550
559
  describe "when the gem has an architecture in its platform" do
@@ -1,3 +1,5 @@
1
+ require 'rubygems/user_interaction'
2
+
1
3
  module Spec
2
4
  module Rubygems
3
5
  def self.setup
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 9
10
- version: 1.0.9
9
+ - 10
10
+ version: 1.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Carl Lerche
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-01-19 00:00:00 -08:00
21
+ date: 2011-02-01 00:00:00 -08:00
22
22
  default_executable: bundle
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency