immosquare-yaml 0.1.26 → 0.1.27

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: 896c1bf0647c93ce8c4d3c0a94da529d1f63f8e7e91541c6cac3d88a7edc6f1f
4
- data.tar.gz: 48a6746f1840b50eb8be76985da5f8e7e6a2812ad532cc45b0ffebb07c6f2275
3
+ metadata.gz: de0be4bb7791b8644c8ac692d1d15ec2632ca8b026cf834bca21fcdfe265c469
4
+ data.tar.gz: 14df18840e34827289a76adcbfdde4aa96e6a0ade2f6e0b4913feb97451b92f0
5
5
  SHA512:
6
- metadata.gz: 5d53aeb26beb740b12f71715e9320fe230e817f0926e8cabf2cdbb404cf5ec9d8b28e9d5d4ea6b62b090bd5a2bd87a983fb1520e87c8edb77b511342a9ad537e
7
- data.tar.gz: 89ba2a15d0f64e377dd4d1484e6afcf6f5b821631c16cf3b90d8af124095f863e947d8e10aea9373d27d2edf90e2cacf3f3051359fbbf5c17c96352086374282
6
+ metadata.gz: eb8f99e6579320e5760c080383cdf3f6c0a828a90eb2e65f756fc14680e1262d96034e4dc87bc48d56c7f4307015962dcb615e1ff6b1e51ee69155328cf05644
7
+ data.tar.gz: 0c042f2c93d8e68adf9c1d3680b48a1c7c575b65cb109533c238b00e72f7567ca15c444eba24361ded63984f08c72d4b541296395d2f382402127c042a136975
@@ -1,3 +1,3 @@
1
1
  module ImmosquareYaml
2
- VERSION = "0.1.26".freeze
2
+ VERSION = "0.1.27".freeze
3
3
  end
@@ -626,6 +626,17 @@ module ImmosquareYaml
626
626
  value.start_with?(SPACE) ||
627
627
  value.end_with?(SPACE)
628
628
  end
629
+
630
+ ##============================================================##
631
+ ## Final clean to prevent
632
+ ## "yes": YES
633
+ ## "no": NO
634
+ ##============================================================##
635
+ value = "\"#{value}\"" if RESERVED_KEYS.include?(value)
636
+
637
+ ##============================================================##
638
+ ## Return the cleaned value
639
+ ##============================================================##
629
640
  value
630
641
  end
631
642
  is_array.instance_of?(String) ? values.first : "[#{values.join(", ")}]"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
- - IMMO SQUARE
7
+ - immosquare
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immosquare-extensions
@@ -45,7 +45,7 @@ files:
45
45
  - lib/immosquare-yaml/shared_methods.rb
46
46
  - lib/immosquare-yaml/version.rb
47
47
  - lib/tasks/immosquare-yaml.rake
48
- homepage: https://github.com/IMMOSQUARE/immosquare-yaml
48
+ homepage: https://github.com/immosquare/immosquare-yaml
49
49
  licenses:
50
50
  - MIT
51
51
  metadata: {}
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.4.13
67
+ rubygems_version: 3.5.22
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: A YAML parser optimized for translation files.