rails-erd-d3 0.2.3 → 0.2.4

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: 4a6a6ca1bae10677091e177dae677858b254eb82
4
- data.tar.gz: 5c9a2770378bce5db911e3c55198f9a41da02407
3
+ metadata.gz: 07adc1e7142718f063fbfa255d04c66fdd9d2178
4
+ data.tar.gz: ab29a0668e292fae08fb493b59721afa06a5ed08
5
5
  SHA512:
6
- metadata.gz: bcf1400f149ca609356c3b1186d7b1d73cebed4617a0a57014c1a06b24d89928e7b8be955a19d106f828f3a571aad56f6d2f78a342a6c9e8a342c56b94d90ee0
7
- data.tar.gz: 44f6507cee58ecf42fc56f83676c19038b39e460a174d2322429934bb8a72b1c6a6633ff8627e239bb9a6f16dbe1f8c67ebeaaccd1d2179d20675be1d94f59d1
6
+ metadata.gz: c23be20472a9afc6f365600a6c132ce3044128225e97e7c9ed99499398fa110976e7c2842e64e3460a3c6c3ce390e0dbae23d152b0abbd8718be6b7f9f2698b3
7
+ data.tar.gz: a4a0938fa6dbafcafcc4ebca5662df80b1aa6f35dc9139dd383377f9bc267f4bba19a3f1b0060df9e2e6bd7f72b9ce75c30254d2826fa0bfb60fab9cf4f49978
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
+ [![Build Status](https://travis-ci.org/RomanKrasavtsev/rails-erd-d3.svg?branch=master)](https://travis-ci.org/RomanKrasavtsev/rails-erd-d3)
1
2
  [![Gem Version](https://badge.fury.io/rb/rails-erd-d3.svg)](https://badge.fury.io/rb/rails-erd-d3)
2
3
  [![Code Climate](https://codeclimate.com/github/RomanKrasavtsev/rails-erd-d3/badges/gpa.svg)](https://codeclimate.com/github/RomanKrasavtsev/rails-erd-d3)
3
4
  [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/RomanKrasavtsev/rails-erd-d3/master/LICENSE.txt)
4
- [![Build Status](https://travis-ci.org/RomanKrasavtsev/rails-erd-d3.svg?branch=master)](https://travis-ci.org/RomanKrasavtsev/rails-erd-d3)
5
+ ![Downloads](http://ruby-gem-downloads-badge.herokuapp.com/rails-erd-d3?type=total)
5
6
 
6
7
  # Rails-ERD-D3
7
8
 
@@ -9,7 +10,6 @@ Create entity–relationship diagram with D3.js for your Rails application.
9
10
 
10
11
  ![Rails-ERD-D3](https://github.com/RomanKrasavtsev/rails-erd-d3/raw/master/rails-erd-d3.gif)
11
12
 
12
-
13
13
  ## Installation
14
14
 
15
15
  Add this line to your application's Gemfile:
@@ -25,6 +25,10 @@ And then execute for creating file erd.html:
25
25
  $ rails c
26
26
  > RailsErdD3.create
27
27
 
28
+ Or from command line:
29
+
30
+ $ bundle exec erd-d3
31
+
28
32
  ## Todo
29
33
 
30
34
  - Add tests
@@ -39,7 +43,6 @@ And then execute for creating file erd.html:
39
43
  - has_and_belongs_to_many
40
44
  - Polymorphic associations
41
45
  - Hide model
42
- - Show model attributes
43
46
  - Safe as jpg, png
44
47
  - Dependent destroy
45
48
 
data/bin/{erd → erd-d3} RENAMED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "rails_erd_d3"
3
-
3
+ require ::File.expand_path('./config/environment')
4
4
  RailsErdD3.create
data/lib/rails_erd_d3.rb CHANGED
@@ -42,6 +42,7 @@ class RailsErdD3
42
42
  @@models.each do |model|
43
43
  nodes << { label: model.name, r: 30 }
44
44
 
45
+ puts "Generate data for #{model.name}"
45
46
  model.reflections.each do |refl_name, refl_data|
46
47
  next if refl_data.options[:polymorphic]
47
48
  refl_model = (refl_data.options[:class_name] || refl_name).underscore
@@ -76,7 +77,7 @@ class RailsErdD3
76
77
  )
77
78
  file.close
78
79
 
79
- "File erd.html was successfully created!"
80
+ puts "File erd.html was successfully created!"
80
81
  end
81
82
 
82
83
  private
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.2.3"
9
+ spec.version = "0.2.4"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-erd-d3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Krasavtsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -57,7 +57,7 @@ description: This gem creates entity–relationship diagram with D3.js for your
57
57
  email:
58
58
  - mr.krasavtsev@gmail.com
59
59
  executables:
60
- - erd
60
+ - erd-d3
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
@@ -68,7 +68,7 @@ files:
68
68
  - LICENSE.txt
69
69
  - README.md
70
70
  - Rakefile
71
- - bin/erd
71
+ - bin/erd-d3
72
72
  - lib/rails-erd-d3.rb
73
73
  - lib/rails_erd_d3.rb
74
74
  - lib/templates/d3.html.erb
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.6.6
100
+ rubygems_version: 2.5.1
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Entity–relationship diagram with D3.js for Rails application