lib/linguist/generated.rb in github-linguist-2.12.1 vs lib/linguist/generated.rb in github-linguist-3.0.0b0

- old
+ new

@@ -61,11 +61,12 @@ generated_postscript? || generated_protocol_buffer? || generated_jni_header? || composer_lock? || node_modules? || - vcr_cassette? + vcr_cassette? || + generated_by_zephir? end # Internal: Is the blob an XCode project file? # # Generated if the file extension is an XCode project @@ -233,9 +234,16 @@ # Internal: Is the blob a generated php composer lock file? # # Returns true or false. def composer_lock? !!name.match(/composer.lock/) + end + + # Internal: Is the blob a generated by Zephir + # + # Returns true or false. + def generated_by_zephir? + !!name.match(/.\.zep\.(?:c|h|php)$/) end # Is the blob a VCR Cassette file? # # Returns true or false