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 +4 -4
- data/lib/immosquare-yaml/version.rb +1 -1
- data/lib/immosquare-yaml.rb +11 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de0be4bb7791b8644c8ac692d1d15ec2632ca8b026cf834bca21fcdfe265c469
|
4
|
+
data.tar.gz: 14df18840e34827289a76adcbfdde4aa96e6a0ade2f6e0b4913feb97451b92f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8f99e6579320e5760c080383cdf3f6c0a828a90eb2e65f756fc14680e1262d96034e4dc87bc48d56c7f4307015962dcb615e1ff6b1e51ee69155328cf05644
|
7
|
+
data.tar.gz: 0c042f2c93d8e68adf9c1d3680b48a1c7c575b65cb109533c238b00e72f7567ca15c444eba24361ded63984f08c72d4b541296395d2f382402127c042a136975
|
data/lib/immosquare-yaml.rb
CHANGED
@@ -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.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- immosquare
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
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/
|
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.
|
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.
|