active_scaffold_san 3.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. data/.autotest +27 -0
  2. data/.document +5 -0
  3. data/CHANGELOG +179 -0
  4. data/Gemfile +13 -0
  5. data/Gemfile.lock +20 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README +69 -0
  8. data/Rakefile +53 -0
  9. data/active_scaffold_vho.gemspec +388 -0
  10. data/frontends/default/images/add.gif +0 -0
  11. data/frontends/default/images/arrow_down.gif +0 -0
  12. data/frontends/default/images/arrow_up.gif +0 -0
  13. data/frontends/default/images/close.gif +0 -0
  14. data/frontends/default/images/config.png +0 -0
  15. data/frontends/default/images/cross.png +0 -0
  16. data/frontends/default/images/gears.png +0 -0
  17. data/frontends/default/images/indicator-small.gif +0 -0
  18. data/frontends/default/images/indicator.gif +0 -0
  19. data/frontends/default/images/magnifier.png +0 -0
  20. data/frontends/default/javascripts/jquery/active_scaffold.js +1004 -0
  21. data/frontends/default/javascripts/jquery/jquery.editinplace.js +743 -0
  22. data/frontends/default/javascripts/prototype/active_scaffold.js +1003 -0
  23. data/frontends/default/javascripts/prototype/dhtml_history.js +867 -0
  24. data/frontends/default/javascripts/prototype/form_enhancements.js +117 -0
  25. data/frontends/default/javascripts/prototype/rico_corner.js +370 -0
  26. data/frontends/default/stylesheets/stylesheet-ie.css +35 -0
  27. data/frontends/default/stylesheets/stylesheet.css +973 -0
  28. data/frontends/default/views/_action_group.html.erb +20 -0
  29. data/frontends/default/views/_add_existing_form.html.erb +30 -0
  30. data/frontends/default/views/_base_form.html.erb +51 -0
  31. data/frontends/default/views/_create_form.html.erb +8 -0
  32. data/frontends/default/views/_create_form_on_list.html.erb +6 -0
  33. data/frontends/default/views/_field_search.html.erb +32 -0
  34. data/frontends/default/views/_form.html.erb +24 -0
  35. data/frontends/default/views/_form_association.html.erb +19 -0
  36. data/frontends/default/views/_form_association_footer.html.erb +40 -0
  37. data/frontends/default/views/_form_attribute.html.erb +15 -0
  38. data/frontends/default/views/_form_hidden_attribute.html.erb +2 -0
  39. data/frontends/default/views/_form_messages.html.erb +5 -0
  40. data/frontends/default/views/_horizontal_subform.html.erb +29 -0
  41. data/frontends/default/views/_horizontal_subform_header.html.erb +10 -0
  42. data/frontends/default/views/_horizontal_subform_record.html.erb +37 -0
  43. data/frontends/default/views/_human_conditions.html.erb +1 -0
  44. data/frontends/default/views/_list.html.erb +18 -0
  45. data/frontends/default/views/_list_actions.html.erb +15 -0
  46. data/frontends/default/views/_list_calculations.html.erb +16 -0
  47. data/frontends/default/views/_list_column_headings.html.erb +12 -0
  48. data/frontends/default/views/_list_header.html.erb +10 -0
  49. data/frontends/default/views/_list_inline_adapter.html.erb +10 -0
  50. data/frontends/default/views/_list_messages.html.erb +32 -0
  51. data/frontends/default/views/_list_pagination.html.erb +11 -0
  52. data/frontends/default/views/_list_pagination_links.html.erb +9 -0
  53. data/frontends/default/views/_list_record.html.erb +14 -0
  54. data/frontends/default/views/_list_record_columns.html.erb +8 -0
  55. data/frontends/default/views/_list_with_header.html.erb +32 -0
  56. data/frontends/default/views/_messages.html.erb +10 -0
  57. data/frontends/default/views/_render_field.js.rjs +10 -0
  58. data/frontends/default/views/_row.html.erb +12 -0
  59. data/frontends/default/views/_search.html.erb +34 -0
  60. data/frontends/default/views/_search_attribute.html.erb +10 -0
  61. data/frontends/default/views/_show.html.erb +8 -0
  62. data/frontends/default/views/_show_columns.html.erb +15 -0
  63. data/frontends/default/views/_update_actions.html.erb +9 -0
  64. data/frontends/default/views/_update_form.html.erb +6 -0
  65. data/frontends/default/views/_vertical_subform.html.erb +12 -0
  66. data/frontends/default/views/_vertical_subform_record.html.erb +38 -0
  67. data/frontends/default/views/action_confirmation.html.erb +13 -0
  68. data/frontends/default/views/add_existing.js.rjs +17 -0
  69. data/frontends/default/views/add_existing_form.html.erb +5 -0
  70. data/frontends/default/views/create.html.erb +5 -0
  71. data/frontends/default/views/delete.html.erb +13 -0
  72. data/frontends/default/views/destroy.js.rjs +23 -0
  73. data/frontends/default/views/edit_associated.js.rjs +11 -0
  74. data/frontends/default/views/field_search.html.erb +5 -0
  75. data/frontends/default/views/form_messages.js.rjs +1 -0
  76. data/frontends/default/views/list.html.erb +1 -0
  77. data/frontends/default/views/list.js.rjs +1 -0
  78. data/frontends/default/views/on_action_update.js.rjs +8 -0
  79. data/frontends/default/views/on_create.js.rjs +41 -0
  80. data/frontends/default/views/on_mark_all.js.rjs +4 -0
  81. data/frontends/default/views/on_update.js.rjs +28 -0
  82. data/frontends/default/views/search.html.erb +5 -0
  83. data/frontends/default/views/show.html.erb +5 -0
  84. data/frontends/default/views/update.html.erb +8 -0
  85. data/frontends/default/views/update_column.js.rjs +13 -0
  86. data/frontends/default/views/update_row.js.rjs +1 -0
  87. data/init.rb +8 -0
  88. data/lib/active_scaffold.rb +360 -0
  89. data/lib/active_scaffold/actions/common_search.rb +22 -0
  90. data/lib/active_scaffold/actions/core.rb +180 -0
  91. data/lib/active_scaffold/actions/create.rb +149 -0
  92. data/lib/active_scaffold/actions/delete.rb +75 -0
  93. data/lib/active_scaffold/actions/field_search.rb +82 -0
  94. data/lib/active_scaffold/actions/list.rb +184 -0
  95. data/lib/active_scaffold/actions/mark.rb +63 -0
  96. data/lib/active_scaffold/actions/nested.rb +250 -0
  97. data/lib/active_scaffold/actions/search.rb +47 -0
  98. data/lib/active_scaffold/actions/show.rb +61 -0
  99. data/lib/active_scaffold/actions/subform.rb +27 -0
  100. data/lib/active_scaffold/actions/update.rb +151 -0
  101. data/lib/active_scaffold/active_record_permissions.rb +134 -0
  102. data/lib/active_scaffold/attribute_params.rb +211 -0
  103. data/lib/active_scaffold/bridges/ancestry/bridge.rb +5 -0
  104. data/lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb +39 -0
  105. data/lib/active_scaffold/bridges/bridge.rb +59 -0
  106. data/lib/active_scaffold/bridges/calendar_date_select/bridge.rb +16 -0
  107. data/lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb +83 -0
  108. data/lib/active_scaffold/bridges/cancan/bridge.rb +12 -0
  109. data/lib/active_scaffold/bridges/cancan/lib/cancan_bridge.rb +107 -0
  110. data/lib/active_scaffold/bridges/carrierwave/bridge.rb +9 -0
  111. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb +33 -0
  112. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb +12 -0
  113. data/lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb +45 -0
  114. data/lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb +17 -0
  115. data/lib/active_scaffold/bridges/date_picker/bridge.rb +24 -0
  116. data/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb +225 -0
  117. data/lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js +22 -0
  118. data/lib/active_scaffold/bridges/file_column/bridge.rb +11 -0
  119. data/lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb +46 -0
  120. data/lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb +59 -0
  121. data/lib/active_scaffold/bridges/file_column/lib/form_ui.rb +37 -0
  122. data/lib/active_scaffold/bridges/file_column/lib/list_ui.rb +26 -0
  123. data/lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb +43 -0
  124. data/lib/active_scaffold/bridges/file_column/test/mock_model.rb +9 -0
  125. data/lib/active_scaffold/bridges/file_column/test/test_helper.rb +15 -0
  126. data/lib/active_scaffold/bridges/paperclip/bridge.rb +12 -0
  127. data/lib/active_scaffold/bridges/paperclip/lib/form_ui.rb +27 -0
  128. data/lib/active_scaffold/bridges/paperclip/lib/list_ui.rb +16 -0
  129. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb +38 -0
  130. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb +26 -0
  131. data/lib/active_scaffold/bridges/semantic_attributes/bridge.rb +5 -0
  132. data/lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb +20 -0
  133. data/lib/active_scaffold/bridges/shared/date_bridge.rb +209 -0
  134. data/lib/active_scaffold/bridges/tiny_mce/bridge.rb +5 -0
  135. data/lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb +61 -0
  136. data/lib/active_scaffold/bridges/validation_reflection/bridge.rb +8 -0
  137. data/lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb +21 -0
  138. data/lib/active_scaffold/config/base.rb +62 -0
  139. data/lib/active_scaffold/config/core.rb +220 -0
  140. data/lib/active_scaffold/config/create.rb +51 -0
  141. data/lib/active_scaffold/config/delete.rb +34 -0
  142. data/lib/active_scaffold/config/field_search.rb +75 -0
  143. data/lib/active_scaffold/config/form.rb +47 -0
  144. data/lib/active_scaffold/config/list.rb +174 -0
  145. data/lib/active_scaffold/config/mark.rb +22 -0
  146. data/lib/active_scaffold/config/nested.rb +44 -0
  147. data/lib/active_scaffold/config/search.rb +69 -0
  148. data/lib/active_scaffold/config/show.rb +35 -0
  149. data/lib/active_scaffold/config/subform.rb +35 -0
  150. data/lib/active_scaffold/config/update.rb +46 -0
  151. data/lib/active_scaffold/configurable.rb +29 -0
  152. data/lib/active_scaffold/constraints.rb +184 -0
  153. data/lib/active_scaffold/data_structures/action_columns.rb +137 -0
  154. data/lib/active_scaffold/data_structures/action_link.rb +175 -0
  155. data/lib/active_scaffold/data_structures/action_links.rb +185 -0
  156. data/lib/active_scaffold/data_structures/actions.rb +45 -0
  157. data/lib/active_scaffold/data_structures/column.rb +355 -0
  158. data/lib/active_scaffold/data_structures/columns.rb +75 -0
  159. data/lib/active_scaffold/data_structures/error_message.rb +24 -0
  160. data/lib/active_scaffold/data_structures/nested_info.rb +123 -0
  161. data/lib/active_scaffold/data_structures/set.rb +62 -0
  162. data/lib/active_scaffold/data_structures/sorting.rb +168 -0
  163. data/lib/active_scaffold/extensions/action_controller_rendering.rb +20 -0
  164. data/lib/active_scaffold/extensions/action_view_rendering.rb +123 -0
  165. data/lib/active_scaffold/extensions/action_view_resolver.rb +7 -0
  166. data/lib/active_scaffold/extensions/active_association_reflection.rb +13 -0
  167. data/lib/active_scaffold/extensions/active_record_offset.rb +12 -0
  168. data/lib/active_scaffold/extensions/array.rb +7 -0
  169. data/lib/active_scaffold/extensions/localize.rb +10 -0
  170. data/lib/active_scaffold/extensions/name_option_for_datetime.rb +12 -0
  171. data/lib/active_scaffold/extensions/nil_id_in_url_params.rb +7 -0
  172. data/lib/active_scaffold/extensions/paginator_extensions.rb +26 -0
  173. data/lib/active_scaffold/extensions/reverse_associations.rb +62 -0
  174. data/lib/active_scaffold/extensions/routing_mapper.rb +34 -0
  175. data/lib/active_scaffold/extensions/to_label.rb +8 -0
  176. data/lib/active_scaffold/extensions/unsaved_associated.rb +61 -0
  177. data/lib/active_scaffold/extensions/unsaved_record.rb +20 -0
  178. data/lib/active_scaffold/extensions/usa_state.rb +46 -0
  179. data/lib/active_scaffold/finder.rb +343 -0
  180. data/lib/active_scaffold/helpers/association_helpers.rb +40 -0
  181. data/lib/active_scaffold/helpers/controller_helpers.rb +87 -0
  182. data/lib/active_scaffold/helpers/country_helpers.rb +352 -0
  183. data/lib/active_scaffold/helpers/form_column_helpers.rb +350 -0
  184. data/lib/active_scaffold/helpers/human_condition_helpers.rb +59 -0
  185. data/lib/active_scaffold/helpers/id_helpers.rb +127 -0
  186. data/lib/active_scaffold/helpers/list_column_helpers.rb +361 -0
  187. data/lib/active_scaffold/helpers/pagination_helpers.rb +55 -0
  188. data/lib/active_scaffold/helpers/search_column_helpers.rb +249 -0
  189. data/lib/active_scaffold/helpers/show_column_helpers.rb +46 -0
  190. data/lib/active_scaffold/helpers/view_helpers.rb +360 -0
  191. data/lib/active_scaffold/locale/de.rb +120 -0
  192. data/lib/active_scaffold/locale/en.rb +119 -0
  193. data/lib/active_scaffold/locale/es.yml +115 -0
  194. data/lib/active_scaffold/locale/fr.rb +122 -0
  195. data/lib/active_scaffold/locale/hu.yml +63 -0
  196. data/lib/active_scaffold/locale/ja.yml +64 -0
  197. data/lib/active_scaffold/locale/ru.yml +119 -0
  198. data/lib/active_scaffold/marked_model.rb +38 -0
  199. data/lib/active_scaffold/paginator.rb +136 -0
  200. data/lib/active_scaffold/responds_to_parent.rb +70 -0
  201. data/lib/active_scaffold/version.rb +9 -0
  202. data/lib/active_scaffold_assets.rb +45 -0
  203. data/lib/active_scaffold_env.rb +14 -0
  204. data/lib/active_scaffold_vho.rb +2 -0
  205. data/lib/generators/active_scaffold/USAGE +29 -0
  206. data/lib/generators/active_scaffold/active_scaffold_generator.rb +20 -0
  207. data/lib/generators/active_scaffold_controller/USAGE +19 -0
  208. data/lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb +29 -0
  209. data/lib/generators/active_scaffold_controller/templates/controller.rb +4 -0
  210. data/lib/generators/active_scaffold_controller/templates/helper.rb +2 -0
  211. data/lib/generators/active_scaffold_setup/USAGE +10 -0
  212. data/lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb +61 -0
  213. data/public/blank.html +33 -0
  214. data/shoulda_macros/macros.rb +136 -0
  215. data/test/bridges/bridge_test.rb +47 -0
  216. data/test/config/base_test.rb +15 -0
  217. data/test/config/create_test.rb +55 -0
  218. data/test/config/list_test.rb +74 -0
  219. data/test/config/show_test.rb +43 -0
  220. data/test/config/update_test.rb +17 -0
  221. data/test/const_mocker.rb +36 -0
  222. data/test/data_structures/action_columns_test.rb +113 -0
  223. data/test/data_structures/action_link_test.rb +78 -0
  224. data/test/data_structures/action_links_test.rb +78 -0
  225. data/test/data_structures/actions_test.rb +25 -0
  226. data/test/data_structures/association_column_test.rb +42 -0
  227. data/test/data_structures/column_test.rb +185 -0
  228. data/test/data_structures/columns_test.rb +69 -0
  229. data/test/data_structures/error_message_test.rb +28 -0
  230. data/test/data_structures/set_test.rb +86 -0
  231. data/test/data_structures/sorting_test.rb +126 -0
  232. data/test/data_structures/standard_column_test.rb +24 -0
  233. data/test/data_structures/virtual_column_test.rb +23 -0
  234. data/test/extensions/active_record_test.rb +45 -0
  235. data/test/extensions/array_test.rb +12 -0
  236. data/test/helpers/form_column_helpers_test.rb +31 -0
  237. data/test/helpers/list_column_helpers_test.rb +31 -0
  238. data/test/helpers/pagination_helpers_test.rb +55 -0
  239. data/test/misc/active_record_permissions_test.rb +154 -0
  240. data/test/misc/attribute_params_test.rb +110 -0
  241. data/test/misc/configurable_test.rb +96 -0
  242. data/test/misc/constraints_test.rb +193 -0
  243. data/test/misc/finder_test.rb +93 -0
  244. data/test/misc/lang_test.rb +12 -0
  245. data/test/mock_app/.gitignore +2 -0
  246. data/test/mock_app/app/controllers/application_controller.rb +10 -0
  247. data/test/mock_app/app/helpers/application_helper.rb +3 -0
  248. data/test/mock_app/config/boot.rb +110 -0
  249. data/test/mock_app/config/database.yml +16 -0
  250. data/test/mock_app/config/environment.rb +43 -0
  251. data/test/mock_app/config/environments/development.rb +17 -0
  252. data/test/mock_app/config/environments/production.rb +28 -0
  253. data/test/mock_app/config/environments/test.rb +28 -0
  254. data/test/mock_app/config/initializers/backtrace_silencers.rb +7 -0
  255. data/test/mock_app/config/initializers/inflections.rb +10 -0
  256. data/test/mock_app/config/initializers/mime_types.rb +5 -0
  257. data/test/mock_app/config/initializers/new_rails_defaults.rb +19 -0
  258. data/test/mock_app/config/initializers/session_store.rb +15 -0
  259. data/test/mock_app/config/locales/en.yml +5 -0
  260. data/test/mock_app/config/routes.rb +43 -0
  261. data/test/mock_app/db/test.sqlite3 +1 -0
  262. data/test/mock_app/public/blank.html +33 -0
  263. data/test/mock_app/public/images/active_scaffold/DO_NOT_EDIT +2 -0
  264. data/test/mock_app/public/images/active_scaffold/default/add.gif +0 -0
  265. data/test/mock_app/public/images/active_scaffold/default/arrow_down.gif +0 -0
  266. data/test/mock_app/public/images/active_scaffold/default/arrow_up.gif +0 -0
  267. data/test/mock_app/public/images/active_scaffold/default/close.gif +0 -0
  268. data/test/mock_app/public/images/active_scaffold/default/cross.png +0 -0
  269. data/test/mock_app/public/images/active_scaffold/default/indicator-small.gif +0 -0
  270. data/test/mock_app/public/images/active_scaffold/default/indicator.gif +0 -0
  271. data/test/mock_app/public/images/active_scaffold/default/magnifier.png +0 -0
  272. data/test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT +2 -0
  273. data/test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js +532 -0
  274. data/test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js +867 -0
  275. data/test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js +117 -0
  276. data/test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js +370 -0
  277. data/test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT +2 -0
  278. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css +35 -0
  279. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +842 -0
  280. data/test/model_stub.rb +55 -0
  281. data/test/run_all.rb +8 -0
  282. data/test/test_helper.rb +39 -0
  283. data/uninstall.rb +13 -0
  284. metadata +497 -0
