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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e7313b62b4fd9bedf5adcfacc4de7280accdc86
4
- data.tar.gz: be98e23563623fa14974e665cfb6460253151f49
3
+ metadata.gz: 5def3272125e8d0a5f3bbcb3301d57a18d1c8e4e
4
+ data.tar.gz: 747e5bba75ae446c8448936c8b5d691e96fa5464
5
5
  SHA512:
6
- metadata.gz: d49a0f9965efb150ed2dcf453ba4b1002943642dda0715f38269e5fb53a733e1507ac43734de58a665aea14a3cbf4c321b69d56d79c05c512840ccb5e6e7defc
7
- data.tar.gz: 25d6b1195bf4b2e2bb85bef1d1e2f03f9911787874c71ac749300711f6f81cf1d43fc5597142aefa4551ebeaabfbd17a9a8b94ff736cb2522ee4d2684f376506
6
+ metadata.gz: ead5de341dfe6f70187fb0fd06f0a90826eeb053cac2f04440dd2c2394b12da022319c5743c008f6f032ad5f717221034c2a29637c36f6eddc41872af0dd11d2
7
+ data.tar.gz: 753db55e2e73981dc8d7daf089a4687474b831dcb7459aaa46ceeee477ac43b6e1ec2bee374e29cb3df82c3dbbc99d7fdfc15745db638133709d53e35021f4fe
@@ -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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Relaxo
22
22
  module Model
23
- VERSION = "0.10.1"
23
+ VERSION = "0.10.2"
24
24
  end
25
25
  end
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.1
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-24 00:00:00.000000000 Z
11
+ date: 2018-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaxo