Rakefile in web_font-0.1.14 vs Rakefile in web_font-0.2.0
- old
+ new
@@ -6,11 +6,11 @@
t.pattern = './test/lib/**/*_test.rb'
end
task default: :test
# ENV['GOOGLE_API_KEY'] ||= ''
-WebFont::Index.path = File.expand_path('../cache/index', __FILE__)
+WebFont::Index.path = File.join(__dir__, 'cache', 'index')
WebFont::LocalCache.cache = true
-WebFont::LocalCache.cache_path = File.expand_path('../cache/fonts', __FILE__)
+WebFont::LocalCache.cache_path = File.join(__dir__, 'cache', 'fonts')
WebFont::CacheTask.define_tasks!