rolistic 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f91550f1333bb0466e4a35bf3567cc51c4ef53c7
4
- data.tar.gz: 27263d1e23f74b953ddbb807d6d98dd01f39c1c9
3
+ metadata.gz: 76c03ece2348ff3459a5a43e7d45adf0eeb2493f
4
+ data.tar.gz: 4509a6f3c5c0768d03b76b8be9fa753d70e90d35
5
5
  SHA512:
6
- metadata.gz: d6b2a485bf18ed8ee2b5a31072d7df69a7099b14b1986a462d8f8dd2fe97b8106471ef4022b435f6fdd6def7ab22e256d0391da5f77aeab48c7f600be9d9ea98
7
- data.tar.gz: 4e7e13bc52bd18ea3bce59ad1de109b31141d3ad26a84b0accf170044e76ef16d655b3fcc20acbf260ef4f5171f1e0dbd4046d68bec1e9662231cd099fc2144c
6
+ metadata.gz: ea490af5effae8a0722378a75e25876164b96d1e15da6380babb0df8705e11bdffd39cb720e475dde06c2bd5533112ae068cb80c6bc5be6c7fd4cc0f5132cdd6
7
+ data.tar.gz: 95bf731807c0e34535fda73797e68fbcaf98f7e0650349e77446966fcb4560dadb5caa2158efcebd39a71a7de16fc60fe569f3a9d9f2e9ddbf3b9cc88b002697
@@ -25,7 +25,7 @@ module Rolistic
25
25
 
26
26
  def traits_map
27
27
  return @traits_map if defined?(@traits_map)
28
- @traits_map = {everything: Everything}
28
+ @traits_map = {}
29
29
  end
30
30
 
31
31
  def abilities_for(name)
@@ -44,6 +44,7 @@ module Rolistic
44
44
  def role(name, *traits_and_abilities, **options)
45
45
  abilities = traits_and_abilities.reduce([]) do |m, t_or_a|
46
46
  case t_or_a
47
+ when :everything then Everything
47
48
  when Symbol then m + abilities_for_trait(t_or_a)
48
49
  when Array then m + t_or_a
49
50
  else t_or_a
@@ -1,3 +1,3 @@
1
1
  module Rolistic
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rolistic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Zulauf