ã¤ãã¤ãã¨çºãã¦ããããã¡ãã£ã¨æ°ã«ãªãæç« ãè¦ã¾ãã¦ã
- ãã¬ãã¼ãããªã¼ã«ã»ã¢ãã¦ãã»Google Chrome - Google Developer Dayã»ãã·ã§ã³ã¬ãã¼ã (2)
http://journal.mycom.co.jp/articles/2009/06/15/gdd2/001.html
Chromeã®éçºã«ä½¿ç¨ããã¦ãããã¼ã«ã»ã»ã»èªåãã«ãã»èªååä½ãã¹ãã®ããã«Buildbotãã³ã¼ãã¬ãã¥ã¼ã®ããã«rietveldã¨ãããã¼ã«ã使ç¨ããã¦ãã
ãããããã³ã¼ãã¬ãã¥ã¼ã½ããã§ãMOONGIFTãããå®éæ¹ã¨ããã½ãããåºããã¦ããªããã¨æãåºãã¾ããã
ã§ã¾ããã¡ãã£ããå
¥ãã¦ã¿ããããªï¼ã¨æã£ã次第ã
æ å ±æº
åèã¨ãªãæ å ±æºã¯ã以ä¸ã§ããã
- shinjiko - Google Code
http://code.google.com/p/shinjiko/ - [ruby][rails] shinjiko ã¤ã³ã¹ãã¼ã«
http://d.hatena.ne.jp/snkit/20081023
http://d.hatena.ne.jp/snkit/20081025
http://d.hatena.ne.jp/snkit/20081220 - ããæ¥è¨ãªãï¼ - ã³ã¼ãã¬ãã¥ã¼ã·ã¹ãã å®éæ¹
http://bangbangshoot.sakura.ne.jp/tdiary/?date=20080615#p01
æå¤ã¨å°ãªããªããã³ã¼ãã¬ãã¥ã¼ã£ã¦èå³ãå¼ãã½ããã§ã¯ç¡ãã®ã§ãããï¼
â¦ã¾ãã身ã®åãã®æ¥âã§ãã³ã¼ãã¬ãã¥ã¼ã£ã¦ããã¾ãè¦èãããªããããªãã
ã§ããèåãªéçºç®¡çã®æ¬ãèªãã¨ãä¸çªå¹çã®è¯ãå質ã®ä¸ãæ¹ã¯ãã³ã¼ãã¬ãã¥ã¼ã(ã¨é¡ããããæ¹)ãªãã§ãããã
æåã«
ãããå
ã«è¨ãã¨ãããªã試è¡é¯èª¤ãã¦å
¥ããçºããããã§OKã ãããã¨è¨ãããã¿ã¼ã³ã確ç«ãã¦ãã¾ããã(ããã¾ãããRubyã¯ä¸åå¼·ãªãã§ã)
ãªã®ã§ã試è¡é¯èª¤ã®é çªã ããã¡ã¢æ¸ããã¾ãã§ãã
ã¡ãªã¿ã«ãruby 1.8.6ã¨gemã使ããç°å¢ã«å
¥ãã¦ã¾ãã
ã¤ã³ã¹ãã¼ã«ãã¦åããã¾ã§ã®é çª
1.ã¾ããéçºã®æ¬å±±ããSVNã½ã¼ã¹ã³ã¼ããåå¾ãã¾ãã
- shinjiko - Google Code
http://code.google.com/p/shinjiko/
ä¸è¨ãµã¤ãã®Installé
ã§ã'$ svn checkout http://shinjiko.googlecode.com/svn/trunk/ shinjiko
'ã¨æ¸ããã¦ããã®ã§ãTortoiseSVNçã使ã£ã¦åå¾ãã¦ãã ããã
2.å®éæ¹ã¯ãrailsã®ä¸ã§åããããªã®ã§ã以ä¸ã®ããã«ãã¦railsãå ¥ãã¾ãã
$ gem install -v=2.0.2 rails Bulk updating Gem source index for: http://gems.rubyforge.org Install required dependency rake? [Yn] Install required dependency activesupport? [Yn] y Install required dependency activerecord? [Yn] y Install required dependency actionpack? [Yn] y Install required dependency actionmailer? [Yn] y Install required dependency activeresource? [Yn] y Successfully installed rails-2.3.2 ...
3.ä»ã«ãè²ã
ã¨å
¥ããå¿
è¦ãããããã§ãã
ä»åã¯ã以ä¸ã®ã³ãã³ããå©ãã¦å
¥ãã¾ããã
$ gem install gettext diff-lcs ... $ gem update --system ... $ gem install gettext -v 1.10.0 ... $ gem install sqlite3-ruby -v 1.2.3 ... $ gem install will_paginate ...
4.次ã«ã config/environments ã®ãã©ã«ãã«ãdevelopment_sample.rb ãããã®ã§ãdevelopment.rb ã«ãªãã¼ã ãã¾ãã
5.次ã«ã config ãã©ã«ãã«ãdatabase.yml ãç¨æãã¾ãã
ã¾ããdatabase.sample.yml ãããã®ã§ãããããªãã¼ã ããã°è¯ãã§ãããã
ãã ããã®ãµã³ãã«ãMySQLããã¼ã¿ãã¼ã¹ã«ä½¿ãè¨å®ã«ãªã£ã¦ãã¾ãã®ã§ãsqliteããã¼ã¿ãã¼ã¹ã«ä½¿ãã«ã¯ãå°ã
å¤æ´ã®å¿
è¦ããã§ãã
ä»åã¯ãdatabase.ymlã以ä¸ã®ããã«ãã¾ããã
# SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db\production.sqlite3 timeout: 5000
6.database.ymlãæºåããããrakeã³ãã³ã㧠ãã¼ã¿ãã¼ã¹ãä½ãã¾ãã
$ rake db:migrate (in F:/Wacky/Test/review_tool/shinjiko/src) == 1 CreateUsers: migrating =================================================== -- create_table("users", {:force=>true}) -> 0.1250s ...
7.ãããããã¨æã£ã¦'ruby script\server
'ããã¨ã以ä¸ã§æ¢ã¾ãã¾ãã
$ ruby script\server => Booting WEBrick... c:/tool2/ruby18/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require': no such file to load -- gettext/rails (MissingSourceFile) from c:/tool2/ruby18/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:3 1:in `require' ...
ãã®è§£æ±ºæ³ã§ãããGEM_HOMEç°å¢å¤æ°ãé¢ä¿ããããã§ãã
- Ruby on Railsã«Ruby-GetTextãå
¥ããã¨ã`gem_original_require': no such file to load -- gettext/rails (MissingSourceFile)ã«ãªã£ã (å±±æ¬éã®éçºæ¥èª)
http://www.gesource.jp/weblog/archives/2008/05/ruby_on_railsrubygettextgem_or.html - ãããªæ²ããç®ãããªã㧠⫠Blog Archive â« ãããã®ã¬ã³ã¿ã«ãµã¼ãã« Redmine ãã¤ã³ã¹ãã¼ã«
http://www.gabuchan.net/blog/archives/11
ã¡ãªã¿ã«ãèªåã®å ´åãã³ã¼ãã®ä¿®æ£ã§ã¯ãã¾ãè¡ããªãã£ãã®ã§ãç´æ¥ã³ãã³ãã©ã¤ã³ããç°å¢å¤æ°ãè¨å®ãã¦éãã¾ããã
$ set GEM_HOME=C:\tool2\ruby18\lib\ruby\gems\1.8
8.ããã¾ã§æ¥ãã¨ã'ruby script\server
'ã§ãWEBrickããããç¨åº¦ãã¾ã§èµ·åã§ãã¾ãã
$ ruby script\server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2009-06-20 17:47:45] INFO WEBrick 1.3.1 [2009-06-20 17:47:45] INFO ruby 1.8.6 (2007-03-13) [i386-mswin32] [2009-06-20 17:47:45] INFO WEBrick::HTTPServer#start: pid=6768 port=3000 F:/Wacky/Test/review_tool/shinjiko/src/app/controllers/issue_controller.rb:20: w arning: don't put space before argument parentheses ...
ä¸ã®'warning: don't put space before argument parentheses
'ã£ã¦ã®ã¯ä½ã ããï¼ã¨æã£ãã®ã§ãããçãã¯ä»¥ä¸ã®siteã«æ¸ãã¦ããã¾ãã
ã¤ã¾ããã¡ã½ããã¨å¼æ°ã®éã«ç©ºç½ãå
¥ãããªãã¨ã
- diff.rb 㧠warning: don't put space before argument parenthesesã¨è¨ããã - takotLog
http://qwik.jp/takotlog/8.html
9.ä¸è¨å¯¾å¿ã§ããã©ã¦ã¶ã«ä½ã表示ã§ããæã¾ã§é²ã¿ã¾ãããä½ãããããã
logãã©ã«ãã«ãdevelopment.logãã¡ã¤ã«ãåºæ¥ã¦ããã®ã§éãã¨ã以ä¸ã®ã¡ãã»ã¼ã¸ãããã¾ãã
/!\ FAILSAFE /!\ Sat Jun 20 17:59:16 +0900 2009 Status: 500 Internal Server Error You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] c:/tool2/ruby18/lib/ruby/1.8/cgi.rb:1166:in `[]' ...
ããããçããããã¾ããã
- Ruby-GetText-Package㧠The error occurred while evaluating nil.[] (å±±æ¬éã®éçºæ¥èª)
http://www.gesource.jp/weblog/archives/2008/03/rubygettextpackage_the_error_o.html
config\environment.rb ã®æå¾ã«ã以ä¸ã®ã³ã¼ããçªã£è¾¼ãäºã§å¯¾å¿ã§ãã¾ãã
require 'will_paginate' require 'smtp_tls' class CGI module QueryExtension alias index_without_fix :[] def [] (key) return nil unless @params[key] index_without_fix(key) end end end
10.ããã¾ã§æ¥ãã¨ã以ä¸ã®ãã°ã¤ã³ç»é¢ãåºãããã«ãªãã¾ãã
$ ruby script\server -e development => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2009-06-21 00:12:42] INFO WEBrick 1.3.1 [2009-06-21 00:12:42] INFO ruby 1.8.6 (2007-03-13) [i386-mswin32] [2009-06-21 00:12:42] INFO WEBrick::HTTPServer#start: pid=7768 port=3000 127.0.0.1 - - [21/Jun/2009:00:12:44 æ±äº¬ (æ¨æºæ)] "GET / HTTP/1.1" 302 101 - -> / 127.0.0.1 - - [21/Jun/2009:00:12:45 æ±äº¬ (æ¨æºæ)] "GET /account/login HTTP/1.1" 200 2301 - -> /account/login 127.0.0.1 - - [21/Jun/2009:00:12:45 æ±äº¬ (æ¨æºæ)] "GET /stylesheets/styles.css? 1245474226 HTTP/1.1" 304 0 http://localhost:3000/account/login -> /stylesheets/styles.css?1245474226 127.0.0.1 - - [21/Jun/2009:00:12:45 æ±äº¬ (æ¨æºæ)] "GET /javascripts/script.js?1 245474225 HTTP/1.1" 304 0 http://localhost:3000/account/login -> /javascripts/script.js?1245474225 127.0.0.1 - - [21/Jun/2009:00:12:45 æ±äº¬ (æ¨æºæ)] "GET /images/rails.png?124547 4225 HTTP/1.1" 304 0 http://localhost:3000/account/login -> /images/rails.png?1245474225
å®å¿ããã®ã¯æ©ãã¦ãå®ã¯ãã°ã¤ã³ç»é¢ã®å ã«é²ããã¨ããã¨ã以ä¸ã®ã¨ã©ã¼ãåºã¾ãã
11.ãno such file to load -- svn/client
ãã¨ããã¨ã©ã¼ã¯ãsvnã®rubyãã¤ã³ãã£ã³ã°ãã¤ã³ã¹ãã¼ã«ããå¿
è¦ãããããã§ãã
ã¨ããããç»é¢ã ãè¦ããï¼ã¨ããå ´åã¯ãapp/models/issue.rb ã®æãå°ãä¿®æ£ããã°OKã§ãã
require 'net/http' require 'net/https' #require 'svn/client' ...
ããããã¾ããã°ã¤ã³ã§ãã¾ããã
ããããªãã
ããã¾ãããããã¾ã§åããã®ã§ä¸æ¯ä¸æ¯ã§ããã
æ¬å½ã¯ãSubversionã¨ã®ãªãã¸ããªé£æºã¨ãã®è¨å®ãæãã¦è©¦ãã¹ããªãã§ããããã©ããããããããã¥ã¡ã³ããä½ãè¦å½ãããªãã£ãã®ã§ãæãåºãã¦ãã¾ãã¾ããã