activegrid 1.0.0

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 (69) hide show
  1. data/LICENSE +0 -0
  2. data/README.md +28 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/javascripts/activegrid.js +73 -0
  5. data/app/assets/stylesheets/activegrid.css +4 -0
  6. data/app/controllers/active_grid/controller.rb +53 -0
  7. data/app/lib/active_grid/column.rb +42 -0
  8. data/app/lib/active_grid/grid.rb +90 -0
  9. data/app/views/active_grid/update.js.erb +1 -0
  10. data/lib/activegrid/engine.rb +10 -0
  11. data/lib/activegrid/version.rb +3 -0
  12. data/lib/activegrid.rb +4 -0
  13. data/test/activegrid_test.rb +7 -0
  14. data/test/dummy/Rakefile +6 -0
  15. data/test/dummy/app/assets/javascripts/application.js +4 -0
  16. data/test/dummy/app/assets/stylesheets/application.css +5 -0
  17. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  18. data/test/dummy/app/controllers/application_controller.rb +3 -0
  19. data/test/dummy/app/controllers/products_controller.rb +81 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/helpers/products_helper.rb +2 -0
  22. data/test/dummy/app/models/product.rb +2 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/app/views/products/_form.html.erb +33 -0
  25. data/test/dummy/app/views/products/_grid.html.erb +9 -0
  26. data/test/dummy/app/views/products/edit.html.erb +6 -0
  27. data/test/dummy/app/views/products/index.html.erb +7 -0
  28. data/test/dummy/app/views/products/new.html.erb +5 -0
  29. data/test/dummy/app/views/products/show.html.erb +25 -0
  30. data/test/dummy/config/application.rb +18 -0
  31. data/test/dummy/config/boot.rb +10 -0
  32. data/test/dummy/config/database.yml +17 -0
  33. data/test/dummy/config/environment.rb +3 -0
  34. data/test/dummy/config/environments/development.rb +18 -0
  35. data/test/dummy/config/environments/production.rb +18 -0
  36. data/test/dummy/config/environments/test.rb +19 -0
  37. data/test/dummy/config/initializers/secret_token.rb +1 -0
  38. data/test/dummy/config/initializers/session_store.rb +1 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +7 -0
  40. data/test/dummy/config/routes.rb +5 -0
  41. data/test/dummy/config.ru +2 -0
  42. data/test/dummy/db/development.sqlite3 +0 -0
  43. data/test/dummy/db/migrate/20111015173017_create_products.rb +12 -0
  44. data/test/dummy/db/schema.rb +25 -0
  45. data/test/dummy/db/seeds.rb +3 -0
  46. data/test/dummy/log/development.log +13196 -0
  47. data/test/dummy/public/404.html +26 -0
  48. data/test/dummy/public/422.html +26 -0
  49. data/test/dummy/public/500.html +26 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/dummy/script/rails +5 -0
  52. data/test/dummy/tmp/cache/assets/CC9/CF0/sprockets%2F2c475587282720babaa30bd125046c6d +0 -0
  53. data/test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2 +0 -0
  54. data/test/dummy/tmp/cache/assets/CF2/E30/sprockets%2F9690cd655384cc9f98b5a12689a04cb6 +0 -0
  55. data/test/dummy/tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4 +0 -0
  56. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  57. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  58. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  59. data/test/dummy/tmp/cache/assets/D9B/900/sprockets%2F47e1b36aecf9211f751cad5cbd1f7466 +0 -0
  60. data/test/dummy/tmp/cache/assets/DA1/CB0/sprockets%2Fd873f0f0b7a49a21b56a28e565e7deea +0 -0
  61. data/test/dummy/tmp/cache/assets/DA4/2A0/sprockets%2Ff78aae8f781bb900e68ba4c9721fbe22 +0 -0
  62. data/test/dummy/tmp/cache/assets/DAD/F00/sprockets%2Fed0c338098c67fff252ea6f6c279ca4f +0 -0
  63. data/test/dummy/tmp/cache/assets/DF9/B10/sprockets%2Ffc21b5aee1c95934ed1b41ac05eeee87 +0 -0
  64. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  65. data/test/dummy/tmp/cache/assets/E5B/7A0/sprockets%2F5c84af44bfcbcc581dd75a9b19beeac1 +0 -0
  66. data/test/dummy/tmp/pids/server.pid +1 -0
  67. data/test/integration/navigation_test.rb +6 -0
  68. data/test/test_helper.rb +8 -0
  69. metadata +203 -0
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
4
+ require File.expand_path('../../config/boot', __FILE__)
5
+ require 'rails/commands'
@@ -0,0 +1 @@
1
+ 29109
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+ end
6
+
@@ -0,0 +1,8 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require "rails/test_help"
5
+
6
+ Rails.backtrace_cleaner.remove_silencers!
7
+
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,203 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activegrid
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Volcanic Web Design
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-10-18 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2153967220 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2153967220
25
+ - !ruby/object:Gem::Dependency
26
+ name: jquery-rails
27
+ requirement: &2153966800 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2153966800
36
+ - !ruby/object:Gem::Dependency
37
+ name: sqlite3
38
+ requirement: &2153966340 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *2153966340
47
+ description: ! 'Using the ActiveGrid gem consists of a few steps:'
48
+ email:
49
+ - info@webdesigncompany.net
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - app/assets/javascripts/activegrid.js
55
+ - app/assets/stylesheets/activegrid.css
56
+ - app/controllers/active_grid/controller.rb
57
+ - app/lib/active_grid/column.rb
58
+ - app/lib/active_grid/grid.rb
59
+ - app/views/active_grid/update.js.erb
60
+ - lib/activegrid/engine.rb
61
+ - lib/activegrid/version.rb
62
+ - lib/activegrid.rb
63
+ - LICENSE
64
+ - Rakefile
65
+ - README.md
66
+ - test/activegrid_test.rb
67
+ - test/dummy/app/assets/javascripts/application.js
68
+ - test/dummy/app/assets/stylesheets/application.css
69
+ - test/dummy/app/assets/stylesheets/scaffold.css
70
+ - test/dummy/app/controllers/application_controller.rb
71
+ - test/dummy/app/controllers/products_controller.rb
72
+ - test/dummy/app/helpers/application_helper.rb
73
+ - test/dummy/app/helpers/products_helper.rb
74
+ - test/dummy/app/models/product.rb
75
+ - test/dummy/app/views/layouts/application.html.erb
76
+ - test/dummy/app/views/products/_form.html.erb
77
+ - test/dummy/app/views/products/_grid.html.erb
78
+ - test/dummy/app/views/products/edit.html.erb
79
+ - test/dummy/app/views/products/index.html.erb
80
+ - test/dummy/app/views/products/new.html.erb
81
+ - test/dummy/app/views/products/show.html.erb
82
+ - test/dummy/config/application.rb
83
+ - test/dummy/config/boot.rb
84
+ - test/dummy/config/database.yml
85
+ - test/dummy/config/environment.rb
86
+ - test/dummy/config/environments/development.rb
87
+ - test/dummy/config/environments/production.rb
88
+ - test/dummy/config/environments/test.rb
89
+ - test/dummy/config/initializers/secret_token.rb
90
+ - test/dummy/config/initializers/session_store.rb
91
+ - test/dummy/config/initializers/wrap_parameters.rb
92
+ - test/dummy/config/routes.rb
93
+ - test/dummy/config.ru
94
+ - test/dummy/db/development.sqlite3
95
+ - test/dummy/db/migrate/20111015173017_create_products.rb
96
+ - test/dummy/db/schema.rb
97
+ - test/dummy/db/seeds.rb
98
+ - test/dummy/log/development.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/script/rails
105
+ - test/dummy/tmp/cache/assets/CC9/CF0/sprockets%2F2c475587282720babaa30bd125046c6d
106
+ - test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2
107
+ - test/dummy/tmp/cache/assets/CF2/E30/sprockets%2F9690cd655384cc9f98b5a12689a04cb6
108
+ - test/dummy/tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4
109
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
110
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
111
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
112
+ - test/dummy/tmp/cache/assets/D9B/900/sprockets%2F47e1b36aecf9211f751cad5cbd1f7466
113
+ - test/dummy/tmp/cache/assets/DA1/CB0/sprockets%2Fd873f0f0b7a49a21b56a28e565e7deea
114
+ - test/dummy/tmp/cache/assets/DA4/2A0/sprockets%2Ff78aae8f781bb900e68ba4c9721fbe22
115
+ - test/dummy/tmp/cache/assets/DAD/F00/sprockets%2Fed0c338098c67fff252ea6f6c279ca4f
116
+ - test/dummy/tmp/cache/assets/DF9/B10/sprockets%2Ffc21b5aee1c95934ed1b41ac05eeee87
117
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
118
+ - test/dummy/tmp/cache/assets/E5B/7A0/sprockets%2F5c84af44bfcbcc581dd75a9b19beeac1
119
+ - test/dummy/tmp/pids/server.pid
120
+ - test/integration/navigation_test.rb
121
+ - test/test_helper.rb
122
+ homepage: https://github.com/melvinram/activegrid
123
+ licenses:
124
+ - MIT License
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ requirements: []
142
+ rubyforge_project:
143
+ rubygems_version: 1.8.4
144
+ signing_key:
145
+ specification_version: 3
146
+ summary: ActiveGrid is a gem to allow Rails apps to easily add data grids
147
+ test_files:
148
+ - test/activegrid_test.rb
149
+ - test/dummy/app/assets/javascripts/application.js
150
+ - test/dummy/app/assets/stylesheets/application.css
151
+ - test/dummy/app/assets/stylesheets/scaffold.css
152
+ - test/dummy/app/controllers/application_controller.rb
153
+ - test/dummy/app/controllers/products_controller.rb
154
+ - test/dummy/app/helpers/application_helper.rb
155
+ - test/dummy/app/helpers/products_helper.rb
156
+ - test/dummy/app/models/product.rb
157
+ - test/dummy/app/views/layouts/application.html.erb
158
+ - test/dummy/app/views/products/_form.html.erb
159
+ - test/dummy/app/views/products/_grid.html.erb
160
+ - test/dummy/app/views/products/edit.html.erb
161
+ - test/dummy/app/views/products/index.html.erb
162
+ - test/dummy/app/views/products/new.html.erb
163
+ - test/dummy/app/views/products/show.html.erb
164
+ - test/dummy/config/application.rb
165
+ - test/dummy/config/boot.rb
166
+ - test/dummy/config/database.yml
167
+ - test/dummy/config/environment.rb
168
+ - test/dummy/config/environments/development.rb
169
+ - test/dummy/config/environments/production.rb
170
+ - test/dummy/config/environments/test.rb
171
+ - test/dummy/config/initializers/secret_token.rb
172
+ - test/dummy/config/initializers/session_store.rb
173
+ - test/dummy/config/initializers/wrap_parameters.rb
174
+ - test/dummy/config/routes.rb
175
+ - test/dummy/config.ru
176
+ - test/dummy/db/development.sqlite3
177
+ - test/dummy/db/migrate/20111015173017_create_products.rb
178
+ - test/dummy/db/schema.rb
179
+ - test/dummy/db/seeds.rb
180
+ - test/dummy/log/development.log
181
+ - test/dummy/public/404.html
182
+ - test/dummy/public/422.html
183
+ - test/dummy/public/500.html
184
+ - test/dummy/public/favicon.ico
185
+ - test/dummy/Rakefile
186
+ - test/dummy/script/rails
187
+ - test/dummy/tmp/cache/assets/CC9/CF0/sprockets%2F2c475587282720babaa30bd125046c6d
188
+ - test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2
189
+ - test/dummy/tmp/cache/assets/CF2/E30/sprockets%2F9690cd655384cc9f98b5a12689a04cb6
190
+ - test/dummy/tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4
191
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
192
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
193
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
194
+ - test/dummy/tmp/cache/assets/D9B/900/sprockets%2F47e1b36aecf9211f751cad5cbd1f7466
195
+ - test/dummy/tmp/cache/assets/DA1/CB0/sprockets%2Fd873f0f0b7a49a21b56a28e565e7deea
196
+ - test/dummy/tmp/cache/assets/DA4/2A0/sprockets%2Ff78aae8f781bb900e68ba4c9721fbe22
197
+ - test/dummy/tmp/cache/assets/DAD/F00/sprockets%2Fed0c338098c67fff252ea6f6c279ca4f
198
+ - test/dummy/tmp/cache/assets/DF9/B10/sprockets%2Ffc21b5aee1c95934ed1b41ac05eeee87
199
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
200
+ - test/dummy/tmp/cache/assets/E5B/7A0/sprockets%2F5c84af44bfcbcc581dd75a9b19beeac1
201
+ - test/dummy/tmp/pids/server.pid
202
+ - test/integration/navigation_test.rb
203
+ - test/test_helper.rb