filetype 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7da5ca6b8463afc99514cb1346cd6c986148263e6633472e20657860ba62381a
4
+ data.tar.gz: a62159977aae79e14e9553e6661e5fa95ffa341afbd1a4faefc98dd760613e8c
5
+ SHA512:
6
+ metadata.gz: 66ccab1a90806a41636f6654f6e7d47a21504c152282f66f0396f215848b4bdd499d1508e6dc59c34cc519d64ba3ac6ccefcc5050a80457bc59fc6f65cf6f4c5
7
+ data.tar.gz: 1409df6893b1e41fdeb6c71473476aa3db4bfb0200982d6520163c7b446a75769bc1c8a12f283c59f9b4ba5391ad4f0dec64b213a3c392f6d5c2c1fd4bf287b6
data/lib/filetype.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Filetype
2
2
  module_function
3
3
 
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
 
6
6
  FTYPES = {
7
7
  :actionscript => %w[ as mxml ],
@@ -17,6 +17,7 @@ module Filetype
17
17
  :css => %w[ css ],
18
18
  :diff => %w[ diff patch ],
19
19
  :elisp => %w[ el ],
20
+ :epub => %w[ epub ],
20
21
  :erb => %w[ rhtml erb ],
21
22
  :erlang => %w[ erl hrl ],
22
23
  :exe => %w[ exe ],
@@ -37,6 +37,7 @@ class FileTypeTest < TestCase
37
37
  assert_equal :csharp, Filetype.get('foo.cs')
38
38
  assert_equal :css, Filetype.get('foo.css')
39
39
  assert_equal :elisp, Filetype.get('foo.el')
40
+ assert_equal :epub, Filetype.get('foo.epub')
40
41
  assert_equal :erb, Filetype.get('foo.rhtml')
41
42
  assert_equal :erb, Filetype.get('foo.erb')
42
43
  assert_equal :erlang, Filetype.get('foo.erl')
@@ -108,4 +109,4 @@ class FileTypeTest < TestCase
108
109
  assert_equal :bar, Filetype.get('hello.foo')
109
110
  end
110
111
 
111
- end
112
+ end
data/test/test_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- class TestCase < MiniTest::Unit::TestCase
1
+ class TestCase < Minitest::Test
2
2
  def self.test(name, &block)
3
3
  test_name = "test_#{name.gsub(/\s+/, '_')}".to_sym
4
4
  defined = instance_method(test_name) rescue false
@@ -11,4 +11,4 @@ class TestCase < MiniTest::Unit::TestCase
11
11
  end
12
12
  end
13
13
  end
14
- end
14
+ end
metadata CHANGED
@@ -1,31 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: filetype
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Lee Jarvis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2011-05-09 00:00:00 +01:00
14
- default_executable:
11
+ date: 2021-10-12 00:00:00.000000000 Z
15
12
  dependencies: []
16
-
17
13
  description: Find a file type according to a filename or extension
18
- email:
14
+ email:
19
15
  - lee@jarvis.co
20
16
  executables: []
21
-
22
17
  extensions: []
23
-
24
18
  extra_rdoc_files: []
25
-
26
- files:
27
- - .gemtest
28
- - .gitignore
19
+ files:
20
+ - ".gemtest"
21
+ - ".gitignore"
29
22
  - LICENSE
30
23
  - README.md
31
24
  - Rakefile
@@ -33,34 +26,26 @@ files:
33
26
  - lib/filetype.rb
34
27
  - test/filetype_test.rb
35
28
  - test/test_helper.rb
36
- has_rdoc: true
37
29
  homepage: http://github.com/injekt/filetype
38
30
  licenses: []
39
-
31
+ metadata: {}
40
32
  post_install_message:
41
33
  rdoc_options: []
42
-
43
- require_paths:
34
+ require_paths:
44
35
  - lib
45
- required_ruby_version: !ruby/object:Gem::Requirement
46
- none: false
47
- requirements:
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
48
38
  - - ">="
49
- - !ruby/object:Gem::Version
50
- version: "0"
51
- required_rubygems_version: !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
54
43
  - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
57
46
  requirements: []
58
-
59
- rubyforge_project:
60
- rubygems_version: 1.6.2
47
+ rubygems_version: 3.2.9
61
48
  signing_key:
62
- specification_version: 3
49
+ specification_version: 4
63
50
  summary: Find a files type
64
- test_files:
65
- - test/filetype_test.rb
66
- - test/test_helper.rb
51
+ test_files: []