null+****@clear*****
null+****@clear*****
Wed Feb 1 12:52:15 JST 2012
SUZUKI Miho 2012-02-01 12:52:15 +0900 (Wed, 01 Feb 2012) New Revision: 507a1178d4defc4ea916f0c8ab38835886f5dd81 Log: raise LoadError when psych is not installed Modified files: lib/logaling/glossary.rb Modified: lib/logaling/glossary.rb (+6 -0) =================================================================== --- lib/logaling/glossary.rb 2012-02-01 09:19:17 +0900 (39a6ec2) +++ lib/logaling/glossary.rb 2012-02-01 12:52:15 +0900 (ee5f4f7) @@ -15,6 +15,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +begin + require 'psych' +rescue LoadError => e + raise LoadError unless e.message =~ /psych/ + puts "please install psych first." +end require "yaml" require "csv" require "fileutils"