lib/habluhablu.rb in habluhablu-0.1.6 vs lib/habluhablu.rb in habluhablu-0.1.7
- old
+ new
@@ -27,16 +27,16 @@
raise GemI18nError.new
end
# Check if specified symbol's language does exist
# if not, raise the custom error
- if File.exist?("./languages/#{language}.yml").eql?(false)
+ if File.exist?("languages/#{language}.yml").eql?(false)
raise WrongSymbolError.new(language)
end
# Create a file of specified language
File.open("./config/locales/#{language}.yml", "w") do |f|
- File.open("./languages/#{language}.yml") do |i18n|
+ File.open("languages/#{language}.yml") do |i18n|
f.write(i18n.read.to_s)
end
end
end
end