From a1af3a509c299d96754c217994985653d54925b4 Mon Sep 17 00:00:00 2001 From: Josh Abernathy Date: Tue, 15 Jul 2014 12:06:55 -0700 Subject: [PATCH 1/3] Most Xcode files have a human-readable diff now! --- lib/linguist/generated.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index 761288f0..2074e008 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -54,7 +54,7 @@ module Linguist name == 'Gemfile.lock' || minified_files? || compiled_coffeescript? || - xcode_project_file? || + xcode_file? || generated_parser? || generated_net_docfile? || generated_net_designer_file? || @@ -67,14 +67,14 @@ module Linguist generated_by_zephir? end - # Internal: Is the blob an XCode project file? + # Internal: Is the blob an Xcode file? # - # Generated if the file extension is an XCode project + # Generated if the file extension is an Xcode # file extension. # # Returns true of false. - def xcode_project_file? - ['.xib', '.nib', '.storyboard', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) + def xcode_file? + ['.nib', '.pbxproj'].include?(extname) end # Internal: Is the blob minified files? From 5c3385ecd817c824691698f9c6ec392b054848b1 Mon Sep 17 00:00:00 2001 From: Josh Abernathy Date: Tue, 15 Jul 2014 12:08:23 -0700 Subject: [PATCH 2/3] Actually let's keep those. --- lib/linguist/generated.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index 2074e008..a0f3a285 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -74,7 +74,7 @@ module Linguist # # Returns true of false. def xcode_file? - ['.nib', '.pbxproj'].include?(extname) + ['.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) end # Internal: Is the blob minified files? From 4d7a34c17732d00de2c8202d5333fdfbeafa4a98 Mon Sep 17 00:00:00 2001 From: Josh Abernathy Date: Tue, 15 Jul 2014 12:27:35 -0700 Subject: [PATCH 3/3] pbproj's are cool too. --- lib/linguist/generated.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index a0f3a285..974fc7ae 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -74,7 +74,7 @@ module Linguist # # Returns true of false. def xcode_file? - ['.nib', '.pbxproj', '.xcworkspacedata', '.xcuserstate'].include?(extname) + ['.nib', '.xcworkspacedata', '.xcuserstate'].include?(extname) end # Internal: Is the blob minified files? @@ -256,3 +256,4 @@ module Linguist end end end +