Qwandry 0.1.0 – Now Supporting More Languages

I just finished updating Qwandry so that it can support any number of other languages or packaging systems. Want to use perl, python, or node with Qwandry? No problem:


qw -r python numpy # opens python's numpy library
qw -r perl URI     # open perl's URI library
qw -r node express # open express if it is installed for node

Qwandry will probe these dynamic languages and detect their load paths. This is just the first step towards making code more accessible to people. I would love to hear what you think of it, and if you have any suggestions.

Go ahead and install it with ruby’s package manager:


  gem install qwandry

Warning

If you had customized Qwandry before, this release will break your custom init.rb file. Configuration commands looked like this:


  add 'projects', '~/toys'
  add 'projects', '~/samples'

Now they look slightly different:


  register 'projects' do
    add '~/toys'
    add '~/samples'
  end

Awesome

By wrapping the commands that actually add paths to Qwandry’s search path in a block, we can defer slow operations like probing. Furthermore, we now only need to build up the paths for what you are looking for. By deferring configuration until it is needed, we can add support for any language or package scheme we like without slowing Qwandry down.

So what would you like to see Qwandry support next?

2 Comments

Filed under development, ruby

2 responses to “Qwandry 0.1.0 – Now Supporting More Languages

  1. Pingback: ANN: Qwandry 0.1.0 | Ruby Here Blog

  2. Just started using this and loving it🙂

    I’ve been a user of open_gem for a while, but the fact that qwandry also opens up stdlib stuff is super useful.

    Thanks!