<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>rco (rco)</title>
    <link>https://ruby-china.org/rco</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>为何 rvm 1.26.11 的 global.gems 里拿掉 bundle ?</title>
      <description>&lt;p&gt;rvm 终于有 1.26.11 版本了，
但安装 ruby 2.2.1 后才发现，
原来事先装好的 bundle 竟然没有自动装上。
查了一下 rvm 1.26.10 与 1.26.11 的差异，
在于 ~/.rvm/gemsets/global.gems 里，
新版的 rvm  把 bundle 拿掉…
有知道是什么原因拿掉呢？
或是目前有什么比 bundle 更好的替代吗？
现在就只好自行再手动安装 bundle 了。&lt;/p&gt;</description>
      <author>rco</author>
      <pubDate>Tue, 07 Apr 2015 09:09:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/25028</link>
      <guid>https://ruby-china.org/topics/25028</guid>
    </item>
    <item>
      <title>guard-livereload 只生成 text/plain 的回应</title>
      <description>&lt;p&gt;参考这个教学视屏 &lt;a href="http://code.tutsplus.com/tutorials/guard-is-your-best-friend--net-31021" rel="nofollow" target="_blank" title=""&gt;Guard is Your Best Friend&lt;/a&gt;。
所在的本机平台是 linux 及 chromium 33.0.1750.152 (256984)
先是从 guard-sass 测没问题，但试到 guard-livereload，一直会有以下问题：&lt;/p&gt;

&lt;p&gt;1.无法生成回应为 HTML 的 mime：
Guardfile 的内容为：&lt;/p&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="n"&gt;guard&lt;/span&gt; &lt;span class="s1"&gt;'livereload'&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="n"&gt;watch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;%r{.+&lt;/span&gt;&lt;span class="se"&gt;\.&lt;/span&gt;&lt;span class="sr"&gt;(css|html|js)$}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;在同一文档夹里有 index.html
浏览器访问 &lt;a href="http://localhost:35729/index.html" rel="nofollow" target="_blank"&gt;http://localhost:35729/index.html&lt;/a&gt;
虽然 index.html 随时变动能够回应到 chromium 上没问题，
但总是只看到原来 index.html 的原始码，总是回应 text/plain 的格式给浏览器。
也看不到网络上有人有此问题，很纳闷怎么解决？&lt;/p&gt;

&lt;p&gt;2.浏览器用 file:///访问无法执行 LiveReload 插件
虽然用 file:///home/user/Project/index.html 当网址可以看到正常的 HTML 生成，
但 chromium 右上角的 LiveReload 的按键却没作用，
看教学视屏上是用 MacOS 上示范是正常的，
不晓得这是在 linux 上的限制？还是我漏了什么？&lt;/p&gt;

&lt;p&gt;忙了半天结果这两个问题都没享受到即时回应生成到浏览器的好处...&lt;/p&gt;</description>
      <author>rco</author>
      <pubDate>Wed, 02 Apr 2014 14:13:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/18339</link>
      <guid>https://ruby-china.org/topics/18339</guid>
    </item>
  </channel>
</rss>
