<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>20121205_star (怀锦)</title>
    <link>https://ruby-china.org/20121205_star</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>执行 bundle install 报错提示 SSL 过期</title>
      <description>&lt;p&gt;各位道友，是否遇到过此问题，可否帮忙看看？
开发环境：
Ubuntu 24.04
Ruby 3.0.4
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
搞过：export SSL_CERT_FILE=/path/to/cacert.pem（无效）&lt;/p&gt;

&lt;p&gt;执行：bundle install 提示：
Fetching source index from &lt;a href="https://gems.ruby-china.com/" rel="nofollow" target="_blank"&gt;https://gems.ruby-china.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for &lt;a href="https://gems.ruby-china.com/" rel="nofollow" target="_blank"&gt;https://gems.ruby-china.com/&lt;/a&gt;.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see &lt;a href="https://railsapps.github.io/openssl-certificate-verify-failed.html" rel="nofollow" target="_blank"&gt;https://railsapps.github.io/openssl-certificate-verify-failed.html&lt;/a&gt;. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.&lt;/p&gt;

&lt;p&gt;Could not verify the SSL certificate for &lt;a href="https://gems.ruby-china.com/" rel="nofollow" target="_blank"&gt;https://gems.ruby-china.com/&lt;/a&gt;.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see
&lt;a href="https://railsapps.github.io/openssl-certificate-verify-failed.html" rel="nofollow" target="_blank"&gt;https://railsapps.github.io/openssl-certificate-verify-failed.html&lt;/a&gt;. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/20121205_star/6855d306-036c-4649-8ca0-e0a908316593.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>20121205_star</author>
      <pubDate>Thu, 28 Aug 2025 12:01:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/44253</link>
      <guid>https://ruby-china.org/topics/44253</guid>
    </item>
    <item>
      <title>使用 rufus-scheduler 插件进行定时做某项操作，但是到定时时间的时候执行了多次</title>
      <description>&lt;p&gt;使用 rufus-scheduler 插件进行定时做某项操作，使用 cron 配置某个点执行某个方法以达到某种效果，但是发现，等到了那个点的时候，代码会循环跑多次那个方法，现在的程序环境是 ruby on rails，把 rufus-scheduler 调用的配置文件放在了 config/initializes/文件目录里，不知道为什么会出现这个问题，急需解决，请各位大侠帮忙！&lt;/p&gt;</description>
      <author>20121205_star</author>
      <pubDate>Thu, 06 Nov 2014 14:42:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/22528</link>
      <guid>https://ruby-china.org/topics/22528</guid>
    </item>
  </channel>
</rss>
