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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e9d5d195fac914fea149b3c5a8bcc156d4233c1
4
- data.tar.gz: 94ec79d8bb133b7f5e40b88d5526fbef9b73bcf2
3
+ metadata.gz: cb7ea61c423e478497132fc64e8737f388f69354
4
+ data.tar.gz: 8501760b1869a164f4f0fea670b018c437535043
5
5
  SHA512:
6
- metadata.gz: b0f604b1bed356e30f270f7b07df82e5e715d03950c78f24911213c6c55b3094507c8c41587bebf249a0db2c5c7a0c7e0250f4802718bbcf83b49e0f65e328d8
7
- data.tar.gz: 487e0d25bf9aa7b08dec5f1056617a9897d78de24f1e0a98f5bceff60a1b04b3fc21e4f35f1769a8e07d4ab3c8c93b88a745b13d4fc509d040ec4d9a4fd79cf5
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
- [ level_string,
22
- "# #{prefix} ",
23
- @line.value.inspect
24
- ].join("")
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.27
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-06 00:00:00.000000000 Z
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: