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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44c1b70621ff4a70696742d721daea2dffee76ac
4
- data.tar.gz: 22cf1ed7c44ba3d5aa5c2c0626b236f05e19a8dc
3
+ metadata.gz: a4f1c17b576b4d09af74b23be341966c114871a1
4
+ data.tar.gz: 27257c7a0b2a88a5e72847961b0a17e4861b5760
5
5
  SHA512:
6
- metadata.gz: e6c6aa484e291c1bba697dedd88410f3289df2a0c7d4194caf34e0cd5f28965ace6b37dbc15ab4fa00f3127963a5b260f3a28c4b2f9d29b49166fbc99a442040
7
- data.tar.gz: a61eccd9fe52b00cc0eeecaa63a7656b2340b623c37f571965304c95cbdec7fc33153157a76d0b35fbdfb318bc69f495611c7b725f6247b71a80ced39ffb3dad
6
+ metadata.gz: 905aab5dbda12ac0aa1a0f115d59dc0de4b765451cda3191347fb9f7912214a6f44a5436ccf746666593038044c061b57856b7fd8b518c9c3f9e230e4cff932d
7
+ data.tar.gz: d8dc24558a91662202d37d6a70e90a1150ab26ac784a2ad49b2b2263b6586271dbb1b48b9a81de874062c7bb5da0cd7d147f4b676cab584faa919d7424158326
data/changelog.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.8.1
2
+ - remove errant `binding.pry` in rescue block
3
+
1
4
  # 0.8.0
2
5
  - add feature for passing `middleware:` option with sources to alter incoming data
3
6
  - allow passing `index:` option to collections to define custom index (or `false` for no index)
@@ -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
- begin
64
- built_data = { basename => get_data(source, extension) }
65
- parts[1..-1].reverse.each do |part|
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
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
  module DataSource
3
3
 
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-data_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Sloan