Qk/quik - ruby quick starter template script wizard .:. the missing code generator - v0.1

Hello,

   I've put together a quik gem [1] that includes a new ruby quick
starter template script wizard. Let's say you want to start a new gem.
Try:

  $ quik new gem # or
  $ qk n gem

  This will download the gem.rb wizard script from the Rubyref Scripts repo [2]
  and run through all steps e.g.:

Welcome, to the gem quick starter script.

Q: What's your gem's name? [hola]: hello
Q: What's your gem's module? [Hola]: Hello

Thanks! Ready-to-go. Stand back.

Downloading Rubyref Gem Starter Template...
Setting up Rubyref Starter Template...
...
Done.

  That's it. Now the gem starter code is ready in the hello folder.

  Add your own scripts! It's just Ruby using the quik mini language.
For example - gem.rb is just:

   say "Hello from the gem quick starter wizard script"

  name = ask "Name of the gem", "hola"
  klass = ask "Module name of the gem", "Hola"

use "rubyref/gem-starter-template"

config do |c|
  c.name = name
  c.filename = name
  c.klass = klass
end

say "Done."

  That's it. Questions? Comments? Welcome. Cheers.

[1] GitHub - quikstart/quik: quik gem - ruby quick starter template script wizard .:. the missing code generator
[2] GitHub - quikstart/scripts: Quik Scripts Catalog / Directory / Registry - Ruby Quick Starter Template Wizard Scripts - Automate, Automate, Automate - Add Your Script!

Hi,
isn't there this neat little gem called bundles that already does exactly that: bootstrapping a new gem?

···

Am 18.08.2015 um 17:12 schrieb Gerald Bauer <gerald.bauer@gmail.com>:

Hello,

  I've put together a quik gem [1] that includes a new ruby quick
starter template script wizard. Let's say you want to start a new gem.
Try:

$ quik new gem # or
$ qk n gem

This will download the gem.rb wizard script from the Rubyref Scripts repo [2]
and run through all steps e.g.:

Welcome, to the gem quick starter script.

Q: What's your gem's name? [hola]: hello
Q: What's your gem's module? [Hola]: Hello

Thanks! Ready-to-go. Stand back.

Downloading Rubyref Gem Starter Template...
Setting up Rubyref Starter Template...
...
Done.

That's it. Now the gem starter code is ready in the hello folder.

Add your own scripts! It's just Ruby using the quik mini language.
For example - gem.rb is just:

  say "Hello from the gem quick starter wizard script"

name = ask "Name of the gem", "hola"
klass = ask "Module name of the gem", "Hola"

use "rubyref/gem-starter-template"

config do |c|
c.name = name
c.filename = name
c.klass = klass
end

say "Done."

That's it. Questions? Comments? Welcome. Cheers.

[1] GitHub - quikstart/quik: quik gem - ruby quick starter template script wizard .:. the missing code generator
[2] GitHub - quikstart/scripts: Quik Scripts Catalog / Directory / Registry - Ruby Quick Starter Template Wizard Scripts - Automate, Automate, Automate - Add Your Script!

For gems "bundler/gem_tasks" is quite good: bundler/lib/bundler/gem_tasks.rb at master · rubygems/bundler · GitHub
I think OP means for this tool to be used as a general templating tool, not limited to gems

···

From: Tim Kächele <mail@timkaechele.me>
To: Ruby users <ruby-talk@ruby-lang.org>
Sent: Tuesday, August 18, 2015 11:16 AM
Subject: Re: qk/quik - ruby quick starter template script wizard .:. the missing code generator - v0.1
   
Hi,
isn't there this neat little gem called bundles that already does exactly that: bootstrapping a new gem?

Am 18.08.2015 um 17:12 schrieb Gerald Bauer <gerald.bauer@gmail.com>:

Hello,

I've put together a quik gem [1] that includes a new ruby quick
starter template script wizard. Let's say you want to start a new gem.
Try:

$ quik new gem # or
$ qk n gem

This will download the gem.rb wizard script from the Rubyref Scripts repo [2]
and run through all steps e.g.:

Welcome, to the gem quick starter script.

Q: What's your gem's name? [hola]: hello
Q: What's your gem's module? [Hola]: Hello

Thanks! Ready-to-go. Stand back.

Downloading Rubyref Gem Starter Template...
Setting up Rubyref Starter Template...
...
Done.

That's it. Now the gem starter code is ready in the hello folder.

Add your own scripts! It's just Ruby using the quik mini language.
For example - gem.rb is just:

say "Hello from the gem quick starter wizard script"

name = ask "Name of the gem", "hola"
klass = ask "Module name of the gem", "Hola"

use "rubyref/gem-starter-template"

config do |c|
c.name = name
c.filename = name
c.klass = klass
end

say "Done."

