modaldiagrams 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
@@ -174,6 +174,7 @@ module ModalDiagrams
174
174
  all_classes = []
175
175
  classes.keys.each do |cluster|
176
176
  next if cluster.in? cfg.clusters_not_shown_on_main_diagram
177
+ next if cluster_classes[cluster].nil?
177
178
  all_classes += cluster_classes[cluster]
178
179
  cluster_id += 1
179
180
  add_diagram_classes f, classes[cluster], cluster, cluster_id, cfg.show_cluster_boxes
@@ -298,6 +299,7 @@ module ModalDiagrams
298
299
  def add_diagram_relations(f, relations, relation_classes, inner_classes, show_external)
299
300
  relations.each_index do |i|
300
301
  relation = relations[i]
302
+ inner_classes = Array(inner_classes)
301
303
  is_internal = relation_classes[i].all?{|c| c.in? inner_classes}
302
304
  is_external = relation_classes[i].any?{|c| c.in? inner_classes} && !is_internal
303
305
  if show_external
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "modaldiagrams"
8
- s.version = "1.1.2"
8
+ s.version = "1.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Javier Goizueta"]
12
- s.date = "2012-11-03"
12
+ s.date = "2013-07-13"
13
13
  s.description = "modaldiagrams provides Rake tasks for diagramming ActiveRecord databases. It generates Graphviz dot files."
14
14
  s.email = "jgoizueta@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.homepage = "http://github.com/jgoizueta/modaldiagrams"
41
41
  s.licenses = ["MIT"]
42
42
  s.require_paths = ["lib"]
43
- s.rubygems_version = "1.8.23"
43
+ s.rubygems_version = "1.8.24"
44
44
  s.summary = "DB diagramming tool fo Rails ActiveRecord applications"
45
45
 
46
46
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modaldiagrams
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-03 00:00:00.000000000 Z
12
+ date: 2013-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: modalsettings
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  segments:
168
168
  - 0
169
- hash: -1469969141258000337
169
+ hash: -655195024926052685
170
170
  required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 1.8.23
178
+ rubygems_version: 1.8.24
179
179
  signing_key:
180
180
  specification_version: 3
181
181
  summary: DB diagramming tool fo Rails ActiveRecord applications