|

楼主 |
发表于 14-6-2007 08:30 AM
|
显示全部楼层
原帖由 苦瓜汤 于 13-6-2007 06:53 PM 发表
提到了Perl,不得不提一下Ruby的Regular Expression。Ruby的Regexp是我觉得最容易处理的一个
if "testing foo@bar.com 123 the end" =~ %r{(+@+\.+) (\d{3})}
puts "Found String #{$&a ...
- /normal regex/iomx[neus]
- %r|alternate form|
- options:
-
- /i case insensitive
- /o only interpolate #{} blocks once
- /m multiline mode - '.' will match newline
- /x extended mode - whitespace is ignored
- /[neus] encoding: none, EUC, UTF-8, SJIS, respectively
- regex characters:
-
- . any character except newline
- [ ] any single character of set
- [^ ] any single character NOT of set
- * 0 or more previous regular expression
- *? 0 or more previous regular expression(non greedy)
- + 1 or more previous regular expression
- +? 1 or more previous regular expression(non greedy)
- ? 0 or 1 previous regular expression
- | alternation
- ( ) grouping regular expressions
- ^ beginning of a line or string
- $ end of a line or string
- {m,n} at least m but most n previous regular expression
- {m,n}? at least m but most n previous regular expression(non greedy)
- \A beginning of a string
- \b backspace(0x08)(inside[]only)
- \b word boundary(outside[]only)
- \B non-word boundary
- \d digit, same as[0-9]
- \D non-digit
- \S non-whitespace character
- \s whitespace character[ \t\n\r\f]
- \W non-word character
- \w word character[0-9A-Za-z_]
- \z end of a string
- \Z end of a string, or before newline at the end
- (?# ) comment
- (?: ) grouping without backreferences
- (?= ) zero-width positive look-ahead assertion
- (?! ) zero-width negative look-ahead assertion
- (?ix-ix) turns on/off i/x options, localized in group if any.
- (?ix-ix: ) turns on/off i/x options, localized in non-capturing grou
复制代码
- $! The exception information message set by 'raise'.
- $@ Array of backtrace of the last exception thrown.
- $& The string matched by the last successful pattern match in this scope.
- $` The string to the left of the last successful match.
- $' The string to the right of the last successful match.
- $+ The last bracket matched by the last successful match.
- $1 The Nth group of the last successful match. May be > 1.
- $~ The information about the last match in the current scope.
- $= The flag for case insensitive, nil by default.
- $/ The input record separator, newline by default.
- $\ The output record separator for the print and IO#write. Default is nil.
- $, The output field separator for the print and Array#join.
- $; The default separator for String#split.
- $. The current input line number of the last file that was read.
- $< The virtual concatenation file of the files given on command line.
- $> The default output for print, printf. $stdout by default.
- $_ The last input line of string by gets or readline.
- $0 Contains the name of the script being executed. May be assignable.
- $* Command line arguments given for the script sans args.
- $$ The process number of the Ruby running this script.
- $? The status of the last executed child process.
- $: Load path for scripts and binary modules by load or require.
- $" The array contains the module names loaded by require.
- $DEBUG The status of the -d switch.
- $FILENAME Current input file from $<. Same as $<.filename.
- $LOAD_PATH The alias to the $:.
- $stderr The current standard error output.
- $stdin The current standard input.
- $stdout The current standard output.
- $VERBOSE The verbose flag, which is set by the -v switch.
- $-0 The alias to $/.
- $-a True if option -a is set. Read-only variable.
- $-d The alias to $DEBUG.
- $-F The alias to $;.
- $-i In in-place-edit mode, this variable holds the extension, otherwise nil.
- $-I The alias to $:.
- $-l True if option -l is set. Read-only variable.
- $-p True if option -p is set. Read-only variable.
- $-v The alias to $VERBOSE.
- $-w True if option -w is set.
复制代码
其实Ruby还有很多东西可以学,至于regex呢,我还有很多地方不会,可能我看书上的都是简单的吧,如果少少的话,我就不会了。这里的regex是我在网上找的,猜想这些code呢,一定会有不同的作用了。但我还没有试过。希望大家也可以给点例子,给大家看看,谢谢。
[ 本帖最后由 CooLWong 于 14-6-2007 08:33 AM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 15-6-2007 09:32 AM
|
显示全部楼层
不知道大家开始在学校有没有学过C Programming,C++等等的,当我们要run我们做好的project,出来的output就是这种DOS的。可能GUI的function要自己学,但我没有学过怎么做。

在这个DOS里,我们就简单的run我们的project,其实Ruby也和C++的方式差不多一样。最近我学习Ruby,知道Ruby也是有几种方法来做GUI的。如果大家有更多的方法,都可以来一起讨论讨论。
RubyGUI
我现在就只是学习FOX16来做我的GUI,接下来我将会介绍大家FOX的一些网站和example给大家的。 |
|
|
|
|
|
|
|

楼主 |
发表于 19-6-2007 09:35 AM
|
显示全部楼层
我现在用着fox16,在还没有开始的时候,我们一定要有fox16==> TRUE,这样我们才能够开始地做我们的东西了。开始的时候就要加上这个"require 'fox16'"和"include FOX",这些都是基本的条件,是为了要能做出一个GUI的桌面
http://www.fxruby.org/doc/examples.html
这是我开始学习fox16的网站。
这里有很多很多的例子,你下载了之后,可以看看例子的sample code,慢慢的了解它。
- require 'fox16'
- include Fox
-
- class Report < FXMainWindow
-
- def initialize(app)
-
- super(app, "Generate Report", :width => 460, :height => 600,
- :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10)
-
- #####(这里就开始了我们的GUI)
- end
-
- def create
- super
- show(PLACEMENT_SCREEN)
- end
- end
-
- if __FILE__ == $0
- application = FXApp.new("", "")
- Report.new(application)
- application.create
- application.run
- end
复制代码
只要慢慢的研究,一定可以了解的。 |
|
|
|
|
|
|
|
发表于 19-6-2007 08:42 PM
|
显示全部楼层
原帖由 CooLWong 于 19-6-2007 09:35 AM 发表
我现在用着fox16,在还没有开始的时候,我们一定要有fox16==> TRUE,这样我们才能够开始地做我们的东西了。开始的时候就要加上这个"require 'fox16'"和"include FOX",这些都是基本的条 ...
没有学过Fox, tk倒是曾经看过一些。我没有用过Ruby的gui lib,倒是试过JRuby的Java Swing。- require 'java'
- include_class ['javax.swing.JFrame','javax.swing.JLabel','javax.swing.JButton','java.awt.FlowLayout','java.awt.event.ActionListener','javax.swing.JOptionPane']
- class BtnHelloClicked
- include ActionListener
- def actionPerformed(e)
- JOptionPane.show_message_dialog(e.source.parent,"Hello from JFrame", "Hello",JOptionPane:NFORMATION_MESSAGE,nil)
- end
- end
- frame = JFrame.new "Hello JRuby"
- frame.default_close_operation = JFrame::EXIT_ON_CLOSE
- frame.add JLabel.new("This frame is created by Ruby"
- frame.layout = FlowLayout.new
- btnHello = JButton.new("Say Hello"
- btnHello.add_action_listener BtnHelloClicked.new
- frame.add JButton.new("Hello Ruby"
- frame.add btnHello
- frame.set_size 300,300
- frame.visible = true
复制代码
[ 本帖最后由 苦瓜汤 于 19-6-2007 08:43 PM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 20-6-2007 08:37 AM
|
显示全部楼层
原帖由 苦瓜汤 于 19-6-2007 08:42 PM 发表
没有学过Fox, tk倒是曾经看过一些。我没有用过Ruby的gui lib,倒是试过JRuby的Java Swing。require 'java'
include_class
class BtnHelloClicked
include ActionListener
def act ...
我没有试过require 'java',想不到java做出来的好像比较漂亮哦,也比较简单。关于这种require,或者是gems呢,我这里有很多很多介绍。
http://rubyforge.org/export/top_downloads.php
也就是这样的:
- title: "One-Click Ruby Installer"
description: "A self-contained installer that includes the Ruby language, dozens of popular extensions, a syntax-highlighting editor and the book &quot; Programming Ruby: The Pragmatic Programmer's Guide&quot;. Platforms: Windows NT/2000/XP, (OS X in development)."
uri: http://rubyforge.org/projects/rubyinstaller/
- title: "RubyGems"
description: "RubyGems is the Ruby standard for publishing and managing third party libraries."
uri: http://rubyforge.org/projects/rubygems/
- title: "Instant Rails"
description: "Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all preconfigured and ready to run. No installer, you simply drop it into the directory of your choice and run it. It does not modify your system environment."
uri: http://rubyforge.org/projects/instantrails/
- title: "Rails"
description: "Rails is a web-application framework for the MVC pattern that includes both a template engine, controller framework, and object-relational mapping package. Everything needed to develop web-apps that can run on CGI, FastCGI, and mod_ruby."
uri: http://rubyforge.org/projects/rails/
- title: "Ruby"
description: "Main Ruby language project for providing a mirror of the Ruby releases, tracking bugs, etc."
uri: http://rubyforge.org/projects/ruby/
- title: "RMagick"
description: "An interface to the ImageMagick (www.imagemagick.org) and GraphicsMagick (www.graphicsmagick.org) image processing libraries. Supports more than 90 image formats, including GIF, JPEG, PNG. Includes RVG, a 2D drawing API. Comprehensive HTML documentation."
uri: http://rubyforge.org/projects/rmagick/
- title: "Instiki"
description: "A wiki clone pretty and easy to set up. Runs on Rails and focuses on portability and stability. Supports file uploads, PDF export, RSS, multiple users and password protection. Some use Instiki as a CMS because of it鈥檚 ability to export static pages."
uri: http://rubyforge.org/projects/instiki/
- title: "Watir"
description: "Watir is a testing tool for automating browser-based tests of web applications. It is a Ruby library that works with Internet Explorer on Windows."
uri: http://rubyforge.org/projects/wtr/
- title: "FLVTool2"
description: "FLVTool2 is a manipulation tool for Macromedia Flash Video files (FLV).
It can calculate a lot of meta data, insert an onMetaData tag, cut FLV files, add cue points (onCuePoint), show the FLV structure and print meta data information in XML or YAML."
uri: http://rubyforge.org/projects/flvtool2/
- title: "Win32 Utils"
description: "A series of packages that provide Ruby interfaces to Win32 systems and services. This project supports the Windows NT family of operating systems *only*."
uri: http://rubyforge.org/projects/win32utils/
- title: "Nitro"
description: "Nitro is an efficient, yet simple engine for developing professional Web
Applications using the Ruby language."
uri: http://rubyforge.org/projects/nitro/
- title: "ActiveRecord"
description: "Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL."
uri: http://rubyforge.org/projects/activerecord/
- title: "Action Pack"
description: "Eases web-request routing, handling, and response as a half-way front, half-way page controller. Implemented with specific emphasis on enabling easy unit/integration testing that doesn't require a browser."
uri: http://rubyforge.org/projects/actionpack/
- title: "FreeRIDE"
description: "The FreeRIDE project is a pure Ruby Integrated Development Environment."
uri: http://rubyforge.org/projects/freeride/
- title: "Rake"
description: "Rake is a Ruby make-like utility using standard Ruby syntax for the build specification file."
uri: http://rubyforge.org/projects/rake/
- title: "typo"
description: "Typo is a lean weblogging engine powered by rails.
It supports XMLRPC posting, ping/trackback, comments, textile, markdown, categories, all common exports, fulltext search and so on."
uri: http://rubyforge.org/projects/typo/
- title: "Ruby/DBI"
description: "Ruby/DBI develops a database independent interface for accessing databases - similar to Perl's DBI."
uri: http://rubyforge.org/projects/ruby-dbi/
- title: "SQLite-Ruby"
description: "A Ruby interface for the SQLite database engine."
uri: http://rubyforge.org/projects/sqlite-ruby/
- title: "Action Mailer"
description: "Simplifies the creation of mail service classes that uses Action View (from Action Pack) to render the body templates."
uri: http://rubyforge.org/projects/actionmailer/
- title: "FXRuby"
description: "FXRuby is an extension module for Ruby that provides an interface to the FOX GUI toolkit."
uri: http://rubyforge.org/projects/fxruby/
- title: "Active Support"
description: "Utility classes and extension to the standard library that were required by Rails, but found of general use."
uri: http://rubyforge.org/projects/activesupport/
- title: "Action Web Service"
description: "Simple support for publishing Web Service APIs for Rails applications. Supports SOAP and XML-RPC, as well as generating WSDL for SOAP bindings."
uri: http://rubyforge.org/projects/aws/
- title: "Mongrel"
description: "A small fast HTTP server written in (mostly) Ruby that can be used to host web frameworks directly with HTTP rather than FastCGI or SCGI."
uri: http://rubyforge.org/projects/mongrel/
- title: "wxRuby"
description: "wxRuby is a cross-platform GUI toolkit with a comprehensive widget set and native look and feel, based on the mature wxWidgets framework. wxRuby2 offers the most complete, correct and up-to-date functionality; new users are advised to download these gems."
uri: http://rubyforge.org/projects/wxruby/
- title: "RWD Applications"
description: "Ruby scripts that can be used with the RubyWebDialogs GUI interface. These tools and applications are useful for simple tasks."
uri: http://rubyforge.org/projects/rwdapplications/
- title: "Ruby/OCI8"
description: "Ruby/OCI8 is a ruby interface for Oracle using OCI8 API.
It is available with Oracle8, Oracle8i, Oracle9i, Oracle10g and Oracle Instant Client.
Use oracle module by yoshidam in RAA for Oracle7."
uri: http://rubyforge.org/projects/ruby-oci8/
- title: "Ruby For Apache - Windows"
description: "NOTICE: THIS PROJECT IS DISCONTINUED. PLEASE USE 'INSTANTRAILS' INSTEAD.
A self-contained installer that includes mod_fastcgi and mod_ruby for Apache 2.0 and corresponding Ruby extensions for Windows platform."
uri: http://rubyforge.org/projects/rubyforapache/
- title: "Ruby PDF Tools"
description: "Tools written in pure Ruby (no C extensions) for working with PDF documents."
uri: http://rubyforge.org/projects/ruby-pdf/
- title: "Net::SSH"
description: "Net::SSH is to SSH as Net::Telnet is to Telnet and Net::HTTP is to HTTP. Perform non-interactive SSH processing, purely from Ruby!"
uri: http://rubyforge.org/projects/net-ssh/
- title: "libxml"
description: "libxml bindings for Ruby."
uri: http://rubyforge.org/projects/libxml/
[ 本帖最后由 CooLWong 于 20-6-2007 08:41 AM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 20-6-2007 08:46 AM
|
显示全部楼层
- title: "RSpec"
description: "RSpec is a Behaviour Driven Development framework for Ruby. It implements concepts described in Dave Astel's first BDD article: http://tinyurl.com/yl8mzu"
uri: http://rubyforge.org/projects/rspec/
- title: "RedCloth: Textile for Ruby"
description: "RedCloth is a module for using Textile in Ruby. Textile is a text format. A very simple text format. Another stab at making readable text that can be converted to HTML."
uri: http://rubyforge.org/projects/redcloth/
- title: "Armangil's podcatcher"
description: "Armangil's podcatcher is a podcast client for the command line. It provides several download strategies, offers cache management, supports BitTorrent, and generates playlists for media player applications.
Visit http://podcatcher.rubyforge.org/ "
uri: http://rubyforge.org/projects/podcatcher/
- title: "ferret"
description: "Ferret is a high-performance, full-featured text search engine library written entirely in pure Ruby (with an optional C extension). It is inspired by the Java Lucene Project."
uri: http://rubyforge.org/projects/ferret/
- title: "Alexandria"
description: "Alexandria is a GNOME application to help you manage your book collection."
uri: http://rubyforge.org/projects/alexandria/
- title: "Rubricks"
description: "Rubricks is ajax style content management system powered by rails.
It is easy and extensible."
uri: http://rubyforge.org/projects/rubricks/
- title: "Korundum/QtRuby - Ruby-KDE/Qt bindings"
description: "Very complete bindings to both the KDE API and the Qt APIs. The Korundum package includes both a QtRuby Qt-only binding along with the full combined Qt/KDE one. The QtRuby package contains just Qt bindings with no dependencies on KDE."
uri: http://rubyforge.org/projects/korundum/
- title: "Ruby Reports (Ruport)"
description: "The Ruby Reports project is dedicated to making your business reporting life suck less (through ruby)."
uri: http://rubyforge.org/projects/ruport/
- title: "Ajax Scaffold Generator"
description: "This is the generator for a Ruby on Rails framework, that creates scaffold for AJAX applications."
uri: http://rubyforge.org/projects/ajaxscaffold/
- title: "SpeedReader"
description: "SpeedReader helps you to improve your reading speed."
uri: http://rubyforge.org/projects/speedreader/
- title: "Seattle.rb Projects"
description: "Projects created by members of Seattle.rb that wouldn't otherwise have a decent home."
uri: http://rubyforge.org/projects/seattlerb/
- title: "Wee"
description: "Wee is a framework for building highly dynamic web applications."
uri: http://rubyforge.org/projects/wee/
- title: "Shards"
description: "A miscellaneous collection of packages for Ruby that don't fit into any particular category, but which are useful nonetheless, or so I hope."
uri: http://rubyforge.org/projects/shards/
- title: "Syck: YAML for Agile Languages"
description: "Syck is the Simple YAML Cobble-Yourself-Up-a-Parser Kit. A swift, staunch C extension for many agile languages: Ruby, Python, PHP, OCaml."
uri: http://rubyforge.org/projects/syck/
- title: "AEditor"
description: "AEditor is an editor widget intented to support pair-programming. There is an ncurses frontend, and some experimental GUI frontend (fox, gnome, qt). It has its own regexp engine."
uri: http://rubyforge.org/projects/aeditor/
- title: "Radiant CMS"
description: "Radiant is a simple and powerful publishing system for small teams. It is built with Rails and is similar to Textpattern."
uri: http://rubyforge.org/projects/radiant/
- title: "RubyScript2Exe"
description: "RubyScript2Exe transforms your Ruby script into a standalone
Windows executable. You can look at it as a &quot;compiler&quot;."
uri: http://rubyforge.org/projects/rubyscript2exe/
- title: "Vim/Ruby Configuration Files"
description: "Contains the official Vim configuration files for the compilation, indenting, and syntax highlighting of Ruby files. If you use Vim to edit Ruby code, you want these files, and you want them up to date."
uri: http://rubyforge.org/projects/vim-ruby/
- title: "FeedTools"
description: "FeedTools will be a simple ruby library for handling rss/atom/cdf parsing, generation, and translation as well as caching. It will attempt to adhere to a liberal parsing / conservative generation policy."
uri: http://rubyforge.org/projects/feedtools/
- title: "Nihongo Benkyo"
description: "Nihongo Benkyo, as a standalone dictionary application, is now abandoned. See nihongobenkyo.org if you are looking for a japanese dictionary."
uri: http://rubyforge.org/projects/nihongobenkyo/
- title: "codeforpeople"
description: "dozens of ruby libraries released by codeforpeople.com"
uri: http://rubyforge.org/projects/codeforpeople/
- title: "MuraveyWeb"
description: "MuraveyWeb is a Content Management System built on top of Ruby on Rails web-framework. It has support for version control, custom document types, WYSIWYG content editors, image transformations and much more."
uri: http://rubyforge.org/projects/muravey-tools/
- title: "Lafcadio"
description: "Lafcadio is an object-relational mapping framework for Ruby. It currently supports MySQL; in the future it will support a wide range of databases."
uri: http://rubyforge.org/projects/lafcadio/
- title: "ruby-serialport"
description: "a library for serial port (rs232) access in ruby"
uri: http://rubyforge.org/projects/ruby-serialport/
- title: "Why's (Poignant) Guide to Ruby"
description: "W(p)GtR is a cartoon book which teaches Ruby. This project houses the Ruby, YAML and Textile code that the book is written in."
uri: http://rubyforge.org/projects/poignant/
- title: "Pimki: The Wiki-based PIM to GetThingsDo"
description: "Pimki is a wiki-based PIM to GetThingsDone!. Loosely based on Instiki's Wiki technology (http://www.instiki.org) and with strong GTD influences, Pimki is aimed at being a light-weight, flexible organiser for all the various bits and pieces of your life."
uri: http://rubyforge.org/projects/pimki/
- title: "Ruby/ActiveLdap"
description: "Ruby/ActiveLdap provides an object oriented interface to LDAP. It maps LDAP entries to Ruby objects with LDAP attribute accessors exposed as methods dynamically assigned based on your LDAP server's schema and each object's objectClasses."
uri: http://rubyforge.org/projects/ruby-activeldap/
- title: "emacs-rails"
description: "Minor mode for editing RubyOnRails code in Emacs"
uri: http://rubyforge.org/projects/emacs-rails/
- title: "Weft QDA"
description: "Weft QDA is an easy-to-use GUI package for the analysis of unstructured textual data such as interviews and fieldnotes. http://www.pressure.to/qda/"
uri: http://rubyforge.org/projects/weft-qda/
- title: "webgen"
description: "webgen is an easy-to-use, extensible web site generator in Ruby. It is used to generate static web sites from templates and content files and provides tools for generating dynamic content like menus."
uri: http://rubyforge.org/projects/webgen/
- title: "RC Tools"
description: "These projects help make The Robot Co-op's websites go."
uri: http://rubyforge.org/projects/rctools/ |
|
|
|
|
|
|
|

楼主 |
发表于 20-6-2007 08:51 AM
|
显示全部楼层
- title: "foxGUIb"
description: "foxGUIb - Interactive FOX GUI Builder and Code Generator
"
uri: http://rubyforge.org/projects/fox-tool/
- title: "MasterView Template Engine"
description: "MasterView is a ruby/rails optimized HTML/XHTML friendly template engine. It is designed to use the full power and productivity of rails including layouts, partials, and rails html helpers while still being editable/styleable in a WYSIWYG HTML editor."
uri: http://rubyforge.org/projects/masterview/
- title: "Work Time Recorder"
description: "Handy tool for tracking time spent on particular projects, activities, etc. If you work on several different projects daily, and are required to report the time spent on each activity, this tool is for you."
uri: http://rubyforge.org/projects/worktimer/
- title: "Ruby-GetText-Package"
description: "Ruby-GetText-Package is a Localization(L10n) Support Library and Tools which is modeled after GNU gettext package."
uri: http://rubyforge.org/projects/gettext/
- title: "Ruwiki"
description: "Ruwiki is a simple, extensible Wiki-clone written in Ruby, supporting CGI and WEBrick interfaces, templates, CSS formatting, namespaces, and internationalisation. A focus on antispam techniques has been applied."
uri: http://rubyforge.org/projects/ruwiki/
- title: "redMine"
description: "redMine is a project management web application: issues tracking, news, documents and files management. Written using Ruby on Rails framework"
uri: http://rubyforge.org/projects/redmine/
- title: "Needle: Dependency Injector for Ruby"
description: "Needle is a dependency-injection/inversion-of-control container for Ruby, which takes advantage of Ruby's dynamic nature to provide a rich and powerful interface for managing dependencies."
uri: http://rubyforge.org/projects/needle/
- title: "RubyInline"
description: "Ruby Inline is an analog to Perl's Inline:: C. Out of the box, it allows you to embed C/++ external module code in your ruby script directly. By writing simple builder classes, you can teach how to cope with new languages (fortran, perl, whatever)."
uri: http://rubyforge.org/projects/rubyinline/
- title: "Facets"
description: "The single most extensive additions and extensions library available for Ruby. (ANN Calibre is now part of Facets!)"
uri: http://rubyforge.org/projects/facets/
- title: "Ruby/EventMachine"
description: "Ruby/EventMachine is a fast, simple event-processing library for Ruby programs. It lets you write network clients and servers without handling sockets- all you do is send and receive data. Single-threaded socket engine- scalable and FAST!"
uri: http://rubyforge.org/projects/eventmachine/
- title: "TZInfo"
description: "TZInfo uses the standard tz (Olson) database to provide daylight-savings aware transformations between times in different timezones. TZInfo is pure-Ruby and doesn't require any external zoneinfo files."
uri: http://rubyforge.org/projects/tzinfo/
- title: "WWW::Mechanize"
description: "WWW::Mechanize, a handy web browsing ruby object."
uri: http://rubyforge.org/projects/mechanize/
- title: "ruby-debug"
description: "Faster implementation of the standard debug.rb using a native extension with a new hook Ruby C API ."
uri: http://rubyforge.org/projects/ruby-debug/
- title: "Sys Utils"
description: "This project provides packages for system administration and information gathering."
uri: http://rubyforge.org/projects/sysutils/
- title: "HighLine"
description: "A high-level IO library that provides validation, type conversion, and more for command-line interfaces. HighLine also includes a complete menu system that can crank out anything from simple list selection to complete shells with just minutes of work."
uri: http://rubyforge.org/projects/highline/
- title: "ruby-mp3info"
description: "a pure ruby library for access to mp3 files (internal infos and tags)"
uri: http://rubyforge.org/projects/ruby-mp3info/
- title: "Uttk: Unified Test Tool Kit"
description: "Uttk is a unified and extensible framework for dynamic testing. It is designed to support any
test strategy. It understands YAML and Ruby as input languages (test description), Yaml, XML and HTML as output languages (test results)."
uri: http://rubyforge.org/projects/ttk/
- title: "Copland IOC Container"
description: "Copland is an "Inversion of Control" (IoC) container, similar to the HiveMind framework in Java. It allows YAML-based configuration of objects and their interdependencies, all of which are resolved dynamically at runtime."
uri: http://rubyforge.org/projects/copland/
- title: "FastCGI for Ruby"
description: "FastCGI library for ruby.
This makes your (CGI) script to enlarge performance,
can communicate with lighttpd, mod_fcgid, mod_fastcgi and other FastCGI implementation."
uri: http://rubyforge.org/projects/fcgi/
- title: "ParseTree - ruby parse tree tools"
description: "ParseTree is a C extension (using RubyInline) that extracts the parse
tree for an entire class or a specific method and returns it as a
s-expression (aka sexp) using ruby's arrays, strings, symbols, and
integers."
uri: http://rubyforge.org/projects/parsetree/
- title: "FireRuby"
description: "FireRuby is a Ruby extension library that wraps the native Firebird RDBMS C API to provide access to database functionality."
uri: http://rubyforge.org/projects/fireruby/
- title: "RForum"
description: "A web forum software based on the Rails framework."
uri: http://rubyforge.org/projects/rforum/
- title: "Ruby/GSL"
description: "Ruby/GSL is a ruby interface to GNU Scientific Library. This provides useful tools for numerical calculations in Ruby, as vector/matrix manipulations, root-findings, numerical integrations, ODEs etc.."
uri: http://rubyforge.org/projects/rb-gsl/
- title: "mouseHole"
description: "mouseHole is a scriptable proxy, designed as a cross-browser alternative to Firefox's Greasemonkey extension."
uri: http://rubyforge.org/projects/mousehole/
- title: "Goldberg"
description: "Goldberg is a website development tool for Ruby on Rails that provides user management, role-based security, site navigation via menus that are dynamic depending on each user's role, and content pages (a very basic CMS)."
uri: http://rubyforge.org/projects/goldberg/
- title: "Ruvi"
description: "Ruvi - 100% Pure Ruby Vi(m) Clone"
uri: http://rubyforge.org/projects/ruvi/
- title: "Tar2RubyScript"
description: "Tar2RubyScript transforms a directory, containing your
application into one single Ruby script, along with some code
to handle this archive. When this script is run, it extracts
the archive and runs the application.
"
uri: http://rubyforge.org/projects/tar2rubyscript/
- title: "Capistrano"
description: "A utility for executing commands in parallel on multiple machines, such as deploying applications to a cluster of boxes."
uri: http://rubyforge.org/projects/capistrano/
[ 本帖最后由 CooLWong 于 20-6-2007 08:55 AM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 20-6-2007 08:52 AM
|
显示全部楼层
- title: "Gruff Graphs"
description: "Gruff is a beautiful graphing library for Ruby using RMagick. Plot multiple datasets in color or implement your own colorful theme. Homepage at http://nubyonrails.com/pages/gruff, SVN at http://topfunky.net/svn/gruff"
uri: http://rubyforge.org/projects/gruff/
- title: "Hieraki"
description: "Hieraki 1.0+ (codenamed Noc) is from ground up designed to be a multiuser, web-based electronic publishing software that provides searchable access to a central, integrated resource of learning materials."
uri: http://rubyforge.org/projects/hieraki/
- title: "Asami Direct Connect Client"
description: "A ruby-based GTK2/Gnome2 Direct Connect client. Based on rscout."
uri: http://rubyforge.org/projects/asami/
- title: "Musicextras"
description: "Musicextras is a program for automatically retrieving extra information for songs. Currently, it can download lyrics, artist images, album covers, and more. Site plugins allow developers to easily add new data to be retrieved."
uri: http://rubyforge.org/projects/musicextras/
- title: "ZenTest - Ruby Unit Testing Utility"
description: "Testing, on steriods.Go red with zentest which ensures test coverage and accelerates TDD.Go green with unit_diff using Advanced Diffing Technology to highlight errors.Refactor with autotest, continuous integration while you code."
uri: http://rubyforge.org/projects/zentest/
- title: "Rant -- Ruby's ant"
description: "Rant is a flexible, Ruby based make. Rant itself is written entirely in Ruby and build-specifications are pure Ruby code.
*It has moved to http://rant.rubyforge.org*"
uri: http://rubyforge.org/projects/make/
- title: "FasterCSV"
description: "FasterCSV is intended as a complete replacement to the CSV standard library. It is significantly faster and smaller while still being pure Ruby code. It also strives for a better interface."
uri: http://rubyforge.org/projects/fastercsv/
- title: "Transaction::Simple"
description: "Transaction::Simple provides active (&quot;live&quot;, non-backend) transactional support to Marshal-able objects."
uri: http://rubyforge.org/projects/trans-simple/
- title: "Rote"
description: "A Rake-based text templating system, allowing easy rendering and update of page-based templates with layout and ERB, with optional plain-text markup for HTML."
uri: http://rubyforge.org/projects/rote/
- title: "Cerberus"
description: "Continuous Integration tool for ruby projects"
uri: http://rubyforge.org/projects/cerberus/
- title: "Text Formatting"
description: "The Text Formatting project is dedicated to libraries and utilities providing text formatting capabilities."
uri: http://rubyforge.org/projects/text-format/ |
|
|
|
|
|
|
|
发表于 23-6-2007 11:13 PM
|
显示全部楼层
require 'java' 其实就是JRuby的起始声明。
说实话,Ruby的GUI大多还不健全,而且开发速度很慢,所以到现在我一直没有去探索GUI;倒是Web这个领域就很火热。 |
|
|
|
|
|
|
|

楼主 |
发表于 26-6-2007 09:17 AM
|
显示全部楼层
原帖由 苦瓜汤 于 23-6-2007 11:13 PM 发表
require 'java' 其实就是JRuby的起始声明。
说实话,Ruby的GUI大多还不健全,而且开发速度很慢,所以到现在我一直没有去探索GUI;倒是Web这个领域就很火热。
我现在还在学习GUI,等我学好了,我也想去学习java。
到时希望能和大家分享。 |
|
|
|
|
|
|
|

楼主 |
发表于 29-6-2007 02:05 PM
|
显示全部楼层
现在我来介绍大家使用“rubyscript2exe”,这是用来把我们所做到的project,制造出.exe file。
当我们install了ruby language在我们的电脑,我们就可以做出我们的project(.rb或者.rbw)。我们现在想在其他电脑也可以使用这个project,如果那架电脑没有ruby language软体,这个.rb和.rbw的file是不能够执行的。
要在其他电脑也使用到我们所做的project,是有很多种方法的。在我的知识里,是有两种方法
1)在那架电脑业安装同样的ruby language
2)把我们的project,做出一个.exe file.做出了就可以在任何电脑使用的(里面有包括exe, dll等等)
如何使用rubyscript2exe
1)首先我们要有rubyscript2exe的gem:
2) 有了rubyscript2exe之后,做任何project都可以做出.exe file。
3)有了我们的project,就用最简单的project --〉helloworld.rb 里面就只是print("Hello world")
4)start -> Run(command) -> 写上“command”,我们就去到DOS的桌面
a)要看看你有没有安装rubyscript2exe,可以在irb里查查看。
- true == 已经安装rubyscript2exe了
- false == 还没安装
b)要开始script to exe file的时候,我们一定要exit irb,不然就不能进行rubyscript2exe了
c)写我们的code: rubyscript2exe <filename>
E.g: rubyscript2exe C:\helloworld.rb

5)Tracing helloworld ...
Hello WorldGathering files ...
Copying files ...
Creating helloworld.exe ...
这样就可以了
6)那个.exe file大多数是在 C:\Documents and Settings\ <你的名字> \ helloworld.exe
这样就成功了。
关于rubyscript2exe的资料 : http://www.erikveen.dds.nl/rubyscript2exe/index.html |
|
|
|
|
|
|
|
发表于 31-7-2007 08:59 AM
|
显示全部楼层
老实说。。。我个人觉得。
ruby 的syntax, 有点乱。。 |
|
|
|
|
|
|
|

楼主 |
发表于 31-7-2007 09:40 AM
|
显示全部楼层
原帖由 tensaix2j 于 31-7-2007 08:59 AM 发表 
老实说。。。我个人觉得。
ruby 的syntax, 有点乱。。
我觉得ruby和c++都有点相似。ruby是有点乱,可能是它越来越多功能吧。。。现在的ruby能融合web page和现在最新推出的jaya功能都能够在ruby里用到了。现在我在ruby也学着read和write DBF format 和XML format的功能了。
我觉得在网上都很容易找到ruby的API,只要能看多这些网上提供的API,一定能学到很多东西的。。。 |
|
|
|
|
|
|
|
发表于 31-7-2007 01:36 PM
|
显示全部楼层
原帖由 tensaix2j 于 31-7-2007 08:59 AM 发表 
老实说。。。我个人觉得。
ruby 的syntax, 有点乱。。
所以说,每一个Ruby Programmer写出来的code都不太一样。
学Ruby的时候曾被block,eval,mixin弄到头晕。 |
|
|
|
|
|
|
|

楼主 |
发表于 31-7-2007 04:16 PM
|
显示全部楼层
原帖由 苦瓜汤 于 31-7-2007 01:36 PM 发表 
所以说,每一个Ruby Programmer写出来的code都不太一样。
学Ruby的时候曾被block,eval,mixin弄到头晕。
是哦,我和我senior所做的coding都不一样的,有时候我看到他的software,我都不明白。
请问一下,ruby programming能不能做出DLL来吗???能不能教一教我??? |
|
|
|
|
|
|
|
发表于 31-7-2007 04:27 PM
|
显示全部楼层
我很不习惯不用 semi colon 的language
因为不能爽爽就span multiple line..
我用那个
validates_presence_of :a,:b,:c...
因为不想全部一line...该怎么办? |
|
|
|
|
|
|
|
发表于 31-7-2007 09:30 PM
|
显示全部楼层
原帖由 苦瓜汤 于 31-7-2007 01:36 PM 发表 
所以说,每一个Ruby Programmer写出来的code都不太一样。
学Ruby的时候曾被block,eval,mixin弄到头晕。
eval在javascript,jmp script,还有flash actionscript,
都是我的favourite |
|
|
|
|
|
|
|
发表于 29-8-2007 08:38 AM
|
显示全部楼层
原帖由 CooLWong 于 31-7-2007 04:16 PM 发表 
是哦,我和我senior所做的coding都不一样的,有时候我看到他的software,我都不明白。
请问一下,ruby programming能不能做出DLL来吗???能不能教一教我???
ruby 不是scripting language吗? 也就是interpreted,就是不须compile的。。除非你能compile成binary,不然我也不知你要怎么制造library. 不过我听说有个ruby script compiler...
而且library,有两种
一种是dynamically linked library, 在windows是 dll,在 linux是 .so, 一种是static library, 在windows是 .lib,在 linux是 .a. |
|
|
|
|
|
|
|
发表于 10-9-2007 08:58 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 10-9-2007 11:40 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|