lib/i18n_screwdriver.rb in i18n_screwdriver-10.0.1 vs lib/i18n_screwdriver.rb in i18n_screwdriver-10.1.0
- old
+ new
@@ -133,13 +133,11 @@
gather_js_translations(".", texts)
included_gems.each do |name|
spec = Gem.loaded_specs[name]
next puts "WARNING: gem #{name} not loaded, so it cannot be scanned for translations!" unless spec
- spec.full_require_paths.each do |path|
- gather_ruby_translations(path, texts, symbols)
- gather_js_translations(path, texts)
- end
+ gather_ruby_translations(spec.full_gem_path, texts, symbols)
+ gather_js_translations(spec.full_gem_path, texts)
end
translations = Hash[texts.uniq.map{ |text| [generate_key(text), extract_text(text)] }]
translations.merge(Hash[symbols.uniq.map{ |symbol| [generate_key(symbol), ""] }])
end