tableficate 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.markdown +120 -0
  5. data/Rakefile +1 -0
  6. data/app/views/tableficate/_column_header.html.erb +8 -0
  7. data/app/views/tableficate/_data.html.erb +1 -0
  8. data/app/views/tableficate/_input_filter.html.erb +4 -0
  9. data/app/views/tableficate/_input_range_filter.html.erb +6 -0
  10. data/app/views/tableficate/_row.html.erb +5 -0
  11. data/app/views/tableficate/_select_filter.html.erb +4 -0
  12. data/app/views/tableficate/_table.html.erb +36 -0
  13. data/changelog.markdown +2 -0
  14. data/lib/generators/tableficate/table/table_generator.rb +17 -0
  15. data/lib/generators/tableficate/table/templates/table.rb +5 -0
  16. data/lib/generators/tableficate/theme/theme_generator.rb +15 -0
  17. data/lib/tableficate/action_column.rb +15 -0
  18. data/lib/tableficate/active_record_extension.rb +20 -0
  19. data/lib/tableficate/base.rb +37 -0
  20. data/lib/tableficate/column.rb +33 -0
  21. data/lib/tableficate/engine.rb +4 -0
  22. data/lib/tableficate/exceptions.rb +3 -0
  23. data/lib/tableficate/filters/filter.rb +19 -0
  24. data/lib/tableficate/filters/input_filters.rb +64 -0
  25. data/lib/tableficate/filters/select_filter.rb +11 -0
  26. data/lib/tableficate/finder.rb +79 -0
  27. data/lib/tableficate/helper.rb +37 -0
  28. data/lib/tableficate/table.rb +57 -0
  29. data/lib/tableficate/utils.rb +7 -0
  30. data/lib/tableficate/version.rb +3 -0
  31. data/lib/tableficate.rb +17 -0
  32. data/spec/action_column_spec.rb +21 -0
  33. data/spec/active_record_extension_spec.rb +9 -0
  34. data/spec/base_spec.rb +103 -0
  35. data/spec/column_spec.rb +54 -0
  36. data/spec/filter_spec.rb +30 -0
  37. data/spec/finder_spec.rb +35 -0
  38. data/spec/input_filter_spec.rb +90 -0
  39. data/spec/select_filter_spec.rb +10 -0
  40. data/spec/spec_helper.rb +3 -0
  41. data/spec/table_spec.rb +94 -0
  42. data/spec/test_app/.gitignore +4 -0
  43. data/spec/test_app/Gemfile +21 -0
  44. data/spec/test_app/README +261 -0
  45. data/spec/test_app/Rakefile +7 -0
  46. data/spec/test_app/app/assets/images/rails.png +0 -0
  47. data/spec/test_app/app/assets/javascripts/application.js +9 -0
  48. data/spec/test_app/app/assets/stylesheets/application.css +7 -0
  49. data/spec/test_app/app/controllers/application_controller.rb +3 -0
  50. data/spec/test_app/app/helpers/application_helper.rb +2 -0
  51. data/spec/test_app/app/mailers/.gitkeep +0 -0
  52. data/spec/test_app/app/models/.gitkeep +0 -0
  53. data/spec/test_app/app/models/nobel_prize.rb +3 -0
  54. data/spec/test_app/app/models/nobel_prize_winner.rb +3 -0
  55. data/spec/test_app/app/views/layouts/application.html.erb +14 -0
  56. data/spec/test_app/config/application.rb +48 -0
  57. data/spec/test_app/config/boot.rb +6 -0
  58. data/spec/test_app/config/database.yml +25 -0
  59. data/spec/test_app/config/environment.rb +5 -0
  60. data/spec/test_app/config/environments/development.rb +30 -0
  61. data/spec/test_app/config/environments/production.rb +60 -0
  62. data/spec/test_app/config/environments/test.rb +42 -0
  63. data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  64. data/spec/test_app/config/initializers/inflections.rb +10 -0
  65. data/spec/test_app/config/initializers/mime_types.rb +5 -0
  66. data/spec/test_app/config/initializers/secret_token.rb +7 -0
  67. data/spec/test_app/config/initializers/session_store.rb +8 -0
  68. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  69. data/spec/test_app/config/locales/en.yml +5 -0
  70. data/spec/test_app/config/routes.rb +58 -0
  71. data/spec/test_app/config.ru +4 -0
  72. data/spec/test_app/db/migrate/20111007154222_create_nobel_prize_winners.rb +30 -0
  73. data/spec/test_app/db/migrate/20111010191626_create_nobel_prizes.rb +34 -0
  74. data/spec/test_app/db/schema.rb +27 -0
  75. data/spec/test_app/db/seeds.rb +7 -0
  76. data/spec/test_app/db/test.sqlite3 +0 -0
  77. data/spec/test_app/doc/README_FOR_APP +2 -0
  78. data/spec/test_app/lib/assets/.gitkeep +0 -0
  79. data/spec/test_app/lib/tasks/.gitkeep +0 -0
  80. data/spec/test_app/log/.gitkeep +0 -0
  81. data/spec/test_app/public/404.html +26 -0
  82. data/spec/test_app/public/422.html +26 -0
  83. data/spec/test_app/public/500.html +26 -0
  84. data/spec/test_app/public/favicon.ico +0 -0
  85. data/spec/test_app/public/index.html +241 -0
  86. data/spec/test_app/public/robots.txt +5 -0
  87. data/spec/test_app/script/rails +6 -0
  88. data/spec/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
  89. data/spec/test_app/vendor/plugins/.gitkeep +0 -0
  90. data/spec/utils_spec.rb +11 -0
  91. data/tableficate.gemspec +26 -0
  92. metadata +245 -0
