graphiti_spec_helpers 1.0.alpha.7 → 1.0.alpha.8

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: 1f7176abf26909175332508362b71101218ac907
4
- data.tar.gz: e04f16807e2d6ba7fabb16410a788e410d99f127
3
+ metadata.gz: e825d4aa479a4e8cc4bed8f5dd7a87052560be8b
4
+ data.tar.gz: 6042846678fae63bcb8ae9a1292c0d15fe84e25d
5
5
  SHA512:
6
- metadata.gz: '0619e1b271c49321a0c30846ae803ae58d672df9445caa12ab4d8866f541fa18725df104ed945ee0dd70a32780e42369afaac10f607c14cef0f152a411c23279'
7
- data.tar.gz: cff14d3e9e23f8f281a727b8f88126776c2706e75a24c32a5d1949fa19cb028a1f2b4e06b1bc9029d3255d6297ba96a6c677f4fcffe9b0d9e65a7b7d61778091
6
+ metadata.gz: 1c447b38930bfb65c489d8a0efbad3c86346be25fbfb95e4e3036604950bae762c460db997a58a223923e8cc3977353a35df7d4780898744852f656333613128
7
+ data.tar.gz: c621f9efa5780f118b82ea0dd21a3fd3569dd0be2a653d33914cf8db635c61cd86d8dc3e991edf3cfa5c88f59e9500dbdc1f51ae127a81509a23be235b13fec2
@@ -60,7 +60,8 @@ module GraphitiSpecHelpers
60
60
  end
61
61
 
62
62
  def method_missing(id, *args, &blk)
63
- if error = @errors.find { |e| e.attribute.to_sym == id }
63
+ if error = @errors.select { |e| e.attribute.to_sym == id }
64
+ error = error[0] if error.length == 1
64
65
  return error
65
66
  else
66
67
  super
@@ -1,3 +1,3 @@
1
1
  module GraphitiSpecHelpers
2
- VERSION = "1.0.alpha.7"
2
+ VERSION = "1.0.alpha.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.alpha.7
4
+ version: 1.0.alpha.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond