This commit is contained in:
BoHung Chiu 2021-08-22 16:08:34 +08:00
parent 8873042a6c
commit f99f9a199e
1 changed files with 8 additions and 4 deletions

View File

@ -1,9 +1,13 @@
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
# stub: seminar 0.0.1 ruby lib # stub: seminar 0.0.1 ruby lib
require "yaml" begin
require "erb" require "yaml"
data = File.open(File.join(File.dirname(__FILE__), 'config', 'list.yml')).read require "erb"
$seminar_list = YAML.safe_load(ERB.new(data).result(binding)) 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| Gem::Specification.new do |s|
s.name = "seminar" s.name = "seminar"
s.version = "0.0.1" s.version = "0.0.1"