wedge 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wedge/plugins/form/validations.rb +2 -2
- data/lib/wedge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cc03dd1e943450e9ac281e2e70c71e119909bac
|
|
4
|
+
data.tar.gz: d7066f50276c808748676e32ecb6d740f1b1f4ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 808548fd23b4324e9dd229004def699ff7d5360bc8cce5082f1953027b31adafa431e2f5969c1a3f4170695cd8b699cfc924f293007996180494b6d6228a6ac0
|
|
7
|
+
data.tar.gz: 6211d3ffc026253ffda27ab24bd8cccf0080eae323ef9deecaa2d52982db98a0a95a64ce5f3d6df95410fa86195e2e2e5145a8988d8d45dd24017285a60bc908
|
|
@@ -101,7 +101,7 @@ class Wedge
|
|
|
101
101
|
# Hash of errors for each attribute in this model.
|
|
102
102
|
def _errors
|
|
103
103
|
@_errors ||= Hash.new do |hash, key|
|
|
104
|
-
data = _accessor_options[key].key?(:form) ? {} : []
|
|
104
|
+
data = _accessor_options[key] && _accessor_options[key].key?(:form) ? {} : []
|
|
105
105
|
alias_key = _aliases[key] || key
|
|
106
106
|
_model_errors[alias_key] = hash[key] = data
|
|
107
107
|
end
|
|
@@ -264,7 +264,7 @@ class Wedge
|
|
|
264
264
|
def assert(value, error)
|
|
265
265
|
value or begin
|
|
266
266
|
name = error.shift.to_s
|
|
267
|
-
atts = _accessor_options[name][:atts] || false
|
|
267
|
+
atts = _accessor_options[name] ? (_accessor_options[name][:atts] || false) : false
|
|
268
268
|
error = atts ? error.first.select {|k, _| atts.include?(k) } : error
|
|
269
269
|
errors = _errors[name]
|
|
270
270
|
|
data/lib/wedge/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wedge
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.66
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- cj
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opal-wedge
|