yamlt 0.0.16 → 0.0.17

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: 730c9f4c53be246ab45bcaa68f98b76314e0905e
4
- data.tar.gz: eeb6a443229f76a05eee1ef4f5b77beccdce0c0f
3
+ metadata.gz: fc684bcffe8a3d42c3139420c6234d1bc89677cd
4
+ data.tar.gz: 20d65a153c816821ea297a7a7481c65843dcdc81
5
5
  SHA512:
6
- metadata.gz: 91f26059c36b88fe9aeddd27652334c70910702994fc60408cf41d9dcdd66d26d5ecbd6cd643ec4ac97391e7c11cc7dae8089ab0bdb11715c0a587c573643fbc
7
- data.tar.gz: 349e3d96748fbdcaf00105e1e2aafa503d9c615519f6f87d075b7e13dbdc57409cca85be61f4948b3d73d34d30b7b322d7bff539971d186113476dd25b9a377a
6
+ metadata.gz: aaf7176fcf4f2be1e5790340ec4921ec688f8ce532f4ce8ea32f4957a6981e262a131fc31ccbe04a07660c0002e046337637008070e31e703f9a019cd4b637bd
7
+ data.tar.gz: 754a240b704694b1cb3e210af063069be31fa64c6ff27598843abaf1430bf15043330ee245b00582afbd1ac5b1c7fcdf507de6c78f3b479db36be99039fc1999
data/lib/yamlt/loader.rb CHANGED
@@ -34,7 +34,7 @@ module Yamlt
34
34
  def path0(key)
35
35
  keys = values.keys
36
36
 
37
- raise Yamlt::LoaderException "Locale file should have only one root key" if keys.size != 1
37
+ raise ::Yamlt::LoaderException "Locale file should have only one root key" if keys.size != 1
38
38
 
39
39
  key.split(".").tap do |path|
40
40
  path[0] = keys.first
@@ -58,7 +58,7 @@ module Yamlt
58
58
  @multiline = true
59
59
  end
60
60
 
61
- when /^(\s*)([\'\"]?)(.*)\2\s*$/
61
+ when /^(\s*)(['"]?)(.*)\2\s*$/
62
62
  if $~[1].length % 2 == 0
63
63
  @level = $~[1].length / 2
64
64
  @value = unescape($~[3])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamlt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tangerine Cat