diff options
author | Matt Jones <al2o3cr@gmail.com> | 2009-06-09 12:26:52 -0400 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-06-10 09:57:58 +1200 |
commit | d7e0cb05cc8adad430d0e97efef1608eef58db80 (patch) | |
tree | 761aee1c4e95028f15a11b6595c46e10f340f62e /railties/lib/rails | |
parent | 69bc2043f93890048e415dd7c5f1feba5a20d145 (diff) | |
download | rails-d7e0cb05cc8adad430d0e97efef1608eef58db80.tar.gz rails-d7e0cb05cc8adad430d0e97efef1608eef58db80.tar.bz2 rails-d7e0cb05cc8adad430d0e97efef1608eef58db80.zip |
Fix incorrect specification path in GemDependency#from_directory_name
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/gem_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/gem_dependency.rb b/railties/lib/rails/gem_dependency.rb index 3a82202bd0..3cc75494e4 100644 --- a/railties/lib/rails/gem_dependency.rb +++ b/railties/lib/rails/gem_dependency.rb @@ -34,7 +34,7 @@ module Rails name = directory_name_parts[0..-2].join('-') version = directory_name_parts.last result = self.new(name, :version => version) - spec_filename = File.join(unpacked_path, directory_name, '.specification') + spec_filename = File.join(directory_name, '.specification') if load_spec raise "Missing specification file in #{File.dirname(spec_filename)}. Perhaps you need to do a 'rake gems:refresh_specs'?" unless File.exists?(spec_filename) spec = YAML::load_file(spec_filename) |