Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ruby´ò°ü·¢²¼

http://www.erikveen.dds.nl/distributingrubyapplications/rails.html£º
In this tutorial, we'll go through the following steps: Setup the environment Create the SQLite database Develop the Rails application Create the RBA (= Ruby archive) from the application with Tar2RubyScript Create the standalone executable with RubyScript2Exe module Rails
  class Configuration
    def database_configuration
      #conf = YAML::load(ERB.new(IO.read(database_configuration_file)).result) »á³ö´í
      conf = YAML::load(File.read(database_configuration_file))
      if defined?(TAR2RUBYSCRIPT)
        conf.each do |k, v|
          if v["adapter"] =~ /^sqlite/
            v["database"] = oldlocation(v["database"]) if v.include?("database")
            v["dbfile"]   = oldlocation(v["dbfile"])   if v.include?("dbfile")
          end
        end
      end
      conf
    end
  end
end   "database"=>"E:/worksapce/temp/db/demo_development.sqlite3", oldlocation(v["database"]) ÆäʵÊÇÔÚDB×ÓĿ¼ÖУ¬¶ø²»ÊÇÔÚµ±Ç°ÔËÐеÄĿ¼ÏÂ

tar2rubyscript¿ÉÒÔÁË
rubyscript2exe ²»ÐУ¬ÓпÉÄÜÊÇRAILS°æ±¾ÎÊÌ⣬ ÏÖÔÚÖ¤Ã÷²»ÊÇRAILS°æ±¾ÎÊÌ⣬¹À¼ÆÊÇRUBY °æ±¾ÎÊÌâ 2.Exerb²»ÄÜͨ¹ýgem°²×°£¬²»¹ý°²×°·½Ê½Ò²Ê®·Ö·½±ã¡£
       Ê×Ïȵ½exerbµÄ¹Ù·½ÍøÕ¾ÏÂÔØexerb.Á´½ÓÔÚÒ³ÃæÖмäÄǸöλÖá£
   &#


Ïà¹ØÎĵµ£º

ruby Bignum Dir ѧϰ

Bignum
+        ¼Ó
-        ¼õ
*        ³Ë
/        ³ý
**        Ö¸Êý²Ù×÷2**2 Òâ˼ÊÇ2µÄƽ·½
<=>        ´óÓÚ, ......

Cassandra in Action with Twitter's Ruby Client

ÓÐÒ»¸öȫеÄÏîÄ¿£¬ÒòΪ¿¼Âǵ½½«À´µÄÊý¾ÝÀ©Õ¹ÐÔÄÜ£¬ËùÒÔ¿¼ÂÇÓÃCassandra×öÊý¾Ý´æ´¢£¬Ç°¶ËÓÃLighttpd + FastCGI + Rails¡£ÔÚʹÓÃCassandraµÄʱºò£¬¾õµÃÓÐһЩ¶«Î÷¿ÉÄÜ´ó¼Ò¶¼ÐèÒª£¬¾ÍдÁËÒ»¸ö¼òµ¥µÄÖ¸ÄÏ¡£ÒòΪÄÚÈݱȽϳ¤£¨16Ò³£©£¬¾ÍŪÁ˸öPDFÎļþ¸ø´ó¼ÒÏÂÔØ¡£
Cassandra in Action with Twitter's Ruby Client.pdf
Èç¹ûÏÂÔ ......

ruby ×Ö·û´® Àí½â "" ''

rubyÖе¥ÒýºÅºÍË«ÒýºÅµÄÒâÒåÓÐËù²»Í¬£¬Ë«ÒýºÅ°üΧµÄ×Ö·û×÷±äÁ¿Ìæ»»£¬µ¥ÒýºÅ°üΧµÄ±äÁ¿²»×öÌæ»»
Ò²¿ÉÒÔʹÓà %q ºÍ %Q À´Éú³É×Ö·û´®¶ÔÏó¡£%q Ï൱ÓÚµ¥ÒýºÅ£¬%QÏ൱ÓÚË«ÒýºÅ¡£
¾ÙÀýÈçÏ£º
irb(main):010:0> "show trsult: #{1*3}"
=> "show trsult: 3"
irb(main):011:0> 'show trsult: #{1*3}'
=> "show trs ......

rubyºÍwatirѧϰ³£ÓÃÍøÕ¾ÕûÀí

ת×Ô51testing.com, Ô­¼û£ºhttp://bbs.51testing.com/thread-171535-1-1.html http://swik.net/Watir+Programming
http://www.pragprog.com/ #ºÜ¶àºÃµÄÔ´ÂëŶ
http://docs.rubygems.org/ #rubygems
http://www.fxruby.org/  #fxruby
http://groups.google.com/group/watir-general/topics #goog ......

Ruby Ruportʵ¼ù—Ruport::FormatterÓ¦ÓÃÀ©Õ¹

RuportĿǰ×Ô´øÖ§³ÖPDF,HTML,CSV,TXT¸ñʽÊä³ö£¬Èç¹ûÏë´òÓ¡.xml£¬.bat±¨±íÔõô°ì£¿
±¾Àý½«ÒÔXML¸ñʽΪÀý£¬ÊµÏÖRuport::FormatterµÄÁíÒ»ÖÖ×Ô¶¨ÒåÓ¦Óá£
RuportµÄÓ¦Óòο¼£º Ruby Ruportʵ¼ù—¼òµ¥±¨±íϵͳ
×¢£ºÆäËû¸ñʽµÄ±¨±íÖ»ÐèÒªÐÞ¸Ärenders¶ÔÓ¦µÄÄÚÈÝ£¨ÈçÏ£Íû±£´æÎª.bat¸ñʽ£¬½«renders :xml¸ÄΪrenders :bat£©£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