Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Find actively maintained & popular open source software libraries for the Ruby programming languageThe Ruby Toolbox is a catalog of all Rubygems that keeps track of popularity and health metrics to help you choose a reliable library CategoriesTo give you an overview of what open source libraries are available for a given task we group projects for common problems into categories. The catalog itsel
Small release! Changes since 6.2.1: Revamp command injection detection in pipeline* calls (#1862) New end-of-support dates for Rails Exclude more native gems from vendored gems in brakeman gem (#1869) Command Injection in pipeline_* calls More specific checks for arguments to Open3 methods pipeline, pipline_r, pipeline_rw, pipeline_w, and pipeline_start to improve both true and false positive rate
ã¨ãããããã®è¾ºã®ç¨èªããã¤ãæ··ä¹±ãã¦ã¨ã¦ãå°ã£ã¦ããã®ã§ãã£ããæ´çãä»åã®ã¿ã¼ã²ããã¯ä½ããæè¿ JavaScript ãå«ã Web ã¢ããªã®ãã¹ãã§ããååãèã capybara-webkit ããã¹ã¿ã¼ãã ééã£ã¦ããçªã£è¾¼ãã§ãã ããï¼ ééã£ã¦ãªãã£ããè¤ãã¦ãã ããï¼ ååcapybara-webkitCapybara ã® driver. Capybara ã®ãã¹ãã WebKit ãéãã¦å®è¡ã§ãããWebKit ã¨è¨ãã°ã¿ããªå¤§å¥½ããGoogle Chrome ã Safari ã®ã¨ã³ã¸ã³ã§ãããcapybaraãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã«å¯¾ã㦠Web ã¢ããªã®ãã¹ããæ¸ããããããèªå½ãæä¾ãã¦ããã( DSL ã Driver ã§å®è£ ããã¦ãã )ãdriver 㯠default 㧠rack_test ã§ãJavaScript ãå«ãå ´å㯠Seleniu
WebOS Goodies ã¸ããããï¼ WebOS ã¯ã¤ã³ã¿ã¼ãããã®æªæ¥å½¢ããããã Web ãµã¤ããç¹ãããå ±æããååãã¦åµãä¸ãããã²ã¨ã¤ã®å·¨å¤§ãªæ å ±ã·ã¹ãã ã§ããããã§ã¯ãããããæ å ±ããããã¯ã¼ã¯ä¸ã«èç©ãããæã ã¯ãã¤ã§ããã©ãããã§ããå¤å½©ãªããã¤ã¹ã使ã£ã¦ãããã«ã¢ã¯ã»ã¹ã§ãã¾ãã WebOS Goodies ã¯ããã¾ãã¾ãªæ å ±æä¾ããã¼ã«éçºãéãã¦ããããªä¸çã®å®ç¾ã«å°ãã§ãè²¢ç®ããã¹ãæ´»åãã¦ããã¾ãã æ¬æ¥ã¯ Ruby ã®æ¨æºããã±ã¼ã¸ç®¡çã·ã¹ãã ã§ãã RubyGems ã®ãç´¹ä»ã§ããæè¿ã§ã¯ã»ã¨ãã©ã® Ruby ç¨ã©ã¤ãã©ãªã RubyGems ãå½ç¶ã®ããã«æ¡ç¨ãã¦ãã¦ãããã¥ã¡ã³ãã«ã RubyGems ã«ããã¤ã³ã¹ãã¼ã«æ¹æ³ããæ²è¼ãããªãããã«ãªã£ã¦ãã¾ãããç§ã¯ããã¾ã§æ¬å½ã«å¿ è¦æä½éã®ç¥èã ãã§ããéããã¦ããã®ã§ãããã ãã ãã¨ä¸é½åãã§ã¦ãã
Capistranoï¼ã«ãã¹ãã©ã¼ãï¼ã¯è¤æ°ã®ãªã¢ã¼ããµã¼ãã«SSHæ¥ç¶ãã¦ä¸æ¬æä½ã§ãã便å©ãªãã¼ã«ã§ãã è²ã ãªç¨éã«ä½¿ãã¾ãããä»åã¯Capistranoã§PHPããã¸ã§ã¯ãããããã¤ãã¦ã¿ã¾ããã æ¦è¦å³ Capistranoãã¤ã³ã¹ãã¼ã«ãããµã¼ãã¯ä¸å°ã ãã§ãã ãããã¤å ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§ã¯ãã°ã¤ã³ç¨ã¢ã«ã¦ã³ãï¼è¦sudo権éï¼ãäºåã«ä½æãã¦ããã¾ãã ã¤ã³ã¹ãã¼ã«ä¸ã®å³ã§ã¯Capistranoãã½ã¼ã¹ã³ã¼ã管çãµã¼ãã«ã¤ã³ã¹ãã¼ã«ãã¦ãã¾ãã Capistranoãåããã«ã¯Rubyãå¿ è¦ã«ãªãã¾ãã®ã§ãã¾ãã¯Rubyãã¤ã³ã¹ãã¼ã«ãã¾ãã ï¼Rubyã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯çç¥ãã¾ããï¼ æ¬¡ã«ã以ä¸ã®ã³ãã³ãã§Capistranoãã¤ã³ã¹ãã¼ã«ã $ sudo gem install capistrano 使ç¨æ¹æ³åºæ¬çã«capfileã«ä¸é£ã®æä½ãè¨è¿°ãããã¨ã¯ã³
ååã®è¨äºãRubyãåã®ãªãã¸ã§ã¯ãã¯ãªãã¦å¼ã³åºãã°ããã®ï¼ãã§ãRubyã«ã¯å¤§éã®ã¡ã½ããããããã¨ãåããã¾ãããä»åã¯ãã®è£è¶³ã¨ãã¦ãåã¯ã©ã¹ãã¨ã®ã¡ã½ããæ°ãæ°ãã¦ã°ã©ãåãã¦ã¿ã¾ãã ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ãããæ°ãã ã¾ãã¯ãã¤ã³ã¹ã¿ã³ã¹ã¡ã½ãããæ°ãã¾ããããã°ã©ãåã®å¯¾è±¡ã¯ã10以ä¸ã®ã¡ã½ãããæã¤ã¯ã©ã¹ã§ããæåã«ã¯ã©ã¹ãã¨ã®ã¡ã½ããæ°ããªã¹ãã¢ãããã¾ãã klasses = ObjectSpace.each_object(Module) def live(methods) methods.reject { |m| "#{m}".start_with? '_deprecated' } end methods = klasses.map do |k| [k, live(k.methods(false)).size, live(k.instance_methods(false
Rubyã§gemãã¤ã³ã¹ãã¼ã«ããã¨ãã«ãããã¥ã¡ã³ããã¤ã³ã¹ãã¼ã«ããªããªãã·ã§ã³--no-ri --no-rdocãããã©ã«ãã§ä»ããããã«ããæ¹æ³ã«ã¤ãã¦ãæ¯åæåã§ãªãã·ã§ã³ãæå®ãã¦ããã ãã©ãå¿ãã¦ãã¾ããã¨ãå¤ãã¦ãå¿ããå ´åã¯å®è¡ããå¾ã«ããã¥ã¡ã³ãã®ã¤ã³ã¹ãã¼ã«ãå§ã¾ã£ã¦æ°ã¥ããã¨ã«ãªãã¦ãã¡ã¨ãªãããããå¿ããã¨ã¤ã³ã¹ãã¼ã«æéãåãããã«ãªãã®ã§ãå人çã«ã¯å¸¸ã«ä»ãããã DHHããã®ãªãã·ã§ã³ãããã©ã«ãã«ãããã¨è¨ã£ã¦ãã¿ãããæè¿ã®RubyGemsã§ã¯ããã©ã«ãã«ãªã£ãããã¦ãã®ããªï¼ èªåã®ä½¿ã£ã¦ãRubyGemsã¯ã¡ãã£ã¨å¤ãã¤ãï¼1.6.2ã¨ãï¼ãªã®ã§ãã¾ã ããã©ã«ãã«ã¯ãªã£ã¦ããªãã .gemrcãä½æãã¦ãããã©ã«ãã§--no-ri --no-rdoc 以ä¸ã®å 容ãè¨è¿°ãã.gemrcãã¡ã¤ã«ãä½æãããã¼ã ãã£ã¬ã¯ããªã«é ç½®ããã gem: --no
ãããã·ã¼çµç±ã§gemãã¤ã³ã¹ãã¼ã«ãããã¨ããã¨è²ã 㨠ããã©ããªãã¨ããã£ããããï¼ç°å¢å¤æ°ã«ãããã·ã¼è¨å®ãããï¼ã®ã§ã ç´æ¥gemãã¡ã¤ã«ãã¤ã³ã¹ãã¼ã«ããæ¹æ³ãã¡ã¢ã ä¸è¨ãµã¤ãããç´æ¥gemãã¡ã¤ã«ãã²ããããã http://gems.rubyforge.org/ ããã¦gemãã¡ã¤ã«ã®ãããã©ã«ãã«ç§»åãã¦ãã³ãã³ãããã³ããããä¸è¨ãå®è¡ã gem install -l xxx.gem ã§okã rdocãriã®ã¤ã³ã¹ãã¼ã«ã«æéããããã®ãé¿ãããå ´åã¯ã ä¸è¨ã®ããã«ãªãã·ã§ã³ãã¤ããã°OKã§ãã gem install --no-rdoc --no-ri -l xxx.gem
Wheneverã¯Cronãå©ç¨ãã¦ç¹°ãè¿ãå¦çãè¡ãããã®ã©ã¤ãã©ãªã ã·ã§ã«ã³ãã³ããRailsã®RunnerãRakeã¿ã¹ã¯ãªã©ã®ã¸ã§ããCronã§å®è¡ã§ããã å®éã®ã¨ããCrontabã¸ã®ç»é²ãè£å©ãã¦ãããã ããªã®ã ãããã®ã·ã³ãã«ããããã£ã¦åãããããã ãããå¦çã®ç®¡çã«ãã£ã¦ã¤ãã ã¿ã¤ãã«ã§ã¯Railsã¨ãªã£ã¦ãããRails以å¤ã§ãå©ç¨ã§ããã 以ä¸ã¯Rails3ã§ã®ä½¿ãæ¹ã¡ã¢ã å°å ¥ Gemfileã«ä»¥ä¸ã®è¡ã追å ãã¦bundle install gem 'whenever', :require => false schedule.rbã®ç·¨é config/schedule.rbã«ã¹ã±ã¸ã¥ã¼ã«è¨å®ãæ¸ãã¦ããã bundle exec wheneverize . ãå®è¡ããã¨ã²ãªå½¢ãä½ã£ã¦ãããã®ã§ããããå ã«ç·¨éãã¦ããã®ãåã ã¹ã±ã¸ã¥ã¼ã«ã¯ãeveryãã«ç¶
I have a basic Rails 3 app working locally on my development box, but want to test out deploying early on to make sure everything works. I'm using Capistrano to deploy. When I run cap deploy (after all the other necessary setup), it breaks on this command with this error: [...] * executing 'bundle:install' * executing "bundle install --gemfile /var/www/trex/releases/20100917172521/Gemfile --path /
æ¨æ¥ã®ç¶ãã Wheneveræ¨æºã§Capistranoã®ã¿ã¹ã¯ãç¨æããã¦ããã®ã§ãç°¡åã«çµã¿åããããã¨ãã§ããã deploy.rbã®ç·¨é 以ä¸ã®è¡ãé©å½ãªå ´æã«æ¿å ¥ãä¾ãã°ãã¼ã«ãå®ç¾©ãã¦ããä¸ãããã¨ãã set :whenever_command, "bundle exec whenever" require "whenever/capistrano" ããã ãã§ããcap deployããã°config/schedule.rbã®å 容ãCrontabã«åæ ãããããã«ãªãã ãã¼ã«ã®è¨å® Wheneverã®å¯¾è±¡ã¨ãªãããã©ã«ãã®ãã¼ã«ã¯:dbã«ãªã£ã¦ããã å¿ è¦ãªãã°:appã«å¤æ´ããããé©å½ã«:batchãªã©ã®ãã¼ã«ãä½ã£ã¦deploy.rbã«æ¸ãã set :whenever_roles, { :batch } è¤æ°ãµã¼ãã¼ã§å®è¡ãããã¨è² è·ãªã©ãé¢åã«ãªããããªå¦çãå®è¡
Railsã§Cronãç°¡åã«ãããã©ã°ã¤ã³whenever Railsã§Cronãç°¡åã«ãããã©ã°ã¤ã³wheneverã®ã¤ã³ã¹ãã¼ã«æé wheneverã¯ãå®è¡ããã¿ã¹ã¯ãããããããæ¸ããã¨ãã§ããCapistranoã§ãããã¤ããéã«crontabãæ´æ°ãã¦ããããã©ã°ã¤ã³ã§ãã â ã¤ã³ã¹ãã¼ã«sudo gem install whenever --no-ri --no-rdoc #æ¬çªç°å¢ã®å ´åã Bundlerã®å ´ågem 'whenever', :require => false environment.rbå 㧠â»Bundlerã®å ´åä¸è¦ Rails::Initializer.run do |config| ã»ã»ã» config.gem 'whenever', :lib => false, :source =>'http://gemcutter.org/' endRailsã®
254: Kaminariã§ãã¼ã¸åå²Â (view original Railscast) Other translations: Other formats: Written by Naomi Fujimoto ä¸ã®å³ã¯ãé·ãä¸è¦§ãªã¹ãã表示ããRails 3ã¢ããªã±ã¼ã·ã§ã³ã®ã¹ã¯ãªã¼ã³ã·ã§ããã§ãããã®ä¸è¦§ãã1ãã¼ã¸ã®ãªã¹ãã¨ãã¦ã§ã¯ãªãè¤æ°ãã¼ã¸ã«åãã¦è¡¨ç¤ºãã¦ã¿ã¾ãããã Railsã§ã®ãã¼ã¸åå²å¦ç(pagination)ã§ã¾ãé¸æãããgemã¨ããã°will_paginateã§ãããããç¾è¡ãã¼ã¸ã§ã³ã¯Rails 3ããµãã¼ããã¦ãã¾ãããRails 3対å¿ã®ãã¬ãªãªã¼ã¹çãããã¾ãããããæ°ã¶ææ´æ°ããã¦ãã¾ãããwill_paginateã®éçºãåæ¢ãã¦ããã¨ããããä»ã«ä½¿ããgemã¯ãªãã§ããããï¼ ä»£æ¿æ¡ã®ä¸ã¤ãKaminariã§ãããã¡ãã®ã»ããããã¼ã¸åå²å¦ç
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}