roda-component 0.1.64 → 0.1.65

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: 585941da8dc2b0f423bce32adec769167f4c5936
4
- data.tar.gz: d64e768a681477b5a8e5de4a22eae416d047c3fd
3
+ metadata.gz: a0c512ecac4ecf7a3b0274e5c52becace09c1e69
4
+ data.tar.gz: d7171c6866fffed0dea124e208765b83cd3dd4e8
5
5
  SHA512:
6
- metadata.gz: 466afd88b9a0e4cd3bca04c85d8a73e4e48124bfb6323b83c418690c6a2589aecddafb547840975939dac6eaf1100d623808dfdfa15a405dc180548fb64f7b1f
7
- data.tar.gz: 349b910eddfa9d566e76cf3305d0ae2010e5d5766474d546a3a828aff72a99f594296b5d0a731f58ed59a7521ae00d76775e117edf2eac5d028b5c652ce93a5a
6
+ metadata.gz: e3929aae6ee8227aa3bcdf06048cf179fccbd1a0c8c77e2babbd7ac7f5ae9d90f2c60a76ba73696b7a8db4835032780a809c72672072d66107a3720276c031e3
7
+ data.tar.gz: 70889b0ca0c6bf642535d3af62a77e3f359ce40f8c7d96ad858eb4a6fc95f86d436063772a380224f76ea27f506a186e75a33d1bf6eebf5996e433cef44521fd
@@ -215,9 +215,7 @@ class Roda
215
215
  d_options[:override_errors] = d_errors[key].first
216
216
 
217
217
  display_errors d_options, &block
218
- elsif block_given?
219
- block.call(d_keys, error)
220
- else
218
+ elsif !block_given? || block.call(d_keys, error) == false
221
219
  name = d_keys.each_with_index.map do |field, i|
222
220
  i != 0 ? "[#{field}]" : field
223
221
  end.join
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.64"
3
+ VERSION = "0.1.65"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.64
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal