<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>s21g&#12502;&#12525;&#12464;&#12434;&#21205;&#12363;&#12375;&#12390;&#12356;&#12427;EC2&#12452;&#12531;&#12473;&#12479;&#12531;&#12473;&#12398;Rails&#12434;
2.1.1&#12395;&#12496;&#12540;&#12472;&#12519;&#12531;&#12450;&#12483;&#12503;&#12375;&#12414;&#12375;&#12383;&#12290;

[**Rails 2.1.1: Lots of bug fixes**](http://weblog.rubyonrails.com/2008/9/5/rails-2-1-1-lots-of-bug-fixes)

&gt;Rails 2.1.1 is another maintenance release that includes a bunch of bug fixes and a fix for the REXML vulnerability. I&#8217;ve extracted all the changes from the CHANGELOGs into a single Gist. Enjoy!

&#20197;&#19979;&#12289;&#12496;&#12540;&#12472;&#12519;&#12531;&#12450;&#12483;&#12503;&#12395;&#38306;&#12377;&#12427;&#20316;&#26989;&#12525;&#12464;&#12391;&#12377;&#12290;
&#12414;&#12378;&#12399;
[`trident`](http://blog.s21g.com/articles/667)
&#12434;&#31435;&#12385;&#19978;&#12370;&#12427;&#12392;&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;WARNING&#12364;&#12290;

&gt;DEPRECATION WARNING: Dependencies is deprecated! Use ActiveSupport::Dependencies instead.  See http://www.rubyonrails.org/deprecation for details. (called from evaluate_init_rb at blog/vendor/plugins/background_fu/init.rb:1)

&#12392;&#12426;&#12354;&#12360;&#12378;[&#26368;&#26032;&#29256;&#12398;BackgroundFu](http://github.com/ncr/background-fu/tree/master)
&#12434;&#12354;&#12383;&#12387;&#12390;&#12415;&#12414;&#12377;&#12290;
&#12356;&#12388;&#12398;&#38291;&#12395;&#12363;GemPlugin&#12395;&#12394;&#12387;&#12390;&#12427;&#12290;&#12424;&#12375;&#12424;&#12375;&#12290;

**config/environment.rb**&#12395;&#20197;&#19979;&#12434;&#36861;&#35352;&#12290;

rails&gt;&gt;
  config.gem 'ncr-background_fu',
    :lib =&gt; 'background_fu',
    :source =&gt; 'http://gems.github.com'
&lt;&lt;--

&#12381;&#12375;&#12390;

sh&gt;&gt;
% sudo rake gems:install
&lt;&lt;--

&#12381;&#12375;&#12390;&#19981;&#35201;&#12395;&#12394;&#12387;&#12383;&#12503;&#12521;&#12464;&#12452;&#12531;&#12434;&#21066;&#38500;&#12290;

pre&gt;&gt;
% ./script/plugin remove background_fu
svn: '/home/takiuchi/blog/vendor/plugins' is not a working copy
&lt;&lt;--

&#12362;&#12387;&#12392;&#12290;`script/plugin remove`&#12399;&#12414;&#12384;Git&#12395;&#12399;&#23550;&#24540;&#12375;&#12390;&#12394;&#12356;&#12398;&#12363;&#12394;&#65311;
&#12375;&#12363;&#12375;&#35686;&#21578;&#12513;&#12483;&#12475;&#12540;&#12472;&#12399;&#20986;&#12414;&#12375;&#12383;&#12364;&#12289;&#24403;&#35442;&#12487;&#12451;&#12524;&#12463;&#12488;&#12522;&#12399;&#12365;&#12385;&#12435;&#12392;&#21066;&#38500;&#12373;&#12428;&#12390;&#12356;&#12383;&#27169;&#27096;&#12290;
&#12418;&#12358;&#19968;&#24230;`trident`&#12434;&#31435;&#12385;&#19978;&#12370;&#12427;&#12364;&#12289;&#12414;&#12383;&#21516;&#27096;&#12398;&#35686;&#21578;&#12364;&#20986;&#12383;&#12290;
&#12392;&#12356;&#12358;&#12371;&#12392;&#12391;&#12289;background_fu&#12434;
[fork&#12377;&#12427;&#12371;&#12392;&#12395;&#12375;&#12383;](http://github.com/genki/background-fu/tree/master)&#12290;

**config/environment.rb**&#12434;&#26360;&#12365;&#30452;&#12377;&#12290;

rails&gt;&gt;
  config.gem 'genki-background_fu',
    :lib =&gt; 'background_fu',
    :source =&gt; 'http://gems.github.com'
&lt;&lt;--

&#12371;&#12428;&#12391;&#35686;&#21578;&#12399;&#20986;&#12394;&#12367;&#12394;&#12387;&#12383;&#12290;
`rake -T`&#12399;&#29305;&#12395;&#21839;&#38988;&#12394;&#12367;&#23455;&#34892;&#12391;&#12365;&#12427;&#12290;
`rake test`&#12434;&#23455;&#34892;&#12290;

&gt;DEPRECATION WARNING: follow_redirect is deprecated and will be removed from Rails 2.2 (If you wish to follow redirects, you should use integration tests)  See http://www.rubyonrails.org/deprecation for details. (called from test_cleaning_up_blank_page at ./test/functional/articles_controller_test.rb:305)

&#12392;&#12398;&#12371;&#12392;&#12290;`follow_redirect`&#12434;&#20351;&#12356;&#12383;&#12356;&#22580;&#21512;&#12399;
&#12452;&#12531;&#12486;&#12464;&#12524;&#12540;&#12471;&#12519;&#12531;&#12486;&#12473;&#12488;&#12434;&#20351;&#12387;&#12390;&#12397;&#12289;&#12392;&#12356;&#12358;&#12371;&#12392;&#12425;&#12375;&#12356;&#12290;
&#12356;&#12431;&#12428;&#12390;&#12415;&#12428;&#12400;&#12381;&#12398;&#36890;&#12426;&#12391;&#12377;&#12397;&#12290;
&#12371;&#12428;&#12434;&#27231;&#12395;IntegrationTest&#21608;&#12426;&#12398;&#12469;&#12509;&#12540;&#12488;&#12364;&#20805;&#23455;&#12377;&#12427;&#12392;&#23305;&#12375;&#12356;&#12290;

&#12392;&#12426;&#12354;&#12360;&#12378;&#12289;&#35442;&#24403;&#31623;&#25152;&#12434;IntegrationTest&#12395;&#20999;&#12426;&#20986;&#12377;&#12371;&#12392;&#12395;&#12290;
&#12381;&#12398;&#21069;&#12395;`script/generate`&#12467;&#12510;&#12531;&#12489;&#12364;Update&#12373;&#12428;&#12390;&#12427;&#21487;&#33021;&#24615;&#12364;&#12354;&#12387;&#12383;&#12398;&#12391;&#12289;
`rake rails:update`&#12434;&#23455;&#34892;&#12375;&#12390;&#12415;&#12383;&#12364;&#12289;`config/boot.rb`&#12364;&#25968;&#34892;&#22793;&#12431;&#12387;&#12383;&#12384;&#12369;&#12391;&#12354;&#12387;&#12383;&#12290;&#12393;&#12358;&#12420;&#12425;RubyGems&#12398;&#26368;&#20302;&#35201;&#27714;&#12496;&#12540;&#12472;&#12519;&#12531;&#12364;`1.1.1`&#20197;&#38477;&#12392;&#12394;&#12387;&#12383;&#27169;&#27096;&#12290;

IntegrationTest&#12391;&#12399;&#12289;`follow_redirect`&#12391;&#12399;&#12394;&#12367;&#12289;`follow_redirect!`
&#12434;&#20351;&#12358;&#24517;&#35201;&#12364;&#12354;&#12387;&#12383;&#12290;
&#12392;&#12289;&#12371;&#12371;&#12414;&#12391;&#12391;&#12486;&#12473;&#12488;&#12391;&#12398;WARNING&#12418;&#12377;&#12409;&#12390;&#35299;&#28040;&#12290;

&#12354;&#12392;&#12399;&#12525;&#12540;&#12459;&#12523;&#29872;&#22659;&#12391;&#21205;&#20316;&#12486;&#12473;&#12488;&#12434;&#12375;&#12383;&#24460;&#12395;&#12289;
`cap shell`&#12391;&#24517;&#35201;&#12394;Gem&#12434;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12375;&#12390;`cap deploy`

WARNING&#12434;&#28040;&#12377;&#12383;&#12417;&#12395;&#12402;&#12392;&#25163;&#38291;&#12363;&#12363;&#12426;&#12414;&#12375;&#12383;&#12364;&#12289;
&#22522;&#26412;&#30340;&#12395;&#12399;&#29305;&#12395;&#22823;&#12365;&#12394;&#20462;&#27491;&#12418;&#24517;&#35201;&#12394;&#12367;&#12450;&#12483;&#12503;&#12464;&#12524;&#12540;&#12489;&#12391;&#12365;&#12414;&#12375;&#12383;&#12290;</body>
  <cached-tag-list>rails blog memo 211</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-09-07T01:58:14+00:00</created-at>
  <daily-archive-id type="integer">767</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">865</id>
  <monthly-archive-id type="integer">94</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2008-09-07T02:18:45+00:00</published-at>
  <secret>acdf35e3-f139-4408-8dbe-afc2f5c1c187</secret>
  <title>Rails-2.1.1&#12395;&#12450;&#12483;&#12503;&#12487;&#12540;&#12488;&#12375;&#12414;&#12375;&#12383;</title>
  <updated-at type="datetime">2008-09-07T02:18:45+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
