Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sourcing haml from git hub is broken cause its gemspec needs access more files #44
When you source haml from github it fails due to:
having this line:
spec.version = File.read('VERSION').strip
fixing this is a bit of a cluster ...
What do you do about projects that don't check in the gemspec, such as many of those that use Jeweler? Are they also unsupported?
It seems to me that the best solution here is to do a non-bare checkout of the repository. A development version of a repository is in flux, and the lack of a consistent static gemspec reflects that.
The only issue with this .gemspec is its brittle expectation of how it'll be loaded. Just doing File.expand_path('../VERSION', FILE) would resolve it.
Repositories without a .gemspec have one fashioned for them. Recommend that those using Jeweler also check in the generated .gemspec for convenience. However, it would be nice to have a conventional way to generate a gemspec if it doesn't exist, such as trying