That's it. Questions? Comments? Welcome. Cheers.

[1] GitHub - quikstart/quik: quik gem - ruby quick starter template script wizard .:. the missing code generator
[2] GitHub - quikstart/scripts: Quik Scripts Catalog / Directory / Registry - Ruby Quick Starter Template Wizard Scripts - Automate, Automate, Automate - Add Your Script!

Hello,

isn't there this neat little gem called bundles that already does exactly that:
bootstrapping a new gem?

  Good point. Two points:

   1) qk/quick is a "generic" quick starter template tool and, thus,
works for anything e.g. sinatra starter, gli starter, beerdb starter,
jekyll starter and much more.

  2) The bundler gem template is "opinionated" - qk/quick offers you
"freedom", that is, more choice for your gem templates. For example, I
prefer to use the "old school" hoe-style to build all gems (80+) e.g.
using a "real" manifest plus some "real" rake files and the .gemspec
gets generated etc. and much more. Try it and see how much better it
is :wink:

  Sorry for the confusion. Just getting started with some gem examples
for now. Again for some static site (e.g. jekyll) examples, see
mrh/mrhyde [1] (built using qk/quick).

   Cheers.

[1] GitHub - quikstart/mrhyde: mrhyde-tools gem - static site quick starter script wizard .:. jekyll command line tool

Hey,

gem and bundler is sufficient. No need to reinvent the wheel. Take a look: http://gistflow.com/posts/910-easiest-way-to-start-a-new-ruby-gem\.

Cheers,
Dzianis Dashkevich

···

On Aug 18, 2015, at 8:44 PM, Gerald Bauer <gerald.bauer@gmail.com> wrote:

Hello,

isn't there this neat little gem called bundles that already does exactly that:
bootstrapping a new gem?

Good point. Two points:

  1) qk/quick is a "generic" quick starter template tool and, thus,
works for anything e.g. sinatra starter, gli starter, beerdb starter,
jekyll starter and much more.

2) The bundler gem template is "opinionated" - qk/quick offers you
"freedom", that is, more choice for your gem templates. For example, I
prefer to use the "old school" hoe-style to build all gems (80+) e.g.
using a "real" manifest plus some "real" rake files and the .gemspec
gets generated etc. and much more. Try it and see how much better it
is :wink:

Sorry for the confusion. Just getting started with some gem examples
for now. Again for some static site (e.g. jekyll) examples, see
mrh/mrhyde [1] (built using qk/quick).

  Cheers.

[1] https://github.com/mrhydescripts/mrhyde

Hello,

   Great if bundler works for you. Lucky you. To quote the first
comment/question from your recommended reading:

what gem you created?

  I'd say with experience (that is, creating and updating some "real"
gems, for example) you will become more humble. Cheers.

PS: The "classic" about just use a .gemspec titled "Using .gemspecs
as Intended" by Yehuda Katz is here ->

PPS: To find out what you're missing - try the article in the Gem of
the Week series @ Planet Ruby titled "Build, package and publish gems
with hoe rake tasks" -> http://planetruby.github.io/gems/hoe.html

For your convenience here's a list of tasks on offer:

rake announce # publish # Announce your release.
rake audit # test # Run ZenTest against the package.
rake check_extra_deps # deps # Install missing dependencies.
rake check_manifest # debug # Verify the manifest.
rake clean # clean # Clean up all the extras.
rake clobber_docs # publish # Remove RDoc files
rake clobber_package # package # Remove package products
rake config_hoe # debug # Create a fresh ~/.hoerc file.
rake dcov # publish # Generate rdoc coverage report
rake debug_email # publish # Generate email announcement file.
rake debug_gem # debug # Show information about the gem.
rake default # test # Run the default task(s).
rake deps:email # deps # Print a contact list for gems
dependent on this gem
rake deps:fetch # deps # Fetch all the dependent gems
of this gem into tarballs
rake deps:list # deps # List all the dependent gems of this gem
rake docs # publish # Generate rdoc
rake gem # package # Build the gem file hellohoe-0.1.gem
rake generate_key # signing # Generate a key for signing your gems.
rake install_gem # package # Install the package as a gem.
rake install_plugins # deps # Install missing plugins.
rake newb # newb # Install deps, generate docs,
run tests/specs.
rake package # package # Build all the packages
rake post_blog # publish # Post announcement to blog.
rake publish_docs # publish # Publish RDoc to wherever you want.
rake release # package # Package and upload; Requires
VERSION=x.y.z (optional PRE=a.1)
rake release_sanity # package # Sanity checks for release
rake release_to_gemcutter # gemcutter # Push gem to gemcutter.
rake repackage # package # Force a rebuild of the package files
rake ridocs # publish # Generate ri locally for testing.

Missing anything? Add some plugins for more :wink: