filetype 1.0.0 → 1.1.0
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 +1 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a2d1ef450a9f562428c44c8350ed9d4662c307aa85221edff8102b575f40b37
|
4
|
+
data.tar.gz: 54b9014f30175593f3e6522e8c2d8a32566ada42709a711f45db84c144c900e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd81175532b4d105a01305a04c2a17b5a7b9674d8fe70986d151aa58f20f50341e8d81decd830319ea3762f46a8959c7b923ff05a209638c631e501d0990035
|
7
|
+
data.tar.gz: c413be93671a9f96dac2b1c1079b06591508681e2a04e69f0019835367661b649f4d96397fa53c315afa5d8f66e4e70739cac0fb155e1e1b9c14eb1bdf2a3b24
|
data/lib/filetype.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Filetype
|
2
2
|
module_function
|
3
3
|
|
4
|
-
VERSION = '1.
|
4
|
+
VERSION = '1.1.0'
|
5
5
|
|
6
6
|
FTYPES = {
|
7
7
|
:actionscript => %w[ as mxml ],
|
@@ -56,6 +56,7 @@ module Filetype
|
|
56
56
|
:sql => %w[ sql ctl ],
|
57
57
|
:tar => %w[ tar ],
|
58
58
|
:text => %w[ txt ],
|
59
|
+
:toml => %w[ toml ],
|
59
60
|
:yaml => %w[ yaml yml ],
|
60
61
|
:xml => %w[ xml dtd ],
|
61
62
|
:xsl => %w[ xsl xslt],
|
data/test/filetype_test.rb
CHANGED
@@ -93,6 +93,7 @@ class FileTypeTest < TestCase
|
|
93
93
|
assert_equal :sql, Filetype.get('foo.sql')
|
94
94
|
assert_equal :sql, Filetype.get('foo.ctl')
|
95
95
|
assert_equal :text, Filetype.get('foo.txt')
|
96
|
+
assert_equal :toml, Filetype.get('foo.toml')
|
96
97
|
assert_equal :yaml, Filetype.get('foo.yaml')
|
97
98
|
assert_equal :yaml, Filetype.get('foo.yml')
|
98
99
|
assert_equal :xml, Filetype.get('foo.xml')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filetype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Jarvis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Find a file type according to a filename or extension
|
14
14
|
email:
|
@@ -44,8 +44,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
|
-
rubygems_version: 3.
|
47
|
+
rubygems_version: 3.0.3
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: Find a files type
|
51
|
-
test_files:
|
51
|
+
test_files:
|
52
|
+
- test/filetype_test.rb
|
53
|
+
- test/test_helper.rb
|