Skip to content
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

Closed
sylhare opened this issue Nov 1, 2017 · 5 comments
Closed

Fixing and updating the gem file #9

sylhare opened this issue Nov 1, 2017 · 5 comments
Assignees

Comments

@sylhare
Copy link
Owner

sylhare commented Nov 1, 2017

Update the gem with the correct information, make sure it works:

@sylhare sylhare self-assigned this Nov 1, 2017
@sylhare sylhare added this to the Enhancing Template milestone Nov 1, 2017
@sylhare
Copy link
Owner Author

sylhare commented Nov 1, 2017

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("**/{*,.*}") }

@sylhare
Copy link
Owner Author

sylhare commented Nov 2, 2017

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 .reject to remove some files, or a & after end to add manually a directory/page with Dir[file, directory/**].

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 

@sylhare sylhare added this to to do in Type-on-Strap via automation Nov 4, 2017
@sylhare sylhare moved this from to do to In Progress in Type-on-Strap Nov 4, 2017
@sylhare
Copy link
Owner Author

sylhare commented Nov 6, 2017

sylhare added a commit that referenced this issue Nov 20, 2017
@sylhare
Copy link
Owner Author

sylhare commented Nov 20, 2017

Loaded type-on-strap v0.1.0 which now work fine for all feature pages and the rest. (Don't forget to add an index.html and a _config.yml)

@sylhare
Copy link
Owner Author

sylhare commented Nov 28, 2017

The Gem is available online at:
https://rubygems.org/gems/type-on-strap

@sylhare sylhare closed this as completed Nov 28, 2017
Type-on-Strap automation moved this from In Progress to Done Nov 28, 2017
jougene added a commit to jougene/jougene.github.io that referenced this issue Nov 29, 2017
jougene added a commit to jougene/jougene.github.io that referenced this issue Nov 29, 2017
OMEGA-Y pushed a commit to OMEGA-Y/OMEGA-Y.github.io that referenced this issue Dec 8, 2020
* Delete .DS_Store

* Add : hint.md (sylhare#9)

Add : hint.md
Solving Conflict
gmoon92 pushed a commit to gmoon92/gmoon92.github.io that referenced this issue Oct 5, 2021
gmoon92 added a commit to gmoon92/gmoon92.github.io that referenced this issue Mar 8, 2022
gmoon92 added a commit to gmoon92/gmoon92.github.io that referenced this issue Mar 8, 2022
gmoon92 added a commit to gmoon92/gmoon92.github.io that referenced this issue Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Type-on-Strap
  
Done
Development

No branches or pull requests

1 participant