ruby-filemagic 0.7.0 → 0.7.1

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dd49684ae64bd955fc61340d1e21d4d7fef4c7d
4
- data.tar.gz: 046e2e4fa30d2e58e858fada434120ee806d3e44
3
+ metadata.gz: 83f198a83b3db203dc0cc3b9f990dbea13526623
4
+ data.tar.gz: 0b8119e1d47e05d65c3ffb729b8a52c254f340ab
5
5
  SHA512:
6
- metadata.gz: 7206093a63c5ad41229f6ce3abcd8664bdd87692715de6d37167d4ff37ef55b075486ccfcff32eec348c95ffc8bb4ec6260767680213bdfa81c5d1054727ab4a
7
- data.tar.gz: ef8ea05fead211e27412e9af62dfd12a38b13f54381c343478172d36772202060f993bfef687b8201ec3604c4540d55344e74a6cdb421a47fdac7c3a7226b2ef
6
+ metadata.gz: 8a469ee433bb3f4f67dc1597726129f64818c55afe987cad611cde6a15e73f056c120ad4ee26fd346b4ce73061815ced19505cc16f29b0e3fee35b02b705c3c1
7
+ data.tar.gz: c733f22088488246b0d54deb450cc3014e8bafd1eabd0122c97309596c840aa148646d398de164eab8488e4603278277f736eb2dc1da70fcfd0ecf358583b9ca
data/ChangeLog CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = Revision history for ruby-filemagic
4
4
 
5
+ == 0.7.1 [2015-10-27]
6
+
7
+ * List default lib and header directories (pull request #18 by Adam Wróbel).
8
+
5
9
  == 0.7.0 [2015-07-28]
6
10
 
7
11
  * Changed FileMagic#io to optionally rewind input afterwards.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to filemagic version 0.7.0
5
+ This documentation refers to filemagic version 0.7.1
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -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
 
@@ -4,7 +4,7 @@ class FileMagic
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 7
7
- TINY = 0
7
+ TINY = 1
8
8
 
9
9
  class << self
10
10
 
@@ -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("symbolic link to `pyfile'", res.strip)
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.0
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-07-28 00:00:00.000000000 Z
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.2
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.2
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.0 [2015-07-28]:
114
+ ruby-filemagic-0.7.1 [2015-10-27]:
115
115
 
116
- * Changed FileMagic#io to optionally rewind input afterwards.
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.0)
120
+ - ruby-filemagic Application documentation (v0.7.1)
125
121
  - "--charset"
126
122
  - UTF-8
127
123
  - "--line-numbers"