immosquare-yaml 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-yaml/version.rb +1 -1
- data/lib/immosquare-yaml.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60ef4af0d0357bbda277347303b629eb35f4c4f038b11aba183d732676e621d3
|
4
|
+
data.tar.gz: d59812063819a531adeb28b043ec49b3834d220f17bfb908b293ab914f502771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72bf381243a7fa6f5cbebc540b5bf8849f082bee1c63fc05e74f06bbe840470df1b9484fdd2edaf0fe3f1c0745ddcb37103fcbe1d46ac5e97f3ffa6b1203b52e
|
7
|
+
data.tar.gz: 0544a1ffd258cbb0ba1ade56aa1a0b01aa3037a06121796d309389ed731ceec23e38c4be41959ae083228f142e3f26289b3b611f3a8c0107474de31fd41e1a94
|
data/lib/immosquare-yaml.rb
CHANGED
@@ -75,7 +75,7 @@ module ImmosquareYaml
|
|
75
75
|
##===========================================================================##
|
76
76
|
clean_yml(file_path)
|
77
77
|
parsed_yml = parse(file_path)
|
78
|
-
parsed_yml = parsed_yml.sort_by_key
|
78
|
+
parsed_yml = parsed_yml.sort_by_key
|
79
79
|
parsed_yml = dump(parsed_yml)
|
80
80
|
|
81
81
|
##===========================================================================##
|
@@ -134,7 +134,7 @@ module ImmosquareYaml
|
|
134
134
|
## parse the file & sort if necessary
|
135
135
|
##===========================================================================##
|
136
136
|
parsed_xml = parse_xml(file_path)
|
137
|
-
parsed_xml = parsed_xml.sort_by_key
|
137
|
+
parsed_xml = parsed_xml.sort_by_key if options[:sort]
|
138
138
|
|
139
139
|
##===========================================================================##
|
140
140
|
## Restore original content
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IMMO SQUARE
|
@@ -11,7 +11,7 @@ cert_chain: []
|
|
11
11
|
date: 2023-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
@@ -25,12 +25,15 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: immosquare-extensions
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.1.4
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,16 +41,16 @@ dependencies:
|
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '0'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.1.4
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: iso-639
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
|
-
- - ">="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 0.1.2
|
51
54
|
type: :runtime
|
52
55
|
prerelease: false
|
53
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -55,9 +58,6 @@ dependencies:
|
|
55
58
|
- - "~>"
|
56
59
|
- !ruby/object:Gem::Version
|
57
60
|
version: '0'
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.1.2
|
61
61
|
description: IMMOSQUARE-YAML is a specialized Ruby gem tailored primarily for parsing
|
62
62
|
and dumping YML translation files, addressing challenges faced with other parsers
|
63
63
|
like interpreting translation keys as booleans, multi-line strings, and more.
|