peterhoeg-railroad 0.5.4 → 0.5.6

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/CHANGELOG.rdoc CHANGED
@@ -1,19 +1,15 @@
1
1
  = Changes
2
2
 
3
- == Version 0.5.4 (may 15 2009)
3
+ == Version 0.5.1 to 0.5.6 (may 15 2009)
4
+ - Make sure the proper version tag is set everywhere
5
+ - Support showing belongs_to relationships when generating models
4
6
  - Transitioned to using Jeweler for gem management
5
7
  - Shuffled some file locations around
6
8
  - NOTE: there are NO tests passing yet, but this gem was developed without 'em
7
-
8
- == Version 0.5.3 (may 15 2009)
9
9
  - Fixed broken gemspec
10
-
11
- == Version 0.5.2 (may 15 2009)
12
10
  - Added ChangeLog entries
13
11
  - Added AUTHORS entry
14
12
  - Updated railroad version entry
15
-
16
- == Version 0.5.1 (may 15 2009)
17
13
  - Support rails v2.3
18
14
  - Support namespaced models/controllers
19
15
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 5
4
- :patch: 4
4
+ :patch: 6
data/bin/railroad CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  APP_NAME = "railroad"
18
18
  APP_HUMAN_NAME = "RailRoad"
19
- APP_VERSION = [0,5,3]
19
+ APP_VERSION = [0,5,6]
20
20
  COPYRIGHT = "Copyright (C) 2007-2008 Javier Smaldone, 2009 Peter Hoeg"
21
21
 
22
22
  require 'options_struct'
@@ -125,7 +125,7 @@ class ModelsDiagram < AppDiagram
125
125
  STDERR.print "\t\tProcessing model association #{assoc.name.to_s}\n" if @options.verbose
126
126
 
127
127
  # Skip "belongs_to" associations
128
- return if assoc.macro.to_s == 'belongs_to'
128
+ return if assoc.macro.to_s == 'belongs_to' || !@options.show_belongs_to
129
129
 
130
130
  # Only non standard association names needs a label
131
131
 
@@ -26,6 +26,7 @@ class OptionsStruct < OpenStruct
26
26
  :hide_private => false,
27
27
  :plugins_models => false,
28
28
  :root => '',
29
+ :show_belongs_to => false,
29
30
  :transitive => false,
30
31
  :verbose => false,
31
32
  :xmi => false,
@@ -72,6 +73,9 @@ class OptionsStruct < OpenStruct
72
73
  " (not only ActiveRecord::Base derived)") do |a|
73
74
  self.all = a
74
75
  end
76
+ opts.on("--show-belongs_to", "Show belongs_to associations") do |s|
77
+ self.show_belongs_to = s
78
+ end
75
79
  opts.on("--hide-magic", "Hide magic field names") do |h|
76
80
  self.hide_magic = h
77
81
  end
data/railroad.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{railroad}
5
- s.version = "0.5.4"
5
+ s.version = "0.5.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Peter Hoeg", "Javier Smaldone"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peterhoeg-railroad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Hoeg