ruby-filemagic 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README +1 -1
- data/ext/filemagic/extconf.rb +14 -2
- data/lib/filemagic/version.rb +1 -1
- data/test/filemagic_test.rb +4 -1
- metadata +7 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83f198a83b3db203dc0cc3b9f990dbea13526623
|
4
|
+
data.tar.gz: 0b8119e1d47e05d65c3ffb729b8a52c254f340ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a469ee433bb3f4f67dc1597726129f64818c55afe987cad611cde6a15e73f056c120ad4ee26fd346b4ce73061815ced19505cc16f29b0e3fee35b02b705c3c1
|
7
|
+
data.tar.gz: c733f22088488246b0d54deb450cc3014e8bafd1eabd0122c97309596c840aa148646d398de164eab8488e4603278277f736eb2dc1da70fcfd0ecf358583b9ca
|
data/ChangeLog
CHANGED
data/README
CHANGED
data/ext/filemagic/extconf.rb
CHANGED
@@ -1,10 +1,22 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
|
3
|
+
HEADER_DIRS = [
|
4
|
+
'/opt/local/include', # MacPorts
|
5
|
+
'/usr/local/include', # compiled from source and Homebrew
|
6
|
+
'/usr/include', # system
|
7
|
+
]
|
8
|
+
|
9
|
+
LIB_DIRS = [
|
10
|
+
'/opt/local/lib', # MacPorts
|
11
|
+
'/usr/local/lib', # compiled from source and Homebrew
|
12
|
+
'/usr/lib', # system
|
13
|
+
]
|
14
|
+
|
3
15
|
$CFLAGS << ' -Wall' if ENV['WALL']
|
4
16
|
$LDFLAGS << ' -static-libgcc' if RUBY_PLATFORM =~ /cygwin|mingw|mswin/
|
5
17
|
|
6
|
-
dir_config('magic')
|
7
|
-
dir_config('gnurx')
|
18
|
+
dir_config('magic', HEADER_DIRS, LIB_DIRS)
|
19
|
+
dir_config('gnurx', HEADER_DIRS, LIB_DIRS)
|
8
20
|
|
9
21
|
have_library('gnurx')
|
10
22
|
|
data/lib/filemagic/version.rb
CHANGED
data/test/filemagic_test.rb
CHANGED
@@ -26,7 +26,10 @@ magic file from #{FileMagic.path}
|
|
26
26
|
|
27
27
|
if File.symlink?(path_to('pylink'))
|
28
28
|
res = fm.file(path_to('pylink'))
|
29
|
-
assert_equal(
|
29
|
+
assert_equal(match_version(
|
30
|
+
0 => "symbolic link to `pyfile'",
|
31
|
+
5.22 => 'symbolic link to pyfile'
|
32
|
+
), res.strip)
|
30
33
|
end
|
31
34
|
|
32
35
|
fm.close
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-filemagic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Whitton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hen
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '0.8'
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.8.
|
23
|
+
version: 0.8.3
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '0.8'
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.8.
|
33
|
+
version: 0.8.3
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rake
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,17 +111,13 @@ licenses:
|
|
111
111
|
metadata: {}
|
112
112
|
post_install_message: |2+
|
113
113
|
|
114
|
-
ruby-filemagic-0.7.
|
114
|
+
ruby-filemagic-0.7.1 [2015-10-27]:
|
115
115
|
|
116
|
-
*
|
117
|
-
* New method FileMagic.library_version (+magic_version+).
|
118
|
-
* New method FileMagic#descriptor (+magic_descriptor+).
|
119
|
-
* New method FileMagic#fd.
|
120
|
-
* Added new constants from file 5.23.
|
116
|
+
* List default lib and header directories (pull request #18 by Adam Wróbel).
|
121
117
|
|
122
118
|
rdoc_options:
|
123
119
|
- "--title"
|
124
|
-
- ruby-filemagic Application documentation (v0.7.
|
120
|
+
- ruby-filemagic Application documentation (v0.7.1)
|
125
121
|
- "--charset"
|
126
122
|
- UTF-8
|
127
123
|
- "--line-numbers"
|