visualize_inheritance 0.0.12 → 1.0.0
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 +4 -4
- data/README.md +9 -11
- data/lib/visualize_inheritance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 075959c5cdbfdd536bcb46d24dffb2a76891d569
|
4
|
+
data.tar.gz: f68196e37f6bb42acf1ae27ceaf905723a9db9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eebeeb37f89107d3fc012fcaeb5e227425a64c8dc4a554df60ad4cabf1c097863e2bf8f53301f08ad5e04f0f0708bd12c2b10c218ba4239d5bd94a733c7c89f
|
7
|
+
data.tar.gz: c2664fe66ec7ff1745374c4ab1e94fa4e57b2bb35e559c5a5924d0f802180747d4b94b61ba30770fce0ee2b839089da62a8577eea3e7e6f96e0563335a018cfc
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# VisualizeInheritance
|
3
3
|
|
4
|
-
|
4
|
+
VisualizeInheritance is a gem that creates a visualization of the class structure of an app. It couples a simple Bash script and a D3 force directed graph through Ruby.
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -19,20 +19,18 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
|
22
|
+
In order to create a visualization of the class structure, first, create a ruby script in the home directory. Add the following lines to the script:
|
23
|
+
|
24
|
+
$ VisualizeInheritance.csv
|
25
|
+
$ VisualizeInheritance.write_index
|
26
|
+
$ VisualizeInheritance.graph
|
27
|
+
|
28
|
+
Then, run the ruby script. It will create a force directed graph in a new browser window.
|
23
29
|
|
24
30
|
## Contributing
|
25
31
|
|
26
|
-
1. Fork it ( https://github.com/
|
32
|
+
1. Fork it ( https://github.com/cmvandrevala/visualize_inheritance/fork )
|
27
33
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
28
34
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
35
|
4. Push to the branch (`git push origin my-new-feature`)
|
30
36
|
5. Create a new Pull Request
|
31
|
-
|
32
|
-
|
33
|
-
Visualizing Inheritance Structure in Ruby
|
34
|
-
=========================================
|
35
|
-
|
36
|
-
This code uses a simple Bash script combined with a force directed graph in D3 to visualize the inheritance structure of a Ruby project.
|
37
|
-
|
38
|
-
Put this in the main folder of the project. Upon running the bash script create_graph.sh, it will scan the lib folder for all classes, and then create a force directed graph in a browser window using D3.
|