relaxo-model 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaxo/model/base.rb +4 -0
- data/lib/relaxo/model/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: 5def3272125e8d0a5f3bbcb3301d57a18d1c8e4e
|
4
|
+
data.tar.gz: 747e5bba75ae446c8448936c8b5d691e96fa5464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ead5de341dfe6f70187fb0fd06f0a90826eeb053cac2f04440dd2c2394b12da022319c5743c008f6f032ad5f717221034c2a29637c36f6eddc41872af0dd11d2
|
7
|
+
data.tar.gz: 753db55e2e73981dc8d7daf089a4687474b831dcb7459aaa46ceeee477ac43b6e1ec2bee374e29cb3df82c3dbbc99d7fdfc15745db638133709d53e35021f4fe
|
data/lib/relaxo/model/base.rb
CHANGED
@@ -106,6 +106,10 @@ module Relaxo
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def property(name, klass = nil)
|
109
|
+
if @properties.key? name
|
110
|
+
raise ArgumentError.new("Property #{name.inspect} already defined!")
|
111
|
+
end
|
112
|
+
|
109
113
|
@properties[name] = klass
|
110
114
|
|
111
115
|
self.send(:define_method, name) do
|
data/lib/relaxo/model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaxo-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaxo
|