Merb_editorkicker 0.2.0 released - invoke your favorite editor other than TextMate 

Filed under: product on Sunday, December 21st, 2008 by kwa | No Comments

I have released merb_editorkicker 0.2.0.

This is a Merb plug-in which enables you to invoke your favorite editor (such as Emacs, Aptana, NetBeans, and so on) instead of TextMate when you clicked line number on Merb error page.

And this plug-in works on all platform. In other words, you can invoke your editor not only on Mac but also on Linx and Windows.

I believe that this will help you very much if you are not TextMate user.

Install

Install merb_editorkicker gem.

$ sudo gem install merb_editorkicker

Load merb_editorkicker in your ‘config/dependencies.rb’.

$ echo 'dependency "merb_editorkicker"' >> config/dependencies.rb

Finally, set ENV['EDITOR_KICKER'] in your ‘config/development.rb’

## for TextMate
app_dir = '/Applications/TextMate.app'
ENV['EDITOR_KICKER'] = "#{app_dir}/Contents/Resources/mate -l %s %s"
## for Emacs (Don't forget M-x server-start)
ENV['EDITOR_KICKER'] = "emacsclient -n +%s %s"
## for NetBeans
ENV['EDITOR_KICKER'] = "netbeans %2$s:%1$s"
## for EclipseCall plugin
ENV['EDITOR_KICKER'] = "java -jar eclipsecall.jar %2$s -G%1$s"
## other
ENV['EDITOR_KICKER'] = "open %2$s"

Usage

All you have to do is to click line number links on Merb error pages, and your favorite editor will be invoked to open file.

Note

  • Don’t forget to type ‘M-x server-start’ if you are Emacs User.
  • If you are using Aptana or Eclipse, you must install EclipseCall plugin. See README.txt for details.
  • This plug-in works only on development mode and has no effect on production mode nor test mode.

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 »