1
Watch
0
Star
0
Fork
0
Issue

A gem to build another gem

radf0x
radf0x
pushedAt 2 years ago

radf0x/gembuilder

gembuilder

A gem to generate the scaffolding of another gem
take laziness to another level because why not?

How to use

  1. $ ./gembuilder [your desired gem name]
  2. Follow instructions on screen
    demo

What will it generates?

  1. A folder with files below:
no-scope
├── no-scope.gemspec
└── lib
    └── no-scope.rb
  1. A empty class with camelcase gem_name (/lib/no-scope.rb)
# frozen_string_literal: true

class NoScope

end
  1. A default gemspec with TODOs
Gem::Specification.new do |s|
  s.name        = "<%= no-scope %>"   
  s.version     = '0.0.1'   
  s.summary     = "<%= no-scope %>"   
  s.description = "[TODO]"   
  s.authors     = [""]   
  s.email       = ''
  s.files       = ["lib/<%= no-scope %>.rb"]   
  s.homepage    = "[TODO]"   
  s.license     = "<%= @license %>"
end

TODO

  1. Support different format for gem_name input
  2. Add standard methods on the new gem main class
  3. Not sure if im going to work on this lib anytime soon but look!
    A lazy cat is having a nap on the couch
    cat
ucloud ads