From de96f950b3f0f101346132c07474f692137114b0 Mon Sep 17 00:00:00 2001 From: Jonathan Sterling Date: Wed, 13 Jul 2011 14:54:21 -0700 Subject: [PATCH] Detect .xcworkspacedata and .xcuserstate files as generated Xcode 4 generates more XML files than ever: update `generated?` to recognize them as such. --- lib/linguist/blob_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index 4e013bd7..559c593b 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -178,7 +178,7 @@ module Linguist # # Return true or false def generated? - if ['.xib', '.nib', '.pbxproj'].include?(extname) + if ['.xib', '.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) true elsif generated_coffeescript? || minified_javascript? true