Skip to content

Commit

Permalink
Fix for Ruby 1.9.2 - 'can't add a new key into hash during iteration'
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Jun 13, 2010
1 parent 8069012 commit cb1fb41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
8 changes: 4 additions & 4 deletions bowline-bundler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{bowline-bundler}
s.version = "0.0.3"
s.version = "0.0.4"

s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
s.authors = ["Alex MacCaw"]
s.date = %q{2010-05-27}
s.date = %q{2010-06-13}
s.default_executable = %q{bowline-bundle}
s.email = %q{alex@leadthinking.com}
s.executables = ["bowline-bundle"]
Expand Down Expand Up @@ -64,7 +64,7 @@ Gem::Specification.new do |s|
s.homepage = %q{http://github.com/maccman/bowline-bundler}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.6}
s.rubygems_version = %q{1.3.7}
s.summary = %q{An easy way to vendor gem dependencies for Bowline apps}
s.test_files = [
"spec/bundler/cli_spec.rb",
Expand Down Expand Up @@ -94,7 +94,7 @@ Gem::Specification.new do |s|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
Expand Down
4 changes: 2 additions & 2 deletions lib/bowline/bundler/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class Dependency < Gem::Dependency
attr_accessor :source

def initialize(name, options = {}, &block)
options.each do |k, v|
options[k.to_s] = v
options.dup.each do |key, value|
options[key.to_s] = options.delete(key)
end

super(name, options["version"] || ">= 0")
Expand Down

0 comments on commit cb1fb41

Please sign in to comment.