lib/hyakunin-issyu.rb in hyakunin-issyu-0.0.4 vs lib/hyakunin-issyu.rb in hyakunin-issyu-0.0.5
- old
+ new
@@ -1,8 +1,9 @@
#encoding: utf-8
require 'hyakunin-issyu/version'
require 'yaml'
-@data = YAML.load_file('lib/hyakunin-issyu/data.yml')
+path = Dir.pwd + '/lib/hyakunin-issyu/data.yml'
+@data = YAML.load_file(path)
module HyakuninIssyu
def songs(start=1,last=1)
new_data = Hash.new
for i in start..last do