-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing and updating the gem file #9
Comments
The key is to verify the gemspec contains all of the required information and make sure it contains all of the specified files: Get all files: root_path = File.dirname(__FILE__)
spec.files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") } |
Ok leaving here some more insight. First to test that the gem gets all the required documents: gem build type-on-strap.gemspec
gem unpack type-on-strap-x.x.gem Then the part that changed, I have removed that "git" thing because it was trouble some. Instead I start with all of the documents and I select the repository and files I want: spec.files = Dir.glob("**/{*,.*}").select do |f|
f.match(%r{^(assets|pages|_(portfolio|includes|layouts|sass)/|(LICENSE|Gemfile|_config.yml|index.html)((\.(txt|md|markdown)|$)))}i)
end I could have used a No I want to push the gem online and test it from there. # Push the gem online
gem push type-on-strap-x.x.gem
# Delete the gem online
gem yank type-on-strap -v x-x
|
Type-on-strap v0.0.1 is online for testing purpose! Other documentation |
Loaded type-on-strap v0.1.0 which now work fine for all feature pages and the rest. (Don't forget to add an |
The Gem is available online at: |
* Delete .DS_Store * Add : hint.md (sylhare#9) Add : hint.md Solving Conflict
Update the gem with the correct information, make sure it works:
The text was updated successfully, but these errors were encountered: