lib/xcmultilingual/parser.rb in xcmultilingual-0.1.3 vs lib/xcmultilingual/parser.rb in xcmultilingual-0.1.4
- old
+ new
@@ -12,11 +12,12 @@
puts "+ START PARSING" if @verbose
puts "" if @verbose
destination_path = File.expand_path(@destination)
destination_dir = File.dirname(destination_path)
-
- bundles = {} Dir.glob("#{destination_dir}/**/*.lproj/**/*.strings") do |file_path|
+
+ bundles = {}
+ Dir.glob("#{destination_dir}/**/*.lproj/**/*.strings") do |file_path|
file_path = File.expand_path(file_path)
# bundle
if match = file_path.match(/(?<dir>(?<name>[^\/]*).bundle)/)
bundle_name = match["name"]