awestruct 0.6.3 → 0.6.5

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: 87462b3b89d000f6d65eed4d9c92c31376177bb611ae7a206f33bbd23d6739a2
4
- data.tar.gz: 0d7820bf17266c7733102ad1d89407f71f580a74bbfedd8f39851a175bed98b9
3
+ metadata.gz: 2e84d5fa1a01fd5a6548655e9252162b45fca40855ee4776af94ce792d68ad83
4
+ data.tar.gz: fbd69003ad67d023eebea7651f43fa8f27fe94ddf1afb4fe38ad1cbe7332e921
5
5
  SHA512:
6
- metadata.gz: f45baef6a198a33465c0359e01338af16bfa854f39a2e10227aa6db740fff14e67f6b40c93de9685dc33eea4d546f0847bbafafdb562a7f2bcc10b81a5f42014
7
- data.tar.gz: 8ab966c3a10df83a9844454adc0428f22050fa331676c94081be64b2a119927d324775d89a506d638b62091ae56d09238333466089dfbfe25e37e5bdacac97c7
6
+ metadata.gz: c3ed669aca3f76369a286745da76538004ca3cfd186ee204af544c10d8b61829de267f6926f4c392feeda4918b47fb44ed4ad62dd40f694529b7f2f90ee8e93e
7
+ data.tar.gz: 5b81de54bcb6690ef458657f1a1adfdd41e6224c6690650ca90697b218b48d53ab8fb319bd7f1da5f69aaa256270ea8a45821f419d9f581af880d6656ae5d69c
data/awestruct.gemspec CHANGED
@@ -4,7 +4,7 @@ require 'awestruct/version'
4
4
  spec = Gem::Specification.new do |s|
5
5
  s.name = 'awestruct'
6
6
  s.version = Awestruct::VERSION
7
- s.date = '2023-01-24'
7
+ s.date = '2023-02-07'
8
8
 
9
9
  s.authors = ['Bob McWhirter', 'Jason Porter', 'Lance Ball', 'Dan Allen', 'Torsten Curdt', 'other contributors']
10
10
  s.email = ['bob@mcwhirter.org', 'lightguard.jp@gmail.com', 'lball@redhat.com', 'dan.j.allen@gmail.com', 'tcurdt@vafer.org']
@@ -31,8 +31,8 @@ Haml and Markdown filters are touchy things. Redcarpet or Rdiscount work well if
31
31
  Compass and sass are no longer hard dependencies. You'll need too add them on your own should you want them. We also should be able to work with sassc.
32
32
  EOS
33
33
 
34
- s.add_dependency 'haml', '>= 4.0.5', '< 6.0'
35
- s.add_dependency 'asciidoctor', '>= 1.5.2', '<3.0'
34
+ s.add_dependency 'haml', '>= 4.0.5'
35
+ s.add_dependency 'asciidoctor', '>= 1.5.2'
36
36
  s.add_dependency 'tilt', '~> 2.0', '>= 2.0.1'
37
37
  s.add_dependency 'mime-types', '~> 3.0'
38
38
  s.add_dependency 'rest-client', '~> 2.0'
@@ -1,8 +1,7 @@
1
1
  require 'awestruct/util/exception_helper'
2
+ require 'awestruct/util/yaml_load'
2
3
  require 'awestruct/handlers/base_handler'
3
4
 
4
- require 'yaml'
5
-
6
5
  module Awestruct
7
6
  module Handlers
8
7
  class FrontMatterHandler < BaseHandler
@@ -85,7 +84,7 @@ module Awestruct
85
84
  end
86
85
 
87
86
  begin
88
- @front_matter = yaml_content.empty? ? {} : (YAML.load(yaml_content) || {})
87
+ @front_matter = yaml_content.empty? ? {} : (Awestruct.yaml_load(yaml_content) || {})
89
88
  rescue => e
90
89
  ExceptionHelper.log_message "could not parse #{relative_source_path}"
91
90
  ExceptionHelper.mark_failed
@@ -1,5 +1,5 @@
1
1
  require 'awestruct/handlers/base_handler'
2
- require 'yaml'
2
+ require 'awestruct/util/yaml_load'
3
3
 
4
4
  module Awestruct
5
5
  module Handlers
@@ -11,7 +11,7 @@ module Awestruct
11
11
 
12
12
  def front_matter
13
13
  return @front_matter if @front_matter
14
- @front_matter = YAML.load( delegate.raw_content )
14
+ @front_matter = Awestruct.yaml_load( delegate.raw_content )
15
15
  @front_matter
16
16
  end
17
17
 
@@ -7,7 +7,7 @@ module Awestruct
7
7
  end
8
8
 
9
9
  def self.yaml_load_file(str)
10
- return YAML.load_file(str) unless YAML.method('load_file').parameters.any? {|k,v| v == :permitted_classes}
10
+ return YAML.load_file(str) unless YAML.method('load').parameters.any? {|k,v| v == :permitted_classes}
11
11
  YAML.load_file(str, permitted_classes: [Date, Symbol])
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awestruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob McWhirter
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2023-01-24 00:00:00.000000000 Z
16
+ date: 2023-02-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: haml
@@ -22,9 +22,6 @@ dependencies:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
24
  version: 4.0.5
25
- - - "<"
26
- - !ruby/object:Gem::Version
27
- version: '6.0'
28
25
  type: :runtime
29
26
  prerelease: false
30
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -32,9 +29,6 @@ dependencies:
32
29
  - - ">="
33
30
  - !ruby/object:Gem::Version
34
31
  version: 4.0.5
35
- - - "<"
36
- - !ruby/object:Gem::Version
37
- version: '6.0'
38
32
  - !ruby/object:Gem::Dependency
39
33
  name: asciidoctor
40
34
  requirement: !ruby/object:Gem::Requirement
@@ -42,9 +36,6 @@ dependencies:
42
36
  - - ">="
43
37
  - !ruby/object:Gem::Version
44
38
  version: 1.5.2
45
- - - "<"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
39
  type: :runtime
49
40
  prerelease: false
50
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,9 +43,6 @@ dependencies:
52
43
  - - ">="
53
44
  - !ruby/object:Gem::Version
54
45
  version: 1.5.2
55
- - - "<"
56
- - !ruby/object:Gem::Version
57
- version: '3.0'
58
46
  - !ruby/object:Gem::Dependency
59
47
  name: tilt
60
48
  requirement: !ruby/object:Gem::Requirement