magic 0.2.2 → 0.2.3

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.
Files changed (5) hide show
  1. data/Rakefile +3 -11
  2. data/VERSION +1 -1
  3. data/lib/magic/api.rb +4 -1
  4. data/magic.gemspec +6 -14
  5. metadata +4 -12
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "qoobaa@gmail.com"
13
13
  gem.homepage = "http://github.com/qoobaa/magic"
14
14
  gem.authors = ["Jakub Kuźma"]
15
- gem.add_dependency "ffi", ">= 0.5.1"
15
+ gem.add_dependency "ffi", ">= 0.6.0"
16
16
  gem.add_development_dependency "test-unit", ">= 2.0"
17
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
18
  gem.post_install_message = <<-EOM
@@ -35,19 +35,11 @@ begin
35
35
  | |
36
36
  +-NOTE FOR MAC OS USERS --------------------------------------------+
37
37
  | |
38
- | If you don't have libmagic.1.dylib file in your system |
39
- | |
40
- | find / -name libmagic.1.dylib |
41
- | |
42
- | You need to install it via port command |
38
+ | If you don't have libmagic.1.dylib file in your system, you need |
39
+ | to install it using port command |
43
40
  | |
44
41
  | sudo port install file |
45
42
  | |
46
- | Sometimes you'll also need to set your DYLD_FALLBACK_LIBRARY_PATH |
47
- | environment variable to the directory of the libmagic.1.dylib |
48
- | |
49
- | export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib |
50
- | |
51
43
  +-------------------------------------------------------------------+
52
44
  EOM
53
45
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/lib/magic/api.rb CHANGED
@@ -2,7 +2,10 @@ module Magic
2
2
  module Api #:nodoc:
3
3
  extend FFI::Library
4
4
 
5
- ffi_lib "/opt/local/lib/libmagic.1.dylib", "libmagic.so.1", "libmagic.1.dylib", "magic1.dll"
5
+ ffi_lib ["/opt/local/lib/libmagic.1.dylib",
6
+ "libmagic.1.dylib",
7
+ "libmagic.so.1",
8
+ "magic1.dll"]
6
9
 
7
10
  attach_function :magic_open, [:int], :pointer
8
11
  attach_function :magic_close, [:pointer], :void
data/magic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{magic}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jakub Kuźma"]
@@ -56,19 +56,11 @@ Gem::Specification.new do |s|
56
56
  | |
57
57
  +-NOTE FOR MAC OS USERS --------------------------------------------+
58
58
  | |
59
- | If you don't have libmagic.1.dylib file in your system |
60
- | |
61
- | find / -name libmagic.1.dylib |
62
- | |
63
- | You need to install it via port command |
59
+ | If you don't have libmagic.1.dylib file in your system, you need |
60
+ | to install it using port command |
64
61
  | |
65
62
  | sudo port install file |
66
63
  | |
67
- | Sometimes you'll also need to set your DYLD_FALLBACK_LIBRARY_PATH |
68
- | environment variable to the directory of the libmagic.1.dylib |
69
- | |
70
- | export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib |
71
- | |
72
64
  +-------------------------------------------------------------------+
73
65
  }
74
66
  s.rdoc_options = ["--charset=UTF-8"]
@@ -85,14 +77,14 @@ Gem::Specification.new do |s|
85
77
  s.specification_version = 3
86
78
 
87
79
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
88
- s.add_runtime_dependency(%q<ffi>, [">= 0.5.1"])
80
+ s.add_runtime_dependency(%q<ffi>, [">= 0.6.0"])
89
81
  s.add_development_dependency(%q<test-unit>, [">= 2.0"])
90
82
  else
91
- s.add_dependency(%q<ffi>, [">= 0.5.1"])
83
+ s.add_dependency(%q<ffi>, [">= 0.6.0"])
92
84
  s.add_dependency(%q<test-unit>, [">= 2.0"])
93
85
  end
94
86
  else
95
- s.add_dependency(%q<ffi>, [">= 0.5.1"])
87
+ s.add_dependency(%q<ffi>, [">= 0.6.0"])
96
88
  s.add_dependency(%q<test-unit>, [">= 2.0"])
97
89
  end
98
90
  end
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub Ku\xC5\xBAma"
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.5.1
23
+ version: 0.6.0
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: test-unit
@@ -84,19 +84,11 @@ post_install_message: |
84
84
  | |
85
85
  +-NOTE FOR MAC OS USERS --------------------------------------------+
86
86
  | |
87
- | If you don't have libmagic.1.dylib file in your system |
88
- | |
89
- | find / -name libmagic.1.dylib |
90
- | |
91
- | You need to install it via port command |
87
+ | If you don't have libmagic.1.dylib file in your system, you need |
88
+ | to install it using port command |
92
89
  | |
93
90
  | sudo port install file |
94
91
  | |
95
- | Sometimes you'll also need to set your DYLD_FALLBACK_LIBRARY_PATH |
96
- | environment variable to the directory of the libmagic.1.dylib |
97
- | |
98
- | export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib |
99
- | |
100
92
  +-------------------------------------------------------------------+
101
93
 
102
94
  rdoc_options: