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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7da5ca6b8463afc99514cb1346cd6c986148263e6633472e20657860ba62381a
4
- data.tar.gz: a62159977aae79e14e9553e6661e5fa95ffa341afbd1a4faefc98dd760613e8c
3
+ metadata.gz: 4727e0c57dc75e0f130816a7ad47fa057d49dd72d3eb9309bdb14f497e668e6e
4
+ data.tar.gz: 7ced5c77fabf3df3015385286e5b86aff8ef4172dc27ed2ea894d7040ef08d55
5
5
  SHA512:
6
- metadata.gz: 66ccab1a90806a41636f6654f6e7d47a21504c152282f66f0396f215848b4bdd499d1508e6dc59c34cc519d64ba3ac6ccefcc5050a80457bc59fc6f65cf6f4c5
7
- data.tar.gz: 1409df6893b1e41fdeb6c71473476aa3db4bfb0200982d6520163c7b446a75769bc1c8a12f283c59f9b4ba5391ad4f0dec64b213a3c392f6d5c2c1fd4bf287b6
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.1'
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 ],
@@ -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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filetype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Jarvis