active_scaffold_vho 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) 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 +63 -0
  8. data/Rakefile +53 -0
  9. data/frontends/default/images/add.gif +0 -0
  10. data/frontends/default/images/arrow_down.gif +0 -0
  11. data/frontends/default/images/arrow_up.gif +0 -0
  12. data/frontends/default/images/close.gif +0 -0
  13. data/frontends/default/images/config.png +0 -0
  14. data/frontends/default/images/cross.png +0 -0
  15. data/frontends/default/images/gears.png +0 -0
  16. data/frontends/default/images/indicator-small.gif +0 -0
  17. data/frontends/default/images/indicator.gif +0 -0
  18. data/frontends/default/images/magnifier.png +0 -0
  19. data/frontends/default/javascripts/jquery/active_scaffold.js +957 -0
  20. data/frontends/default/javascripts/jquery/jquery.editinplace.js +743 -0
  21. data/frontends/default/javascripts/prototype/active_scaffold.js +957 -0
  22. data/frontends/default/javascripts/prototype/dhtml_history.js +867 -0
  23. data/frontends/default/javascripts/prototype/form_enhancements.js +117 -0
  24. data/frontends/default/javascripts/prototype/rico_corner.js +370 -0
  25. data/frontends/default/stylesheets/stylesheet-ie.css +35 -0
  26. data/frontends/default/stylesheets/stylesheet.css +964 -0
  27. data/frontends/default/views/_action_group.html.erb +20 -0
  28. data/frontends/default/views/_add_existing_form.html.erb +30 -0
  29. data/frontends/default/views/_base_form.html.erb +45 -0
  30. data/frontends/default/views/_create_form.html.erb +8 -0
  31. data/frontends/default/views/_create_form_on_list.html.erb +6 -0
  32. data/frontends/default/views/_field_search.html.erb +32 -0
  33. data/frontends/default/views/_form.html.erb +24 -0
  34. data/frontends/default/views/_form_association.html.erb +14 -0
  35. data/frontends/default/views/_form_association_footer.html.erb +40 -0
  36. data/frontends/default/views/_form_attribute.html.erb +15 -0
  37. data/frontends/default/views/_form_hidden_attribute.html.erb +2 -0
  38. data/frontends/default/views/_form_messages.html.erb +5 -0
  39. data/frontends/default/views/_horizontal_subform.html.erb +19 -0
  40. data/frontends/default/views/_horizontal_subform_header.html.erb +10 -0
  41. data/frontends/default/views/_horizontal_subform_record.html.erb +37 -0
  42. data/frontends/default/views/_human_conditions.html.erb +1 -0
  43. data/frontends/default/views/_list.html.erb +18 -0
  44. data/frontends/default/views/_list_actions.html.erb +15 -0
  45. data/frontends/default/views/_list_calculations.html.erb +16 -0
  46. data/frontends/default/views/_list_column_headings.html.erb +12 -0
  47. data/frontends/default/views/_list_header.html.erb +10 -0
  48. data/frontends/default/views/_list_inline_adapter.html.erb +10 -0
  49. data/frontends/default/views/_list_messages.html.erb +32 -0
  50. data/frontends/default/views/_list_pagination.html.erb +11 -0
  51. data/frontends/default/views/_list_pagination_links.html.erb +9 -0
  52. data/frontends/default/views/_list_record.html.erb +14 -0
  53. data/frontends/default/views/_list_record_columns.html.erb +8 -0
  54. data/frontends/default/views/_list_with_header.html.erb +32 -0
  55. data/frontends/default/views/_messages.html.erb +10 -0
  56. data/frontends/default/views/_render_field.js.rjs +13 -0
  57. data/frontends/default/views/_row.html.erb +12 -0
  58. data/frontends/default/views/_search.html.erb +34 -0
  59. data/frontends/default/views/_search_attribute.html.erb +10 -0
  60. data/frontends/default/views/_show.html.erb +8 -0
  61. data/frontends/default/views/_show_columns.html.erb +15 -0
  62. data/frontends/default/views/_update_actions.html.erb +9 -0
  63. data/frontends/default/views/_update_form.html.erb +6 -0
  64. data/frontends/default/views/_vertical_subform.html.erb +12 -0
  65. data/frontends/default/views/_vertical_subform_record.html.erb +38 -0
  66. data/frontends/default/views/action_confirmation.html.erb +13 -0
  67. data/frontends/default/views/add_existing.js.rjs +17 -0
  68. data/frontends/default/views/add_existing_form.html.erb +5 -0
  69. data/frontends/default/views/create.html.erb +5 -0
  70. data/frontends/default/views/delete.html.erb +13 -0
  71. data/frontends/default/views/destroy.js.rjs +11 -0
  72. data/frontends/default/views/edit_associated.js.rjs +11 -0
  73. data/frontends/default/views/field_search.html.erb +5 -0
  74. data/frontends/default/views/form_messages.js.rjs +1 -0
  75. data/frontends/default/views/list.html.erb +1 -0
  76. data/frontends/default/views/list.js.rjs +1 -0
  77. data/frontends/default/views/on_action_update.js.rjs +8 -0
  78. data/frontends/default/views/on_create.js.rjs +41 -0
  79. data/frontends/default/views/on_update.js.rjs +28 -0
  80. data/frontends/default/views/search.html.erb +5 -0
  81. data/frontends/default/views/show.html.erb +5 -0
  82. data/frontends/default/views/update.html.erb +8 -0
  83. data/frontends/default/views/update_column.js.rjs +13 -0
  84. data/frontends/default/views/update_row.js.rjs +1 -0
  85. data/init.rb +9 -0
  86. data/lib/active_record_permissions.rb +134 -0
  87. data/lib/active_scaffold/actions/common_search.rb +22 -0
  88. data/lib/active_scaffold/actions/core.rb +170 -0
  89. data/lib/active_scaffold/actions/create.rb +145 -0
  90. data/lib/active_scaffold/actions/delete.rb +75 -0
  91. data/lib/active_scaffold/actions/field_search.rb +82 -0
  92. data/lib/active_scaffold/actions/list.rb +184 -0
  93. data/lib/active_scaffold/actions/mark.rb +50 -0
  94. data/lib/active_scaffold/actions/nested.rb +250 -0
  95. data/lib/active_scaffold/actions/search.rb +47 -0
  96. data/lib/active_scaffold/actions/show.rb +61 -0
  97. data/lib/active_scaffold/actions/subform.rb +17 -0
  98. data/lib/active_scaffold/actions/update.rb +141 -0
  99. data/lib/active_scaffold/attribute_params.rb +207 -0
  100. data/lib/active_scaffold/bridges/ancestry/bridge.rb +5 -0
  101. data/lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb +39 -0
  102. data/lib/active_scaffold/bridges/bridge.rb +52 -0
  103. data/lib/active_scaffold/bridges/calendar_date_select/bridge.rb +16 -0
  104. data/lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb +79 -0
  105. data/lib/active_scaffold/bridges/carrierwave/bridge.rb +7 -0
  106. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb +38 -0
  107. data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb +26 -0
  108. data/lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb +35 -0
  109. data/lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb +17 -0
  110. data/lib/active_scaffold/bridges/date_picker/bridge.rb +22 -0
  111. data/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb +225 -0
  112. data/lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js +22 -0
  113. data/lib/active_scaffold/bridges/file_column/bridge.rb +11 -0
  114. data/lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb +46 -0
  115. data/lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb +59 -0
  116. data/lib/active_scaffold/bridges/file_column/lib/form_ui.rb +37 -0
  117. data/lib/active_scaffold/bridges/file_column/lib/list_ui.rb +26 -0
  118. data/lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb +43 -0
  119. data/lib/active_scaffold/bridges/file_column/test/mock_model.rb +9 -0
  120. data/lib/active_scaffold/bridges/file_column/test/test_helper.rb +15 -0
  121. data/lib/active_scaffold/bridges/paperclip/bridge.rb +10 -0
  122. data/lib/active_scaffold/bridges/paperclip/lib/form_ui.rb +27 -0
  123. data/lib/active_scaffold/bridges/paperclip/lib/list_ui.rb +16 -0
  124. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb +38 -0
  125. data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb +26 -0
  126. data/lib/active_scaffold/bridges/semantic_attributes/bridge.rb +5 -0
  127. data/lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb +20 -0
  128. data/lib/active_scaffold/bridges/shared/date_bridge.rb +187 -0
  129. data/lib/active_scaffold/bridges/tiny_mce/bridge.rb +5 -0
  130. data/lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb +45 -0
  131. data/lib/active_scaffold/bridges/validation_reflection/bridge.rb +8 -0
  132. data/lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb +21 -0
  133. data/lib/active_scaffold/config/base.rb +62 -0
  134. data/lib/active_scaffold/config/core.rb +220 -0
  135. data/lib/active_scaffold/config/create.rb +51 -0
  136. data/lib/active_scaffold/config/delete.rb +34 -0
  137. data/lib/active_scaffold/config/field_search.rb +75 -0
  138. data/lib/active_scaffold/config/form.rb +47 -0
  139. data/lib/active_scaffold/config/list.rb +174 -0
  140. data/lib/active_scaffold/config/mark.rb +22 -0
  141. data/lib/active_scaffold/config/nested.rb +44 -0
  142. data/lib/active_scaffold/config/search.rb +69 -0
  143. data/lib/active_scaffold/config/show.rb +35 -0
  144. data/lib/active_scaffold/config/subform.rb +35 -0
  145. data/lib/active_scaffold/config/update.rb +46 -0
  146. data/lib/active_scaffold/configurable.rb +29 -0
  147. data/lib/active_scaffold/constraints.rb +184 -0
  148. data/lib/active_scaffold/data_structures/action_columns.rb +133 -0
  149. data/lib/active_scaffold/data_structures/action_link.rb +171 -0
  150. data/lib/active_scaffold/data_structures/action_links.rb +175 -0
  151. data/lib/active_scaffold/data_structures/actions.rb +45 -0
  152. data/lib/active_scaffold/data_structures/column.rb +351 -0
  153. data/lib/active_scaffold/data_structures/columns.rb +75 -0
  154. data/lib/active_scaffold/data_structures/error_message.rb +24 -0
  155. data/lib/active_scaffold/data_structures/nested_info.rb +123 -0
  156. data/lib/active_scaffold/data_structures/set.rb +62 -0
  157. data/lib/active_scaffold/data_structures/sorting.rb +168 -0
  158. data/lib/active_scaffold/finder.rb +333 -0
  159. data/lib/active_scaffold/helpers/association_helpers.rb +40 -0
  160. data/lib/active_scaffold/helpers/controller_helpers.rb +82 -0
  161. data/lib/active_scaffold/helpers/country_helpers.rb +352 -0
  162. data/lib/active_scaffold/helpers/form_column_helpers.rb +347 -0
  163. data/lib/active_scaffold/helpers/human_condition_helpers.rb +59 -0
  164. data/lib/active_scaffold/helpers/id_helpers.rb +127 -0
  165. data/lib/active_scaffold/helpers/list_column_helpers.rb +361 -0
  166. data/lib/active_scaffold/helpers/pagination_helpers.rb +55 -0
  167. data/lib/active_scaffold/helpers/search_column_helpers.rb +243 -0
  168. data/lib/active_scaffold/helpers/show_column_helpers.rb +46 -0
  169. data/lib/active_scaffold/helpers/view_helpers.rb +356 -0
  170. data/lib/active_scaffold/locale/de.rb +120 -0
  171. data/lib/active_scaffold/locale/en.rb +119 -0
  172. data/lib/active_scaffold/locale/es.yml +115 -0
  173. data/lib/active_scaffold/locale/fr.rb +116 -0
  174. data/lib/active_scaffold/locale/hu.yml +63 -0
  175. data/lib/active_scaffold/locale/ja.yml +64 -0
  176. data/lib/active_scaffold/locale/ru.yml +119 -0
  177. data/lib/active_scaffold/marked_model.rb +38 -0
  178. data/lib/active_scaffold/version.rb +9 -0
  179. data/lib/active_scaffold.rb +345 -0
  180. data/lib/active_scaffold_assets.rb +45 -0
  181. data/lib/dhtml_confirm.rb +54 -0
  182. data/lib/environment.rb +14 -0
  183. data/lib/extensions/action_controller_rendering.rb +20 -0
  184. data/lib/extensions/action_view_rendering.rb +113 -0
  185. data/lib/extensions/action_view_resolver.rb +7 -0
  186. data/lib/extensions/active_association_reflection.rb +13 -0
  187. data/lib/extensions/active_record_offset.rb +12 -0
  188. data/lib/extensions/array.rb +7 -0
  189. data/lib/extensions/localize.rb +10 -0
  190. data/lib/extensions/name_option_for_datetime.rb +12 -0
  191. data/lib/extensions/nil_id_in_url_params.rb +7 -0
  192. data/lib/extensions/paginator_extensions.rb +26 -0
  193. data/lib/extensions/reverse_associations.rb +62 -0
  194. data/lib/extensions/routing_mapper.rb +34 -0
  195. data/lib/extensions/to_label.rb +8 -0
  196. data/lib/extensions/unsaved_associated.rb +61 -0
  197. data/lib/extensions/unsaved_record.rb +20 -0
  198. data/lib/extensions/usa_state.rb +46 -0
  199. data/lib/generators/active_scaffold/USAGE +29 -0
  200. data/lib/generators/active_scaffold/active_scaffold_generator.rb +20 -0
  201. data/lib/generators/active_scaffold_controller/USAGE +19 -0
  202. data/lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb +28 -0
  203. data/lib/generators/active_scaffold_controller/templates/controller.rb +4 -0
  204. data/lib/generators/active_scaffold_setup/USAGE +10 -0
  205. data/lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb +53 -0
  206. data/lib/paginator.rb +136 -0
  207. data/lib/responds_to_parent.rb +70 -0
  208. data/public/blank.html +33 -0
  209. data/shoulda_macros/macros.rb +136 -0
  210. data/test/bridges/bridge_test.rb +47 -0
  211. data/test/config/base_test.rb +15 -0
  212. data/test/config/create_test.rb +55 -0
  213. data/test/config/list_test.rb +74 -0
  214. data/test/config/show_test.rb +43 -0
  215. data/test/config/update_test.rb +17 -0
  216. data/test/const_mocker.rb +36 -0
  217. data/test/data_structures/action_columns_test.rb +113 -0
  218. data/test/data_structures/action_link_test.rb +78 -0
  219. data/test/data_structures/action_links_test.rb +78 -0
  220. data/test/data_structures/actions_test.rb +25 -0
  221. data/test/data_structures/association_column_test.rb +42 -0
  222. data/test/data_structures/column_test.rb +185 -0
  223. data/test/data_structures/columns_test.rb +69 -0
  224. data/test/data_structures/error_message_test.rb +28 -0
  225. data/test/data_structures/set_test.rb +86 -0
  226. data/test/data_structures/sorting_test.rb +126 -0
  227. data/test/data_structures/standard_column_test.rb +24 -0
  228. data/test/data_structures/virtual_column_test.rb +23 -0
  229. data/test/extensions/active_record_test.rb +45 -0
  230. data/test/extensions/array_test.rb +12 -0
  231. data/test/helpers/form_column_helpers_test.rb +31 -0
  232. data/test/helpers/list_column_helpers_test.rb +31 -0
  233. data/test/helpers/pagination_helpers_test.rb +55 -0
  234. data/test/misc/active_record_permissions_test.rb +154 -0
  235. data/test/misc/attribute_params_test.rb +110 -0
  236. data/test/misc/configurable_test.rb +96 -0
  237. data/test/misc/constraints_test.rb +193 -0
  238. data/test/misc/finder_test.rb +93 -0
  239. data/test/misc/lang_test.rb +12 -0
  240. data/test/mock_app/.gitignore +2 -0
  241. data/test/mock_app/app/controllers/application_controller.rb +10 -0
  242. data/test/mock_app/app/helpers/application_helper.rb +3 -0
  243. data/test/mock_app/config/boot.rb +110 -0
  244. data/test/mock_app/config/database.yml +16 -0
  245. data/test/mock_app/config/environment.rb +43 -0
  246. data/test/mock_app/config/environments/development.rb +17 -0
  247. data/test/mock_app/config/environments/production.rb +28 -0
  248. data/test/mock_app/config/environments/test.rb +28 -0
  249. data/test/mock_app/config/initializers/backtrace_silencers.rb +7 -0
  250. data/test/mock_app/config/initializers/inflections.rb +10 -0
  251. data/test/mock_app/config/initializers/mime_types.rb +5 -0
  252. data/test/mock_app/config/initializers/new_rails_defaults.rb +19 -0
  253. data/test/mock_app/config/initializers/session_store.rb +15 -0
  254. data/test/mock_app/config/locales/en.yml +5 -0
  255. data/test/mock_app/config/routes.rb +43 -0
  256. data/test/mock_app/db/test.sqlite3 +1 -0
  257. data/test/mock_app/public/blank.html +33 -0
  258. data/test/mock_app/public/images/active_scaffold/DO_NOT_EDIT +2 -0
  259. data/test/mock_app/public/images/active_scaffold/default/add.gif +0 -0
  260. data/test/mock_app/public/images/active_scaffold/default/arrow_down.gif +0 -0
  261. data/test/mock_app/public/images/active_scaffold/default/arrow_up.gif +0 -0
  262. data/test/mock_app/public/images/active_scaffold/default/close.gif +0 -0
  263. data/test/mock_app/public/images/active_scaffold/default/cross.png +0 -0
  264. data/test/mock_app/public/images/active_scaffold/default/indicator-small.gif +0 -0
  265. data/test/mock_app/public/images/active_scaffold/default/indicator.gif +0 -0
  266. data/test/mock_app/public/images/active_scaffold/default/magnifier.png +0 -0
  267. data/test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT +2 -0
  268. data/test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js +532 -0
  269. data/test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js +867 -0
  270. data/test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js +117 -0
  271. data/test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js +370 -0
  272. data/test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT +2 -0
  273. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css +35 -0
  274. data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +839 -0
  275. data/test/model_stub.rb +55 -0
  276. data/test/run_all.rb +8 -0
  277. data/test/test_helper.rb +39 -0
  278. data/uninstall.rb +13 -0
  279. metadata +492 -0
