filetype 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filetype.rb +2 -1
- data/test/filetype_test.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4727e0c57dc75e0f130816a7ad47fa057d49dd72d3eb9309bdb14f497e668e6e
|
4
|
+
data.tar.gz: 7ced5c77fabf3df3015385286e5b86aff8ef4172dc27ed2ea894d7040ef08d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 282c798ef18f796e4e8cbb101b076c4de92e8fe5ef99f015ac96de1b7a0ef6f20d54401b1b9cfdd1b939d6615f58a36a4d18e34d789fa4f665986828d23fb3da
|
7
|
+
data.tar.gz: ab11c48de92bb964a443c057be81581a00cd602495c8a695e66c29ea67bc212c6b150c731a69bb7cfbbef91c6d8be16d60fb043896267788bf5af4301dd9abaa
|
data/lib/filetype.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Filetype
|
2
2
|
module_function
|
3
3
|
|
4
|
-
VERSION = '0.3.
|
4
|
+
VERSION = '0.3.2'
|
5
5
|
|
6
6
|
FTYPES = {
|
7
7
|
:actionscript => %w[ as mxml ],
|
@@ -16,6 +16,7 @@ module Filetype
|
|
16
16
|
:csharp => %w[ cs ],
|
17
17
|
:css => %w[ css ],
|
18
18
|
:diff => %w[ diff patch ],
|
19
|
+
:docker => /\A[Dd]ockerfile(?:\.\w+)?\z/,
|
19
20
|
:elisp => %w[ el ],
|
20
21
|
:epub => %w[ epub ],
|
21
22
|
:erb => %w[ rhtml erb ],
|
data/test/filetype_test.rb
CHANGED
@@ -36,6 +36,8 @@ class FileTypeTest < TestCase
|
|
36
36
|
assert_equal :cpp, Filetype.get('foo.hxx')
|
37
37
|
assert_equal :csharp, Filetype.get('foo.cs')
|
38
38
|
assert_equal :css, Filetype.get('foo.css')
|
39
|
+
assert_equal :docker, Filetype.get('Dockerfile')
|
40
|
+
assert_equal :docker, Filetype.get('Dockerfile.build')
|
39
41
|
assert_equal :elisp, Filetype.get('foo.el')
|
40
42
|
assert_equal :epub, Filetype.get('foo.epub')
|
41
43
|
assert_equal :erb, Filetype.get('foo.rhtml')
|