mongoid-erd 0.0.6 → 0.0.8

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/Gemfile CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -20,7 +20,7 @@ class Model
20
20
  end
21
21
 
22
22
  def title
23
- "- [#{name}:#{erd_label}] -"
23
+ "- [#{name.camelize}:#{erd_label}] -"
24
24
  end
25
25
  end
26
26
 
@@ -135,7 +135,7 @@ class MongoidErd
135
135
  self.parse_erd field_, line # parse erd attr and label
136
136
  crt_model.fields << field_
137
137
  #if %w[belongs_to embedded_in embeds_one has_one].include? rel_
138
- field_.edge = [name_, '', {label: rel_, arrowhead: 'onormal'}]
138
+ field_.edge = [name_, '', {label: rel_, arrowhead: 'normal'}]
139
139
  #end
140
140
  end
141
141
 
@@ -198,7 +198,7 @@ class MongoidErd
198
198
  if field.edge
199
199
  to_node, to_anchor, attrs = field.edge[0].underscore, field.edge[1], field.edge[2]
200
200
  unless @models[to_node]
201
- g.add(to_node, 'oval', {style:'filled', fillcolor:'grey', color:'grey'})
201
+ g.add(to_node.camelize, 'oval', {style:'filled', fillcolor:'grey', color:'grey'})
202
202
  to_anchor = ''
203
203
  end
204
204
  g.link(model.name.camelize, field.as_row, to_node.camelize, to_anchor, attrs)
@@ -208,7 +208,7 @@ class MongoidErd
208
208
  # relations
209
209
  if model.parent
210
210
  unless @models[model.parent]
211
- g.add(model.parent, 'oval', {style:'filled', fillcolor:'grey', color:'grey'})
211
+ g.add(model.parent.camelize, 'oval', {style:'filled', fillcolor:'grey', color:'grey'})
212
212
  end
213
213
  g.link(model.name.camelize, model.title, model.parent.camelize, '', {arrowhead: 'onormal'})
214
214
  end
@@ -1,6 +1,6 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
2
2
 
3
- Gem::Specification.new 'mongoid-erd', '0.0.6' do |s|
3
+ Gem::Specification.new 'mongoid-erd', '0.0.8' do |s|
4
4
  s.executables << "merd"
5
5
  s.description = "Create model diagram graph (ERD graph) in graphviz's dot language"
6
6
  s.summary = "Mongoid ERD diagram creator"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-erd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
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: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rviz
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 1.8.25
88
+ rubygems_version: 1.8.24
89
89
  signing_key:
90
90
  specification_version: 3
91
91
  summary: Mongoid ERD diagram creator