rails-erd-d3 0.0.10 → 0.0.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a45ef652b9bc2dc0e5d75f02fccc32e81c96bc3d
4
- data.tar.gz: abf8777854f876a536910b0f22bbfeed08a1f9db
3
+ metadata.gz: 8728f52026221b6b3fb1a56e282a64916c58caf2
4
+ data.tar.gz: 8bb30c9b14540b3d5fa28003c27fb3a76f8fb029
5
5
  SHA512:
6
- metadata.gz: 2f281261a7b061d33f785d493a696f996b2d794ce7720de3a834a86157b687210c78d702e69c8e5068cc67e6357d7a172385dd1a90dd94d571155b84ab8a0755
7
- data.tar.gz: 932d03d79cdf508b3a9b4ea77218ae122fe3796c9bb7a827b02142796c69585edd8347683fad9ae5d0c0af43580ce9f7437e356c5b3894c375718618e91b18a1
6
+ metadata.gz: 8b467504093aa9e99eeb0bb5a8e15358608a2896606e710b443559f337317c482ef3db76b29b2119f33b322e3d5075ce27ce0bc6626e9eeaf7c8b12059b29829
7
+ data.tar.gz: 886ac932bca1b54d55bf5a1e3a133bd32504c8b097a131355a723439de25937f0d671d07e3ab1164e797a73643e39350bffc06fd862c72ba004ef1aa75b675d8
data/lib/rails_erd_d3.rb CHANGED
@@ -162,8 +162,7 @@ class RailsErdD3
162
162
  });
163
163
  }
164
164
 
165
- simulation
166
- .nodes(data.nodes)
165
+ simulation.nodes(data.nodes)
167
166
  .on('tick', ticked);
168
167
 
169
168
  simulation.force('link')
@@ -191,24 +190,25 @@ class RailsErdD3
191
190
  def self.get_modals
192
191
  modals = ""
193
192
  @@models.each do |model|
194
- modals += "<div class='modal fade' id='#{model.name.capitalize}' tabindex='-1' role='dialog'>
195
- <div class='modal-dialog' role='document'>
196
- <div class='modal-content'>
197
- <div class='modal-header'>
198
- <button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>&times;</span></button>
199
- <h4 class='modal-title'>#{model.name.capitalize}</h4>
200
- </div>
201
- <div class='modal-body'>
202
- <table class='table table-hover'>
203
- <thead>
204
- <tr>
205
- <th>#</th>
206
- <th>name</th>
207
- <th>macro</th>
208
- <th>foreign_key</th>
209
- </tr>
210
- </thead>
211
- <tbody>"
193
+ modals += "
194
+ <div class='modal fade' id='#{model.name.capitalize}' tabindex='-1' role='dialog'>
195
+ <div class='modal-dialog' role='document'>
196
+ <div class='modal-content'>
197
+ <div class='modal-header'>
198
+ <button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>&times;</span></button>
199
+ <h4 class='modal-title'>#{model.name.capitalize}</h4>
200
+ </div>
201
+ <div class='modal-body'>
202
+ <table class='table table-hover'>
203
+ <thead>
204
+ <tr>
205
+ <th>#</th>
206
+ <th>name</th>
207
+ <th>macro</th>
208
+ <th>foreign_key</th>
209
+ </tr>
210
+ </thead>
211
+ <tbody>"
212
212
 
213
213
  model.reflections.each_with_index do |r, index|
214
214
  name = r[0]
@@ -220,16 +220,18 @@ class RailsErdD3
220
220
  "</tr>"
221
221
  end
222
222
 
223
- modals += "</tbody>
224
- </table>
225
- </div>
226
- <div class='modal-footer'>
227
- <button type='button' class='btn btn-default' data-dismiss='modal'>Close</button>
228
- </div>
223
+ modals += "
224
+ </tbody>
225
+ </table>
226
+ </div>
227
+ <div class='modal-footer'>
228
+ <button type='button' class='btn btn-default' data-dismiss='modal'>Close</button>
229
229
  </div>
230
230
  </div>
231
- </div>"
232
- end
231
+ </div>
232
+ </div>
233
+ "
234
+ end
233
235
 
234
236
  modals
235
237
  end
data/rails-erd-d3.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "rails-erd-d3"
7
7
  spec.authors = ["Roman Krasavtsev"]
8
8
  spec.email = ["mr.krasavtsev@gmail.com"]
9
- spec.version = "0.0.10"
9
+ spec.version = "0.0.11"
10
10
  spec.summary = "Entity–relationship diagram with D3.js for Rails application"
11
11
  spec.description = "This gem creates entity–relationship diagram with D3.js for your Rails application"
12
12
  spec.homepage = "https://github.com/RomanKrasavtsev/rails-erd-d3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-erd-d3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Krasavtsev