lib/hyakunin-issyu.rb in hyakunin-issyu-0.1.1 vs lib/hyakunin-issyu.rb in hyakunin-issyu-0.1.2
- old
+ new
@@ -1,9 +1,8 @@
#encoding: utf-8
require 'hyakunin-issyu/version'
require 'yaml'
- # path = Dir.pwd + '/vendor/bundle/ruby/1.9.1/gems/hyakunin-issyu-0.0.8/lib/hyakunin-issyu/data.yml'
- path = 'lib/hyakunin-issyu/data.yml'
+ path = Rails.root.join("vendor","bundle","ruby","1.9.1","gems","hyakunin-issyu-#{HyakuninIssyu::VERSION}","lib","hyakunin-issyu","data.yml")
@data_set = YAML.load_file(path)
module HyakuninIssyu
def initialize
HyakuninIssyu.const_set("SONGS", @data_set)