awsome 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/awsome/requirements.rb +2 -1
  2. metadata +1 -1
@@ -32,7 +32,8 @@ module Awsome
32
32
  private
33
33
 
34
34
  def find_trait(name)
35
- traits[name] || raise "no trait called #{name}"
35
+ raise "no trait called #{name}" unless traits.include?(name)
36
+ traits[name]
36
37
  end
37
38
 
38
39
  # implements trait inheritance
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: