class_dependencies 0.3.3 → 0.3.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -132,6 +132,10 @@ module ClassDependencies
132
132
  ordered_dependencies.map{|sym| sym_to_class(sym)}
133
133
  end
134
134
 
135
+ def descendant_classes
136
+ descendants.map{|sym| sym_to_class(sym)}
137
+ end
138
+
135
139
  private
136
140
 
137
141
  def find_dependencies_of(from, deps)
@@ -29,6 +29,10 @@ describe "ClassDependencies" do
29
29
  BaseDep.descendants == [:a, :b, :c]
30
30
  end
31
31
 
32
+ it "should return descendants as classes" do
33
+ BaseDep.descendant_classes == [A, B, C]
34
+ end
35
+
32
36
  module AnotherDep
33
37
  include ClassDependencies
34
38
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - mccraig mccraig of the clan mccraig