ruby-magic 0.0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +45 -0
- data/CHANGES.rdoc +45 -0
- data/COPYRIGHT +1 -1
- data/README.rdoc +3 -2
- data/Rakefile +2 -1
- data/TODO +10 -7
- data/VERSION +1 -1
- data/bin/magic +1 -1
- data/ext/magic/common.h +15 -6
- data/ext/magic/extconf.rb +31 -11
- data/ext/magic/functions.c +65 -10
- data/ext/magic/functions.h +13 -2
- data/ext/magic/ruby-magic.c +28 -14
- data/ext/magic/ruby-magic.h +1 -1
- data/lib/magic.rb +20 -10
- data/lib/magic/core/file.rb +8 -9
- data/lib/magic/core/string.rb +4 -5
- data/lib/magic/version.rb +2 -2
- data/ruby-magic.gemspec +6 -12
- data/test/helpers/magic_test_helper.rb +35 -0
- data/test/test_constants.rb +53 -4
- data/test/test_magic.rb +270 -69
- metadata +9 -88
metadata
CHANGED
@@ -1,95 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-magic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Wilczynski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '10.1'
|
20
|
-
- - '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 10.1.1
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '10.1'
|
30
|
-
- - '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 10.1.1
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rdoc
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ~>
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '4.1'
|
40
|
-
- - '>='
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 4.1.1
|
43
|
-
type: :development
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ~>
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '4.1'
|
50
|
-
- - '>='
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 4.1.1
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: test-unit
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '2.5'
|
60
|
-
- - '>='
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 2.5.5
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '2.5'
|
70
|
-
- - '>='
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 2.5.5
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: rake-compiler
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - ~>
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '0.9'
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.9.2
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.9'
|
90
|
-
- - '>='
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 0.9.2
|
11
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
93
13
|
description: |
|
94
14
|
File Magic in Ruby.
|
95
15
|
|
@@ -123,6 +43,7 @@ files:
|
|
123
43
|
- lib/magic/core/string.rb
|
124
44
|
- lib/magic/version.rb
|
125
45
|
- ruby-magic.gemspec
|
46
|
+
- test/helpers/magic_test_helper.rb
|
126
47
|
- test/test_constants.rb
|
127
48
|
- test/test_magic.rb
|
128
49
|
homepage: http://about.me/kwilczynski
|
@@ -136,17 +57,17 @@ require_paths:
|
|
136
57
|
- lib
|
137
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
59
|
requirements:
|
139
|
-
- -
|
60
|
+
- - ">="
|
140
61
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
62
|
+
version: 1.9.2
|
142
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
64
|
requirements:
|
144
|
-
- -
|
65
|
+
- - ">="
|
145
66
|
- !ruby/object:Gem::Version
|
146
67
|
version: '0'
|
147
68
|
requirements: []
|
148
|
-
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 2.4.5
|
150
71
|
signing_key:
|
151
72
|
specification_version: 4
|
152
73
|
summary: File Magic in Ruby
|