XProperties 1.1.5 → 1.1.6
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/xproperties.rb +2 -2
- data/setup.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 645917b00cfdfab3823773e32efe13eff706c76735992c06464208092eda5788
|
|
4
|
+
data.tar.gz: 25eee91cfaa85a3e6343ed31c8b90e9121921d86251620b7e51017a7389352f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3ccae49ae980cb44d2d5c07d009d601328d3eb3bf50457188fbb735872744cb0a6e19f0ae6df946be917a6928b6edd33207fa2c02eceb2520f79b4b2b1e1dc3
|
|
7
|
+
data.tar.gz: e2ffbb77e65ed8aafbf4f4e7d3c45a3452629520e5ef93243d8e4ba066dc43badfc9afb0760022d5f65eaa2245e1f5cce2e2dfb21aba28ad1548c4720848ba57
|
data/lib/xproperties.rb
CHANGED
|
@@ -145,7 +145,6 @@ class Properties
|
|
|
145
145
|
# @raise ArgumentError When the file contains a malformed
|
|
146
146
|
# Unicode escape sequence.
|
|
147
147
|
# @return [String]
|
|
148
|
-
private :load_convert
|
|
149
148
|
def load_convert(value, is_convert_key = false)
|
|
150
149
|
if is_convert_key
|
|
151
150
|
value = value.gsub /\\ /, " "
|
|
@@ -176,12 +175,12 @@ class Properties
|
|
|
176
175
|
end
|
|
177
176
|
value
|
|
178
177
|
end
|
|
178
|
+
private :load_convert
|
|
179
179
|
|
|
180
180
|
# Converts chars to escape sequences.
|
|
181
181
|
#
|
|
182
182
|
# @param value String to convert.
|
|
183
183
|
# @return [String]
|
|
184
|
-
private :save_convert
|
|
185
184
|
def save_convert(value, is_convert_key = false)
|
|
186
185
|
buffer = []
|
|
187
186
|
if is_convert_key
|
|
@@ -202,6 +201,7 @@ class Properties
|
|
|
202
201
|
end
|
|
203
202
|
buffer.join
|
|
204
203
|
end
|
|
204
|
+
private :save_convert
|
|
205
205
|
|
|
206
206
|
# Setting the value of a property.
|
|
207
207
|
#
|
data/setup.gemspec
CHANGED