railroady 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS.rdoc CHANGED
@@ -15,5 +15,7 @@ http://railroady.prestonlee.com
15
15
  * Preston Lee (http://prestonlee.com)
16
16
  * Tim Harvey
17
17
  * Atli Christiansen
18
+ * John Bintz (http://www.coswellproductions.com/)
19
+
18
20
 
19
21
  And of course, many thanks to the many patch submitters and testers that make this possible!
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changes
2
2
 
3
+ == Version 1.0.2
4
+
5
+ - Merged in John Bintz's patch to properly strip leading "::" prefixes from class names.
6
+
3
7
  == Version 1.0.1
4
8
  - Patch to fix bug for projects with spaces in the path. (Thanks, Tim Harvey!)
5
9
 
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 1
4
+ :patch: 2
5
5
  :build:
@@ -129,11 +129,12 @@ class ModelsDiagram < AppDiagram
129
129
  assoc_name = assoc.name.to_s
130
130
  end
131
131
 
132
- # Patch from "alpack" to support classes in a non-root module namespace. See: http://disq.us/yxl1v
133
- if class_name.include?("::") && !assoc_class_name.include?("::")
134
- assoc_class_name = class_name.split("::")[0..-2].push(assoc_class_name).join("::")
135
- end
136
-
132
+ # Patch from "alpack" to support classes in a non-root module namespace. See: http://disq.us/yxl1v
133
+ if class_name.include?("::") && !assoc_class_name.include?("::")
134
+ assoc_class_name = class_name.split("::")[0..-2].push(assoc_class_name).join("::")
135
+ end
136
+ assoc_class_name.gsub!(%r{^::}, '')
137
+
137
138
  if ['has_one', 'belongs_to'].include? assoc.macro.to_s
138
139
  assoc_type = 'one-one'
139
140
  elsif assoc.macro.to_s == 'has_many' && (! assoc.options[:through])
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: railroady
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Preston Lee
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-02-05 00:00:00 -07:00
16
+ date: 2011-03-14 00:00:00 -07:00
17
17
  default_executable: railroady
18
18
  dependencies: []
19
19
 
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements: []
77
77
 
78
78
  rubyforge_project:
79
- rubygems_version: 1.5.0
79
+ rubygems_version: 1.6.2
80
80
  signing_key:
81
81
  specification_version: 3
82
82
  summary: Ruby on Rails 3 model and controller UML class diagram generator.