yaml_b_sides 0.5.1 → 0.5.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: b2a6241679b6fd1bc8e6b28d565dcfa36e43eed2
4
- data.tar.gz: bec0a6df05d8764e1988f315b97b0520a5721681
3
+ metadata.gz: d7b6fdad3ccba61022d67aacc39ec787bd2970ef
4
+ data.tar.gz: f1e0f08bbb4bcb87eac4acc4149ff10008f75cdc
5
5
  SHA512:
6
- metadata.gz: b80e109d53ccde4b5407793e82e6c250cb1a6cb28198bfe6f220ec51fe6559b7ebefca951a02b33e0116f9e4b1989adb6585862bb135f3d2e3a3a4e2ede73d0d
7
- data.tar.gz: eceb56c79dc140824c44b8c77d8c04e9f987d8687e2e184c08ff3dbba9b9ec9cda4d94be80ebb26301684615e3e21bb6ae94a7a4b15e84d174f01f78b759de61
6
+ metadata.gz: e86bbc1e686c76f1fc7bddeb97306397a31e921330a25fde7f15a98911406a195fa6f4563192ff38fe58ca3dbee1382835b1efab236eb04c1a18dbea1f65453d
7
+ data.tar.gz: e1dede7bad70c5ef093785560f34390740a6dc0a6e715c2546f493d00dfa149ef342034c77d7b1de4a702055164aa843453dab3a78307e71e427c7e416d7e287
@@ -5,5 +5,8 @@ module YamlBSides
5
5
 
6
6
  class AssociationError < StandardError
7
7
  end
8
+
9
+ class InvalidFieldError < StandardError
10
+ end
8
11
  end
9
12
  end
@@ -8,7 +8,7 @@ module YamlBSides
8
8
  if @attributes.has_key? method
9
9
  method = @attributes[method]
10
10
  else
11
- super
11
+ raise YamlBSides::Errors::InvalidFieldError, "#{self.class}:#{@attributes[:id]}: Invalid field: '#{method}'"
12
12
  end
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module YamlBSides
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_b_sides
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Orlov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport