ari 0.2.1

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.
Files changed (74) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +99 -0
  3. data/Rakefile +38 -0
  4. data/lib/ari.rb +6 -0
  5. data/lib/ari/active_record.rb +33 -0
  6. data/lib/ari/inspector.rb +153 -0
  7. data/lib/ari/version.rb +3 -0
  8. data/lib/generators/USAGE +4 -0
  9. data/lib/generators/ari_generator.rb +17 -0
  10. data/lib/generators/templates/controllers/ari_controller.rb +10 -0
  11. data/lib/generators/templates/views/_paging.html.erb +9 -0
  12. data/lib/generators/templates/views/_styles.html.erb +49 -0
  13. data/lib/generators/templates/views/index.html.erb +23 -0
  14. data/lib/generators/templates/views/show.html.erb +34 -0
  15. data/lib/tasks/ari_tasks.rake +4 -0
  16. data/test/ari_test.rb +7 -0
  17. data/test/dummy/README.rdoc +261 -0
  18. data/test/dummy/Rakefile +7 -0
  19. data/test/dummy/app/assets/javascripts/application.js +15 -0
  20. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  21. data/test/dummy/app/controllers/application_controller.rb +3 -0
  22. data/test/dummy/app/controllers/ari_controller.rb +10 -0
  23. data/test/dummy/app/controllers/inspect_controller.rb +5 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/models/album.rb +3 -0
  26. data/test/dummy/app/models/package.rb +3 -0
  27. data/test/dummy/app/models/ttt/d/fff.rb +0 -0
  28. data/test/dummy/app/models/ttt/ttt.rb +2 -0
  29. data/test/dummy/app/models/user.rb +10 -0
  30. data/test/dummy/app/views/ari/_paging.html.erb +9 -0
  31. data/test/dummy/app/views/ari/_styles.html.erb +47 -0
  32. data/test/dummy/app/views/ari/index.html.erb +23 -0
  33. data/test/dummy/app/views/ari/show.html.erb +34 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/config/application.rb +56 -0
  37. data/test/dummy/config/boot.rb +10 -0
  38. data/test/dummy/config/database.yml +25 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +37 -0
  41. data/test/dummy/config/environments/production.rb +67 -0
  42. data/test/dummy/config/environments/test.rb +37 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/inflections.rb +15 -0
  45. data/test/dummy/config/initializers/mime_types.rb +5 -0
  46. data/test/dummy/config/initializers/secret_token.rb +7 -0
  47. data/test/dummy/config/initializers/session_store.rb +8 -0
  48. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/test/dummy/config/locales/en.yml +5 -0
  50. data/test/dummy/config/routes.rb +59 -0
  51. data/test/dummy/db/development.sqlite3 +0 -0
  52. data/test/dummy/db/migrate/20120326121018_test.rb +20 -0
  53. data/test/dummy/db/production.sqlite3 +0 -0
  54. data/test/dummy/db/schema.rb +30 -0
  55. data/test/dummy/db/seeds.rb +22 -0
  56. data/test/dummy/log/development.log +10921 -0
  57. data/test/dummy/log/production.log +0 -0
  58. data/test/dummy/public/404.html +26 -0
  59. data/test/dummy/public/422.html +26 -0
  60. data/test/dummy/public/500.html +25 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/script/rails +6 -0
  63. data/test/dummy/tmp/cache/assets/CA8/5F0/sprockets%2F73d5979d76f05673b860289b5c7f929f +0 -0
  64. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  66. data/test/dummy/tmp/cache/assets/D3B/B90/sprockets%2F902a443f4ab24e9dc49b54c4c421f4d9 +0 -0
  67. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  68. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  69. data/test/dummy/tmp/cache/assets/DCA/390/sprockets%2Fae0dd35d6f3f652aeaad15984ee1e362 +0 -0
  70. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  71. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  72. data/test/dummy/tmp/cache/assets/E6C/A50/sprockets%2F43aeffaab9beb5f93bf658988fdb11ec +0 -0
  73. data/test/test_helper.rb +10 -0
  74. metadata +205 -0
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,205 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ari
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pasalic Zaharije
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-23 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2161476300 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2161476300
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &2161475660 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *2161475660
36
+ description: Inspects and navigate through Activerecord data via relations defined
37
+ in models
38
+ email:
39
+ - zaharije@atlantbh.com
40
+ executables: []
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - lib/ari/active_record.rb
45
+ - lib/ari/inspector.rb
46
+ - lib/ari/version.rb
47
+ - lib/ari.rb
48
+ - lib/generators/ari_generator.rb
49
+ - lib/generators/templates/controllers/ari_controller.rb
50
+ - lib/generators/templates/views/_paging.html.erb
51
+ - lib/generators/templates/views/_styles.html.erb
52
+ - lib/generators/templates/views/index.html.erb
53
+ - lib/generators/templates/views/show.html.erb
54
+ - lib/generators/USAGE
55
+ - lib/tasks/ari_tasks.rake
56
+ - MIT-LICENSE
57
+ - Rakefile
58
+ - README.md
59
+ - test/ari_test.rb
60
+ - test/dummy/app/assets/javascripts/application.js
61
+ - test/dummy/app/assets/stylesheets/application.css
62
+ - test/dummy/app/controllers/application_controller.rb
63
+ - test/dummy/app/controllers/ari_controller.rb
64
+ - test/dummy/app/controllers/inspect_controller.rb
65
+ - test/dummy/app/helpers/application_helper.rb
66
+ - test/dummy/app/models/album.rb
67
+ - test/dummy/app/models/package.rb
68
+ - test/dummy/app/models/ttt/d/fff.rb
69
+ - test/dummy/app/models/ttt/ttt.rb
70
+ - test/dummy/app/models/user.rb
71
+ - test/dummy/app/views/ari/_paging.html.erb
72
+ - test/dummy/app/views/ari/_styles.html.erb
73
+ - test/dummy/app/views/ari/index.html.erb
74
+ - test/dummy/app/views/ari/show.html.erb
75
+ - test/dummy/app/views/layouts/application.html.erb
76
+ - test/dummy/config/application.rb
77
+ - test/dummy/config/boot.rb
78
+ - test/dummy/config/database.yml
79
+ - test/dummy/config/environment.rb
80
+ - test/dummy/config/environments/development.rb
81
+ - test/dummy/config/environments/production.rb
82
+ - test/dummy/config/environments/test.rb
83
+ - test/dummy/config/initializers/backtrace_silencers.rb
84
+ - test/dummy/config/initializers/inflections.rb
85
+ - test/dummy/config/initializers/mime_types.rb
86
+ - test/dummy/config/initializers/secret_token.rb
87
+ - test/dummy/config/initializers/session_store.rb
88
+ - test/dummy/config/initializers/wrap_parameters.rb
89
+ - test/dummy/config/locales/en.yml
90
+ - test/dummy/config/routes.rb
91
+ - test/dummy/config.ru
92
+ - test/dummy/db/development.sqlite3
93
+ - test/dummy/db/migrate/20120326121018_test.rb
94
+ - test/dummy/db/production.sqlite3
95
+ - test/dummy/db/schema.rb
96
+ - test/dummy/db/seeds.rb
97
+ - test/dummy/log/development.log
98
+ - test/dummy/log/production.log
99
+ - test/dummy/public/404.html
100
+ - test/dummy/public/422.html
101
+ - test/dummy/public/500.html
102
+ - test/dummy/public/favicon.ico
103
+ - test/dummy/Rakefile
104
+ - test/dummy/README.rdoc
105
+ - test/dummy/script/rails
106
+ - test/dummy/tmp/cache/assets/CA8/5F0/sprockets%2F73d5979d76f05673b860289b5c7f929f
107
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
108
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
109
+ - test/dummy/tmp/cache/assets/D3B/B90/sprockets%2F902a443f4ab24e9dc49b54c4c421f4d9
110
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
111
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
112
+ - test/dummy/tmp/cache/assets/DCA/390/sprockets%2Fae0dd35d6f3f652aeaad15984ee1e362
113
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
114
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
115
+ - test/dummy/tmp/cache/assets/E6C/A50/sprockets%2F43aeffaab9beb5f93bf658988fdb11ec
116
+ - test/test_helper.rb
117
+ homepage: https://github.com/ATLANTBH/ari
118
+ licenses: []
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ segments:
130
+ - 0
131
+ hash: -1212268511848996894
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ segments:
139
+ - 0
140
+ hash: -1212268511848996894
141
+ requirements: []
142
+ rubyforge_project:
143
+ rubygems_version: 1.8.15
144
+ signing_key:
145
+ specification_version: 3
146
+ summary: ARI - Active Record Insector
147
+ test_files:
148
+ - test/ari_test.rb
149
+ - test/dummy/app/assets/javascripts/application.js
150
+ - test/dummy/app/assets/stylesheets/application.css
151
+ - test/dummy/app/controllers/application_controller.rb
152
+ - test/dummy/app/controllers/ari_controller.rb
153
+ - test/dummy/app/controllers/inspect_controller.rb
154
+ - test/dummy/app/helpers/application_helper.rb
155
+ - test/dummy/app/models/album.rb
156
+ - test/dummy/app/models/package.rb
157
+ - test/dummy/app/models/ttt/d/fff.rb
158
+ - test/dummy/app/models/ttt/ttt.rb
159
+ - test/dummy/app/models/user.rb
160
+ - test/dummy/app/views/ari/_paging.html.erb
161
+ - test/dummy/app/views/ari/_styles.html.erb
162
+ - test/dummy/app/views/ari/index.html.erb
163
+ - test/dummy/app/views/ari/show.html.erb
164
+ - test/dummy/app/views/layouts/application.html.erb
165
+ - test/dummy/config/application.rb
166
+ - test/dummy/config/boot.rb
167
+ - test/dummy/config/database.yml
168
+ - test/dummy/config/environment.rb
169
+ - test/dummy/config/environments/development.rb
170
+ - test/dummy/config/environments/production.rb
171
+ - test/dummy/config/environments/test.rb
172
+ - test/dummy/config/initializers/backtrace_silencers.rb
173
+ - test/dummy/config/initializers/inflections.rb
174
+ - test/dummy/config/initializers/mime_types.rb
175
+ - test/dummy/config/initializers/secret_token.rb
176
+ - test/dummy/config/initializers/session_store.rb
177
+ - test/dummy/config/initializers/wrap_parameters.rb
178
+ - test/dummy/config/locales/en.yml
179
+ - test/dummy/config/routes.rb
180
+ - test/dummy/config.ru
181
+ - test/dummy/db/development.sqlite3
182
+ - test/dummy/db/migrate/20120326121018_test.rb
183
+ - test/dummy/db/production.sqlite3
184
+ - test/dummy/db/schema.rb
185
+ - test/dummy/db/seeds.rb
186
+ - test/dummy/log/development.log
187
+ - test/dummy/log/production.log
188
+ - test/dummy/public/404.html
189
+ - test/dummy/public/422.html
190
+ - test/dummy/public/500.html
191
+ - test/dummy/public/favicon.ico
192
+ - test/dummy/Rakefile
193
+ - test/dummy/README.rdoc
194
+ - test/dummy/script/rails
195
+ - test/dummy/tmp/cache/assets/CA8/5F0/sprockets%2F73d5979d76f05673b860289b5c7f929f
196
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
197
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
198
+ - test/dummy/tmp/cache/assets/D3B/B90/sprockets%2F902a443f4ab24e9dc49b54c4c421f4d9
199
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
200
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
201
+ - test/dummy/tmp/cache/assets/DCA/390/sprockets%2Fae0dd35d6f3f652aeaad15984ee1e362
202
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
203
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
204
+ - test/dummy/tmp/cache/assets/E6C/A50/sprockets%2F43aeffaab9beb5f93bf658988fdb11ec
205
+ - test/test_helper.rb