lib/hyakunin-issyu.rb in hyakunin-issyu-0.1.3 vs lib/hyakunin-issyu.rb in hyakunin-issyu-0.1.4
- old
+ new
@@ -1,9 +1,9 @@
#encoding: utf-8
require 'hyakunin-issyu/version'
require 'yaml'
# path = Rails.root.join("vendor","bundle","ruby","1.9.1","gems","hyakunin-issyu-#{HyakuninIssyu::VERSION}","lib","hyakunin-issyu","data.yml")
- path = Rails.root + "/vendor/bundle/ruby/1.9.1/gems/hyakunin-issyu-#{HyakuninIssyu::VERSION}/lib/hyakunin-issyu/data.yml"
+ path = Dir.pwd + "/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)