Skip to content
Browse files

Gemfile.locks are generated

  • Loading branch information...
1 parent 7e3af6d commit 101676d90bbb8bc3d66286d0761c98719d489313 @josh josh committed Feb 15, 2012
Showing with 9 additions and 2 deletions.
  1. +4 −2 lib/linguist/blob_helper.rb
  2. +5 −0 test/test_blob.rb
View
6 lib/linguist/blob_helper.rb
@@ -238,9 +238,11 @@ def average_line_length
#
# Return true or false
def generated?
- if xcode_project_file?
+ if xcode_project_file? || generated_net_docfile?
true
- elsif generated_coffeescript? || minified_javascript? || generated_net_docfile?
+ elsif generated_coffeescript? || minified_javascript?
+ true
+ elsif name == 'Gemfile.lock'
true
else
false
View
5 test/test_blob.rb
@@ -141,10 +141,15 @@ def test_viewable
def test_generated
assert !blob("README").generated?
+
+ # Xcode project files
assert blob("MainMenu.xib").generated?
assert blob("MainMenu.nib").generated?
assert blob("project.pbxproj").generated?
+ # Gemfile.locks
+ assert blob("Gemfile.lock").generated?
+
# Generated .NET Docfiles
assert blob("net_docfile.xml").generated?

0 comments on commit 101676d

Please sign in to comment.
Something went wrong with that request. Please try again.