active_explorer 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.standalone_migrations +6 -0
- data/.travis.yml +4 -0
- data/Appraisals +27 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Guardfile +27 -0
- data/LICENSE.txt +21 -0
- data/README.md +230 -0
- data/Rakefile +7 -0
- data/active_explorer.gemspec +38 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/gemfiles/activerecord_3_0.gemfile +7 -0
- data/gemfiles/activerecord_3_0.gemfile.lock +111 -0
- data/gemfiles/activerecord_3_1.gemfile +7 -0
- data/gemfiles/activerecord_3_1.gemfile.lock +113 -0
- data/gemfiles/activerecord_3_2.gemfile +7 -0
- data/gemfiles/activerecord_3_2.gemfile.lock +113 -0
- data/gemfiles/activerecord_4_0.gemfile +7 -0
- data/gemfiles/activerecord_4_0.gemfile.lock +119 -0
- data/gemfiles/activerecord_4_1.gemfile +7 -0
- data/gemfiles/activerecord_4_1.gemfile.lock +118 -0
- data/gemfiles/activerecord_4_2.gemfile +7 -0
- data/gemfiles/activerecord_4_2.gemfile.lock +118 -0
- data/gemfiles/activerecord_5_0.gemfile +7 -0
- data/gemfiles/activerecord_5_0.gemfile.lock +115 -0
- data/lib/active_explorer/version.rb +3 -0
- data/lib/active_explorer.rb +58 -0
- data/lib/config.rb +8 -0
- data/lib/exploration.rb +233 -0
- data/lib/painter.rb +101 -0
- data/lib/writer.rb +48 -0
- metadata +284 -0
@@ -0,0 +1,113 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
active_explorer (0.0.6)
|
5
|
+
activerecord
|
6
|
+
ruby-graphviz
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activemodel (3.2.22.2)
|
12
|
+
activesupport (= 3.2.22.2)
|
13
|
+
builder (~> 3.0.0)
|
14
|
+
activerecord (3.2.22.2)
|
15
|
+
activemodel (= 3.2.22.2)
|
16
|
+
activesupport (= 3.2.22.2)
|
17
|
+
arel (~> 3.0.2)
|
18
|
+
tzinfo (~> 0.3.29)
|
19
|
+
activesupport (3.2.22.2)
|
20
|
+
i18n (~> 0.6, >= 0.6.4)
|
21
|
+
multi_json (~> 1.0)
|
22
|
+
appraisal (2.1.0)
|
23
|
+
bundler
|
24
|
+
rake
|
25
|
+
thor (>= 0.14.0)
|
26
|
+
arel (3.0.3)
|
27
|
+
awesome_print (1.7.0)
|
28
|
+
builder (3.0.4)
|
29
|
+
coderay (1.1.1)
|
30
|
+
diff-lcs (1.2.5)
|
31
|
+
factory_girl (4.7.0)
|
32
|
+
activesupport (>= 3.0.0)
|
33
|
+
ffi (1.9.10)
|
34
|
+
formatador (0.2.5)
|
35
|
+
guard (2.14.0)
|
36
|
+
formatador (>= 0.2.4)
|
37
|
+
listen (>= 2.7, < 4.0)
|
38
|
+
lumberjack (~> 1.0)
|
39
|
+
nenv (~> 0.1)
|
40
|
+
notiffany (~> 0.0)
|
41
|
+
pry (>= 0.9.12)
|
42
|
+
shellany (~> 0.0)
|
43
|
+
thor (>= 0.18.1)
|
44
|
+
guard-compat (1.2.1)
|
45
|
+
guard-rspec (4.7.2)
|
46
|
+
guard (~> 2.1)
|
47
|
+
guard-compat (~> 1.1)
|
48
|
+
rspec (>= 2.99.0, < 4.0)
|
49
|
+
i18n (0.7.0)
|
50
|
+
listen (3.1.5)
|
51
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
52
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
53
|
+
ruby_dep (~> 1.2)
|
54
|
+
lumberjack (1.0.10)
|
55
|
+
method_source (0.8.2)
|
56
|
+
multi_json (1.12.1)
|
57
|
+
mysql (2.9.1)
|
58
|
+
nenv (0.3.0)
|
59
|
+
notiffany (0.1.0)
|
60
|
+
nenv (~> 0.1)
|
61
|
+
shellany (~> 0.0)
|
62
|
+
pry (0.10.3)
|
63
|
+
coderay (~> 1.1.0)
|
64
|
+
method_source (~> 0.8.1)
|
65
|
+
slop (~> 3.4)
|
66
|
+
rake (10.5.0)
|
67
|
+
rb-fsevent (0.9.7)
|
68
|
+
rb-inotify (0.9.7)
|
69
|
+
ffi (>= 0.5.0)
|
70
|
+
rspec (3.4.0)
|
71
|
+
rspec-core (~> 3.4.0)
|
72
|
+
rspec-expectations (~> 3.4.0)
|
73
|
+
rspec-mocks (~> 3.4.0)
|
74
|
+
rspec-core (3.4.4)
|
75
|
+
rspec-support (~> 3.4.0)
|
76
|
+
rspec-expectations (3.4.0)
|
77
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
+
rspec-support (~> 3.4.0)
|
79
|
+
rspec-mocks (3.4.1)
|
80
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
+
rspec-support (~> 3.4.0)
|
82
|
+
rspec-nc (0.3.0)
|
83
|
+
rspec (>= 3)
|
84
|
+
terminal-notifier (>= 1.4)
|
85
|
+
rspec-support (3.4.1)
|
86
|
+
ruby-graphviz (1.2.2)
|
87
|
+
ruby_dep (1.3.1)
|
88
|
+
shellany (0.0.1)
|
89
|
+
slop (3.6.0)
|
90
|
+
terminal-notifier (1.6.3)
|
91
|
+
thor (0.19.1)
|
92
|
+
tzinfo (0.3.49)
|
93
|
+
|
94
|
+
PLATFORMS
|
95
|
+
ruby
|
96
|
+
|
97
|
+
DEPENDENCIES
|
98
|
+
active_explorer!
|
99
|
+
activerecord (~> 3.2.22.2)
|
100
|
+
appraisal
|
101
|
+
awesome_print
|
102
|
+
bundler (~> 1.10)
|
103
|
+
factory_girl
|
104
|
+
guard
|
105
|
+
guard-rspec
|
106
|
+
mysql
|
107
|
+
rake (~> 10.0)
|
108
|
+
rspec (>= 3.0.0)
|
109
|
+
rspec-nc
|
110
|
+
ruby-graphviz (~> 1.2, >= 1.2.2)
|
111
|
+
|
112
|
+
BUNDLED WITH
|
113
|
+
1.11.2
|
@@ -0,0 +1,119 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
active_explorer (0.0.6)
|
5
|
+
activerecord
|
6
|
+
ruby-graphviz
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activemodel (4.0.13)
|
12
|
+
activesupport (= 4.0.13)
|
13
|
+
builder (~> 3.1.0)
|
14
|
+
activerecord (4.0.13)
|
15
|
+
activemodel (= 4.0.13)
|
16
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
17
|
+
activesupport (= 4.0.13)
|
18
|
+
arel (~> 4.0.0)
|
19
|
+
activerecord-deprecated_finders (1.0.4)
|
20
|
+
activesupport (4.0.13)
|
21
|
+
i18n (~> 0.6, >= 0.6.9)
|
22
|
+
minitest (~> 4.2)
|
23
|
+
multi_json (~> 1.3)
|
24
|
+
thread_safe (~> 0.1)
|
25
|
+
tzinfo (~> 0.3.37)
|
26
|
+
appraisal (2.1.0)
|
27
|
+
bundler
|
28
|
+
rake
|
29
|
+
thor (>= 0.14.0)
|
30
|
+
arel (4.0.2)
|
31
|
+
awesome_print (1.7.0)
|
32
|
+
builder (3.1.4)
|
33
|
+
coderay (1.1.1)
|
34
|
+
diff-lcs (1.2.5)
|
35
|
+
factory_girl (4.7.0)
|
36
|
+
activesupport (>= 3.0.0)
|
37
|
+
ffi (1.9.10)
|
38
|
+
formatador (0.2.5)
|
39
|
+
guard (2.14.0)
|
40
|
+
formatador (>= 0.2.4)
|
41
|
+
listen (>= 2.7, < 4.0)
|
42
|
+
lumberjack (~> 1.0)
|
43
|
+
nenv (~> 0.1)
|
44
|
+
notiffany (~> 0.0)
|
45
|
+
pry (>= 0.9.12)
|
46
|
+
shellany (~> 0.0)
|
47
|
+
thor (>= 0.18.1)
|
48
|
+
guard-compat (1.2.1)
|
49
|
+
guard-rspec (4.7.2)
|
50
|
+
guard (~> 2.1)
|
51
|
+
guard-compat (~> 1.1)
|
52
|
+
rspec (>= 2.99.0, < 4.0)
|
53
|
+
i18n (0.7.0)
|
54
|
+
listen (3.1.5)
|
55
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
56
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
57
|
+
ruby_dep (~> 1.2)
|
58
|
+
lumberjack (1.0.10)
|
59
|
+
method_source (0.8.2)
|
60
|
+
minitest (4.7.5)
|
61
|
+
multi_json (1.12.1)
|
62
|
+
mysql (2.9.1)
|
63
|
+
nenv (0.3.0)
|
64
|
+
notiffany (0.1.0)
|
65
|
+
nenv (~> 0.1)
|
66
|
+
shellany (~> 0.0)
|
67
|
+
pry (0.10.3)
|
68
|
+
coderay (~> 1.1.0)
|
69
|
+
method_source (~> 0.8.1)
|
70
|
+
slop (~> 3.4)
|
71
|
+
rake (10.5.0)
|
72
|
+
rb-fsevent (0.9.7)
|
73
|
+
rb-inotify (0.9.7)
|
74
|
+
ffi (>= 0.5.0)
|
75
|
+
rspec (3.4.0)
|
76
|
+
rspec-core (~> 3.4.0)
|
77
|
+
rspec-expectations (~> 3.4.0)
|
78
|
+
rspec-mocks (~> 3.4.0)
|
79
|
+
rspec-core (3.4.4)
|
80
|
+
rspec-support (~> 3.4.0)
|
81
|
+
rspec-expectations (3.4.0)
|
82
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
+
rspec-support (~> 3.4.0)
|
84
|
+
rspec-mocks (3.4.1)
|
85
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
+
rspec-support (~> 3.4.0)
|
87
|
+
rspec-nc (0.3.0)
|
88
|
+
rspec (>= 3)
|
89
|
+
terminal-notifier (>= 1.4)
|
90
|
+
rspec-support (3.4.1)
|
91
|
+
ruby-graphviz (1.2.2)
|
92
|
+
ruby_dep (1.3.1)
|
93
|
+
shellany (0.0.1)
|
94
|
+
slop (3.6.0)
|
95
|
+
terminal-notifier (1.6.3)
|
96
|
+
thor (0.19.1)
|
97
|
+
thread_safe (0.3.5)
|
98
|
+
tzinfo (0.3.49)
|
99
|
+
|
100
|
+
PLATFORMS
|
101
|
+
ruby
|
102
|
+
|
103
|
+
DEPENDENCIES
|
104
|
+
active_explorer!
|
105
|
+
activerecord (~> 4.0.13)
|
106
|
+
appraisal
|
107
|
+
awesome_print
|
108
|
+
bundler (~> 1.10)
|
109
|
+
factory_girl
|
110
|
+
guard
|
111
|
+
guard-rspec
|
112
|
+
mysql
|
113
|
+
rake (~> 10.0)
|
114
|
+
rspec (>= 3.0.0)
|
115
|
+
rspec-nc
|
116
|
+
ruby-graphviz (~> 1.2, >= 1.2.2)
|
117
|
+
|
118
|
+
BUNDLED WITH
|
119
|
+
1.11.2
|
@@ -0,0 +1,118 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
active_explorer (0.0.6)
|
5
|
+
activerecord
|
6
|
+
ruby-graphviz
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activemodel (4.1.15)
|
12
|
+
activesupport (= 4.1.15)
|
13
|
+
builder (~> 3.1)
|
14
|
+
activerecord (4.1.15)
|
15
|
+
activemodel (= 4.1.15)
|
16
|
+
activesupport (= 4.1.15)
|
17
|
+
arel (~> 5.0.0)
|
18
|
+
activesupport (4.1.15)
|
19
|
+
i18n (~> 0.6, >= 0.6.9)
|
20
|
+
json (~> 1.7, >= 1.7.7)
|
21
|
+
minitest (~> 5.1)
|
22
|
+
thread_safe (~> 0.1)
|
23
|
+
tzinfo (~> 1.1)
|
24
|
+
appraisal (2.1.0)
|
25
|
+
bundler
|
26
|
+
rake
|
27
|
+
thor (>= 0.14.0)
|
28
|
+
arel (5.0.1.20140414130214)
|
29
|
+
awesome_print (1.7.0)
|
30
|
+
builder (3.2.2)
|
31
|
+
coderay (1.1.1)
|
32
|
+
diff-lcs (1.2.5)
|
33
|
+
factory_girl (4.7.0)
|
34
|
+
activesupport (>= 3.0.0)
|
35
|
+
ffi (1.9.10)
|
36
|
+
formatador (0.2.5)
|
37
|
+
guard (2.14.0)
|
38
|
+
formatador (>= 0.2.4)
|
39
|
+
listen (>= 2.7, < 4.0)
|
40
|
+
lumberjack (~> 1.0)
|
41
|
+
nenv (~> 0.1)
|
42
|
+
notiffany (~> 0.0)
|
43
|
+
pry (>= 0.9.12)
|
44
|
+
shellany (~> 0.0)
|
45
|
+
thor (>= 0.18.1)
|
46
|
+
guard-compat (1.2.1)
|
47
|
+
guard-rspec (4.7.2)
|
48
|
+
guard (~> 2.1)
|
49
|
+
guard-compat (~> 1.1)
|
50
|
+
rspec (>= 2.99.0, < 4.0)
|
51
|
+
i18n (0.7.0)
|
52
|
+
json (1.8.3)
|
53
|
+
listen (3.1.5)
|
54
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
55
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
56
|
+
ruby_dep (~> 1.2)
|
57
|
+
lumberjack (1.0.10)
|
58
|
+
method_source (0.8.2)
|
59
|
+
minitest (5.9.0)
|
60
|
+
mysql (2.9.1)
|
61
|
+
nenv (0.3.0)
|
62
|
+
notiffany (0.1.0)
|
63
|
+
nenv (~> 0.1)
|
64
|
+
shellany (~> 0.0)
|
65
|
+
pry (0.10.3)
|
66
|
+
coderay (~> 1.1.0)
|
67
|
+
method_source (~> 0.8.1)
|
68
|
+
slop (~> 3.4)
|
69
|
+
rake (10.5.0)
|
70
|
+
rb-fsevent (0.9.7)
|
71
|
+
rb-inotify (0.9.7)
|
72
|
+
ffi (>= 0.5.0)
|
73
|
+
rspec (3.4.0)
|
74
|
+
rspec-core (~> 3.4.0)
|
75
|
+
rspec-expectations (~> 3.4.0)
|
76
|
+
rspec-mocks (~> 3.4.0)
|
77
|
+
rspec-core (3.4.4)
|
78
|
+
rspec-support (~> 3.4.0)
|
79
|
+
rspec-expectations (3.4.0)
|
80
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
+
rspec-support (~> 3.4.0)
|
82
|
+
rspec-mocks (3.4.1)
|
83
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
+
rspec-support (~> 3.4.0)
|
85
|
+
rspec-nc (0.3.0)
|
86
|
+
rspec (>= 3)
|
87
|
+
terminal-notifier (>= 1.4)
|
88
|
+
rspec-support (3.4.1)
|
89
|
+
ruby-graphviz (1.2.2)
|
90
|
+
ruby_dep (1.3.1)
|
91
|
+
shellany (0.0.1)
|
92
|
+
slop (3.6.0)
|
93
|
+
terminal-notifier (1.6.3)
|
94
|
+
thor (0.19.1)
|
95
|
+
thread_safe (0.3.5)
|
96
|
+
tzinfo (1.2.2)
|
97
|
+
thread_safe (~> 0.1)
|
98
|
+
|
99
|
+
PLATFORMS
|
100
|
+
ruby
|
101
|
+
|
102
|
+
DEPENDENCIES
|
103
|
+
active_explorer!
|
104
|
+
activerecord (~> 4.1.15)
|
105
|
+
appraisal
|
106
|
+
awesome_print
|
107
|
+
bundler (~> 1.10)
|
108
|
+
factory_girl
|
109
|
+
guard
|
110
|
+
guard-rspec
|
111
|
+
mysql
|
112
|
+
rake (~> 10.0)
|
113
|
+
rspec (>= 3.0.0)
|
114
|
+
rspec-nc
|
115
|
+
ruby-graphviz (~> 1.2, >= 1.2.2)
|
116
|
+
|
117
|
+
BUNDLED WITH
|
118
|
+
1.11.2
|
@@ -0,0 +1,118 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
active_explorer (0.0.6)
|
5
|
+
activerecord
|
6
|
+
ruby-graphviz
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activemodel (4.2.6)
|
12
|
+
activesupport (= 4.2.6)
|
13
|
+
builder (~> 3.1)
|
14
|
+
activerecord (4.2.6)
|
15
|
+
activemodel (= 4.2.6)
|
16
|
+
activesupport (= 4.2.6)
|
17
|
+
arel (~> 6.0)
|
18
|
+
activesupport (4.2.6)
|
19
|
+
i18n (~> 0.7)
|
20
|
+
json (~> 1.7, >= 1.7.7)
|
21
|
+
minitest (~> 5.1)
|
22
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
23
|
+
tzinfo (~> 1.1)
|
24
|
+
appraisal (2.1.0)
|
25
|
+
bundler
|
26
|
+
rake
|
27
|
+
thor (>= 0.14.0)
|
28
|
+
arel (6.0.3)
|
29
|
+
awesome_print (1.7.0)
|
30
|
+
builder (3.2.2)
|
31
|
+
coderay (1.1.1)
|
32
|
+
diff-lcs (1.2.5)
|
33
|
+
factory_girl (4.7.0)
|
34
|
+
activesupport (>= 3.0.0)
|
35
|
+
ffi (1.9.10)
|
36
|
+
formatador (0.2.5)
|
37
|
+
guard (2.14.0)
|
38
|
+
formatador (>= 0.2.4)
|
39
|
+
listen (>= 2.7, < 4.0)
|
40
|
+
lumberjack (~> 1.0)
|
41
|
+
nenv (~> 0.1)
|
42
|
+
notiffany (~> 0.0)
|
43
|
+
pry (>= 0.9.12)
|
44
|
+
shellany (~> 0.0)
|
45
|
+
thor (>= 0.18.1)
|
46
|
+
guard-compat (1.2.1)
|
47
|
+
guard-rspec (4.7.2)
|
48
|
+
guard (~> 2.1)
|
49
|
+
guard-compat (~> 1.1)
|
50
|
+
rspec (>= 2.99.0, < 4.0)
|
51
|
+
i18n (0.7.0)
|
52
|
+
json (1.8.3)
|
53
|
+
listen (3.1.5)
|
54
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
55
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
56
|
+
ruby_dep (~> 1.2)
|
57
|
+
lumberjack (1.0.10)
|
58
|
+
method_source (0.8.2)
|
59
|
+
minitest (5.9.0)
|
60
|
+
mysql (2.9.1)
|
61
|
+
nenv (0.3.0)
|
62
|
+
notiffany (0.1.0)
|
63
|
+
nenv (~> 0.1)
|
64
|
+
shellany (~> 0.0)
|
65
|
+
pry (0.10.3)
|
66
|
+
coderay (~> 1.1.0)
|
67
|
+
method_source (~> 0.8.1)
|
68
|
+
slop (~> 3.4)
|
69
|
+
rake (10.5.0)
|
70
|
+
rb-fsevent (0.9.7)
|
71
|
+
rb-inotify (0.9.7)
|
72
|
+
ffi (>= 0.5.0)
|
73
|
+
rspec (3.4.0)
|
74
|
+
rspec-core (~> 3.4.0)
|
75
|
+
rspec-expectations (~> 3.4.0)
|
76
|
+
rspec-mocks (~> 3.4.0)
|
77
|
+
rspec-core (3.4.4)
|
78
|
+
rspec-support (~> 3.4.0)
|
79
|
+
rspec-expectations (3.4.0)
|
80
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
+
rspec-support (~> 3.4.0)
|
82
|
+
rspec-mocks (3.4.1)
|
83
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
+
rspec-support (~> 3.4.0)
|
85
|
+
rspec-nc (0.3.0)
|
86
|
+
rspec (>= 3)
|
87
|
+
terminal-notifier (>= 1.4)
|
88
|
+
rspec-support (3.4.1)
|
89
|
+
ruby-graphviz (1.2.2)
|
90
|
+
ruby_dep (1.3.1)
|
91
|
+
shellany (0.0.1)
|
92
|
+
slop (3.6.0)
|
93
|
+
terminal-notifier (1.6.3)
|
94
|
+
thor (0.19.1)
|
95
|
+
thread_safe (0.3.5)
|
96
|
+
tzinfo (1.2.2)
|
97
|
+
thread_safe (~> 0.1)
|
98
|
+
|
99
|
+
PLATFORMS
|
100
|
+
ruby
|
101
|
+
|
102
|
+
DEPENDENCIES
|
103
|
+
active_explorer!
|
104
|
+
activerecord (~> 4.2.6)
|
105
|
+
appraisal
|
106
|
+
awesome_print
|
107
|
+
bundler (~> 1.10)
|
108
|
+
factory_girl
|
109
|
+
guard
|
110
|
+
guard-rspec
|
111
|
+
mysql
|
112
|
+
rake (~> 10.0)
|
113
|
+
rspec (>= 3.0.0)
|
114
|
+
rspec-nc
|
115
|
+
ruby-graphviz (~> 1.2, >= 1.2.2)
|
116
|
+
|
117
|
+
BUNDLED WITH
|
118
|
+
1.11.2
|
@@ -0,0 +1,115 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
active_explorer (0.0.6)
|
5
|
+
activerecord
|
6
|
+
ruby-graphviz
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activemodel (5.0.0.rc1)
|
12
|
+
activesupport (= 5.0.0.rc1)
|
13
|
+
activerecord (5.0.0.rc1)
|
14
|
+
activemodel (= 5.0.0.rc1)
|
15
|
+
activesupport (= 5.0.0.rc1)
|
16
|
+
arel (~> 7.0)
|
17
|
+
activesupport (5.0.0.rc1)
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
+
i18n (~> 0.7)
|
20
|
+
minitest (~> 5.1)
|
21
|
+
tzinfo (~> 1.1)
|
22
|
+
appraisal (2.1.0)
|
23
|
+
bundler
|
24
|
+
rake
|
25
|
+
thor (>= 0.14.0)
|
26
|
+
arel (7.0.0)
|
27
|
+
awesome_print (1.7.0)
|
28
|
+
coderay (1.1.1)
|
29
|
+
concurrent-ruby (1.0.2)
|
30
|
+
diff-lcs (1.2.5)
|
31
|
+
factory_girl (4.7.0)
|
32
|
+
activesupport (>= 3.0.0)
|
33
|
+
ffi (1.9.10)
|
34
|
+
formatador (0.2.5)
|
35
|
+
guard (2.14.0)
|
36
|
+
formatador (>= 0.2.4)
|
37
|
+
listen (>= 2.7, < 4.0)
|
38
|
+
lumberjack (~> 1.0)
|
39
|
+
nenv (~> 0.1)
|
40
|
+
notiffany (~> 0.0)
|
41
|
+
pry (>= 0.9.12)
|
42
|
+
shellany (~> 0.0)
|
43
|
+
thor (>= 0.18.1)
|
44
|
+
guard-compat (1.2.1)
|
45
|
+
guard-rspec (4.7.2)
|
46
|
+
guard (~> 2.1)
|
47
|
+
guard-compat (~> 1.1)
|
48
|
+
rspec (>= 2.99.0, < 4.0)
|
49
|
+
i18n (0.7.0)
|
50
|
+
listen (3.1.5)
|
51
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
52
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
53
|
+
ruby_dep (~> 1.2)
|
54
|
+
lumberjack (1.0.10)
|
55
|
+
method_source (0.8.2)
|
56
|
+
minitest (5.9.0)
|
57
|
+
mysql2 (0.4.4)
|
58
|
+
nenv (0.3.0)
|
59
|
+
notiffany (0.1.0)
|
60
|
+
nenv (~> 0.1)
|
61
|
+
shellany (~> 0.0)
|
62
|
+
pry (0.10.3)
|
63
|
+
coderay (~> 1.1.0)
|
64
|
+
method_source (~> 0.8.1)
|
65
|
+
slop (~> 3.4)
|
66
|
+
rake (10.5.0)
|
67
|
+
rb-fsevent (0.9.7)
|
68
|
+
rb-inotify (0.9.7)
|
69
|
+
ffi (>= 0.5.0)
|
70
|
+
rspec (3.4.0)
|
71
|
+
rspec-core (~> 3.4.0)
|
72
|
+
rspec-expectations (~> 3.4.0)
|
73
|
+
rspec-mocks (~> 3.4.0)
|
74
|
+
rspec-core (3.4.4)
|
75
|
+
rspec-support (~> 3.4.0)
|
76
|
+
rspec-expectations (3.4.0)
|
77
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
+
rspec-support (~> 3.4.0)
|
79
|
+
rspec-mocks (3.4.1)
|
80
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
+
rspec-support (~> 3.4.0)
|
82
|
+
rspec-nc (0.3.0)
|
83
|
+
rspec (>= 3)
|
84
|
+
terminal-notifier (>= 1.4)
|
85
|
+
rspec-support (3.4.1)
|
86
|
+
ruby-graphviz (1.2.2)
|
87
|
+
ruby_dep (1.3.1)
|
88
|
+
shellany (0.0.1)
|
89
|
+
slop (3.6.0)
|
90
|
+
terminal-notifier (1.6.3)
|
91
|
+
thor (0.19.1)
|
92
|
+
thread_safe (0.3.5)
|
93
|
+
tzinfo (1.2.2)
|
94
|
+
thread_safe (~> 0.1)
|
95
|
+
|
96
|
+
PLATFORMS
|
97
|
+
ruby
|
98
|
+
|
99
|
+
DEPENDENCIES
|
100
|
+
active_explorer!
|
101
|
+
activerecord (~> 5.0.0.rc1)
|
102
|
+
appraisal
|
103
|
+
awesome_print
|
104
|
+
bundler (~> 1.10)
|
105
|
+
factory_girl
|
106
|
+
guard
|
107
|
+
guard-rspec
|
108
|
+
mysql2
|
109
|
+
rake (~> 10.0)
|
110
|
+
rspec (>= 3.0.0)
|
111
|
+
rspec-nc
|
112
|
+
ruby-graphviz (~> 1.2, >= 1.2.2)
|
113
|
+
|
114
|
+
BUNDLED WITH
|
115
|
+
1.11.2
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require "awesome_print" # TODO: Delete before going live.
|
2
|
+
require "active_explorer/version"
|
3
|
+
require 'graphviz'
|
4
|
+
require 'exploration'
|
5
|
+
|
6
|
+
module Kernel
|
7
|
+
|
8
|
+
# Explore object and print output to console.
|
9
|
+
def explore(object, class_filter: nil, attribute_filter: nil, attribute_limit: nil, association_filter: nil, depth: 5)
|
10
|
+
if depth <= 0
|
11
|
+
puts "Depth must larger than or equal to 1."
|
12
|
+
return
|
13
|
+
end
|
14
|
+
|
15
|
+
if object.nil?
|
16
|
+
puts "Object to be explored is `nil`."
|
17
|
+
return
|
18
|
+
end
|
19
|
+
|
20
|
+
exploration = ActiveExplorer::Exploration.new object,
|
21
|
+
depth: depth,
|
22
|
+
class_filter: class_filter,
|
23
|
+
attribute_filter: attribute_filter,
|
24
|
+
attribute_limit: attribute_limit,
|
25
|
+
association_filter: association_filter
|
26
|
+
exploration.to_console
|
27
|
+
nil
|
28
|
+
end
|
29
|
+
alias_method :ex, :explore
|
30
|
+
|
31
|
+
# Explore object and print output to image file.
|
32
|
+
def explore_to_file(object, file_name = nil, class_filter: nil, attribute_filter: nil, attribute_limit: nil, association_filter: nil, depth: 5)
|
33
|
+
if depth <= 0
|
34
|
+
puts "Depth must larger than or equal to 1."
|
35
|
+
return
|
36
|
+
end
|
37
|
+
|
38
|
+
if object.nil?
|
39
|
+
puts "Object to be explored is `nil`."
|
40
|
+
return
|
41
|
+
end
|
42
|
+
|
43
|
+
file = file_name.nil? ? "#{object.class.name.downcase}_#{object.id}.png" : file_name
|
44
|
+
|
45
|
+
puts "\nOutput file: #{file}\n"
|
46
|
+
|
47
|
+
exploration = ActiveExplorer::Exploration.new object,
|
48
|
+
depth: depth,
|
49
|
+
class_filter: class_filter,
|
50
|
+
attribute_filter: attribute_filter,
|
51
|
+
attribute_limit: attribute_limit,
|
52
|
+
association_filter: association_filter
|
53
|
+
exploration.to_image file
|
54
|
+
nil
|
55
|
+
end
|
56
|
+
alias_method :exf, :explore_to_file
|
57
|
+
|
58
|
+
end
|