schemap 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a903f81fd800a4911da04c164896bfc0b5e854f
4
- data.tar.gz: dfc860b9e2e731c09b072254e9cace6429b71cfa
3
+ metadata.gz: 044b8bac5fb9853aff2c70d73a61541c71489b2a
4
+ data.tar.gz: 6eee6b764f74e95b64ace8bd9bea6650147d485c
5
5
  SHA512:
6
- metadata.gz: f8685453301380b881e30ac5e4c3b74f43d06bb9a77190358e5f003d58c9fc5a53cf3ba3055decc5f83f48ae3989f081c90ff491ab48b216f086eb49fa4d6a42
7
- data.tar.gz: 1196456cdc12578d5c052cd1172a47132d1f259fefe588f9a29097187f40e64fcacf8cc954e8f0d7e001d30b52e85e43cfb31e6babaa99a1463dc8f8d683b1d3
6
+ metadata.gz: b05c4971d49a6a62dbbcfc09396936632e30893ad495fef7ad2f18664ab51b118dbeb023860f66f274e672ba2d9e826fed8716c8dd5835ffba29c86b8f4a09b9
7
+ data.tar.gz: 80b80989b6d84a7912b572f3f9f3a9f65d2067248de51d290a0c837b76ee707cf95843dffe1fd623a3caba78271e0f60b573274ecb013e97a18db3a4acfbf447
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .DS_Store
data/README.md CHANGED
@@ -1,27 +1,21 @@
1
1
  # Schemap
2
2
 
3
- Schemap helps you visualize your [Rails](https://github.com/rails/rails) schemas by mapping them to [D3](http://d3js.org/) force graphs.
3
+ ![Skier Logo](https://raw.github.com/NathanielWroblewski/schemap/master/repo_images/schemap.png)
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
- ![Schemap Screen Shot](https://raw.github.com/NathanielWroblewski/schemap/91dd6925b0e24b00cc7a6970662ef95dbda0e96e/ScreenShot.png)
8
+ ![Schemap Screen Shot](https://raw.github.com/NathanielWroblewski/schemap/master/repo_images/ScreenShot.png)
7
9
 
8
10
  ## Installation
9
11
 
10
- Add this line to your application's Gemfile:
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 call:
18
+ From the root of your Rails app, simply run:
25
19
 
26
20
  $ schemap
27
21
 
@@ -71,7 +71,6 @@ window.viz = function() {
71
71
  .text(function(d) { return d.name; });
72
72
 
73
73
  node.on('mouseover', function(d) {
74
- debugger
75
74
  var table = d3.select(this).text();
76
75
  var text = '<b>' + table + '</b><br>'
77
76
  graph.attributes.forEach(function(attr) {
@@ -1,3 +1,3 @@
1
1
  module Schemap
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
Binary file
@@ -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.1
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: 2013-12-15 00:00:00.000000000 Z
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