usecasing 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,13 +35,6 @@ module UseCase
35
35
  @nodes = discover_nodes
36
36
  end
37
37
 
38
- def tsort_each_node(&block)
39
- @nodes.each &block
40
- end
41
-
42
- def tsort_each_child(node, &block)
43
- node.dependencies.each &block
44
- end
45
38
 
46
39
  def cyclic?
47
40
  components = strongly_connected_components
@@ -50,6 +43,15 @@ module UseCase
50
43
  end
51
44
 
52
45
  private
46
+
47
+ def tsort_each_node(&block)
48
+ @nodes.each &block
49
+ end
50
+
51
+ def tsort_each_child(node, &block)
52
+ node.dependencies.each &block
53
+ end
54
+
53
55
  def discover_nodes
54
56
  visited = {}
55
57
  stack = [@start_point]
@@ -1,3 +1,3 @@
1
1
  module Usecasing
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usecasing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: 3012714953632075920
100
+ hash: 3815023741453968021
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 3012714953632075920
109
+ hash: 3815023741453968021
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 1.8.24