document_mapper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/document_mapper/version.rb +1 -1
- data/lib/document_mapper/yaml_parsing.rb +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: d9ab11d53186b4024ab9e6d6dccbe9b87e79ac6bcc5eaca018ad6ac5aba88b06
|
4
|
+
data.tar.gz: c0431bd44df0df6e1d98f559155a457cde183332c7dd931ad49d071aa0479611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0d93678a4030ed955b38d7b529821a5c04dc7e13cb4d9f0b948387f01be750e744a9521e5710e326cff5fa7a6a7c23f7bd680fe4ca4e76e5318f8193d0af91
|
7
|
+
data.tar.gz: a2801844b698e9510e4734eef79df903e23dcd6449d34477bef0ba4bbd0d0eda22fe88d4952f07d7c4182642f807cf9462929d35e4174587678313580b0c57d5
|
@@ -8,7 +8,7 @@ module DocumentMapper
|
|
8
8
|
|
9
9
|
if @content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
|
10
10
|
@content = @content[($1.size + $2.size)..-1]
|
11
|
-
self.attributes.update(yaml_load($1, file_path).
|
11
|
+
self.attributes.update(yaml_load($1, file_path).transform_keys(&:to_sym))
|
12
12
|
end
|
13
13
|
|
14
14
|
file_name = File.basename(file_path)
|