@@ -0,0 +1,27 @@
1
+ class Autotest
2
+ ##
3
+ # Convert a path in a string, s, into a class name, changing
4
+ # underscores to CamelCase, etc.
5
+
6
+ def path_to_classname(s)
7
+ sep = File::SEPARATOR
8
+ f = s.sub(/^test#{sep}/, '').sub(/\.rb$/, '').split(sep)
9
+ f = f.map { |path| path.split(/_|(\d+)/).map { |seg| seg.capitalize }.join }
10
+ f = f.map { |path| path =~ /Test$/ ? path : "#{path}Test" }
11
+ f.join('::')
12
+ end
13
+ end
14
+
15
+ Autotest.add_hook :initialize do |at|
16
+ # doesn't seem to work
17
+ # at.clear_mappings
18
+
19
+ at.add_mapping(/^lib\/.*\.rb$/) do |filename, _|
20
+ possible = File.basename(filename, 'rb').gsub '_', '_?'
21
+ files_matching %r%^test/.*#{possible}_test\.rb$%
22
+ end
23
+
24
+ at.add_mapping(/^test.*\/.*_test\.rb$/) do |filename, _|
25
+ filename
26
+ end
27
+ end
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ MIT-LICENSE.txt
@@ -0,0 +1,179 @@
1
+ = 3.0.5
2
+
3
+ - switch from explicit requires to autoloading
4
+ - get nested action links up and running
5
+
6
+ = 3.0.4
7
+
8
+ - Fix a typo that made 3.0.3 unusable.
9
+
10
+ = 3.0.3
11
+
12
+ - Fixing 'require' ordering
13
+ - Code for nested and subgrouped action links
14
+ - bugfixes for better html generation
15
+
16
+ = 3.0.2
17
+
18
+ - Two bug fixes and a deprecation silencing.
19
+
20
+ = 3.0.1
21
+
22
+ - Fixing the requiring of files.
23
+
24
+ = 3.0.0
25
+
26
+ - Packaging up vhochstein's fork for Rails 3.0 as a gem.
27
+
28
+ = 1.2RC1
29
+
30
+ == FEATURES
31
+
32
+ - Added view helpers (active_scaffold_javascripts, active_scaffold_stylesheets, active_scaffold_ie_stylesheets) to help with asset cacheing (Alexander Semyonov)
33
+ - Works with Rails 2.1 (2.0 / 1.2.x will continue to be supported by version 1.1)
34
+
35
+ == FIXES
36
+
37
+ - Javascript compatibility with FF3 / Safari 3.1 (Mike Dalessio)
38
+ see http://groups.google.com/group/activescaffold/browse_thread/thread/d37afa3f2ac687f2/b34ebf62d767bee3
39
+ - Avoid ruby deprecation warning in config/list.rb (Dustin Sallings)
40
+ - Fixes bug where template overrides are ignored when placed in Engines plugins (Mike Dalessio)
41
+ - Fixed in_place_editor to work with latest control.js
42
+ - Fixed infinite recursion bug when creating a new record with a new association
43
+ - Subform action name conflict fix
44
+ - Helpful warning message if record_select is not on a column with an association
45
+
46
+ = 1.1.1
47
+
48
+ == FIXES
49
+
50
+ * rendering for rails 1.2.x
51
+
52
+ = 1.1.0
53
+
54
+ == FEATURES
55
+
56
+ * `render :super' now accepts a :locals option
57
+ * parameter-based conditions now support arrays of values (e.g. users?name[]=bob&name[]=fred becomes "name IN ('bob', 'fred')")
58
+
59
+ == FIXES
60
+
61
+ * `render :super' now works from active_scaffold_overrides without endlessly looping
62
+ * `render :super' no longer assumes that the *immediate* caller was the override template file
63
+ * `render :super' works better with windows file names (e.g. c:/...)
64
+ * reload_if_empty() javascript now uses GET
65
+ * inplace_edit now uses POST instead of GET
66
+ * adding time and date fields to ignore list for determining whether subform row is empty. previously only datetime was ignored.
67
+ * closed a potential internet explorer security issue in dhtml_history.js library
68
+
69
+ = 1.1.0 RC1
70
+
71
+ == FEATURES
72
+
73
+ === LIST
74
+ * row class: new helper method (list_row_class) gets called for each record in the list and returns a CSS class.
75
+ * automatically link to the :show action of singular associations. this is similar to the nested scaffolds for plural associations.
76
+ * column.list_ui: good for when you want to render multiple columns the same way.
77
+ * * built-in list interface options:
78
+ * * * for inplace edits - checkbox
79
+ * Support :joins_for_collection in column_calculation
80
+ * inplace_edit option on list columns. currently works for text boxes and booleans
81
+
82
+ === CREATE/UPDATE
83
+ * file uploads - largely taken care of by file_column bridge.
84
+ * * automatically detects if FileColumn is installed. If so, uses it, and sets the form_ui for file columns to be file upload fields
85
+ * * sets multipart? on config.create and config.update if file_columns are used on the target model
86
+ * * Posts through iframe to give ajax-style file uploads
87
+ * * Image columns are recognized and previewed as such
88
+ * * Ability to delete a file
89
+ * form_ui
90
+ * * form interface options are now supported through helper method named active_scaffold_input_#{form_ui}. if you want a different form interface than activescaffold normally provides, you may configure the form_ui for that column to use one of these methods. you can easily define your own, too.
91
+ * * built-in form interface options:
92
+ * * * for associations - singular_association, plural_association, select, record_select
93
+ * * * others - select, checkbox, country, password, textarea, usa_state, virtual, boolean
94
+ * * subforms respect form_ui settings. but if form_ui is empty, it will be set to :select to disable subform nesting.
95
+ * boolean columns: when the database column allows nil, we now add a third option to the dropdown so you don't *have* to pick true or false.
96
+ * new :params option for a column lets you specify additional parameters to accept when the given column is on the form. this is for when a column needs to submit multiple values to work.
97
+ * improved support for associations in parameters. for simply selecting/deselecting associations, activescaffold will now recognize `:user => 5' or `:users => [1, 2, 5]'.
98
+ * Supply a unique id from active_scaffold_input_options for form fields.
99
+ * added after_update_save controller override method
100
+
101
+ === EMBEDDING
102
+ * `render :active_scaffold' now accepts a :conditions option, which is a weaker but more flexible variation of :constraints
103
+ * active_scaffold_includes now accepts a frontend name. this is necessary so you can include the proper assets even if active_scaffold isn't configured on the current controller (it's embedded).
104
+ * polymorphic constraints are now supported, assuming params[:parent_model].to_s is the proper content for the polymorphic _type field.
105
+ * Beefing up the constraint system so it can handle has_one/belongs_to. Specifically, it can now disassociate a previous relationship before setting a new one. For example, Bear has_one Den. If creating a new Den, constrained to a certain Bear, the constraints system will now disassociate any previous Den from the Bear before associating the new one.
106
+
107
+ === NESTING
108
+ * :through associations may now be nested
109
+ * nested#shallow_delete
110
+
111
+ === SEARCH
112
+ * fieldsearch module handles booleans better - provides third option so you don't *have* to search on a boolean column
113
+ * In field search lock_version is the only magic column. May want to search by :id or date fields.
114
+
115
+ === GENERAL
116
+ * use #human_name for the column label when possible.
117
+ * merge_conditions now supports hash conditions (and should forever support every conditions style that ActiveRecord supports)
118
+ * action links may now remove an action link with #clear_link
119
+ * action links have a new :controller option, so you don't have to sneak it into :params anymore
120
+ * dhtml history may now be disabled
121
+ * authorized_for? in ActiveRecordPermissions now calls respond_to? only as much as needed
122
+ * removing an assert_valid_keys? call in active_record_permissions#authorized_for?. it just wasn't worth the CPU time.
123
+ * render :super is now extension-agnostic. ex: `render :super` in list.html.erb will properly find list.rhtml as the "parent" template.
124
+ * Auto-bridge loading mechanism. Bridges integrated into core.
125
+ * inherited_view_paths: ability to specify other folders to look for if missing view occurs
126
+
127
+ == FIXES
128
+
129
+ === LIST
130
+ * the calculation row now updates on edit/create/destroy.
131
+ * list now returns to page 1 if the current page has no records.
132
+ * list will now try to reload the scaffold on a previous page if you delete the last entry on the current page.
133
+ * if there were no end-of-line record actions, then any column actions would not use ajax. this was because the loading indicator was missing, which messed up the action link javascript.
134
+ * theme == :default no longer attempts to use Rico.Corner
135
+ * column_empty? now treats any values equal to list.empty_field_text as empty, too.
136
+ * better :method handling for action links.
137
+ * the ' ' fix for ie6 was failing for value types that weren't nil and didn't respond to empty?
138
+ * if someone sets singular columns to link to the 'nested' action, the link will now render with the appropriate id parameter.
139
+ * do not propagate params[:search] through action links that link to other controllers. closes issue #447.
140
+ * reworked rendering of pagination links for IE
141
+
142
+ === CREATE/UPDATE
143
+ * constraints are now applied to a record during the #new action, in case any custom form rendering depends on the constrained column
144
+ * the default options_for_association_conditions now returns nil for :through associations
145
+ * will not update a record attribute if the value hasn't changed. this is a workaround for an activerecord bug with has_one associations.
146
+ * attributes_hash_is_empty? didn't handle multi-parameter attribute names like 'created_at(5i)', which resulted in extra records being created from subforms.
147
+ * Hide hidden column header labels - like lock_version - in sub-forms.
148
+ * configuring url_for to not escape ampersands for the add_new_url in association footers (the 'create another' button's url)
149
+ * attribute_params.rb#attributes_hash_is_empty now checks defaults by converting them to strings to match the parameter values.
150
+
151
+ === NESTING
152
+ * no longer trying to nest a polymorphic association (there's no consistent model to list)
153
+ * fixed :conditions generation for nested/embedded scaffolds - was causing a bind variable mismatch.
154
+
155
+ === SEARCH
156
+ * search/livesearch should no longer choke on virtual columns
157
+ * the search/live_search forms will now ignore params[:search] when generating the submit url
158
+
159
+ === GENERAL
160
+ * no longer blow up on data strings with unintentional % characters. as_() was sprintf'ing too frequently.
161
+ * link_to no longer blows up on controller symbols
162
+ * activescaffold no longer loses information on columns - `config.columns.add', `config.columns = [...]', and `config.columns.exclude' all now affect the *inheritability* of a column by the other modules (list, create, update, etc.), but all columns remain in config.columns. this also makes _id columns behave better.
163
+ * dhtml history no longer saves null:null:null history bookmark.
164
+ * if there aren't any columns to search on, then activescaffold no longer creates an empty WHERE clause
165
+ * render :update was failing in some cases because activescaffold wasn't expecting blocks to the render call.
166
+ * quoting the scaffold id for report_500_response()
167
+ * adding :update_column => :post to the RESTful routing. closes issue #448.
168
+
169
+ == MISC
170
+
171
+ * reorganized the helpers and extensions
172
+ * ui_type is now only an alias for form_ui
173
+ * improvements to exception messages
174
+ * when initializing in production mode, activescaffold now recovers gracefully if it can't copy asset files
175
+ * RESTful routing is now accomplished in a way that'll let other add-ons extend the meaning of :active_scaffold => true.
176
+ * fixes for edge rails compatibility
177
+ * small improvements for localization accessibility
178
+ * minor string renaming (will affect localization tables, though)
179
+ * closed a few XSS holes
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.2"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,20 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.5.2)
6
+ bundler (~> 1.0.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.8.7)
10
+ rcov (0.9.9)
11
+ shoulda (2.11.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 1.0.0)
18
+ jeweler (~> 1.5.2)
19
+ rcov
20
+ shoulda
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2006 Richard White
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,69 @@
1
+ ******************************************************************************************************
2
+ ** For all documentation see the project website: http://github.com/vhochstein/active_scaffold/wiki **
3
+ ******************************************************************************************************
4
+
5
+ ActiveScaffold Gem/Plugin by Scott Rutherford (scott@caronsoftware.com), Richard White (rrwhite@gmail.com), Lance Ivy (lance@cainlevy.net), Ed Moss, Tim Harper and Sergio Cambra (sergio@entrecables.com)
6
+
7
+ Uses DhtmlHistory by Brad Neuberg (bkn3@columbia.edu)
8
+ http://codinginparadise.org
9
+
10
+ Uses Querystring by Adam Vandenberg
11
+ http://adamv.com/dev/javascript/querystring
12
+
13
+ Uses Paginator by Bruce Williams
14
+ http://paginator.rubyforge.org/
15
+
16
+ Supports RecordSelect by Lance Ivy
17
+ http://code.google.com/p/recordselect/
18
+
19
+ == Version Information
20
+
21
+ Please note the following list of Active Scaffold branches and Rails versions. Master will not work with Rails < 2.2
22
+
23
+ Active Scaffold master currently supports rails-2.3.5, but incompatible changes can be introduced, if you want an stable version, use rails-2.3
24
+ Rails 2.3.*: Active Scaffold rails-2.3
25
+ Rails 2.2.*: Active Scaffold rails-2.2
26
+ Rails 2.1.*: Active Scaffold rails-2.1
27
+ Rails < 2.1: Active Scaffold 1-1-stable (no guarantees)
28
+
29
+ Since Rails 2.3, render_component plugin is needed for nested and embbeded scaffolds. It works with rails-2.3 branch from ewildgoose repository:
30
+ script/plugin install git://github.com/ewildgoose/render_component.git -r rails-2.3
31
+
32
+ == Rails 3.0 compatible fork of activesaffold by Volker Hochstein:
33
+
34
+ Since Rails 3.0 render_component is not used for nesting, but is optional for embedded scaffolds.
35
+ Since Rails 3.0, https://github.com/rails/verification.git is also needed.
36
+
37
+ If you want to install as plugins under vendor/plugins, install these versions:
38
+ rails plugin install git://github.com/vhochstein/render_component.git
39
+ rails plugin install git://github.com/rails/verification.git
40
+ rails plugin install git://github.com/vhochstein/active_scaffold.git
41
+
42
+ If you want to use the gem, add to your Gemfile:
43
+ gem "active_scaffold_vho"
44
+
45
+ In case you would like to use most recent commit:
46
+ gem 'active_scaffold_vho', :git => 'git://github.com/vhochstein/active_scaffold.git'
47
+
48
+ == Pick your own javascript framework
49
+
50
+ The Rails 3.0 version uses unobtrusive Javascript, so you are free to pick your javascript framework.
51
+ Out of the box Prototype or JQuery are supported:
52
+
53
+ Prototype 1.7 (default js framework)
54
+ rails.js in git://github.com/vhochstein/prototype-ujs.git
55
+
56
+ JQuery 1.4.1, 1.4.2
57
+ https://github.com/vhochstein/jquery-ujs/raw/jquery1_4_2/src/rails.js
58
+
59
+ JQuery > 1.4.2
60
+ https://github.com/vhochstein/jquery-ujs/raw/master/src/rails.js
61
+
62
+ To configure the javascript framework when installed under vendor/plugins/
63
+ uncomment last line in ...plugins/active_scaffold/lib/active_scaffold_env.rb in order to use jquery instead of prototype
64
+
65
+ To configure the javascript framework when installed as a gem:
66
+ Add a config/initializers/active_scaffold.rb containing:
67
+ ActiveScaffold.js_framework = :jquery # :prototype is the default
68
+
69
+ Released under the MIT license (included)
@@ -0,0 +1,53 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+ require 'rake/testtask'
12
+ require 'rake/packagetask'
13
+ require 'rake/rdoctask'
14
+ require 'find'
15
+
16
+ require 'jeweler'
17
+ require './lib/active_scaffold/version.rb'
18
+
19
+ Jeweler::Tasks.new do |gem|
20
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
21
+ gem.name = "active_scaffold_vho"
22
+ gem.version = ActiveScaffold::Version::STRING
23
+ gem.homepage = "http://github.com/vhochstein/active_scaffold"
24
+ gem.license = "MIT"
25
+ gem.summary = %Q{Rails 3 Version of activescaffold supporting prototype and jquery}
26
+ gem.description = %Q{Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.}
27
+ gem.email = "activescaffold@googlegroups.com"
28
+ gem.authors = ["Many, see README"]
29
+ gem.add_runtime_dependency 'render_component_vho'
30
+ gem.add_runtime_dependency 'verification'
31
+ gem.add_runtime_dependency 'rails', '~> 3.0.0'
32
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
33
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
34
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
35
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
36
+ end
37
+ Jeweler::RubygemsDotOrgTasks.new
38
+
39
+ desc 'Test ActiveScaffold.'
40
+ Rake::TestTask.new(:test) do |t|
41
+ t.libs << 'lib'
42
+ t.pattern = 'test/**/*_test.rb'
43
+ t.verbose = true
44
+ end
45
+
46
+ desc 'Generate documentation for ActiveScaffold.'
47
+ Rake::RDocTask.new(:rdoc) do |rdoc|
48
+ rdoc.rdoc_dir = 'rdoc'
49
+ rdoc.title = 'ActiveScaffold #{ActiveScaffold::Version::STRING}'
50
+ rdoc.options << '--line-numbers' << '--inline-source'
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
@@ -0,0 +1,388 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{active_scaffold_san}
8
+ s.version = "3.0.18"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Many, see README"]
12
+ s.date = %q{2011-03-27}
13
+ s.description = %q{Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.}
14
+ s.email = %q{activescaffold@googlegroups.com}
15
+ s.extra_rdoc_files = [
16
+ "README"
17
+ ]
18
+ s.files = [
19
+ ".autotest",
20
+ ".document",
21
+ "CHANGELOG",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "MIT-LICENSE",
25
+ "README",
26
+ "Rakefile",
27
+ "active_scaffold_vho.gemspec",
28
+ "frontends/default/images/add.gif",
29
+ "frontends/default/images/arrow_down.gif",
30
+ "frontends/default/images/arrow_up.gif",
31
+ "frontends/default/images/close.gif",
32
+ "frontends/default/images/config.png",
33
+ "frontends/default/images/cross.png",
34
+ "frontends/default/images/gears.png",
35
+ "frontends/default/images/indicator-small.gif",
36
+ "frontends/default/images/indicator.gif",
37
+ "frontends/default/images/magnifier.png",
38
+ "frontends/default/javascripts/jquery/active_scaffold.js",
39
+ "frontends/default/javascripts/jquery/jquery.editinplace.js",
40
+ "frontends/default/javascripts/prototype/active_scaffold.js",
41
+ "frontends/default/javascripts/prototype/dhtml_history.js",
42
+ "frontends/default/javascripts/prototype/form_enhancements.js",
43
+ "frontends/default/javascripts/prototype/rico_corner.js",
44
+ "frontends/default/stylesheets/stylesheet-ie.css",
45
+ "frontends/default/stylesheets/stylesheet.css",
46
+ "frontends/default/views/_action_group.html.erb",
47
+ "frontends/default/views/_add_existing_form.html.erb",
48
+ "frontends/default/views/_base_form.html.erb",
49
+ "frontends/default/views/_create_form.html.erb",
50
+ "frontends/default/views/_create_form_on_list.html.erb",
51
+ "frontends/default/views/_field_search.html.erb",
52
+ "frontends/default/views/_form.html.erb",
53
+ "frontends/default/views/_form_association.html.erb",
54
+ "frontends/default/views/_form_association_footer.html.erb",
55
+ "frontends/default/views/_form_attribute.html.erb",
56
+ "frontends/default/views/_form_hidden_attribute.html.erb",
57
+ "frontends/default/views/_form_messages.html.erb",
58
+ "frontends/default/views/_horizontal_subform.html.erb",
59
+ "frontends/default/views/_horizontal_subform_header.html.erb",
60
+ "frontends/default/views/_horizontal_subform_record.html.erb",
61
+ "frontends/default/views/_human_conditions.html.erb",
62
+ "frontends/default/views/_list.html.erb",
63
+ "frontends/default/views/_list_actions.html.erb",
64
+ "frontends/default/views/_list_calculations.html.erb",
65
+ "frontends/default/views/_list_column_headings.html.erb",
66
+ "frontends/default/views/_list_header.html.erb",
67
+ "frontends/default/views/_list_inline_adapter.html.erb",
68
+ "frontends/default/views/_list_messages.html.erb",
69
+ "frontends/default/views/_list_pagination.html.erb",
70
+ "frontends/default/views/_list_pagination_links.html.erb",
71
+ "frontends/default/views/_list_record.html.erb",
72
+ "frontends/default/views/_list_record_columns.html.erb",
73
+ "frontends/default/views/_list_with_header.html.erb",
74
+ "frontends/default/views/_messages.html.erb",
75
+ "frontends/default/views/_render_field.js.rjs",
76
+ "frontends/default/views/_row.html.erb",
77
+ "frontends/default/views/_search.html.erb",
78
+ "frontends/default/views/_search_attribute.html.erb",
79
+ "frontends/default/views/_show.html.erb",
80
+ "frontends/default/views/_show_columns.html.erb",
81
+ "frontends/default/views/_update_actions.html.erb",
82
+ "frontends/default/views/_update_form.html.erb",
83
+ "frontends/default/views/_vertical_subform.html.erb",
84
+ "frontends/default/views/_vertical_subform_record.html.erb",
85
+ "frontends/default/views/action_confirmation.html.erb",
86
+ "frontends/default/views/add_existing.js.rjs",
87
+ "frontends/default/views/add_existing_form.html.erb",
88
+ "frontends/default/views/create.html.erb",
89
+ "frontends/default/views/delete.html.erb",
90
+ "frontends/default/views/destroy.js.rjs",
91
+ "frontends/default/views/edit_associated.js.rjs",
92
+ "frontends/default/views/field_search.html.erb",
93
+ "frontends/default/views/form_messages.js.rjs",
94
+ "frontends/default/views/list.html.erb",
95
+ "frontends/default/views/list.js.rjs",
96
+ "frontends/default/views/on_action_update.js.rjs",
97
+ "frontends/default/views/on_create.js.rjs",
98
+ "frontends/default/views/on_mark_all.js.rjs",
99
+ "frontends/default/views/on_update.js.rjs",
100
+ "frontends/default/views/search.html.erb",
101
+ "frontends/default/views/show.html.erb",
102
+ "frontends/default/views/update.html.erb",
103
+ "frontends/default/views/update_column.js.rjs",
104
+ "frontends/default/views/update_row.js.rjs",
105
+ "init.rb",
106
+ "lib/active_scaffold.rb",
107
+ "lib/active_scaffold/actions/common_search.rb",
108
+ "lib/active_scaffold/actions/core.rb",
109
+ "lib/active_scaffold/actions/create.rb",
110
+ "lib/active_scaffold/actions/delete.rb",
111
+ "lib/active_scaffold/actions/field_search.rb",
112
+ "lib/active_scaffold/actions/list.rb",
113
+ "lib/active_scaffold/actions/mark.rb",
114
+ "lib/active_scaffold/actions/nested.rb",
115
+ "lib/active_scaffold/actions/search.rb",
116
+ "lib/active_scaffold/actions/show.rb",
117
+ "lib/active_scaffold/actions/subform.rb",
118
+ "lib/active_scaffold/actions/update.rb",
119
+ "lib/active_scaffold/active_record_permissions.rb",
120
+ "lib/active_scaffold/attribute_params.rb",
121
+ "lib/active_scaffold/bridges/ancestry/bridge.rb",
122
+ "lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb",
123
+ "lib/active_scaffold/bridges/bridge.rb",
124
+ "lib/active_scaffold/bridges/calendar_date_select/bridge.rb",
125
+ "lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb",
126
+ "lib/active_scaffold/bridges/cancan/bridge.rb",
127
+ "lib/active_scaffold/bridges/cancan/lib/cancan_bridge.rb",
128
+ "lib/active_scaffold/bridges/carrierwave/bridge.rb",
129
+ "lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb",
130
+ "lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb",
131
+ "lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb",
132
+ "lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb",
133
+ "lib/active_scaffold/bridges/date_picker/bridge.rb",
134
+ "lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb",
135
+ "lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js",
136
+ "lib/active_scaffold/bridges/file_column/bridge.rb",
137
+ "lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb",
138
+ "lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb",
139
+ "lib/active_scaffold/bridges/file_column/lib/form_ui.rb",
140
+ "lib/active_scaffold/bridges/file_column/lib/list_ui.rb",
141
+ "lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb",
142
+ "lib/active_scaffold/bridges/file_column/test/mock_model.rb",
143
+ "lib/active_scaffold/bridges/file_column/test/test_helper.rb",
144
+ "lib/active_scaffold/bridges/paperclip/bridge.rb",
145
+ "lib/active_scaffold/bridges/paperclip/lib/form_ui.rb",
146
+ "lib/active_scaffold/bridges/paperclip/lib/list_ui.rb",
147
+ "lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb",
148
+ "lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb",
149
+ "lib/active_scaffold/bridges/semantic_attributes/bridge.rb",
150
+ "lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb",
151
+ "lib/active_scaffold/bridges/shared/date_bridge.rb",
152
+ "lib/active_scaffold/bridges/tiny_mce/bridge.rb",
153
+ "lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb",
154
+ "lib/active_scaffold/bridges/validation_reflection/bridge.rb",
155
+ "lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb",
156
+ "lib/active_scaffold/config/base.rb",
157
+ "lib/active_scaffold/config/core.rb",
158
+ "lib/active_scaffold/config/create.rb",
159
+ "lib/active_scaffold/config/delete.rb",
160
+ "lib/active_scaffold/config/field_search.rb",
161
+ "lib/active_scaffold/config/form.rb",
162
+ "lib/active_scaffold/config/list.rb",
163
+ "lib/active_scaffold/config/mark.rb",
164
+ "lib/active_scaffold/config/nested.rb",
165
+ "lib/active_scaffold/config/search.rb",
166
+ "lib/active_scaffold/config/show.rb",
167
+ "lib/active_scaffold/config/subform.rb",
168
+ "lib/active_scaffold/config/update.rb",
169
+ "lib/active_scaffold/configurable.rb",
170
+ "lib/active_scaffold/constraints.rb",
171
+ "lib/active_scaffold/data_structures/action_columns.rb",
172
+ "lib/active_scaffold/data_structures/action_link.rb",
173
+ "lib/active_scaffold/data_structures/action_links.rb",
174
+ "lib/active_scaffold/data_structures/actions.rb",
175
+ "lib/active_scaffold/data_structures/column.rb",
176
+ "lib/active_scaffold/data_structures/columns.rb",
177
+ "lib/active_scaffold/data_structures/error_message.rb",
178
+ "lib/active_scaffold/data_structures/nested_info.rb",
179
+ "lib/active_scaffold/data_structures/set.rb",
180
+ "lib/active_scaffold/data_structures/sorting.rb",
181
+ "lib/active_scaffold/extensions/action_controller_rendering.rb",
182
+ "lib/active_scaffold/extensions/action_view_rendering.rb",
183
+ "lib/active_scaffold/extensions/action_view_resolver.rb",
184
+ "lib/active_scaffold/extensions/active_association_reflection.rb",
185
+ "lib/active_scaffold/extensions/active_record_offset.rb",
186
+ "lib/active_scaffold/extensions/array.rb",
187
+ "lib/active_scaffold/extensions/localize.rb",
188
+ "lib/active_scaffold/extensions/name_option_for_datetime.rb",
189
+ "lib/active_scaffold/extensions/nil_id_in_url_params.rb",
190
+ "lib/active_scaffold/extensions/paginator_extensions.rb",
191
+ "lib/active_scaffold/extensions/reverse_associations.rb",
192
+ "lib/active_scaffold/extensions/routing_mapper.rb",
193
+ "lib/active_scaffold/extensions/to_label.rb",
194
+ "lib/active_scaffold/extensions/unsaved_associated.rb",
195
+ "lib/active_scaffold/extensions/unsaved_record.rb",
196
+ "lib/active_scaffold/extensions/usa_state.rb",
197
+ "lib/active_scaffold/finder.rb",
198
+ "lib/active_scaffold/helpers/association_helpers.rb",
199
+ "lib/active_scaffold/helpers/controller_helpers.rb",
200
+ "lib/active_scaffold/helpers/country_helpers.rb",
201
+ "lib/active_scaffold/helpers/form_column_helpers.rb",
202
+ "lib/active_scaffold/helpers/human_condition_helpers.rb",
203
+ "lib/active_scaffold/helpers/id_helpers.rb",
204
+ "lib/active_scaffold/helpers/list_column_helpers.rb",
205
+ "lib/active_scaffold/helpers/pagination_helpers.rb",
206
+ "lib/active_scaffold/helpers/search_column_helpers.rb",
207
+ "lib/active_scaffold/helpers/show_column_helpers.rb",
208
+ "lib/active_scaffold/helpers/view_helpers.rb",
209
+ "lib/active_scaffold/locale/de.rb",
210
+ "lib/active_scaffold/locale/en.rb",
211
+ "lib/active_scaffold/locale/es.yml",
212
+ "lib/active_scaffold/locale/fr.rb",
213
+ "lib/active_scaffold/locale/hu.yml",
214
+ "lib/active_scaffold/locale/ja.yml",
215
+ "lib/active_scaffold/locale/ru.yml",
216
+ "lib/active_scaffold/marked_model.rb",
217
+ "lib/active_scaffold/paginator.rb",
218
+ "lib/active_scaffold/responds_to_parent.rb",
219
+ "lib/active_scaffold/version.rb",
220
+ "lib/active_scaffold_assets.rb",
221
+ "lib/active_scaffold_env.rb",
222
+ "lib/active_scaffold_vho.rb",
223
+ "lib/generators/active_scaffold/USAGE",
224
+ "lib/generators/active_scaffold/active_scaffold_generator.rb",
225
+ "lib/generators/active_scaffold_controller/USAGE",
226
+ "lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb",
227
+ "lib/generators/active_scaffold_controller/templates/controller.rb",
228
+ "lib/generators/active_scaffold_controller/templates/helper.rb",
229
+ "lib/generators/active_scaffold_setup/USAGE",
230
+ "lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb",
231
+ "public/blank.html",
232
+ "shoulda_macros/macros.rb",
233
+ "test/bridges/bridge_test.rb",
234
+ "test/config/base_test.rb",
235
+ "test/config/create_test.rb",
236
+ "test/config/list_test.rb",
237
+ "test/config/show_test.rb",
238
+ "test/config/update_test.rb",
239
+ "test/const_mocker.rb",
240
+ "test/data_structures/action_columns_test.rb",
241
+ "test/data_structures/action_link_test.rb",
242
+ "test/data_structures/action_links_test.rb",
243
+ "test/data_structures/actions_test.rb",
244
+ "test/data_structures/association_column_test.rb",
245
+ "test/data_structures/column_test.rb",
246
+ "test/data_structures/columns_test.rb",
247
+ "test/data_structures/error_message_test.rb",
248
+ "test/data_structures/set_test.rb",
249
+ "test/data_structures/sorting_test.rb",
250
+ "test/data_structures/standard_column_test.rb",
251
+ "test/data_structures/virtual_column_test.rb",
252
+ "test/extensions/active_record_test.rb",
253
+ "test/extensions/array_test.rb",
254
+ "test/helpers/form_column_helpers_test.rb",
255
+ "test/helpers/list_column_helpers_test.rb",
256
+ "test/helpers/pagination_helpers_test.rb",
257
+ "test/misc/active_record_permissions_test.rb",
258
+ "test/misc/attribute_params_test.rb",
259
+ "test/misc/configurable_test.rb",
260
+ "test/misc/constraints_test.rb",
261
+ "test/misc/finder_test.rb",
262
+ "test/misc/lang_test.rb",
263
+ "test/mock_app/.gitignore",
264
+ "test/mock_app/app/controllers/application_controller.rb",
265
+ "test/mock_app/app/helpers/application_helper.rb",
266
+ "test/mock_app/config/boot.rb",
267
+ "test/mock_app/config/database.yml",
268
+ "test/mock_app/config/environment.rb",
269
+ "test/mock_app/config/environments/development.rb",
270
+ "test/mock_app/config/environments/production.rb",
271
+ "test/mock_app/config/environments/test.rb",
272
+ "test/mock_app/config/initializers/backtrace_silencers.rb",
273
+ "test/mock_app/config/initializers/inflections.rb",
274
+ "test/mock_app/config/initializers/mime_types.rb",
275
+ "test/mock_app/config/initializers/new_rails_defaults.rb",
276
+ "test/mock_app/config/initializers/session_store.rb",
277
+ "test/mock_app/config/locales/en.yml",
278
+ "test/mock_app/config/routes.rb",
279
+ "test/mock_app/db/test.sqlite3",
280
+ "test/mock_app/public/blank.html",
281
+ "test/mock_app/public/images/active_scaffold/DO_NOT_EDIT",
282
+ "test/mock_app/public/images/active_scaffold/default/add.gif",
283
+ "test/mock_app/public/images/active_scaffold/default/arrow_down.gif",
284
+ "test/mock_app/public/images/active_scaffold/default/arrow_up.gif",
285
+ "test/mock_app/public/images/active_scaffold/default/close.gif",
286
+ "test/mock_app/public/images/active_scaffold/default/cross.png",
287
+ "test/mock_app/public/images/active_scaffold/default/indicator-small.gif",
288
+ "test/mock_app/public/images/active_scaffold/default/indicator.gif",
289
+ "test/mock_app/public/images/active_scaffold/default/magnifier.png",
290
+ "test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT",
291
+ "test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js",
292
+ "test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js",
293
+ "test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js",
294
+ "test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js",
295
+ "test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT",
296
+ "test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css",
297
+ "test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css",
298
+ "test/model_stub.rb",
299
+ "test/run_all.rb",
300
+ "test/test_helper.rb",
301
+ "uninstall.rb"
302
+ ]
303
+ s.homepage = %q{http://github.com/vhochstein/active_scaffold}
304
+ s.licenses = ["MIT"]
305
+ s.require_paths = ["lib"]
306
+ s.rubygems_version = %q{1.3.7}
307
+ s.summary = %q{Rails 3 Version of activescaffold supporting prototype and jquery}
308
+ s.test_files = [
309
+ "test/bridges/bridge_test.rb",
310
+ "test/config/base_test.rb",
311
+ "test/config/create_test.rb",
312
+ "test/config/list_test.rb",
313
+ "test/config/show_test.rb",
314
+ "test/config/update_test.rb",
315
+ "test/const_mocker.rb",
316
+ "test/data_structures/action_columns_test.rb",
317
+ "test/data_structures/action_link_test.rb",
318
+ "test/data_structures/action_links_test.rb",
319
+ "test/data_structures/actions_test.rb",
320
+ "test/data_structures/association_column_test.rb",
321
+ "test/data_structures/column_test.rb",
322
+ "test/data_structures/columns_test.rb",
323
+ "test/data_structures/error_message_test.rb",
324
+ "test/data_structures/set_test.rb",
325
+ "test/data_structures/sorting_test.rb",
326
+ "test/data_structures/standard_column_test.rb",
327
+ "test/data_structures/virtual_column_test.rb",
328
+ "test/extensions/active_record_test.rb",
329
+ "test/extensions/array_test.rb",
330
+ "test/helpers/form_column_helpers_test.rb",
331
+ "test/helpers/list_column_helpers_test.rb",
332
+ "test/helpers/pagination_helpers_test.rb",
333
+ "test/misc/active_record_permissions_test.rb",
334
+ "test/misc/attribute_params_test.rb",
335
+ "test/misc/configurable_test.rb",
336
+ "test/misc/constraints_test.rb",
337
+ "test/misc/finder_test.rb",
338
+ "test/misc/lang_test.rb",
339
+ "test/mock_app/app/controllers/application_controller.rb",
340
+ "test/mock_app/app/helpers/application_helper.rb",
341
+ "test/mock_app/config/boot.rb",
342
+ "test/mock_app/config/environment.rb",
343
+ "test/mock_app/config/environments/development.rb",
344
+ "test/mock_app/config/environments/production.rb",
345
+ "test/mock_app/config/environments/test.rb",
346
+ "test/mock_app/config/initializers/backtrace_silencers.rb",
347
+ "test/mock_app/config/initializers/inflections.rb",
348
+ "test/mock_app/config/initializers/mime_types.rb",
349
+ "test/mock_app/config/initializers/new_rails_defaults.rb",
350
+ "test/mock_app/config/initializers/session_store.rb",
351
+ "test/mock_app/config/routes.rb",
352
+ "test/model_stub.rb",
353
+ "test/run_all.rb",
354
+ "test/test_helper.rb"
355
+ ]
356
+
357
+ if s.respond_to? :specification_version then
358
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
359
+ s.specification_version = 3
360
+
361
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
362
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
363
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
364
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
365
+ s.add_development_dependency(%q<rcov>, [">= 0"])
366
+ s.add_runtime_dependency(%q<render_component_vho>, [">= 0"])
367
+ s.add_runtime_dependency(%q<verification>, [">= 0"])
368
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
369
+ else
370
+ s.add_dependency(%q<shoulda>, [">= 0"])
371
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
372
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
373
+ s.add_dependency(%q<rcov>, [">= 0"])
374
+ s.add_dependency(%q<render_component_vho>, [">= 0"])
375
+ s.add_dependency(%q<verification>, [">= 0"])
376
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
377
+ end
378
+ else
379
+ s.add_dependency(%q<shoulda>, [">= 0"])
380
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
381
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
382
+ s.add_dependency(%q<rcov>, [">= 0"])
383
+ s.add_dependency(%q<render_component_vho>, [">= 0"])
384
+ s.add_dependency(%q<verification>, [">= 0"])
385
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
386
+ end
387
+ end
388
+