metadata ADDED
@@ -0,0 +1,245 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tableficate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Aaron Lasseigne
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-11-11 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70127635516820 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70127635516820
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &70127635516400 !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: *70127635516400
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70127635515940 !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: *70127635515940
47
+ - !ruby/object:Gem::Dependency
48
+ name: sqlite3
49
+ requirement: &70127635515520 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70127635515520
58
+ description: Simple tables for Rails.
59
+ email:
60
+ - alasseigne@sei-mi.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - .gitignore
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.markdown
69
+ - Rakefile
70
+ - app/views/tableficate/_column_header.html.erb
71
+ - app/views/tableficate/_data.html.erb
72
+ - app/views/tableficate/_input_filter.html.erb
73
+ - app/views/tableficate/_input_range_filter.html.erb
74
+ - app/views/tableficate/_row.html.erb
75
+ - app/views/tableficate/_select_filter.html.erb
76
+ - app/views/tableficate/_table.html.erb
77
+ - changelog.markdown
78
+ - lib/generators/tableficate/table/table_generator.rb
79
+ - lib/generators/tableficate/table/templates/table.rb
80
+ - lib/generators/tableficate/theme/theme_generator.rb
81
+ - lib/tableficate.rb
82
+ - lib/tableficate/action_column.rb
83
+ - lib/tableficate/active_record_extension.rb
84
+ - lib/tableficate/base.rb
85
+ - lib/tableficate/column.rb
86
+ - lib/tableficate/engine.rb
87
+ - lib/tableficate/exceptions.rb
88
+ - lib/tableficate/filters/filter.rb
89
+ - lib/tableficate/filters/input_filters.rb
90
+ - lib/tableficate/filters/select_filter.rb
91
+ - lib/tableficate/finder.rb
92
+ - lib/tableficate/helper.rb
93
+ - lib/tableficate/table.rb
94
+ - lib/tableficate/utils.rb
95
+ - lib/tableficate/version.rb
96
+ - spec/action_column_spec.rb
97
+ - spec/active_record_extension_spec.rb
98
+ - spec/base_spec.rb
99
+ - spec/column_spec.rb
100
+ - spec/filter_spec.rb
101
+ - spec/finder_spec.rb
102
+ - spec/input_filter_spec.rb
103
+ - spec/select_filter_spec.rb
104
+ - spec/spec_helper.rb
105
+ - spec/table_spec.rb
106
+ - spec/test_app/.gitignore
107
+ - spec/test_app/Gemfile
108
+ - spec/test_app/README
109
+ - spec/test_app/Rakefile
110
+ - spec/test_app/app/assets/images/rails.png
111
+ - spec/test_app/app/assets/javascripts/application.js
112
+ - spec/test_app/app/assets/stylesheets/application.css
113
+ - spec/test_app/app/controllers/application_controller.rb
114
+ - spec/test_app/app/helpers/application_helper.rb
115
+ - spec/test_app/app/mailers/.gitkeep
116
+ - spec/test_app/app/models/.gitkeep
117
+ - spec/test_app/app/models/nobel_prize.rb
118
+ - spec/test_app/app/models/nobel_prize_winner.rb
119
+ - spec/test_app/app/views/layouts/application.html.erb
120
+ - spec/test_app/config.ru
121
+ - spec/test_app/config/application.rb
122
+ - spec/test_app/config/boot.rb
123
+ - spec/test_app/config/database.yml
124
+ - spec/test_app/config/environment.rb
125
+ - spec/test_app/config/environments/development.rb
126
+ - spec/test_app/config/environments/production.rb
127
+ - spec/test_app/config/environments/test.rb
128
+ - spec/test_app/config/initializers/backtrace_silencers.rb
129
+ - spec/test_app/config/initializers/inflections.rb
130
+ - spec/test_app/config/initializers/mime_types.rb
131
+ - spec/test_app/config/initializers/secret_token.rb
132
+ - spec/test_app/config/initializers/session_store.rb
133
+ - spec/test_app/config/initializers/wrap_parameters.rb
134
+ - spec/test_app/config/locales/en.yml
135
+ - spec/test_app/config/routes.rb
136
+ - spec/test_app/db/migrate/20111007154222_create_nobel_prize_winners.rb
137
+ - spec/test_app/db/migrate/20111010191626_create_nobel_prizes.rb
138
+ - spec/test_app/db/schema.rb
139
+ - spec/test_app/db/seeds.rb
140
+ - spec/test_app/db/test.sqlite3
141
+ - spec/test_app/doc/README_FOR_APP
142
+ - spec/test_app/lib/assets/.gitkeep
143
+ - spec/test_app/lib/tasks/.gitkeep
144
+ - spec/test_app/log/.gitkeep
145
+ - spec/test_app/public/404.html
146
+ - spec/test_app/public/422.html
147
+ - spec/test_app/public/500.html
148
+ - spec/test_app/public/favicon.ico
149
+ - spec/test_app/public/index.html
150
+ - spec/test_app/public/robots.txt
151
+ - spec/test_app/script/rails
152
+ - spec/test_app/vendor/assets/stylesheets/.gitkeep
153
+ - spec/test_app/vendor/plugins/.gitkeep
154
+ - spec/utils_spec.rb
155
+ - tableficate.gemspec
156
+ homepage: https://github.com/sei-mi/tableficate
157
+ licenses: []
158
+ post_install_message:
159
+ rdoc_options: []
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ segments:
169
+ - 0
170
+ hash: 932464659041106161
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ segments:
178
+ - 0
179
+ hash: 932464659041106161
180
+ requirements: []
181
+ rubyforge_project: tableficate
182
+ rubygems_version: 1.8.6
183
+ signing_key:
184
+ specification_version: 3
185
+ summary: Simple tables for Rails.
186
+ test_files:
187
+ - spec/action_column_spec.rb
188
+ - spec/active_record_extension_spec.rb
189
+ - spec/base_spec.rb
190
+ - spec/column_spec.rb
191
+ - spec/filter_spec.rb
192
+ - spec/finder_spec.rb
193
+ - spec/input_filter_spec.rb
194
+ - spec/select_filter_spec.rb
195
+ - spec/spec_helper.rb
196
+ - spec/table_spec.rb
197
+ - spec/test_app/.gitignore
198
+ - spec/test_app/Gemfile
199
+ - spec/test_app/README
200
+ - spec/test_app/Rakefile
201
+ - spec/test_app/app/assets/images/rails.png
202
+ - spec/test_app/app/assets/javascripts/application.js
203
+ - spec/test_app/app/assets/stylesheets/application.css
204
+ - spec/test_app/app/controllers/application_controller.rb
205
+ - spec/test_app/app/helpers/application_helper.rb
206
+ - spec/test_app/app/mailers/.gitkeep
207
+ - spec/test_app/app/models/.gitkeep
208
+ - spec/test_app/app/models/nobel_prize.rb
209
+ - spec/test_app/app/models/nobel_prize_winner.rb
210
+ - spec/test_app/app/views/layouts/application.html.erb
211
+ - spec/test_app/config.ru
212
+ - spec/test_app/config/application.rb
213
+ - spec/test_app/config/boot.rb
214
+ - spec/test_app/config/database.yml
215
+ - spec/test_app/config/environment.rb
216
+ - spec/test_app/config/environments/development.rb
217
+ - spec/test_app/config/environments/production.rb
218
+ - spec/test_app/config/environments/test.rb
219
+ - spec/test_app/config/initializers/backtrace_silencers.rb
220
+ - spec/test_app/config/initializers/inflections.rb
221
+ - spec/test_app/config/initializers/mime_types.rb
222
+ - spec/test_app/config/initializers/secret_token.rb
223
+ - spec/test_app/config/initializers/session_store.rb
224
+ - spec/test_app/config/initializers/wrap_parameters.rb
225
+ - spec/test_app/config/locales/en.yml
226
+ - spec/test_app/config/routes.rb
227
+ - spec/test_app/db/migrate/20111007154222_create_nobel_prize_winners.rb
228
+ - spec/test_app/db/migrate/20111010191626_create_nobel_prizes.rb
229
+ - spec/test_app/db/schema.rb
230
+ - spec/test_app/db/seeds.rb
231
+ - spec/test_app/db/test.sqlite3
232
+ - spec/test_app/doc/README_FOR_APP
233
+ - spec/test_app/lib/assets/.gitkeep
234
+ - spec/test_app/lib/tasks/.gitkeep
235
+ - spec/test_app/log/.gitkeep
236
+ - spec/test_app/public/404.html
237
+ - spec/test_app/public/422.html
238
+ - spec/test_app/public/500.html
239
+ - spec/test_app/public/favicon.ico
240
+ - spec/test_app/public/index.html
241
+ - spec/test_app/public/robots.txt
242
+ - spec/test_app/script/rails
243
+ - spec/test_app/vendor/assets/stylesheets/.gitkeep
244
+ - spec/test_app/vendor/plugins/.gitkeep
245
+ - spec/utils_spec.rb