evt-schema 2.3.1.4 → 2.3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/schema/schema.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21778211cd91ca4a41c6a91142c1f3958bff68ee231488d62856466daa5845f7
|
4
|
+
data.tar.gz: c652ec4fea993000c18b0bd53ef7720eca15d2991dbdb734faba3bac3341255d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edea229bf8c1e6c04fe8f2ad71c31ffc68bcf8b94d18aab0ab71e1056bb1defa2602b61947ea008690ef8fe48860b3ac933659238fba6b7b0174f3e8b2a033d
|
7
|
+
data.tar.gz: 6088449c1e91ed61b0f53e9ed39519eda7320c63e12574591cbf77888f8007a40988587da51df80ccc3c04c0dcdc26fdbdd9ad4727288d5172bec1236071865b
|
data/lib/schema/schema.rb
CHANGED
@@ -41,7 +41,7 @@ module Schema
|
|
41
41
|
|
42
42
|
check = proc do |val|
|
43
43
|
unless val.nil? || Boolean.(val)
|
44
|
-
raise Schema::Attribute::TypeError, "#{val.inspect} of type #{val.class.name} cannot be assigned to attribute #{attribute_name} of type Boolean (Strict: #{strict.inspect})"
|
44
|
+
raise Schema::Attribute::TypeError, "#{val.inspect} of type #{val.class.name} cannot be assigned to attribute #{attribute_name.inspect} of type Boolean (Strict: #{strict.inspect})"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
elsif !type.nil?
|
@@ -51,11 +51,11 @@ module Schema
|
|
51
51
|
unless val.nil?
|
52
52
|
if strict
|
53
53
|
if not val.instance_of?(type)
|
54
|
-
raise Schema::Attribute::TypeError, "#{val.inspect} of type #{val.class.name} cannot be assigned to attribute #{attribute_name} of type #{type.name} (Strict: #{strict.inspect})"
|
54
|
+
raise Schema::Attribute::TypeError, "#{val.inspect} of type #{val.class.name} cannot be assigned to attribute #{attribute_name.inspect} of type #{type.name} (Strict: #{strict.inspect})"
|
55
55
|
end
|
56
56
|
else
|
57
57
|
if not val.is_a?(type)
|
58
|
-
raise Schema::Attribute::TypeError, "#{val.inspect} of type #{val.class.name} cannot be assigned to attribute #{attribute_name} of type #{type.name} (Strict: #{strict.inspect})"
|
58
|
+
raise Schema::Attribute::TypeError, "#{val.inspect} of type #{val.class.name} cannot be assigned to attribute #{attribute_name.inspect} of type #{type.name} (Strict: #{strict.inspect})"
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.1.
|
4
|
+
version: 2.3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-attribute
|