lib/xcmultilingual/parser.rb in xcmultilingual-0.1.2 vs lib/xcmultilingual/parser.rb in xcmultilingual-0.1.3
- old
+ new
@@ -11,15 +11,12 @@
def parse
puts "+ START PARSING" if @verbose
puts "" if @verbose
destination_path = File.expand_path(@destination)
- puts destination_path
destination_dir = File.dirname(destination_path)
- puts destination_dir
-
- 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"]