active_explorer 0.0.8 → 0.0.9

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: 350cfdb7eafac2d2671f1d1c61183734237befd0
4
- data.tar.gz: b7ab716a5f2423778ff9181cacba93678d90efd8
3
+ metadata.gz: e10481a8a17fe1fe0d17694956ac5820d7506b4d
4
+ data.tar.gz: ba53d77cbd3174d653611ee4294d23384b2f2e93
5
5
  SHA512:
6
- metadata.gz: 65f14a606e3e393a2dbc862fa0a40f87543edef4f241b0a26e5650a1d4b7b49cd5396d8c896f0ffd86d39ca23879f14d18e1693dec5d492b39f36526e2820110
7
- data.tar.gz: 128b93d226a28d24113ed9cb1b5d8cd10e897dafd5896ffaf6229131f5242b8fd2837d348e57e28935090af14b72f4aca68ec86c1c9d7b400e754784fe7b57c1
6
+ metadata.gz: 1536ea22f55cd016195addeae5e1219d1466ce64a0445bc7a112bb8efc0166b35019a30a3d1949d7a3633066eab57c98317886d05f9ff1a4e2512740580b5ba8
7
+ data.tar.gz: 7b5ff207e4dc6609d15d54b6018d0f8eae1eca534a9eb68f7a43dacf67eb3a6843fa041feccff3d781ab2bf69909ebfedf1e167af0c6005a946023f76edd34e7
data/Appraisals CHANGED
@@ -1,15 +1,3 @@
1
- appraise "activerecord-3-0" do
2
- gem "activerecord", "~> 3.0.20"
3
- end
4
-
5
- appraise "activerecord-3-1" do
6
- gem "activerecord", "~> 3.1.12"
7
- end
8
-
9
- appraise "activerecord-3-2" do
10
- gem "activerecord", "~> 3.2.22.2"
11
- end
12
-
13
1
  appraise "activerecord-4-0" do
14
2
  gem "activerecord", "~> 4.0.13"
15
3
  end
data/README.md CHANGED
@@ -18,6 +18,8 @@ One picture is worth a thousand words:
18
18
 
19
19
  ![Display hierarchy for Author object.](docs/images/author_books_reviews.png)
20
20
 