@@ -0,0 +1,55 @@
1
+ class ModelStub < ActiveRecord::Base
2
+ abstract_class = true
3
+ has_one :other_model, :class_name => 'ModelStub'
4
+ has_many :other_models, :class_name => 'ModelStub'
5
+
6
+ cattr_accessor :stubbed_columns
7
+ self.stubbed_columns = [:a, :b, :c, :d, :id]
8
+ attr_accessor *self.stubbed_columns
9
+
10
+ @@nested_scope_calls = []
11
+ cattr_accessor :nested_scope_calls
12
+
13
+ named_scope :a_is_defined, :conditions => "a is not null"
14
+ named_scope :b_like, lambda {|pattern| {:conditions => ["b like ?", pattern]}}
15
+
16
+ def self.a_is_defined
17
+ @@nested_scope_calls << :a_is_defined
18
+ self
19
+ end
20
+
21
+ def self.b_like(pattern)
22
+ @@nested_scope_calls << :b_like
23
+ self
24
+ end
25
+
26
+ def other_model=(val)
27
+ @other_model = val
28
+ end
29
+ def other_model
30
+ @other_model || nil
31
+ end
32
+
33
+ def other_models=(val)
34
+ @other_models = val
35
+ end
36
+ def other_models
37
+ @other_models || []
38
+ end
39
+
40
+ def self.columns
41
+ @columns ||= self.stubbed_columns.map{|c| ActiveRecord::ConnectionAdapters::Column.new(c.to_s, '', 'varchar(255)') }
42
+ end
43
+
44
+ def self.columns_hash
45
+ @columns_hash ||= columns.inject({}) { |hash, column| hash[column.name.to_s] = column; hash }
46
+ end
47
+
48
+ # column-level security methods, used for testing
49
+ def self.a_authorized_for_bar?(user)
50
+ true
51
+ end
52
+ def self.b_authorized?(user)
53
+ false
54
+ end
55
+ end
data/test/run_all.rb ADDED
@@ -0,0 +1,8 @@
1
+ test_folders = %w[bridges config data_structures extensions misc]
2
+
3
+ all_tests = test_folders.inject([]) {|output, folder|
4
+ output + Dir[File.join(File.dirname(__FILE__), "#{folder}/**/*.rb")]
5
+ }
6
+ all_tests.each{|filename|
7
+ require filename
8
+ }
@@ -0,0 +1,39 @@
1
+ require 'test/unit'
2
+ require 'rubygems'
3
+ require 'action_controller'
4
+ require 'action_view/test_case'
5
+ require 'mocha'
6
+ begin
7
+ require 'redgreen'
8
+ rescue LoadError
9
+ end
10
+
11
+ ENV['RAILS_ENV'] = 'test'
12
+ ENV['RAILS_ROOT'] ||= File.join(File.dirname(__FILE__), 'mock_app')
13
+
14
+ require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config', 'environment.rb'))
15
+
16
+ def load_schema
17
+ stdout = $stdout
18
+ $stdout = StringIO.new # suppress output while building the schema
19
+ load File.join(ENV['RAILS_ROOT'], 'db', 'schema.rb')
20
+ $stdout = stdout
21
+ end
22
+
23
+ def silence_stderr(&block)
24
+ stderr = $stderr
25
+ $stderr = StringIO.new
26
+ yield
27
+ $stderr = stderr
28
+ end
29
+
30
+ for file in %w[model_stub const_mocker]
31
+ require File.join(File.dirname(__FILE__), file)
32
+ end
33
+
34
+ class Test::Unit::TestCase
35
+ protected
36
+ def config_for(klass, namespace = nil)
37
+ ActiveScaffold::Config::Core.new("#{namespace}#{klass.to_s.underscore.downcase}")
38
+ end
39
+ end
data/uninstall.rb ADDED
@@ -0,0 +1,13 @@
1
+ ##
2
+ ## Delete public asset files
3
+ ##
4
+
5
+ require 'fileutils'
6
+
7
+ directory = File.dirname(__FILE__)
8
+
9
+ [ :stylesheets, :javascripts, :images].each do |asset_type|
10
+ path = File.join(directory, "../../../public/#{asset_type}/active_scaffold")
11
+ FileUtils.rm_r(path)
12
+ end
13
+ FileUtils.rm(File.join(directory, "../../../public/blank.html"))
metadata ADDED
@@ -0,0 +1,492 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_scaffold_vho
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
+ prerelease: false
6
+ segments:
7
+ - 3
8
+ - 0
9
+ - 6
10
+ version: 3.0.6
11
+ platform: ruby
12
+ authors:
13
+ - Many, see README
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-01-26 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ name: shoulda
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ requirement: *id001
34
+ type: :development
35
+ - !ruby/object:Gem::Dependency
36
+ prerelease: false
37
+ name: bundler
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ hash: 23
44
+ segments:
45
+ - 1
46
+ - 0
47
+ - 0
48
+ version: 1.0.0
49
+ requirement: *id002
50
+ type: :development
51
+ - !ruby/object:Gem::Dependency
52
+ prerelease: false
53
+ name: jeweler
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ~>
58
+ - !ruby/object:Gem::Version
59
+ hash: 7
60
+ segments:
61
+ - 1
62
+ - 5
63
+ - 2
64
+ version: 1.5.2
65
+ requirement: *id003
66
+ type: :development
67
+ - !ruby/object:Gem::Dependency
68
+ prerelease: false
69
+ name: rcov
70
+ version_requirements: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ requirement: *id004
80
+ type: :development
81
+ - !ruby/object:Gem::Dependency
82
+ prerelease: false
83
+ name: render_component_vho
84
+ version_requirements: &id005 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ requirement: *id005
94
+ type: :runtime
95
+ - !ruby/object:Gem::Dependency
96
+ prerelease: false
97
+ name: verification
98
+ version_requirements: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ requirement: *id006
108
+ type: :runtime
109
+ - !ruby/object:Gem::Dependency
110
+ prerelease: false
111
+ name: rails
112
+ version_requirements: &id007 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ hash: 7
118
+ segments:
119
+ - 3
120
+ - 0
121
+ - 0
122
+ version: 3.0.0
123
+ requirement: *id007
124
+ type: :runtime
125
+ description: 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.
126
+ email: activescaffold@googlegroups.com
127
+ executables: []
128
+
129
+ extensions: []
130
+
131
+ extra_rdoc_files:
132
+ - README
133
+ files:
134
+ - .autotest
135
+ - .document
136
+ - CHANGELOG
137
+ - Gemfile
138
+ - Gemfile.lock
139
+ - MIT-LICENSE
140
+ - README
141
+ - Rakefile
142
+ - frontends/default/images/add.gif
143
+ - frontends/default/images/arrow_down.gif
144
+ - frontends/default/images/arrow_up.gif
145
+ - frontends/default/images/close.gif
146
+ - frontends/default/images/config.png
147
+ - frontends/default/images/cross.png
148
+ - frontends/default/images/gears.png
149
+ - frontends/default/images/indicator-small.gif
150
+ - frontends/default/images/indicator.gif
151
+ - frontends/default/images/magnifier.png
152
+ - frontends/default/javascripts/jquery/active_scaffold.js
153
+ - frontends/default/javascripts/jquery/jquery.editinplace.js
154
+ - frontends/default/javascripts/prototype/active_scaffold.js
155
+ - frontends/default/javascripts/prototype/dhtml_history.js
156
+ - frontends/default/javascripts/prototype/form_enhancements.js
157
+ - frontends/default/javascripts/prototype/rico_corner.js
158
+ - frontends/default/stylesheets/stylesheet-ie.css
159
+ - frontends/default/stylesheets/stylesheet.css
160
+ - frontends/default/views/_action_group.html.erb
161
+ - frontends/default/views/_add_existing_form.html.erb
162
+ - frontends/default/views/_base_form.html.erb
163
+ - frontends/default/views/_create_form.html.erb
164
+ - frontends/default/views/_create_form_on_list.html.erb
165
+ - frontends/default/views/_field_search.html.erb
166
+ - frontends/default/views/_form.html.erb
167
+ - frontends/default/views/_form_association.html.erb
168
+ - frontends/default/views/_form_association_footer.html.erb
169
+ - frontends/default/views/_form_attribute.html.erb
170
+ - frontends/default/views/_form_hidden_attribute.html.erb
171
+ - frontends/default/views/_form_messages.html.erb
172
+ - frontends/default/views/_horizontal_subform.html.erb
173
+ - frontends/default/views/_horizontal_subform_header.html.erb
174
+ - frontends/default/views/_horizontal_subform_record.html.erb
175
+ - frontends/default/views/_human_conditions.html.erb
176
+ - frontends/default/views/_list.html.erb
177
+ - frontends/default/views/_list_actions.html.erb
178
+ - frontends/default/views/_list_calculations.html.erb
179
+ - frontends/default/views/_list_column_headings.html.erb
180
+ - frontends/default/views/_list_header.html.erb
181
+ - frontends/default/views/_list_inline_adapter.html.erb
182
+ - frontends/default/views/_list_messages.html.erb
183
+ - frontends/default/views/_list_pagination.html.erb
184
+ - frontends/default/views/_list_pagination_links.html.erb
185
+ - frontends/default/views/_list_record.html.erb
186
+ - frontends/default/views/_list_record_columns.html.erb
187
+ - frontends/default/views/_list_with_header.html.erb
188
+ - frontends/default/views/_messages.html.erb
189
+ - frontends/default/views/_render_field.js.rjs
190
+ - frontends/default/views/_row.html.erb
191
+ - frontends/default/views/_search.html.erb
192
+ - frontends/default/views/_search_attribute.html.erb
193
+ - frontends/default/views/_show.html.erb
194
+ - frontends/default/views/_show_columns.html.erb
195
+ - frontends/default/views/_update_actions.html.erb
196
+ - frontends/default/views/_update_form.html.erb
197
+ - frontends/default/views/_vertical_subform.html.erb
198
+ - frontends/default/views/_vertical_subform_record.html.erb
199
+ - frontends/default/views/action_confirmation.html.erb
200
+ - frontends/default/views/add_existing.js.rjs
201
+ - frontends/default/views/add_existing_form.html.erb
202
+ - frontends/default/views/create.html.erb
203
+ - frontends/default/views/delete.html.erb
204
+ - frontends/default/views/destroy.js.rjs
205
+ - frontends/default/views/edit_associated.js.rjs
206
+ - frontends/default/views/field_search.html.erb
207
+ - frontends/default/views/form_messages.js.rjs
208
+ - frontends/default/views/list.html.erb
209
+ - frontends/default/views/list.js.rjs
210
+ - frontends/default/views/on_action_update.js.rjs
211
+ - frontends/default/views/on_create.js.rjs
212
+ - frontends/default/views/on_update.js.rjs
213
+ - frontends/default/views/search.html.erb
214
+ - frontends/default/views/show.html.erb
215
+ - frontends/default/views/update.html.erb
216
+ - frontends/default/views/update_column.js.rjs
217
+ - frontends/default/views/update_row.js.rjs
218
+ - init.rb
219
+ - lib/active_record_permissions.rb
220
+ - lib/active_scaffold.rb
221
+ - lib/active_scaffold/actions/common_search.rb
222
+ - lib/active_scaffold/actions/core.rb
223
+ - lib/active_scaffold/actions/create.rb
224
+ - lib/active_scaffold/actions/delete.rb
225
+ - lib/active_scaffold/actions/field_search.rb
226
+ - lib/active_scaffold/actions/list.rb
227
+ - lib/active_scaffold/actions/mark.rb
228
+ - lib/active_scaffold/actions/nested.rb
229
+ - lib/active_scaffold/actions/search.rb
230
+ - lib/active_scaffold/actions/show.rb
231
+ - lib/active_scaffold/actions/subform.rb
232
+ - lib/active_scaffold/actions/update.rb
233
+ - lib/active_scaffold/attribute_params.rb
234
+ - lib/active_scaffold/bridges/ancestry/bridge.rb
235
+ - lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb
236
+ - lib/active_scaffold/bridges/bridge.rb
237
+ - lib/active_scaffold/bridges/calendar_date_select/bridge.rb
238
+ - lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb
239
+ - lib/active_scaffold/bridges/carrierwave/bridge.rb
240
+ - lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb
241
+ - lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb
242
+ - lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb
243
+ - lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb
244
+ - lib/active_scaffold/bridges/date_picker/bridge.rb
245
+ - lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb
246
+ - lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
247
+ - lib/active_scaffold/bridges/file_column/bridge.rb
248
+ - lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb
249
+ - lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb
250
+ - lib/active_scaffold/bridges/file_column/lib/form_ui.rb
251
+ - lib/active_scaffold/bridges/file_column/lib/list_ui.rb
252
+ - lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb
253
+ - lib/active_scaffold/bridges/file_column/test/mock_model.rb
254
+ - lib/active_scaffold/bridges/file_column/test/test_helper.rb
255
+ - lib/active_scaffold/bridges/paperclip/bridge.rb
256
+ - lib/active_scaffold/bridges/paperclip/lib/form_ui.rb
257
+ - lib/active_scaffold/bridges/paperclip/lib/list_ui.rb
258
+ - lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb
259
+ - lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb
260
+ - lib/active_scaffold/bridges/semantic_attributes/bridge.rb
261
+ - lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb
262
+ - lib/active_scaffold/bridges/shared/date_bridge.rb
263
+ - lib/active_scaffold/bridges/tiny_mce/bridge.rb
264
+ - lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
265
+ - lib/active_scaffold/bridges/validation_reflection/bridge.rb
266
+ - lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb
267
+ - lib/active_scaffold/config/base.rb
268
+ - lib/active_scaffold/config/core.rb
269
+ - lib/active_scaffold/config/create.rb
270
+ - lib/active_scaffold/config/delete.rb
271
+ - lib/active_scaffold/config/field_search.rb
272
+ - lib/active_scaffold/config/form.rb
273
+ - lib/active_scaffold/config/list.rb
274
+ - lib/active_scaffold/config/mark.rb
275
+ - lib/active_scaffold/config/nested.rb
276
+ - lib/active_scaffold/config/search.rb
277
+ - lib/active_scaffold/config/show.rb
278
+ - lib/active_scaffold/config/subform.rb
279
+ - lib/active_scaffold/config/update.rb
280
+ - lib/active_scaffold/configurable.rb
281
+ - lib/active_scaffold/constraints.rb
282
+ - lib/active_scaffold/data_structures/action_columns.rb
283
+ - lib/active_scaffold/data_structures/action_link.rb
284
+ - lib/active_scaffold/data_structures/action_links.rb
285
+ - lib/active_scaffold/data_structures/actions.rb
286
+ - lib/active_scaffold/data_structures/column.rb
287
+ - lib/active_scaffold/data_structures/columns.rb
288
+ - lib/active_scaffold/data_structures/error_message.rb
289
+ - lib/active_scaffold/data_structures/nested_info.rb
290
+ - lib/active_scaffold/data_structures/set.rb
291
+ - lib/active_scaffold/data_structures/sorting.rb
292
+ - lib/active_scaffold/finder.rb
293
+ - lib/active_scaffold/helpers/association_helpers.rb
294
+ - lib/active_scaffold/helpers/controller_helpers.rb
295
+ - lib/active_scaffold/helpers/country_helpers.rb
296
+ - lib/active_scaffold/helpers/form_column_helpers.rb
297
+ - lib/active_scaffold/helpers/human_condition_helpers.rb
298
+ - lib/active_scaffold/helpers/id_helpers.rb
299
+ - lib/active_scaffold/helpers/list_column_helpers.rb
300
+ - lib/active_scaffold/helpers/pagination_helpers.rb
301
+ - lib/active_scaffold/helpers/search_column_helpers.rb
302
+ - lib/active_scaffold/helpers/show_column_helpers.rb
303
+ - lib/active_scaffold/helpers/view_helpers.rb
304
+ - lib/active_scaffold/locale/de.rb
305
+ - lib/active_scaffold/locale/en.rb
306
+ - lib/active_scaffold/locale/es.yml
307
+ - lib/active_scaffold/locale/fr.rb
308
+ - lib/active_scaffold/locale/hu.yml
309
+ - lib/active_scaffold/locale/ja.yml
310
+ - lib/active_scaffold/locale/ru.yml
311
+ - lib/active_scaffold/marked_model.rb
312
+ - lib/active_scaffold/version.rb
313
+ - lib/active_scaffold_assets.rb
314
+ - lib/dhtml_confirm.rb
315
+ - lib/environment.rb
316
+ - lib/extensions/action_controller_rendering.rb
317
+ - lib/extensions/action_view_rendering.rb
318
+ - lib/extensions/action_view_resolver.rb
319
+ - lib/extensions/active_association_reflection.rb
320
+ - lib/extensions/active_record_offset.rb
321
+ - lib/extensions/array.rb
322
+ - lib/extensions/localize.rb
323
+ - lib/extensions/name_option_for_datetime.rb
324
+ - lib/extensions/nil_id_in_url_params.rb
325
+ - lib/extensions/paginator_extensions.rb
326
+ - lib/extensions/reverse_associations.rb
327
+ - lib/extensions/routing_mapper.rb
328
+ - lib/extensions/to_label.rb
329
+ - lib/extensions/unsaved_associated.rb
330
+ - lib/extensions/unsaved_record.rb
331
+ - lib/extensions/usa_state.rb
332
+ - lib/generators/active_scaffold/USAGE
333
+ - lib/generators/active_scaffold/active_scaffold_generator.rb
334
+ - lib/generators/active_scaffold_controller/USAGE
335
+ - lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb
336
+ - lib/generators/active_scaffold_controller/templates/controller.rb
337
+ - lib/generators/active_scaffold_setup/USAGE
338
+ - lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb
339
+ - lib/paginator.rb
340
+ - lib/responds_to_parent.rb
341
+ - public/blank.html
342
+ - shoulda_macros/macros.rb
343
+ - test/bridges/bridge_test.rb
344
+ - test/config/base_test.rb
345
+ - test/config/create_test.rb
346
+ - test/config/list_test.rb
347
+ - test/config/show_test.rb
348
+ - test/config/update_test.rb
349
+ - test/const_mocker.rb
350
+ - test/data_structures/action_columns_test.rb
351
+ - test/data_structures/action_link_test.rb
352
+ - test/data_structures/action_links_test.rb
353
+ - test/data_structures/actions_test.rb
354
+ - test/data_structures/association_column_test.rb
355
+ - test/data_structures/column_test.rb
356
+ - test/data_structures/columns_test.rb
357
+ - test/data_structures/error_message_test.rb
358
+ - test/data_structures/set_test.rb
359
+ - test/data_structures/sorting_test.rb
360
+ - test/data_structures/standard_column_test.rb
361
+ - test/data_structures/virtual_column_test.rb
362
+ - test/extensions/active_record_test.rb
363
+ - test/extensions/array_test.rb
364
+ - test/helpers/form_column_helpers_test.rb
365
+ - test/helpers/list_column_helpers_test.rb
366
+ - test/helpers/pagination_helpers_test.rb
367
+ - test/misc/active_record_permissions_test.rb
368
+ - test/misc/attribute_params_test.rb
369
+ - test/misc/configurable_test.rb
370
+ - test/misc/constraints_test.rb
371
+ - test/misc/finder_test.rb
372
+ - test/misc/lang_test.rb
373
+ - test/mock_app/.gitignore
374
+ - test/mock_app/app/controllers/application_controller.rb
375
+ - test/mock_app/app/helpers/application_helper.rb
376
+ - test/mock_app/config/boot.rb
377
+ - test/mock_app/config/database.yml
378
+ - test/mock_app/config/environment.rb
379
+ - test/mock_app/config/environments/development.rb
380
+ - test/mock_app/config/environments/production.rb
381
+ - test/mock_app/config/environments/test.rb
382
+ - test/mock_app/config/initializers/backtrace_silencers.rb
383
+ - test/mock_app/config/initializers/inflections.rb
384
+ - test/mock_app/config/initializers/mime_types.rb
385
+ - test/mock_app/config/initializers/new_rails_defaults.rb
386
+ - test/mock_app/config/initializers/session_store.rb
387
+ - test/mock_app/config/locales/en.yml
388
+ - test/mock_app/config/routes.rb
389
+ - test/mock_app/db/test.sqlite3
390
+ - test/mock_app/public/blank.html
391
+ - test/mock_app/public/images/active_scaffold/DO_NOT_EDIT
392
+ - test/mock_app/public/images/active_scaffold/default/add.gif
393
+ - test/mock_app/public/images/active_scaffold/default/arrow_down.gif
394
+ - test/mock_app/public/images/active_scaffold/default/arrow_up.gif
395
+ - test/mock_app/public/images/active_scaffold/default/close.gif
396
+ - test/mock_app/public/images/active_scaffold/default/cross.png
397
+ - test/mock_app/public/images/active_scaffold/default/indicator-small.gif
398
+ - test/mock_app/public/images/active_scaffold/default/indicator.gif
399
+ - test/mock_app/public/images/active_scaffold/default/magnifier.png
400
+ - test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT
401
+ - test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js
402
+ - test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js
403
+ - test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js
404
+ - test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js
405
+ - test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT
406
+ - test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css
407
+ - test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css
408
+ - test/model_stub.rb
409
+ - test/run_all.rb
410
+ - test/test_helper.rb
411
+ - uninstall.rb
412
+ has_rdoc: true
413
+ homepage: http://github.com/vhochstein/active_scaffold
414
+ licenses:
415
+ - MIT
416
+ post_install_message:
417
+ rdoc_options: []
418
+
419
+ require_paths:
420
+ - lib
421
+ required_ruby_version: !ruby/object:Gem::Requirement
422
+ none: false
423
+ requirements:
424
+ - - ">="
425
+ - !ruby/object:Gem::Version
426
+ hash: 3
427
+ segments:
428
+ - 0
429
+ version: "0"
430
+ required_rubygems_version: !ruby/object:Gem::Requirement
431
+ none: false
432
+ requirements:
433
+ - - ">="
434
+ - !ruby/object:Gem::Version
435
+ hash: 3
436
+ segments:
437
+ - 0
438
+ version: "0"
439
+ requirements: []
440
+
441
+ rubyforge_project:
442
+ rubygems_version: 1.3.7
443
+ signing_key:
444
+ specification_version: 3
445
+ summary: Rails 3 Version of activescaffold supporting prototype and jquery
446
+ test_files:
447
+ - test/bridges/bridge_test.rb
448
+ - test/config/base_test.rb
449
+ - test/config/create_test.rb
450
+ - test/config/list_test.rb
451
+ - test/config/show_test.rb
452
+ - test/config/update_test.rb
453
+ - test/const_mocker.rb
454
+ - test/data_structures/action_columns_test.rb
455
+ - test/data_structures/action_link_test.rb
456
+ - test/data_structures/action_links_test.rb
457
+ - test/data_structures/actions_test.rb
458
+ - test/data_structures/association_column_test.rb
459
+ - test/data_structures/column_test.rb
460
+ - test/data_structures/columns_test.rb
461
+ - test/data_structures/error_message_test.rb
462
+ - test/data_structures/set_test.rb
463
+ - test/data_structures/sorting_test.rb
464
+ - test/data_structures/standard_column_test.rb
465
+ - test/data_structures/virtual_column_test.rb
466
+ - test/extensions/active_record_test.rb
467
+ - test/extensions/array_test.rb
468
+ - test/helpers/form_column_helpers_test.rb
469
+ - test/helpers/list_column_helpers_test.rb
470
+ - test/helpers/pagination_helpers_test.rb
471
+ - test/misc/active_record_permissions_test.rb
472
+ - test/misc/attribute_params_test.rb
473
+ - test/misc/configurable_test.rb
474
+ - test/misc/constraints_test.rb
475
+ - test/misc/finder_test.rb
476
+ - test/misc/lang_test.rb
477
+ - test/mock_app/app/controllers/application_controller.rb
478
+ - test/mock_app/app/helpers/application_helper.rb
479
+ - test/mock_app/config/boot.rb
480
+ - test/mock_app/config/environment.rb
481
+ - test/mock_app/config/environments/development.rb
482
+ - test/mock_app/config/environments/production.rb
483
+ - test/mock_app/config/environments/test.rb
484
+ - test/mock_app/config/initializers/backtrace_silencers.rb
485
+ - test/mock_app/config/initializers/inflections.rb
486
+ - test/mock_app/config/initializers/mime_types.rb
487
+ - test/mock_app/config/initializers/new_rails_defaults.rb
488
+ - test/mock_app/config/initializers/session_store.rb
489
+ - test/mock_app/config/routes.rb
490
+ - test/model_stub.rb
491
+ - test/run_all.rb
492
+ - test/test_helper.rb