middleman-data_source 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +3 -0
- data/lib/middleman/data_source/extension.rb +5 -9
- data/lib/middleman/data_source/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f1c17b576b4d09af74b23be341966c114871a1
|
4
|
+
data.tar.gz: 27257c7a0b2a88a5e72847961b0a17e4861b5760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 905aab5dbda12ac0aa1a0f115d59dc0de4b765451cda3191347fb9f7912214a6f44a5436ccf746666593038044c061b57856b7fd8b518c9c3f9e230e4cff932d
|
7
|
+
data.tar.gz: d8dc24558a91662202d37d6a70e90a1150ab26ac784a2ad49b2b2263b6586271dbb1b48b9a81de874062c7bb5da0cd7d147f4b676cab584faa919d7424158326
|
data/changelog.md
CHANGED
@@ -60,16 +60,12 @@ module Middleman
|
|
60
60
|
else
|
61
61
|
original_callback = app_inst.data.callbacks[parts.first]
|
62
62
|
app_inst.data.callbacks[parts.first] = Proc.new do
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
built_data = { part => built_data }
|
67
|
-
end
|
68
|
-
|
69
|
-
attempt_merge_then_enhance built_data, original_callback
|
70
|
-
rescue => e
|
71
|
-
binding.pry
|
63
|
+
built_data = { basename => get_data(source, extension) }
|
64
|
+
parts[1..-1].reverse.each do |part|
|
65
|
+
built_data = { part => built_data }
|
72
66
|
end
|
67
|
+
|
68
|
+
attempt_merge_then_enhance built_data, original_callback
|
73
69
|
end
|
74
70
|
end
|
75
71
|
end
|