21
+ (GraphViz software needs to be installed on the system for this to work. See [Graphviz Installation](#graphvizinstallation).)
22
+
21
23
  And the same objects in console output:
22
24
 
23
25
  ```ruby
@@ -47,6 +49,14 @@ Or install it yourself as:
47
49
  $ gem install active_explorer
48
50
  ```
49
51
 
52
+ ### Graphviz Installation
53
+
54
+ You need to have GraphViz software installed on your system.
55
+
56
+ On Mac: `brew install graphviz`
57
+
58
+ On other systems please take a look at official pages [http://www.graphviz.org/](http://www.graphviz.org/) or Google for it.
59
+
50
60
  ## Usage
51
61
 
52
62
  In Rails, place this code into `application.rb`:
@@ -208,11 +218,26 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
208
218
 
209
219
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
210
220
 
221
+ ### Appraisals
222
+
223
+ To test support of many different versions I use [Appraisal gem](https://github.com/thoughtbot/appraisal) that allows me to define several different Gemfiles and test them all at once.
224
+
225
+ See `Appraisals` file.
226
+
227
+ Usage:
228
+
229
+ 1. Install gems by calling `appraisal install` (or `appraisal update` to update them)
230
+ 2. Run tests by calling `appraisal rspec` (or call specific version `appraisal activerecord-4-2 rspec`)
231
+
232
+ Everything should be green ;)
233
+
211
234
  ## TODO
212
235
 
213
236
  - Bug hunt.
214
- - Support all versions of Active Record >= 3.0.x
237
+ - Colorize console output.
215
238
  - Export to yuml.me graphing website.
239
+ - Export to SVG.
240
+ - Export to DOT language.
216
241
  - Interactive graph.
217
242
  - Rubymine plugin ;)
218
243
 
@@ -20,19 +20,19 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency 'ruby-graphviz'
24
- spec.add_dependency 'activerecord', '~> 4.2.0' # TODO: Support older versions as well.
23
+ spec.add_dependency 'ruby-graphviz', '~> 1.2'
24
+ spec.add_dependency 'activerecord', '>= 4.0.13'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.10"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency 'rspec' , '>=3.0.0'
29
- spec.add_development_dependency "rspec-nc"
30
- spec.add_development_dependency "guard"
31
- spec.add_development_dependency "guard-rspec"
32
- spec.add_development_dependency "sqlite3"
33
- spec.add_development_dependency 'ruby-graphviz', '~> 1.2', '>= 1.2.2'
34
- spec.add_development_dependency 'awesome_print'
35
- spec.add_development_dependency 'factory_girl'
36
- spec.add_development_dependency 'appraisal'
37
- spec.add_development_dependency 'pry'
28
+ spec.add_development_dependency 'rspec' , "~> 3.0"
29
+ spec.add_development_dependency "rspec-nc", "~> 0.3"
30
+ spec.add_development_dependency "guard", "~> 2.14"
31
+ spec.add_development_dependency "guard-rspec", "~> 4.7"
32
+ spec.add_development_dependency "sqlite3", "~> 1.3"
33
+ spec.add_development_dependency 'awesome_print', "~> 1.7"
34
+ spec.add_development_dependency 'factory_girl', "~> 4.7"
35
+ spec.add_development_dependency 'appraisal', "~> 2.1"
36
+ spec.add_development_dependency 'pry', "~> 0.10"
37
+ spec.add_development_dependency 'pry-byebug', "~> 3.4"
38
38
  end
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- active_explorer (0.0.6)
5
- activerecord
6
- ruby-graphviz
4
+ active_explorer (0.0.8)
5
+ activerecord (>= 4.0.13)
6
+ ruby-graphviz (~> 1.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -30,6 +30,7 @@ GEM
30
30
  arel (4.0.2)
31
31
  awesome_print (1.7.0)
32
32
  builder (3.1.4)
33
+ byebug (9.0.5)
33
34
  coderay (1.1.1)
34
35
  diff-lcs (1.2.5)
35
36
  factory_girl (4.7.0)
@@ -59,7 +60,6 @@ GEM
59
60
  method_source (0.8.2)
60
61
  minitest (4.7.5)
61
62
  multi_json (1.12.1)
62
- mysql (2.9.1)
63
63
  nenv (0.3.0)
64
64
  notiffany (0.1.0)
65
65
  nenv (~> 0.1)
@@ -68,6 +68,9 @@ GEM
68
68
  coderay (~> 1.1.0)
69
69
  method_source (~> 0.8.1)
70
70
  slop (~> 3.4)
71
+ pry-byebug (3.4.0)
72
+ byebug (~> 9.0)
73
+ pry (~> 0.10)
71
74
  rake (10.5.0)
72
75
  rb-fsevent (0.9.7)
73
76
  rb-inotify (0.9.7)
@@ -92,10 +95,11 @@ GEM
92
95
  ruby_dep (1.3.1)
93
96
  shellany (0.0.1)
94
97
  slop (3.6.0)
98
+ sqlite3 (1.3.11)
95
99
  terminal-notifier (1.6.3)
96
100
  thor (0.19.1)
97
101
  thread_safe (0.3.5)
98
- tzinfo (0.3.49)
102
+ tzinfo (0.3.50)
99
103
 
100
104
  PLATFORMS
101
105
  ruby
@@ -103,17 +107,18 @@ PLATFORMS
103
107
  DEPENDENCIES
104
108
  active_explorer!
105
109
  activerecord (~> 4.0.13)
106
- appraisal
107
- awesome_print
110
+ appraisal (~> 2.1)
111
+ awesome_print (~> 1.7)
108
112
  bundler (~> 1.10)
109
- factory_girl
110
- guard
111
- guard-rspec
112
- mysql
113
+ factory_girl (~> 4.7)
114
+ guard (~> 2.14)
115
+ guard-rspec (~> 4.7)
116
+ pry (~> 0.10)
117
+ pry-byebug (~> 3.4)
113
118
  rake (~> 10.0)
114
- rspec (>= 3.0.0)
115
- rspec-nc
116
- ruby-graphviz (~> 1.2, >= 1.2.2)
119
+ rspec (~> 3.0)
120
+ rspec-nc (~> 0.3)
121
+ sqlite3 (~> 1.3)
117
122
 
118
123
  BUNDLED WITH
119
124
  1.11.2
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- active_explorer (0.0.6)
5
- activerecord
6
- ruby-graphviz
4
+ active_explorer (0.0.8)
5
+ activerecord (>= 4.0.13)
6
+ ruby-graphviz (~> 1.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -28,6 +28,7 @@ GEM
28
28
  arel (5.0.1.20140414130214)
29
29
  awesome_print (1.7.0)
30
30
  builder (3.2.2)
31
+ byebug (9.0.5)
31
32
  coderay (1.1.1)
32
33
  diff-lcs (1.2.5)
33
34
  factory_girl (4.7.0)
@@ -57,7 +58,6 @@ GEM
57
58
  lumberjack (1.0.10)
58
59
  method_source (0.8.2)
59
60
  minitest (5.9.0)
60
- mysql (2.9.1)
61
61
  nenv (0.3.0)
62
62
  notiffany (0.1.0)
63
63
  nenv (~> 0.1)
@@ -66,6 +66,9 @@ GEM
66
66
  coderay (~> 1.1.0)
67
67
  method_source (~> 0.8.1)
68
68
  slop (~> 3.4)
69
+ pry-byebug (3.4.0)
70
+ byebug (~> 9.0)
71
+ pry (~> 0.10)
69
72
  rake (10.5.0)
70
73
  rb-fsevent (0.9.7)
71
74
  rb-inotify (0.9.7)
@@ -90,6 +93,7 @@ GEM
90
93
  ruby_dep (1.3.1)
91
94
  shellany (0.0.1)
92
95
  slop (3.6.0)
96
+ sqlite3 (1.3.11)
93
97
  terminal-notifier (1.6.3)
94
98
  thor (0.19.1)
95
99
  thread_safe (0.3.5)
@@ -102,17 +106,18 @@ PLATFORMS
102
106
  DEPENDENCIES
103
107
  active_explorer!
104
108
  activerecord (~> 4.1.15)
105
- appraisal
106
- awesome_print
109
+ appraisal (~> 2.1)
110
+ awesome_print (~> 1.7)
107
111
  bundler (~> 1.10)
108
- factory_girl
109
- guard
110
- guard-rspec
111
- mysql
112
+ factory_girl (~> 4.7)
113
+ guard (~> 2.14)
114
+ guard-rspec (~> 4.7)
115
+ pry (~> 0.10)
116
+ pry-byebug (~> 3.4)
112
117
  rake (~> 10.0)
113
- rspec (>= 3.0.0)
114
- rspec-nc
115
- ruby-graphviz (~> 1.2, >= 1.2.2)
118
+ rspec (~> 3.0)
119
+ rspec-nc (~> 0.3)
120
+ sqlite3 (~> 1.3)
116
121
 
117
122
  BUNDLED WITH
118
123
  1.11.2
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- active_explorer (0.0.6)
5
- activerecord
6
- ruby-graphviz
4
+ active_explorer (0.0.8)
5
+ activerecord (>= 4.0.13)
6
+ ruby-graphviz (~> 1.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -28,6 +28,7 @@ GEM
28
28
  arel (6.0.3)
29
29
  awesome_print (1.7.0)
30
30
  builder (3.2.2)
31
+ byebug (9.0.5)
31
32
  coderay (1.1.1)
32
33
  diff-lcs (1.2.5)
33
34
  factory_girl (4.7.0)
@@ -57,7 +58,6 @@ GEM
57
58
  lumberjack (1.0.10)
58
59
  method_source (0.8.2)
59
60
  minitest (5.9.0)
60
- mysql (2.9.1)
61
61
  nenv (0.3.0)
62
62
  notiffany (0.1.0)
63
63
  nenv (~> 0.1)
@@ -66,6 +66,9 @@ GEM
66
66
  coderay (~> 1.1.0)
67
67
  method_source (~> 0.8.1)
68
68
  slop (~> 3.4)
69
+ pry-byebug (3.4.0)
70
+ byebug (~> 9.0)
71
+ pry (~> 0.10)
69
72
  rake (10.5.0)
70
73
  rb-fsevent (0.9.7)
71
74
  rb-inotify (0.9.7)
@@ -90,6 +93,7 @@ GEM
90
93
  ruby_dep (1.3.1)
91
94
  shellany (0.0.1)
92
95
  slop (3.6.0)
96
+ sqlite3 (1.3.11)
93
97
  terminal-notifier (1.6.3)
94
98
  thor (0.19.1)
95
99
  thread_safe (0.3.5)
@@ -102,17 +106,18 @@ PLATFORMS
102
106
  DEPENDENCIES
103
107
  active_explorer!
104
108
  activerecord (~> 4.2.6)
105
- appraisal
106
- awesome_print
109
+ appraisal (~> 2.1)
110
+ awesome_print (~> 1.7)
107
111
  bundler (~> 1.10)
108
- factory_girl
109
- guard
110
- guard-rspec
111
- mysql
112
+ factory_girl (~> 4.7)
113
+ guard (~> 2.14)
114
+ guard-rspec (~> 4.7)
115
+ pry (~> 0.10)
116
+ pry-byebug (~> 3.4)
112
117
  rake (~> 10.0)
113
- rspec (>= 3.0.0)
114
- rspec-nc
115
- ruby-graphviz (~> 1.2, >= 1.2.2)
118
+ rspec (~> 3.0)
119
+ rspec-nc (~> 0.3)
120
+ sqlite3 (~> 1.3)
116
121
 
117
122
  BUNDLED WITH
118
123
  1.11.2
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- active_explorer (0.0.6)
5
- activerecord
6
- ruby-graphviz
4
+ active_explorer (0.0.8)
5
+ activerecord (>= 4.0.13)
6
+ ruby-graphviz (~> 1.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -25,6 +25,7 @@ GEM
25
25
  thor (>= 0.14.0)
26
26
  arel (7.0.0)
27
27
  awesome_print (1.7.0)
28
+ byebug (9.0.5)
28
29
  coderay (1.1.1)
29
30
  concurrent-ruby (1.0.2)
30
31
  diff-lcs (1.2.5)
@@ -54,7 +55,6 @@ GEM
54
55
  lumberjack (1.0.10)
55
56
  method_source (0.8.2)
56
57
  minitest (5.9.0)
57
- mysql2 (0.4.4)
58
58
  nenv (0.3.0)
59
59
  notiffany (0.1.0)
60
60
  nenv (~> 0.1)
@@ -63,6 +63,9 @@ GEM
63
63
  coderay (~> 1.1.0)
64
64
  method_source (~> 0.8.1)
65
65
  slop (~> 3.4)
66
+ pry-byebug (3.4.0)
67
+ byebug (~> 9.0)
68
+ pry (~> 0.10)
66
69
  rake (10.5.0)
67
70
  rb-fsevent (0.9.7)
68
71
  rb-inotify (0.9.7)
@@ -87,6 +90,7 @@ GEM
87
90
  ruby_dep (1.3.1)
88
91
  shellany (0.0.1)
89
92
  slop (3.6.0)
93
+ sqlite3 (1.3.11)
90
94
  terminal-notifier (1.6.3)
91
95
  thor (0.19.1)
92
96
  thread_safe (0.3.5)
@@ -99,17 +103,18 @@ PLATFORMS
99
103
  DEPENDENCIES
100
104
  active_explorer!
101
105
  activerecord (~> 5.0.0.rc1)
102
- appraisal
103
- awesome_print
106
+ appraisal (~> 2.1)
107
+ awesome_print (~> 1.7)
104
108
  bundler (~> 1.10)
105
- factory_girl
106
- guard
107
- guard-rspec
108
- mysql2
109
+ factory_girl (~> 4.7)
110
+ guard (~> 2.14)
111
+ guard-rspec (~> 4.7)
112
+ pry (~> 0.10)
113
+ pry-byebug (~> 3.4)
109
114
  rake (~> 10.0)
110
- rspec (>= 3.0.0)
111
- rspec-nc
112
- ruby-graphviz (~> 1.2, >= 1.2.2)
115
+ rspec (~> 3.0)
116
+ rspec-nc (~> 0.3)
117
+ sqlite3 (~> 1.3)
113
118
 
114
119
  BUNDLED WITH
115
120
  1.11.2
@@ -1,3 +1,3 @@
1
1
  module ActiveExplorer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -75,7 +75,7 @@ module ActiveExplorer
75
75
  end
76
76
 
77
77
  def get_hash
78
- @hash.deep_dup
78
+ @hash.dup
79
79
  end
80
80
 
81
81
  def to_console
@@ -125,7 +125,7 @@ module ActiveExplorer
125
125
  subobjects.present? ? subobjects : nil
126
126
 
127
127
  rescue NameError, ActiveRecord::StatementInvalid, ActiveRecord::RecordNotFound => e
128
- association_type = is_has_many_association?(association) ? 'has_many' : 'belongs_to'
128
+ association_type = association.macro
129
129
  add_error_hash("#{e.message} in #{association_type} :#{association.name}")
130
130
  nil
131
131
  end
@@ -182,15 +182,7 @@ module ActiveExplorer
182
182
  end
183
183
 
184
184
  def association_type(association)
185
- if association.is_a?(ActiveRecord::Reflection::HasManyReflection) ||
186
- association.is_a?(ActiveRecord::Reflection::ThroughReflection) ||
187
- association.is_a?(ActiveRecord::Reflection::HasAndBelongsToManyReflection)
188
- :has_many
189
- elsif association.is_a?(ActiveRecord::Reflection::HasOneReflection)
190
- :has_one
191
- elsif association.is_a?(ActiveRecord::Reflection::BelongsToReflection)
192
- :belongs_to
193
- end
185
+ association.macro
194
186
  end
195
187
 
196
188
  def make_short(text)
@@ -208,18 +200,6 @@ module ActiveExplorer
208
200
  array.collect { |a| a.to_s }
209
201
  end
210
202
 
211
- def is_belongs_to_association?(association)
212
- association.is_a?(ActiveRecord::Reflection::BelongsToReflection)
213
- end
214
-
215
- def is_has_many_association?(association)
216
- association.is_a?(ActiveRecord::Reflection::HasManyReflection)
217
- end
218
-
219
- def is_has_one_association?(association)
220
- association.is_a?(ActiveRecord::Reflection::HasOneReflection)
221
- end
222
-
223
203
  def is_parent?(object)
224
204
  object === @parent_object
225
205
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_explorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Ulicny
@@ -14,30 +14,30 @@ dependencies:
14
14
  name: ruby-graphviz
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.0
33
+ version: 4.0.13
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 4.2.0
40
+ version: 4.0.13
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -70,148 +70,142 @@ dependencies:
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.0.0
75
+ version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.0.0
82
+ version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-nc
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '0.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '2.14'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '2.14'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '4.7'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '4.7'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: sqlite3
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '1.3'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '1.3'
139
139
  - !ruby/object:Gem::Dependency
140
- name: ruby-graphviz
140
+ name: awesome_print
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.2'
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- version: 1.2.2
145
+ version: '1.7'
149
146
  type: :development
150
147
  prerelease: false
151
148
  version_requirements: !ruby/object:Gem::Requirement
152
149
  requirements:
153
150
  - - "~>"
154
151
  - !ruby/object:Gem::Version
155
- version: '1.2'
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- version: 1.2.2
152
+ version: '1.7'
159
153
  - !ruby/object:Gem::Dependency
160
- name: awesome_print
154
+ name: factory_girl
161
155
  requirement: !ruby/object:Gem::Requirement
162
156
  requirements:
163
- - - ">="
157
+ - - "~>"
164
158
  - !ruby/object:Gem::Version
165
- version: '0'
159
+ version: '4.7'
166
160
  type: :development
167
161
  prerelease: false
168
162
  version_requirements: !ruby/object:Gem::Requirement
169
163
  requirements:
170
- - - ">="
164
+ - - "~>"
171
165
  - !ruby/object:Gem::Version
172
- version: '0'
166
+ version: '4.7'
173
167
  - !ruby/object:Gem::Dependency
174
- name: factory_girl
168
+ name: appraisal
175
169
  requirement: !ruby/object:Gem::Requirement
176
170
  requirements:
177
- - - ">="
171
+ - - "~>"
178
172
  - !ruby/object:Gem::Version
179
- version: '0'
173
+ version: '2.1'
180
174
  type: :development
181
175
  prerelease: false
182
176
  version_requirements: !ruby/object:Gem::Requirement
183
177
  requirements:
184
- - - ">="
178
+ - - "~>"
185
179
  - !ruby/object:Gem::Version
186
- version: '0'
180
+ version: '2.1'
187
181
  - !ruby/object:Gem::Dependency
188
- name: appraisal
182
+ name: pry
189
183
  requirement: !ruby/object:Gem::Requirement
190
184
  requirements:
191
- - - ">="
185
+ - - "~>"
192
186
  - !ruby/object:Gem::Version
193
- version: '0'
187
+ version: '0.10'
194
188
  type: :development
195
189
  prerelease: false
196
190
  version_requirements: !ruby/object:Gem::Requirement
197
191
  requirements:
198
- - - ">="
192
+ - - "~>"
199
193
  - !ruby/object:Gem::Version
200
- version: '0'
194
+ version: '0.10'
201
195
  - !ruby/object:Gem::Dependency
202
- name: pry
196
+ name: pry-byebug
203
197
  requirement: !ruby/object:Gem::Requirement
204
198
  requirements:
205
- - - ">="
199
+ - - "~>"
206
200
  - !ruby/object:Gem::Version
207
- version: '0'
201
+ version: '3.4'
208
202
  type: :development
209
203
  prerelease: false
210
204
  version_requirements: !ruby/object:Gem::Requirement
211
205
  requirements:
212
- - - ">="
206
+ - - "~>"
213
207
  - !ruby/object:Gem::Version
214
- version: '0'
208
+ version: '3.4'
215
209
  description: Visualization of data and associations represented by Active Record.
216
210
  email:
217
211
  - xulicny@gmail.com
@@ -239,11 +233,9 @@ files:
239
233
  - bin/setup
240
234
  - docs/images/author_books_reviews.png
241
235
  - gemfiles/activerecord_3_0.gemfile
242
- - gemfiles/activerecord_3_0.gemfile.lock
243
236
  - gemfiles/activerecord_3_1.gemfile
244
237
  - gemfiles/activerecord_3_1.gemfile.lock
245
238
  - gemfiles/activerecord_3_2.gemfile
246
- - gemfiles/activerecord_3_2.gemfile.lock
247
239
  - gemfiles/activerecord_4_0.gemfile
248
240
  - gemfiles/activerecord_4_0.gemfile.lock
249
241
  - gemfiles/activerecord_4_1.gemfile
@@ -1,111 +0,0 @@
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.0.20)
12
- activesupport (= 3.0.20)
13
- builder (~> 2.1.2)
14
- i18n (~> 0.5.0)
15
- activerecord (3.0.20)
16
- activemodel (= 3.0.20)
17
- activesupport (= 3.0.20)
18
- arel (~> 2.0.10)
19
- tzinfo (~> 0.3.23)
20
- activesupport (3.0.20)
21
- appraisal (2.1.0)
22
- bundler
23
- rake
24
- thor (>= 0.14.0)
25
- arel (2.0.10)
26
- awesome_print (1.7.0)
27
- builder (2.1.2)
28
- coderay (1.1.1)
29
- diff-lcs (1.2.5)
30
- factory_girl (4.7.0)
31
- activesupport (>= 3.0.0)
32
- ffi (1.9.10)
33
- formatador (0.2.5)
34
- guard (2.14.0)
35
- formatador (>= 0.2.4)
36
- listen (>= 2.7, < 4.0)
37
- lumberjack (~> 1.0)
38
- nenv (~> 0.1)
39
- notiffany (~> 0.0)
40
- pry (>= 0.9.12)
41
- shellany (~> 0.0)
42
- thor (>= 0.18.1)
43
- guard-compat (1.2.1)
44
- guard-rspec (4.7.2)
45
- guard (~> 2.1)
46
- guard-compat (~> 1.1)
47
- rspec (>= 2.99.0, < 4.0)
48
- i18n (0.5.4)
49
- listen (3.1.5)
50
- rb-fsevent (~> 0.9, >= 0.9.4)
51
- rb-inotify (~> 0.9, >= 0.9.7)
52
- ruby_dep (~> 1.2)
53
- lumberjack (1.0.10)
54
- method_source (0.8.2)
55
- mysql (2.9.1)
56
- nenv (0.3.0)
57
- notiffany (0.1.0)
58
- nenv (~> 0.1)
59
- shellany (~> 0.0)
60
- pry (0.10.3)
61
- coderay (~> 1.1.0)
62
- method_source (~> 0.8.1)
63
- slop (~> 3.4)
64
- rake (10.5.0)
65
- rb-fsevent (0.9.7)
66
- rb-inotify (0.9.7)
67
- ffi (>= 0.5.0)
68
- rspec (3.4.0)
69
- rspec-core (~> 3.4.0)
70
- rspec-expectations (~> 3.4.0)
71
- rspec-mocks (~> 3.4.0)
72
- rspec-core (3.4.4)
73
- rspec-support (~> 3.4.0)
74
- rspec-expectations (3.4.0)
75
- diff-lcs (>= 1.2.0, < 2.0)
76
- rspec-support (~> 3.4.0)
77
- rspec-mocks (3.4.1)
78
- diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.4.0)
80
- rspec-nc (0.3.0)
81
- rspec (>= 3)
82
- terminal-notifier (>= 1.4)
83
- rspec-support (3.4.1)
84
- ruby-graphviz (1.2.2)
85
- ruby_dep (1.3.1)
86
- shellany (0.0.1)
87
- slop (3.6.0)
88
- terminal-notifier (1.6.3)
89
- thor (0.19.1)
90
- tzinfo (0.3.49)
91
-
92
- PLATFORMS
93
- ruby
94
-
95
- DEPENDENCIES
96
- active_explorer!
97
- activerecord (~> 3.0.20)
98
- appraisal
99
- awesome_print
100
- bundler (~> 1.10)
101
- factory_girl
102
- guard
103
- guard-rspec
104
- mysql
105
- rake (~> 10.0)
106
- rspec (>= 3.0.0)
107
- rspec-nc
108
- ruby-graphviz (~> 1.2, >= 1.2.2)
109
-
110
- BUNDLED WITH
111
- 1.11.2
@@ -1,113 +0,0 @@
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