yamlt 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yamlt/parser/line/serializer.rb +9 -4
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb7ea61c423e478497132fc64e8737f388f69354
|
4
|
+
data.tar.gz: 8501760b1869a164f4f0fea670b018c437535043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6d0e974b023f3674fc2bdb95b880970bed80e24324d137cb12f1bfe77f195b64a97656c84d5fcd35f3d4ea49f4db849a2d6280404f884067a9840328d41f2aa
|
7
|
+
data.tar.gz: 096d2aeb0c68046a79f02009b171cd0823a646d797b542b0352dc4f31afbba70c108b1155fcb0159de0bf4ad682508cc3ea3a081bc31d74ce5984d8b48b9ad08
|
@@ -18,10 +18,15 @@ module Yamlt
|
|
18
18
|
if prefix
|
19
19
|
prefix = "Original:" unless prefix.is_a?(String)
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
unless @line.value.include?($/)
|
22
|
+
[ level_string,
|
23
|
+
"# #{prefix} ",
|
24
|
+
@line.value.inspect
|
25
|
+
].join("")
|
26
|
+
else
|
27
|
+
([ [ level_string, "# #{prefix}" ].join("") ] +
|
28
|
+
@line.value.split($/).map{|s| [ level_string, "# #{s}" ].join("") }).join($/)
|
29
|
+
end
|
25
30
|
end
|
26
31
|
end
|
27
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yamlt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tangerine Cat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -69,4 +69,3 @@ signing_key:
|
|
69
69
|
specification_version: 4
|
70
70
|
summary: Take yaml structure from locale file and apply to another one
|
71
71
|
test_files: []
|
72
|
-
has_rdoc:
|