rails-erd 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/erd/templates/auto_generate_diagram.rake +1 -1
- data/lib/rails_erd.rb +0 -1
- data/lib/rails_erd/cli.rb +1 -0
- data/lib/rails_erd/config.rb +1 -1
- data/lib/rails_erd/diagram.rb +4 -4
- data/lib/rails_erd/version.rb +1 -1
- metadata +2 -3
- data/lib/rails_erd/engine.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cff8c4febb03921cfffca5079b6f5deb56fbf07
|
4
|
+
data.tar.gz: 69861d0ef513b5b8bc60df935fca6931b02e9aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b960e026b757827e0a7ec486916578390b269a6acf2a9597dcda73c69ebbf7aa01850a83090d49064f79973cf120205c75a79c0a33f1a254c481f8c238f3e5ca
|
7
|
+
data.tar.gz: 4ac3b8cae5bb82b5f6270396e3b7a44b4089e504bfd2370e5ecca1a787087a2ddc6157f8a5da7a917c24651aed55535ccd390629e8a690945924c3bd453112c4
|
data/lib/rails_erd.rb
CHANGED
data/lib/rails_erd/cli.rb
CHANGED
data/lib/rails_erd/config.rb
CHANGED
data/lib/rails_erd/diagram.rb
CHANGED
@@ -123,7 +123,7 @@ module RailsERD
|
|
123
123
|
# Generates the diagram, but does not save the output. It is called
|
124
124
|
# internally by Diagram#create.
|
125
125
|
def generate
|
126
|
-
instance_eval
|
126
|
+
instance_eval(&callbacks[:setup])
|
127
127
|
|
128
128
|
filtered_entities.each do |entity|
|
129
129
|
instance_exec entity, filtered_attributes(entity), &callbacks[:each_entity]
|
@@ -139,7 +139,7 @@ module RailsERD
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def save
|
142
|
-
instance_eval
|
142
|
+
instance_eval(&callbacks[:save])
|
143
143
|
end
|
144
144
|
|
145
145
|
private
|
@@ -150,8 +150,8 @@ module RailsERD
|
|
150
150
|
|
151
151
|
def filtered_entities
|
152
152
|
@domain.entities.reject { |entity|
|
153
|
-
options.exclude && entity.model && [options.exclude].flatten.map(&:to_sym).include?(entity.name.to_sym) or
|
154
|
-
options.only && entity.model && ![options.only].flatten.map(&:to_sym).include?(entity.name.to_sym) or
|
153
|
+
options.exclude.present? && entity.model && [options.exclude].flatten.map(&:to_sym).include?(entity.name.to_sym) or
|
154
|
+
options.only.present? && entity.model && ![options.only].flatten.map(&:to_sym).include?(entity.name.to_sym) or
|
155
155
|
!options.inheritance && entity.specialized? or
|
156
156
|
!options.polymorphism && entity.generalized? or
|
157
157
|
!options.disconnected && entity.disconnected?
|
data/lib/rails_erd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-erd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rolf Timmermans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -95,7 +95,6 @@ files:
|
|
95
95
|
- lib/rails_erd/domain/relationship.rb
|
96
96
|
- lib/rails_erd/domain/relationship/cardinality.rb
|
97
97
|
- lib/rails_erd/domain/specialization.rb
|
98
|
-
- lib/rails_erd/engine.rb
|
99
98
|
- lib/rails_erd/railtie.rb
|
100
99
|
- lib/rails_erd/tasks.rake
|
101
100
|
- lib/rails_erd/version.rb
|
data/lib/rails_erd/engine.rb
DELETED