@hopranch First of all, I’d like to inform you that Jekyll’s theme-gems are actually pseudo-gems — they do not contain Ruby code!!
Jekyll theme-gems are just a regular site (minus the “content”) packaged into a gem.
Since they do not contain Ruby Code, you can “load” them in irb
Jekyll provides you with a sub-command to bootstrap a theme-gem: new-theme
It is run as:
bundle exec jekyll new-theme mytheme
Running the above command will provide you with the necessary files and folders to create a theme-gem named “mytheme”
Once you’re done developing the gem, edit the generated mytheme.gemspec as necessary and build the gem like documented in the Rubygems Guide:
You can also use default gem tasks by adding this in your Rakefile
require "bundler/gem_tasks"
And then run bundler exec rake release to release a new version of your gem, when you’ve commited your changes. It’ll create a tag based on the version and push your gem to rubygems.