sixarm_ruby_magic_number_type 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -1
- data/CONTRIBUTING.md +28 -0
- data/README.md +11 -11
- data/VERSION +1 -1
- metadata +45 -45
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e992d6cc9f33ea901187b3b8e72fc339b86133ab
|
4
|
+
data.tar.gz: 78fd9286110c64644e6c46ddbd7e67a58a33fcd6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1c3c12c650cc8be5213dd6646748fd909121e03c42ddd84c7d3e2704e0d941061549da16ba2abeb8c8e6f755e4bc783396db3057fc37e435e2dc3e8e2eae29c1
|
7
|
+
data.tar.gz: 99813f14b89f75bfc2ce5184bbe72e5a9686d57dae87a7a29cecea4283b4099fbd22ef36da674c8de6ee1786941960202f54570f922f3b617880c3da53d5f65b
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
5A0Sj8q�f���g
|
2
|
+
��`)���tb��Ȇ\M\����z�g֨p���`�H�!钞<�;U:�m"�B�0uw�'���B���:�RI�̓�Fգ�R��Q�V���~���(���9�Ob��;�Z�Ӏ�@�s���!��&D4f�ɘP:�ȸ�ͨs�N��ř�L�Rs9���ΛTI���8�/���5�j���>������p� r_�+,Z �Qa��N��^�%
|
3
|
+
h5=�P�_���������
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
Thank you for contributing!
|
4
|
+
|
5
|
+
If you would like to contribute a donation, an easy way is to use PayPal to sixarm@sixarm.com.
|
6
|
+
|
7
|
+
If you would like to contribute help, the next section is for you.
|
8
|
+
|
9
|
+
|
10
|
+
## Contributing to the source
|
11
|
+
|
12
|
+
We love pull requests for improvments to the source code and documentation.
|
13
|
+
|
14
|
+
There are three easy steps:
|
15
|
+
|
16
|
+
1. Fork the repo.
|
17
|
+
|
18
|
+
* Before you do any work please run our existing tests to make sure the code runs cleanly.
|
19
|
+
|
20
|
+
2. Work as you like.
|
21
|
+
|
22
|
+
* Please create tests. This helps us know that all your code runs cleanly.
|
23
|
+
|
24
|
+
3. Push to your fork and submit a pull request.
|
25
|
+
|
26
|
+
* We'll take a look as soon as we can; this is typically within a business day.
|
27
|
+
|
28
|
+
Thank you again!
|
data/README.md
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
|
9
9
|
## Introduction
|
10
10
|
|
11
|
-
|
12
11
|
Magic numbers are the first bits of a file or data stream
|
13
12
|
which uniquely identify the type of file or data stream.
|
14
13
|
|
@@ -28,7 +27,7 @@ Install:
|
|
28
27
|
|
29
28
|
Gemfile:
|
30
29
|
|
31
|
-
gem "sixarm_ruby_magic_number_type", "~>2.0.0"
|
30
|
+
gem "sixarm_ruby_magic_number_type", "~>2.0", ">=2.0.1"
|
32
31
|
|
33
32
|
Require:
|
34
33
|
|
@@ -63,13 +62,14 @@ Typical uses of magic numbers:
|
|
63
62
|
|
64
63
|
Compare:
|
65
64
|
|
66
|
-
* MIME::Types ruby library
|
65
|
+
* MIME::Types ruby library
|
67
66
|
* Unix magic() command for testing files on disk
|
68
67
|
* http://shared-mime.rubyforge.org/
|
69
68
|
|
70
69
|
|
71
70
|
## Changes
|
72
71
|
|
72
|
+
* 2015-01-05 2.0.1 Updates for Ruby 2.2: signing certificate, gemspec, tilde version
|
73
73
|
* 2012-09-08 2.0.0 Upgrade with more formats, samples, classes, and hex packing
|
74
74
|
* 2012-04-20 1.2.0 Upgrade to much faster algorithm
|
75
75
|
* 2012-03-14 1.1.0 Update docs, tests
|
@@ -88,17 +88,17 @@ You may choose any of these open source licenses:
|
|
88
88
|
* Perl Artistic License
|
89
89
|
* Ruby License
|
90
90
|
|
91
|
-
The software is provided "as is", without warranty of any kind,
|
92
|
-
express or implied, including but not limited to the warranties of
|
93
|
-
merchantability, fitness for a particular purpose and noninfringement.
|
91
|
+
The software is provided "as is", without warranty of any kind,
|
92
|
+
express or implied, including but not limited to the warranties of
|
93
|
+
merchantability, fitness for a particular purpose and noninfringement.
|
94
94
|
|
95
|
-
In no event shall the authors or copyright holders be liable for any
|
96
|
-
claim, damages or other liability, whether in an action of contract,
|
97
|
-
tort or otherwise, arising from, out of or in connection with the
|
95
|
+
In no event shall the authors or copyright holders be liable for any
|
96
|
+
claim, damages or other liability, whether in an action of contract,
|
97
|
+
tort or otherwise, arising from, out of or in connection with the
|
98
98
|
software or the use or other dealings in the software.
|
99
99
|
|
100
100
|
This license is for the included software that is created by SixArm;
|
101
|
-
some of the included software may have its own licenses, copyrights,
|
101
|
+
some of the included software may have its own licenses, copyrights,
|
102
102
|
authors, etc. and these do take precedence over the SixArm license.
|
103
103
|
|
104
|
-
Copyright (c) 2005-
|
104
|
+
Copyright (c) 2005-2012 Joel Parker Henderson
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
metadata
CHANGED
@@ -1,51 +1,48 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_magic_number_type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- SixArm
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain:
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
L2RORkllUkVIek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bzwTAcBgNVHREEFTATgRFzaXhhcm1Ac2l4YXJtLmNvbTAc
|
25
|
+
BgNVHRIEFTATgRFzaXhhcm1Ac2l4YXJtLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
H08J7cTJyfm4mXpdM0FFr/f/syQSl2ymJWtcosuKA79A/vYMZ+n9B1gpuJmegjNt
|
27
|
+
lmYByeU50jJJ7JNdkvkTagHCZaxtzclWx6AR5gTd8V/sBKbTWtHe72pOWz/stQs2
|
28
|
+
xD8tQZvdAuBtRXx4ys6e3vigvYjdmTHUR9tT/NGCwmWj7KTk3mwNKBmuQGWTVWrV
|
29
|
+
h6r4cFMt3X5Zu+euYxHqDuwWyub9hp4s30/ea38CoYNdIZcSFtpGuvhwVDU0x5dg
|
30
|
+
sWRVEyjnjnNuAeLP9zv43IDXjS22L2efhap7IOinYjcecpfXJgQaU+6BFAY4sdkQ
|
31
|
+
S1STYSfs3qySBxxAeEyZTw==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
39
34
|
dependencies: []
|
40
|
-
description:
|
35
|
+
description: Tool to parse the first bytes of a file and compare it to a list of known
|
36
|
+
mime types.
|
41
37
|
email: sixarm@sixarm.com
|
42
38
|
executables: []
|
43
39
|
extensions: []
|
44
40
|
extra_rdoc_files: []
|
45
41
|
files:
|
46
|
-
- .gemtest
|
47
|
-
-
|
42
|
+
- ".gemtest"
|
43
|
+
- CONTRIBUTING.md
|
48
44
|
- README.md
|
45
|
+
- Rakefile
|
49
46
|
- VERSION
|
50
47
|
- lib/sixarm_ruby_magic_number_type.rb
|
51
48
|
- lib/sixarm_ruby_magic_number_type/file.rb
|
@@ -54,42 +51,46 @@ files:
|
|
54
51
|
- test/sixarm_ruby_magic_number_type_test.rb
|
55
52
|
- test/sixarm_ruby_magic_number_type_test/file_test.rb
|
56
53
|
- test/sixarm_ruby_magic_number_type_test/io_test.rb
|
57
|
-
- test/sixarm_ruby_magic_number_type_test/
|
58
|
-
- test/sixarm_ruby_magic_number_type_test/samples/sample.html
|
59
|
-
- test/sixarm_ruby_magic_number_type_test/samples/sample.xml
|
54
|
+
- test/sixarm_ruby_magic_number_type_test/samples/sample.bz2
|
60
55
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.fit
|
61
56
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.gif
|
57
|
+
- test/sixarm_ruby_magic_number_type_test/samples/sample.gz
|
58
|
+
- test/sixarm_ruby_magic_number_type_test/samples/sample.html
|
62
59
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.jpg
|
63
60
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.png
|
64
61
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.ps
|
65
62
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.ras
|
66
63
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.sgi
|
67
64
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.tiff
|
68
|
-
- test/sixarm_ruby_magic_number_type_test/samples/sample.
|
69
|
-
- test/sixarm_ruby_magic_number_type_test/
|
65
|
+
- test/sixarm_ruby_magic_number_type_test/samples/sample.xml
|
66
|
+
- test/sixarm_ruby_magic_number_type_test/string_test.rb
|
70
67
|
homepage: http://sixarm.com/
|
71
|
-
licenses:
|
68
|
+
licenses:
|
69
|
+
- BSD
|
70
|
+
- GPL
|
71
|
+
- MIT
|
72
|
+
- PAL
|
73
|
+
- Various
|
74
|
+
metadata: {}
|
72
75
|
post_install_message:
|
73
76
|
rdoc_options: []
|
74
77
|
require_paths:
|
75
78
|
- lib
|
76
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
80
|
requirements:
|
79
|
-
- -
|
81
|
+
- - ">="
|
80
82
|
- !ruby/object:Gem::Version
|
81
83
|
version: '0'
|
82
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
85
|
requirements:
|
85
|
-
- -
|
86
|
+
- - ">="
|
86
87
|
- !ruby/object:Gem::Version
|
87
88
|
version: '0'
|
88
89
|
requirements: []
|
89
90
|
rubyforge_project:
|
90
|
-
rubygems_version:
|
91
|
+
rubygems_version: 2.4.5
|
91
92
|
signing_key:
|
92
|
-
specification_version:
|
93
|
+
specification_version: 4
|
93
94
|
summary: SixArm.com » Ruby » Magic number type inspects bytes to decide on a mime
|
94
95
|
type
|
95
96
|
test_files:
|
@@ -109,4 +110,3 @@ test_files:
|
|
109
110
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.tiff
|
110
111
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.bz2
|
111
112
|
- test/sixarm_ruby_magic_number_type_test/samples/sample.gz
|
112
|
-
has_rdoc: true
|
metadata.gz.sig
CHANGED
Binary file
|