ruby-magic 0.5.5 → 0.6.0

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
  SHA256:
3
- metadata.gz: da869b933af45fec81ddefbcb35a75e4856019c6a9a352508fc96b92e4a8fbc9
4
- data.tar.gz: 5ddae92ffb976ceb006b425f140c79ab72a6e81f2605220ab7a495a6fae2e3a6
3
+ metadata.gz: 98a9a0fb729dd8712aa15b564abaad47d28da005d3b66060b3e20fc9386da446
4
+ data.tar.gz: 86d563eee76e957a624499a5cb9866b7df371074dfac9389c66db5fb95960441
5
5
  SHA512:
6
- metadata.gz: '09f7b9c6389962422da7aa106c6f5c9c3f713388c414d0e2e4b68ce34d03751af53bacd1a17fc8c456ce3a7d2e67cb2993376653d6b47297736fae3a07c57120'
7
- data.tar.gz: 021474e328de0d6984e7c1836f74fd53b71e59f1dcfc6994181f02a04b76020938a5e56f100ac7b8b9f835bd11642ebbd688d5afa415d17a719cdc184996dc78
6
+ metadata.gz: 9da91dd007a7a06570a2de4ca0694d8e825fce083d22c879066f6a23538a165321d10145e67dabedffb47c12425d7e87d3904362a0e0b2b6c8381586bde83a3c
7
+ data.tar.gz: db546632084213ce1a9e1f65ee93083d9d2b97997428cdb6d6f97e0294dd4a0e63fc0b0f6d01af1a1e988df3364fc9f0a5631dcd18f8cad050babbcf8022895b
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.0] - 2023-03-14
11
+
12
+ ### Added
13
+
14
+ - Add --with-magic-flags option for building libmagic.
15
+
10
16
  ## [0.5.5] - 2023-01-23
11
17
 
12
18
  ### Changed
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # File Magic in Ruby
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/ruby-magic.svg)](http://badge.fury.io/rb/ruby-magic)
4
- [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
3
+ [![Gem Version](http://badge.fury.io/rb/ruby-magic.svg)](http://badge.fury.io/rb/ruby-magic)
4
+ [![License](http://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://opensource.org/licenses/Apache-2.0)
5
5
 
6
6
  ## Introduction
7
7
 
data/dependencies.yml CHANGED
@@ -3,7 +3,7 @@ libmagic:
3
3
  sha256: "3751c7fba8dbc831cb8d7cc8aff21035459b8ce5155ef8b0880a27d028475f3b"
4
4
  # Manually verified checksum:
5
5
  #
6
- # $ gpg --verify file-5.43.tar.gz.asc file-5.43.tar.gz
6
+ # $ gpg --verify file-5.44.tar.gz.asc file-5.44.tar.gz
7
7
  # gpg: Signature made Tue 27 Dec 2022 03:27:03 JST
8
8
  # gpg: using DSA key BE04995BA8F90ED0C0C176C471112AB16CB33B3A
9
9
  # gpg: Good signature from "Christos Zoulas (personal key) <christos@zoulas.com>" [unknown]
data/ext/magic/extconf.rb CHANGED
@@ -34,6 +34,9 @@ MAGIC_HELP_MESSAGE = <<~HELP
34
34
  --enable-cross-build
35
35
  Enable cross-build mode. (You probably do not want to set this manually.)
36
36
 
37
+ --with-magic-flags=<flags>
38
+ Build libmagic with these configure flags (such as --disable-zstdlib)
39
+
37
40
  Flags only used when using system libraries:
38
41
 
39
42
  Related to libmagic:
@@ -101,12 +104,17 @@ def process_recipe(name, version, static_p, cross_p)
101
104
  end
102
105
  end
103
106
 
104
- recipe.configure_options = [
107
+ configure_options = [
105
108
  "--disable-silent-rules",
106
109
  "--disable-dependency-tracking",
107
110
  "--enable-fsect-man5"
108
111
  ]
109
112
 
113
+ libmagic_flags = with_config('magic-flags')
114
+ configure_options += libmagic_flags.split(' ') if libmagic_flags
115
+
116
+ recipe.configure_options = configure_options
117
+
110
118
  if static_p
111
119
  recipe.configure_options += [
112
120
  "--disable-shared",
data/lib/magic/version.rb CHANGED
@@ -4,7 +4,7 @@ class Magic
4
4
  #
5
5
  # Current version of _Magic_.
6
6
  #
7
- VERSION = '0.5.5'.freeze
7
+ VERSION = '0.6.0'.freeze
8
8
 
9
9
  class << self
10
10
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Wilczyński
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_portile2
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubygems_version: 3.4.5
92
+ rubygems_version: 3.4.7
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: File Magic in Ruby