forked from spen/seminar
Fix bug.
This commit is contained in:
parent
8873042a6c
commit
f99f9a199e
|
@ -1,9 +1,13 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
# stub: seminar 0.0.1 ruby lib
|
||||
require "yaml"
|
||||
require "erb"
|
||||
data = File.open(File.join(File.dirname(__FILE__), 'config', 'list.yml')).read
|
||||
$seminar_list = YAML.safe_load(ERB.new(data).result(binding))
|
||||
begin
|
||||
require "yaml"
|
||||
require "erb"
|
||||
data = File.open(File.join(File.dirname(__FILE__), 'config', 'list.yml')).read
|
||||
$seminar_list = YAML.safe_load(ERB.new(data).result(binding)).map{|k,v| [k.to_sym,v]}.to_h
|
||||
rescue => e
|
||||
puts [e.to_s,e.backtrace]
|
||||
end
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "seminar"
|
||||
s.version = "0.0.1"
|
||||
|
|
Loading…
Reference in New Issue