ruby 应用
1:FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby applications. It’s based on the FOX Toolkit, a popular open source C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you’re able to write code in the Ruby programming language that you already know and love, while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit. Projects Using FXRuby Projects using FXRuby include: BeERP is a commercial ERP built entirely with the FXRuby library. Discretizer is an interactive mesh creation tool. It can be used to create geometry and meshes for three dimensional flow simulations (CFD). foxGUIb is an interactive gui builder and codegenerator for FXRuby. This tool makes it easy to quickly build complex and good looking graphical user interfaces for Ruby. FXRI is a FXRuby Interface to RI that supports search-on-typing. FXRI is a small little program that tries to provide the desired information as fast as possible. fxtwitter is a simple Twitter client written in Ruby. FreeRIDE is an IDE for the Ruby programming language. http://opensource.csdn.net/project/lang/26?show=hots&p=5 MasterView™ - Rails-optimized (x)html friendly template engine http://masterview.org/ RubyScript2Exe http://www.erikveen.dds.nl/rubyscript2exe/index.html RUBY GUI框架:http://opensource.csdn.net/project/lang/26?tag=178
可可鱼:http://www.kekeyu.com/ruby/open_2665.html 一个ERP: http://donmanolo2.sourceforge.net/
GUI: http://ruby-gnome2.sourceforge.jp/hiki.cgi
鞋:http://github.com/why/shoes/tree/master Hamster介绍: URL: http://rubyforge.org/frs/download.php/11419/hamster_beta_build_060629.rar
来源:可可鱼开源网 赞助:www.
相关文档:
Watir 语法(Web Application Testing in Ruby)
# watir的安装
watie的安装请查看 -> Ruby library的安装
# 使用Watir工具,需要在脚本中加上
require 'watir'
# 创建一个IE的实例
ie = Watir::IE.new
或者在创建的同时直接转到页面
ie = Watir::IE.start('http://www.text.com/')
Watir使用start方法 ......
Ruport是一个免费的Ruby报表工具,它可以令到制作报表软件变得简单一些。Ruport支持从文件或者数据库获得数据,提供工具操作数据。额外地,Ruport支持高扩展的格式化软件,目前能够支援HTML、PDF、CSV和文本输出。
Ruport可能是Ruby目前唯一的报表工具,目前在持续开发中,更多的新特性正在添加。
安装方法:
gem instal ......
下文转自:
http://www.cnblogs.com/watir/archive/2009/04/25/1443440.html
ruby文件从命令行中接收参数
在命令行方法执行ruby文件时,需要从命令行中传入参数,可以使用全局变量:ARGV
如有ruby 文件test.rb,内容如下:
1 def hello(a)
2 puts a
3 end
4
5 ......
Prepare
1. Download 'OCI 1.x.x.rb' (it's VERY important - execution MUST be *.rb)
2. Download 'oci8lib.so'
Install
1. Copy 'OCI8.rb' to .../ruby/lib/ruby/site_ruby/1.8/DBD/OCI8
2. Copy 'oci8.rb' to .../ruby/lib/ruby/site_ruby/1.8
3. Copy 'oci8lib.so' to .../ruby/lib/ruby/site_ruby/1.8/i386-msv ......
此例子在 Ruby Ruport实践—简单报表系统 及 Ruby Ruport实践—中文PDF报表之PRAWN 的基础上进行完善,添加了对报表参数的设计及实现。
一、创建数据表report_parameters
create table report_parameters
(report_parameter_id integer not null auto_increment,
report_execute_id integer not null, ......