antex 0.1.4 → 0.2.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: 35c1e0a463b933c75ff632e38fae2866ff215548b66d2a6b51f680b7d22deb7f
4
- data.tar.gz: 04a76f67a969d53a808d36c8189436678e7b38e6a091c5f7aa81c205eaede343
3
+ metadata.gz: f65e6060f4753c3154d2c91194da8502c4eb75b01e38c62dc9a2929cf5409d31
4
+ data.tar.gz: c814aa39e278783c897d6fc9d7b47eb6b7d6ea399929a381d3edece8922316a8
5
5
  SHA512:
6
- metadata.gz: 8f602e1001dace9b0f34f14e81ca276ff6ea88a8eefdfa4cc20c0f2fbc0c8edc9b76b37afca2a2ddf9931d925459ace00b431cce10541d251d7223c69b29a72c
7
- data.tar.gz: 4cfa6e7bc871af1643670dffd0af8190d1f0202214f2160819c6b8efd88a72f54260d491060757e1414e25fd34bc8d7a1c9b7f498220ac9d47060fd5d59495cb
6
+ metadata.gz: eceea10353e466dfb39a8ee2dd90a9201a2beea447afd1033032873316e4185d075b41b077afe23593192a9d05e360d3491f8e55ab18c7055c2a8d109a517ad6
7
+ data.tar.gz: 281c949132396d7ade573983079bb9ae521a24e1dd865e265a48feb83675ecbe99fba410b078d23ff9e0fefe8ca55a651f96af84ddb34568c503acf2d1b869bf
data/lib/antex/job.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rubygems/version'
4
+
3
5
  module Antex
4
6
  # This class is the beating heart of {Antex}.
5
7
  #
@@ -22,8 +24,13 @@ module Antex
22
24
  include LiquidHelpers
23
25
 
24
26
  # The configuration defaults for a +latexmk+/+dvisvgm+ pipeline.
27
+ if Gem::Version.new(Psych::VERSION) < Gem::Version.new("4.0.0")
25
28
  DEFAULTS =
26
29
  YAML.load_file(File.join(File.dirname(__FILE__), 'defaults.yml')).freeze
30
+ else
31
+ DEFAULTS =
32
+ YAML.load_file(File.join(File.dirname(__FILE__), 'defaults.yml'), permitted_classes: [Regexp]).freeze
33
+ end
27
34
 
28
35
  # @return [Hash] the initialization options
29
36
  attr_reader :options
data/lib/antex/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Antex
4
- VERSION = '0.1.4'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Brasolin
@@ -77,9 +77,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '2.6'
80
- - - "<"
81
- - !ruby/object:Gem::Version
82
- version: '3.1'
83
80
  required_rubygems_version: !ruby/object:Gem::Requirement
84
81
  requirements:
85
82
  - - ">="