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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a56c7ff8c99578de57f5c70bc4e29e14f163839860edbfb9064e89d6c32d88a
4
- data.tar.gz: 877cc1dc0f8584fb0e824914af1d2e2ac08f15efc66ed085d23b8ff989b39a74
3
+ metadata.gz: 6a2d1ef450a9f562428c44c8350ed9d4662c307aa85221edff8102b575f40b37
4
+ data.tar.gz: 54b9014f30175593f3e6522e8c2d8a32566ada42709a711f45db84c144c900e2
5
5
  SHA512:
6
- metadata.gz: d7f2b4bfb8ebb254c827303f7faa7cae1e590e7262f426f9ed0fc0ba46404c5d8fb25b32edd5adafb2dd3464f70750b3dcb59280064541f7230295410a56e3ef
7
- data.tar.gz: cb5f20e546c4ce6cb3337b4ba9f5915630c9d1a1f769ce41a6f9024795df22c053792b5ec05dfb91e230c40a17f56603c0c123c1958660d919cc84bc656ad4c6
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.0.0'
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],
@@ -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.0.0
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-12 00:00:00.000000000 Z
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.2.9
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