railroady 1.0.8 → 1.0.9

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.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 8
4
+ :patch: 9
5
5
  :build:
@@ -87,7 +87,7 @@ class ControllersDiagram < AppDiagram
87
87
 
88
88
  # Generate the inheritance edge (only for ApplicationControllers)
89
89
  if @options.inheritance &&
90
- (ApplicationController.subclasses.include? current_class.name)
90
+ (ApplicationController.subclasses.include? current_class)
91
91
  @graph.add_edge ['is-a', current_class.superclass.name, current_class.name]
92
92
  end
93
93
  end # process_class
data/tasks/railroady.rake CHANGED
@@ -29,20 +29,22 @@ namespace :diagram do
29
29
  @CONTROLLERS_ALL = RailRoady::RakeHelpers.full_path("controllers_complete.#{RailRoady::RakeHelpers.format}").freeze
30
30
  @CONTROLLERS_BRIEF = RailRoady::RakeHelpers.full_path("controllers_brief.#{RailRoady::RakeHelpers.format}").freeze
31
31
 
32
+ @SED = 'sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"'
33
+
32
34
  namespace :models do
33
35
 
34
36
  desc 'Generates an class diagram for all models.'
35
37
  task :complete do
36
38
  f = @MODELS_ALL
37
39
  puts "Generating #{f}"
38
- sh "railroady -ilamM | dot -T#{RailRoady::RakeHelpers.format} > #{f}"
40
+ sh "railroady -ilamM | #{@SED} | dot -T#{RailRoady::RakeHelpers.format} > #{f}"
39
41
  end
40
42
 
41
43
  desc 'Generates an abbreviated class diagram for all models.'
42
44
  task :brief do
43
45
  f = @MODELS_BRIEF
44
46
  puts "Generating #{f}"
45
- sh "railroady -bilamM | dot -T#{RailRoady::RakeHelpers.format} > #{f}"
47
+ sh "railroady -bilamM | #{@SED} | dot -T#{RailRoady::RakeHelpers.format} > #{f}"
46
48
  end
47
49
 
48
50
  end
@@ -53,14 +55,14 @@ namespace :diagram do
53
55
  task :complete do
54
56
  f = @CONTROLLERS_ALL
55
57
  puts "Generating #{f}"
56
- sh "railroady -ilC | neato -T#{RailRoady::RakeHelpers.format} > #{f}"
58
+ sh "railroady -ilC | #{@SED} | neato -T#{RailRoady::RakeHelpers.format} > #{f}"
57
59
  end
58
60
 
59
61
  desc 'Generates an abbreviated class diagram for all controllers.'
60
62
  task :brief do
61
63
  f = @CONTROLLERS_BRIEF
62
64
  puts "Generating #{f}"
63
- sh "railroady -bilC | neato -T#{RailRoady::RakeHelpers.format} > #{f}"
65
+ sh "railroady -bilC | #{@SED} | neato -T#{RailRoady::RakeHelpers.format} > #{f}"
64
66
  end
65
67
 
66
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railroady
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-07-11 00:00:00.000000000 Z
15
+ date: 2012-09-10 00:00:00.000000000 Z
16
16
  dependencies: []
17
17
  description: Ruby on Rails 3 model and controller UML class diagram generator. Originally
18
18
  based on the 'railroad' plugin and contributions of many others. (`sudo port install