CGIAlt 1.0.0 released - re-implementation of cgi.rb 

Filed under: product, ruby on Sunday, November 9th, 2008 by kwa | No Comments

I have released CGIAlt 1.0.0.

CGIAlt is a re-implementation of ‘cgi.rb’.

Features

  • Compatible with ‘cgi.rb’ and CGI class
  • Faster than ‘cgi.rb’
  • Available with CGIExt (which is an implementation of cgi.rb in C extension)
  • FastCGI support
  • Ruby 1.9 support

    Read the rest of this entry »

pyKook 0.0.1 - a simple build tool similar to Make or Ant 

Filed under: product, python on Sunday, October 19th, 2008 by kwa | No Comments

I have released pyKook 0.0.1.

pyKook is a simple build tool similar to Make, Ant, Rake, or SCons. pyKook regards software project as cooking. Terms used in pyKook are cooking terms.

For example:

  • cookbook : Makefile
  • product : target file
  • ingredient : source file
  • recipe : how to create target from source

Cookbook (= Makefile) is written in pure Python. You can write any statements or expressions in cookbook.

Example of cookbook (Kookbook.py)

Read the rest of this entry »

The complete stes to install Merb and DataMapper from source 

Filed under: ruby on Thursday, September 25th, 2008 by kwa | 3 Comments

I just started to learn Merb and DataMapper. I installed them with RubyGems, but it raised error because Merb requires DataMapper 0.9.6 but officialy released only 0.9.5. So I decided to install them from source, and found it is hard to install them from source.

The following is the complete steps to install Merb and DataMapper from source.

## install RubyGems 1.2.0 or later
$ tar xzf rubygems-1.2.0.tar.gz
$ cd rubygems-1.2.0/
$ sudo ruby setup.rb

## install dependencies of extlib
$ sudo gem install rake rspec english

## install extlib from source
## (both Merb and DataMapper depend on extlib)
$ git clone git://github.com/sam/extlib.git
$ (cd extlib; sudo rake install)             # extlib-0.9.7

## install dependencies of Merb
$ sudo gem install erubis json_pure rack mime-types hpricot thor
$ sudo gem install ruby2ruby templater haml builder mailfactory mongrel
$ sudo gem install sequel

## install Merb from source
$ git clone git://github.com/wycats/merb-core.git
$ git clone git://github.com/wycats/merb-more.git
$ git clone git://github.com/wycats/merb-plugins.git
$ (cd merb-core; sudo rake install)          # merb-core-0.9.8
$ (cd merb-more; sudo rake install)          # merb-more-0.9.8
$ (cd merb-plugins; sudo rake install)       # merb-xxxx-0.9.8

## install dependencies of DataObject and DataMapper
$ sudo gem install addressable
$ which mysql_config
/usr/local/mysql/bin/mysql_config

## install DataObject from source
$ git clone git://github.com/sam/do.git
$ (cd do/data_objects; sudo rake install)    # data_objects-0.9.6
$ (cd do/do_mysql; sudo rake install)        # do_mysql-0.9.6

## install DataMapper from source
$ git clone git://github.com/sam/dm-core.git
$ git clone git://github.com/sam/dm-more.git
$ (cd dm-core; sudo rake install)            # dm-core-0.9.6
$ (cd dm-more; sudo rake install)            # dm-more-0.9.6

After that, you can type ‘merb-gen app myapp’ and play with them. I hope this helps beginners of Merb and DataMapper.

EditorKicker 0.2.0 released 

Filed under: product on Sunday, September 14th, 2008 by kwa | No Comments

EditorKicker 0.2.0 released.

EditorKicker is a pretty tool to invoke your favorite editor (TextMate or Emacs) and open errored file automatically when an exception raised on your Ruby script.

If you are Rails user, try

$ ruby script/plugin install http://github.com/kwatch/editorkicker.git/ruby/plugin/rails/editorkicker

to install EditorKicker plugin for your Ruby on Rails application.

In this release, it is able to specify include and/or exclude path by environment variable $EDITOR_KICKER_INCLUDE and $EDITOR_KICKER_EXCLUDE.

$ export EDITOR_KICKER_EXCLUDE='/usr/local:/opt/local:./vendor/plugins'

See http://editorkicker.rubyforge.org/ for details.

Erubis 2.6.0 released — a fast and extensible eRuby 

Filed under: product on Monday, May 5th, 2008 by kwa | No Comments

I have released Erubis 2.6.0.

Erubis is another eRuby implementation which is very fast and extensible than ERB and eruby.

Enhancements from 2.5.0:

Read the rest of this entry »

plTenjin 0.0.2 and pyTenjin 0.6.2 released - the fastest template engine in the world 

Filed under: product on Thursday, February 28th, 2008 by kwa | No Comments

I have released plTenjin 0.0.2 and pyTenjin 0.6.2.
http://www.kuwata-lab.com/tenjin/
Tenjin is the fastest template engine in the world. It is not only very fast but also full-featured and easy-to-use.

Read the rest of this entry »

phpTenjin 0.0.2 and rbTenjin 0.6.2 released - the fastest template engine in the world 

Filed under: product on Monday, February 25th, 2008 by kwa | No Comments

I have released phpTenjin 0.0.2 and rbTenjin 0.6.2.
http://www.kuwata-lab.com/tenjin/
Tenjin is the fastest template engine in the world. It is not only very fast but also full-featured and easy-to-use.

Read the rest of this entry »

cgi-exception 0.2.0 released - a small library to show exception in your browser 

Filed under: product on Friday, February 22nd, 2008 by kwa | No Comments

I have released cgi-exception 0.2.0.
http://cgi-exception.rubyforge.org/
cgi-exception is a small library to report exception raised in CGI script into your browser, like PHP. Once you install cgi-exception, you don’t have to look up web server’s log file to check what and at where exception raised in your CGI script.

Enhancements from 0.1.0:

  • mod_ruby support
  • detect whether HTTP header printed or not
  • omit lines when Exception backtrace is too long

rbTenjin 0.6.1 released - the fastest template engine in the world 

Filed under: product on Friday, February 8th, 2008 by kwa | No Comments

I have released rbTenjin 0.6.1.
http://www.kuwata-lab.com/tenjin/
changes:
http://www.kuwata-lab.com/tenjin/rbtenjin-CHANGES.txt

rbTenjin is a fast and full-featured template engine similar to eRuby but it has the following advantages against to eRuby and ERB.

Read the rest of this entry »

jsTenjin 0.0.2 released - a fast & lightweight template engine for JS 

Filed under: product on Friday, February 1st, 2008 by kwa | No Comments

I have released jsTenjin 0.0.2.
http://www.kuwata-lab.com/tenjin/

jsTenjin is a very fast and lightweight template engine for JavaScript. It is especially designed for server-side programming and works on both SpiderMonkey and Rhino. Also jsTenjin package contains client-side library which is a subset of server-side library.

0.0.2 is a bug fix release.

Bugfix

  • On SpiderMonkey, if template was large (>=4KB) then Tenjin#readFile() inserted extra commas (’,'). Now fixed.

This bug is reported by P.Khodko. Thank you very much.