schemap 0.0.1 → 0.0.2
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/.gitignore +1 -0
- data/README.md +6 -12
- data/lib/schemap/schemap.html +0 -1
- data/lib/schemap/version.rb +1 -1
- data/{ScreenShot.png → repo_images/ScreenShot.png} +0 -0
- data/repo_images/schemap.png +0 -0
- data/schemap.gemspec +2 -2
- metadata +6 -4
- data/test.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 044b8bac5fb9853aff2c70d73a61541c71489b2a
|
4
|
+
data.tar.gz: 6eee6b764f74e95b64ace8bd9bea6650147d485c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b05c4971d49a6a62dbbcfc09396936632e30893ad495fef7ad2f18664ab51b118dbeb023860f66f274e672ba2d9e826fed8716c8dd5835ffba29c86b8f4a09b9
|
7
|
+
data.tar.gz: 80b80989b6d84a7912b572f3f9f3a9f65d2067248de51d290a0c837b76ee707cf95843dffe1fd623a3caba78271e0f60b573274ecb013e97a18db3a4acfbf447
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,27 +1,21 @@
|
|
1
1
|
# Schemap
|
2
2
|
|
3
|
-
|
3
|
+

|
4
|
+
|
5
|
+
Schemap (\skē-map\) walks your ActiveRecord models and database tables to generate visual schemas using [D3](http://d3js.org/). Schemap is database agnostic.
|
4
6
|
|
5
7
|
## Screen Shot
|
6
|
-

|
7
9
|
|
8
10
|
## Installation
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
gem 'schemap'
|
13
|
-
|
14
|
-
And then execute:
|
15
|
-
|
16
|
-
$ bundle
|
17
|
-
|
18
|
-
Or install it yourself as:
|
12
|
+
No need to add Schemap to your Gemfile. Just install the gem as:
|
19
13
|
|
20
14
|
$ gem install schemap
|
21
15
|
|
22
16
|
## Usage
|
23
17
|
|
24
|
-
From the root of your Rails app, simply
|
18
|
+
From the root of your Rails app, simply run:
|
25
19
|
|
26
20
|
$ schemap
|
27
21
|
|
data/lib/schemap/schemap.html
CHANGED
data/lib/schemap/version.rb
CHANGED
File without changes
|
Binary file
|
data/schemap.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'schemap/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "schemap"
|
8
8
|
spec.version = Schemap::VERSION
|
9
|
-
spec.authors = ["Nathaniel Wroblewski"]
|
10
|
-
spec.email = ["nathanielwroblewski@gmail.com"]
|
9
|
+
spec.authors = ["Nathaniel Wroblewski", "Kenneth Rettberg"]
|
10
|
+
spec.email = ["nathanielwroblewski@gmail.com", "kenrettberg@gmail.com"]
|
11
11
|
spec.description = %q{Visualize your Rails schema}
|
12
12
|
spec.summary = %q{Converts your Rails schema to a D3 force graph}
|
13
13
|
spec.homepage = "https://github.com/NathanielWroblewski/schemap"
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Wroblewski
|
8
|
+
- Kenneth Rettberg
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -55,6 +56,7 @@ dependencies:
|
|
55
56
|
description: Visualize your Rails schema
|
56
57
|
email:
|
57
58
|
- nathanielwroblewski@gmail.com
|
59
|
+
- kenrettberg@gmail.com
|
58
60
|
executables:
|
59
61
|
- schemap
|
60
62
|
extensions: []
|
@@ -65,15 +67,15 @@ files:
|
|
65
67
|
- LICENSE.txt
|
66
68
|
- README.md
|
67
69
|
- Rakefile
|
68
|
-
- ScreenShot.png
|
69
70
|
- bin/schemap
|
70
71
|
- lib/schemap.rb
|
71
72
|
- lib/schemap/schemap.html
|
72
73
|
- lib/schemap/version.rb
|
74
|
+
- repo_images/ScreenShot.png
|
75
|
+
- repo_images/schemap.png
|
73
76
|
- schemap.gemspec
|
74
77
|
- spec/schemap_spec.rb
|
75
78
|
- spec/spec_helper.rb
|
76
|
-
- test.rb
|
77
79
|
homepage: https://github.com/NathanielWroblewski/schemap
|
78
80
|
licenses:
|
79
81
|
- MIT
|
data/test.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'rails'
|
3
|
-
require 'active_record'
|
4
|
-
require 'pry'
|
5
|
-
|
6
|
-
binding.pry
|
7
|
-
|
8
|
-
db_config = YAML.load_file("#{Dir.pwd}/config/database.yml")
|
9
|
-
ActiveRecord::Base.establish_connection db_config['development']
|
10
|
-
db = ActiveRecord::Base.connection
|
11
|
-
p db.tables
|
12
|
-
|
13
|
-
schema = Schemap::Schemap.generate_schema db.tables
|
14
|
-
p schema
|