magic 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -0
- data/VERSION +1 -1
- data/lib/magic/api.rb +1 -1
- metadata +34 -31
data/Rakefile
CHANGED
@@ -28,6 +28,11 @@ begin
|
|
28
28
|
| |
|
29
29
|
| http://gnuwin32.sourceforge.net/packages/file.htm |
|
30
30
|
| |
|
31
|
+
| You'll also need to set your PATH environment variable to the |
|
32
|
+
| directory of the magic1.dll file |
|
33
|
+
| |
|
34
|
+
| set PATH=C:\Program Files\GnuWin32\bin;%PATH% |
|
35
|
+
| |
|
31
36
|
+-NOTE FOR MAC OS USERS --------------------------------------------+
|
32
37
|
| |
|
33
38
|
| If you don't have libmagic.1.dylib file in your system |
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/magic/api.rb
CHANGED
@@ -8,7 +8,7 @@ module Magic
|
|
8
8
|
attach_function :magic_close, [:pointer], :void
|
9
9
|
attach_function :magic_file, [:pointer, :string], :pointer
|
10
10
|
# attach_function :magic_descriptor, [:pointer, :int], :string
|
11
|
-
attach_function :magic_buffer, [:pointer, :pointer, :
|
11
|
+
attach_function :magic_buffer, [:pointer, :pointer, :uint], :pointer
|
12
12
|
attach_function :magic_error, [:pointer], :string
|
13
13
|
# attach_function :magic_setflags, [:pointer, :int], :int
|
14
14
|
attach_function :magic_load, [:pointer, :string], :int
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jakub Ku\xC5\xBAma"
|
@@ -61,36 +61,39 @@ has_rdoc: true
|
|
61
61
|
homepage: http://github.com/qoobaa/magic
|
62
62
|
licenses: []
|
63
63
|
|
64
|
-
post_install_message:
|
65
|
-
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
71
|
-
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
93
|
-
|
64
|
+
post_install_message: "+-NOTE FOR LINUX USERS----------------------------------------------+\n\
|
65
|
+
| |\n\
|
66
|
+
| Install libmagic using your package manager, e.g. |\n\
|
67
|
+
| |\n\
|
68
|
+
| sudo apt-get install file |\n\
|
69
|
+
| |\n\
|
70
|
+
+-NOTE FOR WINDOWS USERS -------------------------------------------+\n\
|
71
|
+
| |\n\
|
72
|
+
| Install File for Windows from |\n\
|
73
|
+
| |\n\
|
74
|
+
| http://gnuwin32.sourceforge.net/packages/file.htm |\n\
|
75
|
+
| |\n\
|
76
|
+
| You'll also need to set your PATH environment variable to the |\n\
|
77
|
+
| directory of the magic1.dll file |\n\
|
78
|
+
| |\n\
|
79
|
+
| set PATH=C:Program FilesGnuWin32\bin;%PATH% |\n\
|
80
|
+
| |\n\
|
81
|
+
+-NOTE FOR MAC OS USERS --------------------------------------------+\n\
|
82
|
+
| |\n\
|
83
|
+
| If you don't have libmagic.1.dylib file in your system |\n\
|
84
|
+
| |\n\
|
85
|
+
| find / -name libmagic.1.dylib |\n\
|
86
|
+
| |\n\
|
87
|
+
| You need to install it via port command |\n\
|
88
|
+
| |\n\
|
89
|
+
| sudo port install file |\n\
|
90
|
+
| |\n\
|
91
|
+
| Sometimes you'll also need to set your DYLD_FALLBACK_LIBRARY_PATH |\n\
|
92
|
+
| environment variable to the directory of the libmagic.1.dylib |\n\
|
93
|
+
| |\n\
|
94
|
+
| export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib |\n\
|
95
|
+
| |\n\
|
96
|
+
+-------------------------------------------------------------------+\n"
|
94
97
|
rdoc_options:
|
95
98
|
- --charset=UTF-8
|
96
99
|
require_paths:
|