yaml-model 1.2.0 → 1.2.1

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.
@@ -1,3 +1,3 @@
1
1
  class YAML_Model
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
data/lib/yaml-model.rb CHANGED
@@ -37,7 +37,7 @@ class YAML_Model
37
37
  end
38
38
 
39
39
  def self.assert_type( variable, types )
40
- assert( [types].flatten.inject(false){|result,type|result||=(type===variable)}, "Invalid type: `#{variable.class.name}`" )
40
+ assert( [types].flatten.inject(false){|result,type|result||=(type===variable)}, "Invalid type: `#{variable.class.name}` for `#{self.name}::#{variable}` should be of: #{types.inspect}" )
41
41
  end
42
42
 
43
43
  def self.type attr, types, options = {}, &block
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 0
9
- version: 1.2.0
8
+ - 1
9
+ version: 1.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clive Crous
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- hash: -869954371
99
+ hash: 257227219
100
100
  segments:
101
101
  - 0
102
102
  version: "0"
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- hash: -869954371
108
+ hash: 257227219
109
109
  segments:
110
110
  - 0
111
111
  version: "0"