<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for yakjuly&#039;s blog</title>
	<atom:link href="http://www.yakjuly.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yakjuly.com</link>
	<description>关注Ruby on Rails、电子商务、技术创新及应用</description>
	<lastBuildDate>Mon, 17 Jan 2011 03:27:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>Comment on HTML 5 SQL 教程 &#8211; 基础 by Html 5 study note &#124; Dacen&#039;s Blog</title>
		<link>http://www.yakjuly.com/2010/06/html-5-sql-%e6%95%99%e7%a8%8b-%e5%9f%ba%e7%a1%80.html/comment-page-1#comment-483</link>
		<dc:creator>Html 5 study note &#124; Dacen&#039;s Blog</dc:creator>
		<pubDate>Mon, 17 Jan 2011 03:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.yakjuly.com/?p=73#comment-483</guid>
		<description>[...] 5 SQL 教程 – 基础 http://www.yakjuly.com/2010/06/html-5-sql-%E6%95%99%E7%A8%8B-%E5%9F%BA%E7%A1%80.html   This entry was posted in PC &amp; Network(电脑互联网) and tagged Chrome OS, Html5, SQLite. [...]</description>
		<content:encoded><![CDATA[<p>[...] 5 SQL 教程 – 基础 http://www.yakjuly.com/2010/06/html-5-sql-%E6%95%99%E7%A8%8B-%E5%9F%BA%E7%A1%80.html   This entry was posted in PC &amp; Network(电脑互联网) and tagged Chrome OS, Html5, SQLite. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 关于 by yakjuly</title>
		<link>http://www.yakjuly.com/about/comment-page-1#comment-470</link>
		<dc:creator>yakjuly</dc:creator>
		<pubDate>Fri, 07 Jan 2011 01:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.yakjuly.com/?page_id=2#comment-470</guid>
		<description>你的这个问题 我还没有遇见过，因为现在已经不再windows上做开发了，一般 build native extension error的错误，大部分是因为缺少个别库造成的，我google了一下你的问题，也许这个会对你有所帮助。
http://stackoverflow.com/questions/783824/libxml-ruby-on-windows-xp-problem</description>
		<content:encoded><![CDATA[<p>你的这个问题 我还没有遇见过，因为现在已经不再windows上做开发了，一般 build native extension error的错误，大部分是因为缺少个别库造成的，我google了一下你的问题，也许这个会对你有所帮助。<br />
<a href="http://stackoverflow.com/questions/783824/libxml-ruby-on-windows-xp-problem" rel="nofollow">http://stackoverflow.com/questions/783824/libxml-ruby-on-windows-xp-problem</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 关于 by Shiqiang Tao</title>
		<link>http://www.yakjuly.com/about/comment-page-1#comment-469</link>
		<dc:creator>Shiqiang Tao</dc:creator>
		<pubDate>Thu, 06 Jan 2011 16:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.yakjuly.com/?page_id=2#comment-469</guid>
		<description>你好，看了您的博客感觉您对ruby on rails的理解挺深刻的，所有把最近一个困扰我很长时间的问题和您讨论下，我是在windows下用ruby on rials编程的，最近老板给了我一个项目让我安装在windows下，这个项目本身是在苹果mac系统下开发的，rails版本3.0.3，ruby 1.8.7， 我拿来直接在windows下用bundleinstall无法完全安装里面的gems原因是有一个libxml-ruby的gem装不好，报的错是buildnativeextensionerror，然后我手动装了这个gem，在irb下require‘rubygems’，require ‘libxml’ 都返回了true, 但是我在项目里面bundle check的时候 还是告诉我找不到 libxml，不知道原因是什么，如果您有什么办法的话请不吝赐教. 

我在美国读phd，如果您愿意和我交流的话可以加我QQ405602586，或者我的GTALK: StrongTSQ@gmail.com
多谢！</description>
		<content:encoded><![CDATA[<p>你好，看了您的博客感觉您对ruby on rails的理解挺深刻的，所有把最近一个困扰我很长时间的问题和您讨论下，我是在windows下用ruby on rials编程的，最近老板给了我一个项目让我安装在windows下，这个项目本身是在苹果mac系统下开发的，rails版本3.0.3，ruby 1.8.7， 我拿来直接在windows下用bundleinstall无法完全安装里面的gems原因是有一个libxml-ruby的gem装不好，报的错是buildnativeextensionerror，然后我手动装了这个gem，在irb下require‘rubygems’，require ‘libxml’ 都返回了true, 但是我在项目里面bundle check的时候 还是告诉我找不到 libxml，不知道原因是什么，如果您有什么办法的话请不吝赐教. </p>
<p>我在美国读phd，如果您愿意和我交流的话可以加我QQ405602586，或者我的GTALK: <a href="mailto:StrongTSQ@gmail.com">StrongTSQ@gmail.com</a><br />
多谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 如何stub实例方法 by yakjuly</title>
		<link>http://www.yakjuly.com/2010/11/how-to-stub-instance-method.html/comment-page-1#comment-455</link>
		<dc:creator>yakjuly</dc:creator>
		<pubDate>Thu, 16 Dec 2010 05:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.yakjuly.com/?p=137#comment-455</guid>
		<description>&lt;a href=&quot;#comment-454&quot; rel=&quot;nofollow&quot;&gt;@Monex &lt;/a&gt; 
The way &quot;stub(:new)&quot; not to be suggested.

example:
&lt;pre code=&quot;ruby&quot;&gt;

class User &lt; ActiveRecord::Base

  def good
    &quot;good&quot;
  end

end

user_spec.rb

  it &quot;should succes through stub good&quot; do
    Factory(:user)
    new_method = User.method(:new)
    
    User.stub(:new).and_return do &#124;*args&#124;
      #use original new method create instance
      user = new_method.call(*args)
      #only *user* this instance stub :good method
      user.stub(:good).and_return(&quot;not good&quot;)
      #return stubed instance
      user
    end
    
    #use *new* which stubed
    u = User.new
    u2 = User.first
    u.good.should == &quot;not good&quot;
    u2.good.should == &quot;good&quot;
  end
&lt;/pre&gt;
This way will not effect User instance which not generate through *new* method.

but use *any_instance.stubs* will effect the in scope.</description>
		<content:encoded><![CDATA[<p><a href="#comment-454" rel="nofollow">@Monex </a><br />
The way &#8220;stub(:new)&#8221; not to be suggested.</p>
<p>example:</p>
<pre code="ruby">

class User < ActiveRecord::Base

  def good
    "good"
  end

end

user_spec.rb

  it "should succes through stub good" do
    Factory(:user)
    new_method = User.method(:new)

    User.stub(:new).and_return do |*args|
      #use original new method create instance
      user = new_method.call(*args)
      #only *user* this instance stub :good method
      user.stub(:good).and_return("not good")
      #return stubed instance
      user
    end

    #use *new* which stubed
    u = User.new
    u2 = User.first
    u.good.should == "not good"
    u2.good.should == "good"
  end
</pre>
<p>This way will not effect User instance which not generate through *new* method.</p>
<p>but use *any_instance.stubs* will effect the in scope.</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 如何stub实例方法 by Monex</title>
		<link>http://www.yakjuly.com/2010/11/how-to-stub-instance-method.html/comment-page-1#comment-454</link>
		<dc:creator>Monex</dc:creator>
		<pubDate>Thu, 16 Dec 2010 04:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.yakjuly.com/?p=137#comment-454</guid>
		<description>However there is also one stack level too deep error Now I dont really know if this means that something else is broken really badly now or if this can be worked around.</description>
		<content:encoded><![CDATA[<p>However there is also one stack level too deep error Now I dont really know if this means that something else is broken really badly now or if this can be worked around.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
