makit 0.0.50 → 0.0.52

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: 64340bba48407ffa89557a7b90cb32f85edc071c929b69ab4d0aab8766485344
4
- data.tar.gz: aa84958ecdd413fe6d9648c8b405c47831998f123b539139a185ec6d0d577ab7
3
+ metadata.gz: cc138cefdba52891763ca4d7e041a2f3cedfff8541196d3bb9ef6b3088fb47a4
4
+ data.tar.gz: c4b27dbb557f477a0c529712d86e38cee4529f002d2aa0b7f8d3dcd2de11df2a
5
5
  SHA512:
6
- metadata.gz: d45e02545c54fa25d33aa38a9a7f662f6ef1be87f2bae21a218a28f9e87814c53ee5f743b2bd5e379a62774e52085a55f447edec23817845d97fe4513c37444e
7
- data.tar.gz: df50c413323903f11c776fe1deac3bca58c5d9c4a0c87081417ae553d5fff06ed7f82dcbac0c5b7b334eb3df3900ccc9fa581f52c659673829d29e727fb4595d
6
+ metadata.gz: 05eac5838e159fadd8bec82832030ea00b305a0cc6776e330bbe4a25162d47a62866b5911a61589b68da56b622f903d3520c32fc0324d593b84f522f54e9ac2d
7
+ data.tar.gz: c99a898f3cffbd398265a405f4cc0937099aea43d36a8999d3e080c625feb817a1c12ce8140cb52ad0e9ec30a794c1765f7de162668361e144eecbd0dc353648
data/lib/makit/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makit
4
- VERSION = "0.0.50"
4
+ VERSION = "0.0.52"
5
5
 
6
6
  class Version
7
7
  # given an array of version strings, return the highest version
@@ -32,7 +32,7 @@ module Makit
32
32
  when ".wxs"
33
33
  Makit::Version.detect_from_file(path, / Version="([\d\.]+)"/)
34
34
  when ".yml"
35
- Makit::Version.detect_from_file(path, /VERSION:\s?(['|"])([\d\.]+)\1/)
35
+ Makit::Version.detect_from_file(path, /VERSION:\s*["']?([\d\.]+)["']?/)
36
36
  else
37
37
  raise "unrecognized file type"
38
38
  end
data/lib/makit/yaml.rb ADDED
@@ -0,0 +1,19 @@
1
+ require 'yaml'
2
+
3
+ # frozen_string_literal: true
4
+
5
+ # This module provides classes for the Makit gem.
6
+ module Makit
7
+ class Yaml
8
+ def self.validate_yaml(file_path)
9
+ begin
10
+ YAML.load_file(file_path)
11
+ puts "#{file_path} is a valid YAML file."
12
+ rescue Psych::SyntaxError => e
13
+ raise"YAML validation failed for #{file_path}: #{e}"
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.50
4
+ version: 0.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-18 00:00:00.000000000 Z
11
+ date: 2024-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -206,6 +206,7 @@ files:
206
206
  - lib/makit/v1/makit.v1_services_pb.rb
207
207
  - lib/makit/version.rb
208
208
  - lib/makit/wix.rb
209
+ - lib/makit/yaml.rb
209
210
  - lib/makit/zip.rb
210
211
  homepage: https://gitlab.com/gems-rb/makit
211
212
  licenses: