Skip to content

Commit ab356ea

Browse files
authored
Identify config.ru rackup file as ruby
1 parent 8a04d49 commit ab356ea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

identify/extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@
326326
'BUILD.bazel': EXTENSIONS['bzl'],
327327
'CMakeLists.txt': EXTENSIONS['cmake'],
328328
'CHANGELOG': EXTENSIONS['txt'],
329+
'config.ru': EXTENSIONS['rb'],
329330
'CONTRIBUTING': EXTENSIONS['txt'],
330331
'COPYING': EXTENSIONS['txt'],
331332
'Dockerfile': {'text', 'dockerfile'},

tests/identify_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def test_tags_from_path_plist_text(tmpdir):
160160
('Pipfile.lock', {'text', 'json'}),
161161
('mod/test.py', {'text', 'python'}),
162162
('mod/Dockerfile', {'text', 'dockerfile'}),
163+
('config.ru', {'text', 'ruby'}),
163164
('Gemfile', {'text', 'ruby'}),
164165
('Gemfile.lock', {'text'}),
165166
('Jenkinsfile', {'text', 'groovy', 'jenkins'}),

0 commit comments

Comments
 (0)