aixm 1.3.3 → 1.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49f4c417f17321e81579c5ec2f63e94e95e3e5b466def5304051e508aac0db04
4
- data.tar.gz: 78dcbe01cde6c2eac9bf49ed2f8828a96f1ea112393e2730e2e2a902177ee0b3
3
+ metadata.gz: 9fe9565888ad7ed4bcf509211380c7b7102551ebe9ae30a3aa18810e51eb6c30
4
+ data.tar.gz: 4b2d98978eeedb786c6df9ee15d1a58965da68661e8e8fe3e74706d5f2d403bc
5
5
  SHA512:
6
- metadata.gz: f6901fd3474f200ef670161e5377c550c882e9adbc24fd34c3a790b6ca7c44157f5509ee737c85ad10187ce93acaba7b81635e385b461944f5cbf29436f522f5
7
- data.tar.gz: 9a204bb3611c4405252dfff814ab5d10f628b85936067ccf10358786446ad719c25753cb1a9d8aafb26540311034e6c6c30994cad96fe44a73807ce847fe14ef
6
+ metadata.gz: 0437a116319aaa8aef2bb8107b6d86481686a735734ba172ed451cc73924389fb4a160d518d87d817ef7a79f84c3388b9d39f3d925bab8329b93c84e3b92c1bb
7
+ data.tar.gz: c8fdeec76012ffe37a66096f6e57f620ea9a2c0b731ff569f8b325fec2a315cdab74080ddf53553880c5acfa7df17b24059047dd935802821c0d637955cc54ec
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 1.3.4
6
+
7
+ #### Additions
8
+ * `ckmid` skips XML schema validation if `-s` argument is set.
9
+
5
10
  ## 1.3.3
6
11
 
7
12
  #### Changes
@@ -44,11 +44,13 @@ module AIXM
44
44
 
45
45
  class Ckmid
46
46
  def initialize(**options)
47
+ @options = options
47
48
  OptionParser.new do |o|
48
49
  o.banner = <<~END
49
50
  Check mid attributes of OFMX files.
50
51
  Usage: #{File.basename($0)} files
51
52
  END
53
+ o.on('-s', '--[no-]skip-validation', 'skip XML schema validation (default: false)') { @options[:skip_validation] = _1 }
52
54
  o.on('-A', '--about', 'show author/license information and exit') { AIXM::Executables.about }
53
55
  o.on('-V', '--version', 'show version and exit') { AIXM::Executables.version }
54
56
  end.parse!
@@ -62,7 +64,10 @@ module AIXM
62
64
  fail "#{file} is not OFMX" unless file.match?(/\.ofmx$/)
63
65
  AIXM.ofmx!
64
66
  document = File.open(file) { Nokogiri::XML(_1) }
65
- errors = Nokogiri::XML::Schema(File.open(AIXM.schema(:xsd))).validate(document)
67
+ errors = []
68
+ unless @options[:skip_validation]
69
+ errors += Nokogiri::XML::Schema(File.open(AIXM.schema(:xsd))).validate(document)
70
+ end
66
71
  errors += AIXM::PayloadHash::Mid.new(document).check_mid
67
72
  fail (["#{file} is not valid..."] + errors).join("\n") if errors.any?
68
73
  success && true
data/lib/aixm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module AIXM
2
- VERSION = "1.3.3".freeze
2
+ VERSION = "1.3.4".freeze
3
3
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aixm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Schwyn
@@ -29,7 +29,7 @@ cert_chain:
29
29
  kAyiRqgxF4dJviwtqI7mZIomWL63+kXLgjOjMe1SHxfIPo/0ji6+r1p4KYa7o41v
30
30
  fwIwU1MKlFBdsjkd
31
31
  -----END CERTIFICATE-----
32
- date: 2023-01-05 00:00:00.000000000 Z
32
+ date: 2023-01-09 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: nokogiri
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  - !ruby/object:Gem::Version
313
313
  version: '0'
314
314
  requirements: []
315
- rubygems_version: 3.4.2
315
+ rubygems_version: 3.4.3
316
316
  signing_key:
317
317
  specification_version: 4
318
318
  summary: Builder for AIXM/OFMX aeronautical information
metadata.gz.sig CHANGED
Binary file