active_scaffold_vho 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,385 @@
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_vho}
8
+ s.version = "3.0.7"
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-01-26}
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_update.js.rjs",
99
+ "frontends/default/views/search.html.erb",
100
+ "frontends/default/views/show.html.erb",
101
+ "frontends/default/views/update.html.erb",
102
+ "frontends/default/views/update_column.js.rjs",
103
+ "frontends/default/views/update_row.js.rjs",
104
+ "init.rb",
105
+ "lib/active_record_permissions.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/attribute_params.rb",
120
+ "lib/active_scaffold/bridges/ancestry/bridge.rb",
121
+ "lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb",
122
+ "lib/active_scaffold/bridges/bridge.rb",
123
+ "lib/active_scaffold/bridges/calendar_date_select/bridge.rb",
124
+ "lib/active_scaffold/bridges/calendar_date_select/lib/as_cds_bridge.rb",
125
+ "lib/active_scaffold/bridges/carrierwave/bridge.rb",
126
+ "lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb",
127
+ "lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb",
128
+ "lib/active_scaffold/bridges/carrierwave/lib/form_ui.rb",
129
+ "lib/active_scaffold/bridges/carrierwave/lib/list_ui.rb",
130
+ "lib/active_scaffold/bridges/date_picker/bridge.rb",
131
+ "lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb",
132
+ "lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js",
133
+ "lib/active_scaffold/bridges/file_column/bridge.rb",
134
+ "lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb",
135
+ "lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb",
136
+ "lib/active_scaffold/bridges/file_column/lib/form_ui.rb",
137
+ "lib/active_scaffold/bridges/file_column/lib/list_ui.rb",
138
+ "lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb",
139
+ "lib/active_scaffold/bridges/file_column/test/mock_model.rb",
140
+ "lib/active_scaffold/bridges/file_column/test/test_helper.rb",
141
+ "lib/active_scaffold/bridges/paperclip/bridge.rb",
142
+ "lib/active_scaffold/bridges/paperclip/lib/form_ui.rb",
143
+ "lib/active_scaffold/bridges/paperclip/lib/list_ui.rb",
144
+ "lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb",
145
+ "lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb",
146
+ "lib/active_scaffold/bridges/semantic_attributes/bridge.rb",
147
+ "lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb",
148
+ "lib/active_scaffold/bridges/shared/date_bridge.rb",
149
+ "lib/active_scaffold/bridges/tiny_mce/bridge.rb",
150
+ "lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb",
151
+ "lib/active_scaffold/bridges/validation_reflection/bridge.rb",
152
+ "lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb",
153
+ "lib/active_scaffold/config/base.rb",
154
+ "lib/active_scaffold/config/core.rb",
155
+ "lib/active_scaffold/config/create.rb",
156
+ "lib/active_scaffold/config/delete.rb",
157
+ "lib/active_scaffold/config/field_search.rb",
158
+ "lib/active_scaffold/config/form.rb",
159
+ "lib/active_scaffold/config/list.rb",
160
+ "lib/active_scaffold/config/mark.rb",
161
+ "lib/active_scaffold/config/nested.rb",
162
+ "lib/active_scaffold/config/search.rb",
163
+ "lib/active_scaffold/config/show.rb",
164
+ "lib/active_scaffold/config/subform.rb",
165
+ "lib/active_scaffold/config/update.rb",
166
+ "lib/active_scaffold/configurable.rb",
167
+ "lib/active_scaffold/constraints.rb",
168
+ "lib/active_scaffold/data_structures/action_columns.rb",
169
+ "lib/active_scaffold/data_structures/action_link.rb",
170
+ "lib/active_scaffold/data_structures/action_links.rb",
171
+ "lib/active_scaffold/data_structures/actions.rb",
172
+ "lib/active_scaffold/data_structures/column.rb",
173
+ "lib/active_scaffold/data_structures/columns.rb",
174
+ "lib/active_scaffold/data_structures/error_message.rb",
175
+ "lib/active_scaffold/data_structures/nested_info.rb",
176
+ "lib/active_scaffold/data_structures/set.rb",
177
+ "lib/active_scaffold/data_structures/sorting.rb",
178
+ "lib/active_scaffold/finder.rb",
179
+ "lib/active_scaffold/helpers/association_helpers.rb",
180
+ "lib/active_scaffold/helpers/controller_helpers.rb",
181
+ "lib/active_scaffold/helpers/country_helpers.rb",
182
+ "lib/active_scaffold/helpers/form_column_helpers.rb",
183
+ "lib/active_scaffold/helpers/human_condition_helpers.rb",
184
+ "lib/active_scaffold/helpers/id_helpers.rb",
185
+ "lib/active_scaffold/helpers/list_column_helpers.rb",
186
+ "lib/active_scaffold/helpers/pagination_helpers.rb",
187
+ "lib/active_scaffold/helpers/search_column_helpers.rb",
188
+ "lib/active_scaffold/helpers/show_column_helpers.rb",
189
+ "lib/active_scaffold/helpers/view_helpers.rb",
190
+ "lib/active_scaffold/locale/de.rb",
191
+ "lib/active_scaffold/locale/en.rb",
192
+ "lib/active_scaffold/locale/es.yml",
193
+ "lib/active_scaffold/locale/fr.rb",
194
+ "lib/active_scaffold/locale/hu.yml",
195
+ "lib/active_scaffold/locale/ja.yml",
196
+ "lib/active_scaffold/locale/ru.yml",
197
+ "lib/active_scaffold/marked_model.rb",
198
+ "lib/active_scaffold/version.rb",
199
+ "lib/active_scaffold_assets.rb",
200
+ "lib/active_scaffold_vho.rb",
201
+ "lib/dhtml_confirm.rb",
202
+ "lib/environment.rb",
203
+ "lib/extensions/action_controller_rendering.rb",
204
+ "lib/extensions/action_view_rendering.rb",
205
+ "lib/extensions/action_view_resolver.rb",
206
+ "lib/extensions/active_association_reflection.rb",
207
+ "lib/extensions/active_record_offset.rb",
208
+ "lib/extensions/array.rb",
209
+ "lib/extensions/localize.rb",
210
+ "lib/extensions/name_option_for_datetime.rb",
211
+ "lib/extensions/nil_id_in_url_params.rb",
212
+ "lib/extensions/paginator_extensions.rb",
213
+ "lib/extensions/reverse_associations.rb",
214
+ "lib/extensions/routing_mapper.rb",
215
+ "lib/extensions/to_label.rb",
216
+ "lib/extensions/unsaved_associated.rb",
217
+ "lib/extensions/unsaved_record.rb",
218
+ "lib/extensions/usa_state.rb",
219
+ "lib/generators/active_scaffold/USAGE",
220
+ "lib/generators/active_scaffold/active_scaffold_generator.rb",
221
+ "lib/generators/active_scaffold_controller/USAGE",
222
+ "lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb",
223
+ "lib/generators/active_scaffold_controller/templates/controller.rb",
224
+ "lib/generators/active_scaffold_setup/USAGE",
225
+ "lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb",
226
+ "lib/paginator.rb",
227
+ "lib/responds_to_parent.rb",
228
+ "public/blank.html",
229
+ "shoulda_macros/macros.rb",
230
+ "test/bridges/bridge_test.rb",
231
+ "test/config/base_test.rb",
232
+ "test/config/create_test.rb",
233
+ "test/config/list_test.rb",
234
+ "test/config/show_test.rb",
235
+ "test/config/update_test.rb",
236
+ "test/const_mocker.rb",
237
+ "test/data_structures/action_columns_test.rb",
238
+ "test/data_structures/action_link_test.rb",
239
+ "test/data_structures/action_links_test.rb",
240
+ "test/data_structures/actions_test.rb",
241
+ "test/data_structures/association_column_test.rb",
242
+ "test/data_structures/column_test.rb",
243
+ "test/data_structures/columns_test.rb",
244
+ "test/data_structures/error_message_test.rb",
245
+ "test/data_structures/set_test.rb",
246
+ "test/data_structures/sorting_test.rb",
247
+ "test/data_structures/standard_column_test.rb",
248
+ "test/data_structures/virtual_column_test.rb",
249
+ "test/extensions/active_record_test.rb",
250
+ "test/extensions/array_test.rb",
251
+ "test/helpers/form_column_helpers_test.rb",
252
+ "test/helpers/list_column_helpers_test.rb",
253
+ "test/helpers/pagination_helpers_test.rb",
254
+ "test/misc/active_record_permissions_test.rb",
255
+ "test/misc/attribute_params_test.rb",
256
+ "test/misc/configurable_test.rb",
257
+ "test/misc/constraints_test.rb",
258
+ "test/misc/finder_test.rb",
259
+ "test/misc/lang_test.rb",
260
+ "test/mock_app/.gitignore",
261
+ "test/mock_app/app/controllers/application_controller.rb",
262
+ "test/mock_app/app/helpers/application_helper.rb",
263
+ "test/mock_app/config/boot.rb",
264
+ "test/mock_app/config/database.yml",
265
+ "test/mock_app/config/environment.rb",
266
+ "test/mock_app/config/environments/development.rb",
267
+ "test/mock_app/config/environments/production.rb",
268
+ "test/mock_app/config/environments/test.rb",
269
+ "test/mock_app/config/initializers/backtrace_silencers.rb",
270
+ "test/mock_app/config/initializers/inflections.rb",
271
+ "test/mock_app/config/initializers/mime_types.rb",
272
+ "test/mock_app/config/initializers/new_rails_defaults.rb",
273
+ "test/mock_app/config/initializers/session_store.rb",
274
+ "test/mock_app/config/locales/en.yml",
275
+ "test/mock_app/config/routes.rb",
276
+ "test/mock_app/db/test.sqlite3",
277
+ "test/mock_app/public/blank.html",
278
+ "test/mock_app/public/images/active_scaffold/DO_NOT_EDIT",
279
+ "test/mock_app/public/images/active_scaffold/default/add.gif",
280
+ "test/mock_app/public/images/active_scaffold/default/arrow_down.gif",
281
+ "test/mock_app/public/images/active_scaffold/default/arrow_up.gif",
282
+ "test/mock_app/public/images/active_scaffold/default/close.gif",
283
+ "test/mock_app/public/images/active_scaffold/default/cross.png",
284
+ "test/mock_app/public/images/active_scaffold/default/indicator-small.gif",
285
+ "test/mock_app/public/images/active_scaffold/default/indicator.gif",
286
+ "test/mock_app/public/images/active_scaffold/default/magnifier.png",
287
+ "test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT",
288
+ "test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js",
289
+ "test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js",
290
+ "test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js",
291
+ "test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js",
292
+ "test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT",
293
+ "test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css",
294
+ "test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css",
295
+ "test/model_stub.rb",
296
+ "test/run_all.rb",
297
+ "test/test_helper.rb",
298
+ "uninstall.rb"
299
+ ]
300
+ s.homepage = %q{http://github.com/vhochstein/active_scaffold}
301
+ s.licenses = ["MIT"]
302
+ s.require_paths = ["lib"]
303
+ s.rubygems_version = %q{1.3.7}
304
+ s.summary = %q{Rails 3 Version of activescaffold supporting prototype and jquery}
305
+ s.test_files = [
306
+ "test/bridges/bridge_test.rb",
307
+ "test/config/base_test.rb",
308
+ "test/config/create_test.rb",
309
+ "test/config/list_test.rb",
310
+ "test/config/show_test.rb",
311
+ "test/config/update_test.rb",
312
+ "test/const_mocker.rb",
313
+ "test/data_structures/action_columns_test.rb",
314
+ "test/data_structures/action_link_test.rb",
315
+ "test/data_structures/action_links_test.rb",
316
+ "test/data_structures/actions_test.rb",
317
+ "test/data_structures/association_column_test.rb",
318
+ "test/data_structures/column_test.rb",
319
+ "test/data_structures/columns_test.rb",
320
+ "test/data_structures/error_message_test.rb",
321
+ "test/data_structures/set_test.rb",
322
+ "test/data_structures/sorting_test.rb",
323
+ "test/data_structures/standard_column_test.rb",
324
+ "test/data_structures/virtual_column_test.rb",
325
+ "test/extensions/active_record_test.rb",
326
+ "test/extensions/array_test.rb",
327
+ "test/helpers/form_column_helpers_test.rb",
328
+ "test/helpers/list_column_helpers_test.rb",
329
+ "test/helpers/pagination_helpers_test.rb",
330
+ "test/misc/active_record_permissions_test.rb",
331
+ "test/misc/attribute_params_test.rb",
332
+ "test/misc/configurable_test.rb",
333
+ "test/misc/constraints_test.rb",
334
+ "test/misc/finder_test.rb",
335
+ "test/misc/lang_test.rb",
336
+ "test/mock_app/app/controllers/application_controller.rb",
337
+ "test/mock_app/app/helpers/application_helper.rb",
338
+ "test/mock_app/config/boot.rb",
339
+ "test/mock_app/config/environment.rb",
340
+ "test/mock_app/config/environments/development.rb",
341
+ "test/mock_app/config/environments/production.rb",
342
+ "test/mock_app/config/environments/test.rb",
343
+ "test/mock_app/config/initializers/backtrace_silencers.rb",
344
+ "test/mock_app/config/initializers/inflections.rb",
345
+ "test/mock_app/config/initializers/mime_types.rb",
346
+ "test/mock_app/config/initializers/new_rails_defaults.rb",
347
+ "test/mock_app/config/initializers/session_store.rb",
348
+ "test/mock_app/config/routes.rb",
349
+ "test/model_stub.rb",
350
+ "test/run_all.rb",
351
+ "test/test_helper.rb"
352
+ ]
353
+
354
+ if s.respond_to? :specification_version then
355
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
356
+ s.specification_version = 3
357
+
358
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
359
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
360
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
361
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
362
+ s.add_development_dependency(%q<rcov>, [">= 0"])
363
+ s.add_runtime_dependency(%q<render_component_vho>, [">= 0"])
364
+ s.add_runtime_dependency(%q<verification>, [">= 0"])
365
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
366
+ else
367
+ s.add_dependency(%q<shoulda>, [">= 0"])
368
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
369
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
370
+ s.add_dependency(%q<rcov>, [">= 0"])
371
+ s.add_dependency(%q<render_component_vho>, [">= 0"])
372
+ s.add_dependency(%q<verification>, [">= 0"])
373
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
374
+ end
375
+ else
376
+ s.add_dependency(%q<shoulda>, [">= 0"])
377
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
378
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
379
+ s.add_dependency(%q<rcov>, [">= 0"])
380
+ s.add_dependency(%q<render_component_vho>, [">= 0"])
381
+ s.add_dependency(%q<verification>, [">= 0"])
382
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
383
+ end
384
+ end
385
+
data/init.rb CHANGED
@@ -1,4 +1,4 @@
1
- ACTIVE_SCAFFOLD_PLUGIN = true
1
+ ACTIVE_SCAFFOLD_INSTALLED = :plugin
2
2
 
3
3
  require 'active_scaffold'
4
4
 
@@ -47,6 +47,7 @@ module ActiveScaffold
47
47
  end
48
48
  end
49
49
 
50
+ require File.join(File.dirname(__FILE__), 'shared', 'date_bridge.rb')
50
51
  Dir[File.join(File.dirname(__FILE__), "*/bridge.rb")].each{|bridge_require|
51
52
  require bridge_require
52
53
  }
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 6
5
+ PATCH = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -11,6 +11,7 @@ begin
11
11
  rescue LoadError
12
12
  end
13
13
 
14
+ require 'active_scaffold_assets'
14
15
  require 'active_record_permissions'
15
16
  require 'dhtml_confirm'
16
17
  require 'paginator'
@@ -341,5 +342,5 @@ Rails::Application.initializer("active_scaffold.install_assets") do
341
342
  rescue
342
343
  raise $! unless Rails.env == 'production'
343
344
  end
344
- end unless defined?(ACTIVE_SCAFFOLD_PLUGIN) && ACTIVE_SCAFFOLD_PLUGIN == true
345
+ end unless defined?(ACTIVE_SCAFFOLD_INSTALLED) && ACTIVE_SCAFFOLD_INSTALLED == :plugin
345
346
 
@@ -0,0 +1,2 @@
1
+ ACTIVE_SCAFFOLD_INSTALLED = :gem
2
+ require 'active_scaffold'
@@ -8,8 +8,10 @@ module Rails
8
8
  end
9
9
 
10
10
  def install_plugins
11
- plugin 'verification', :git => 'git://github.com/rails/verification.git'
12
- plugin 'render_component', :git => 'git://github.com/vhochstein/render_component.git'
11
+ unless defined?(ACTIVE_SCAFFOLD_INSTALLED) && ACTIVE_SCAFFOLD_INSTALLED == :gem
12
+ plugin 'verification', :git => 'git://github.com/rails/verification.git'
13
+ plugin 'render_component', :git => 'git://github.com/vhochstein/render_component.git'
14
+ end
13
15
  if js_lib == 'prototype'
14
16
  get "https://github.com/vhochstein/prototype-ujs/raw/master/src/rails.js", "public/javascripts/rails.js"
15
17
  elsif js_lib == 'jquery'
@@ -19,8 +21,14 @@ module Rails
19
21
  end
20
22
 
21
23
  def configure_active_scaffold
22
- if js_lib == 'jquery'
23
- gsub_file 'vendor/plugins/active_scaffold/lib/environment.rb', /#ActiveScaffold.js_framework = :jquery/, 'ActiveScaffold.js_framework = :jquery'
24
+ unless defined?(ACTIVE_SCAFFOLD_INSTALLED) && ACTIVE_SCAFFOLD_INSTALLED == :gem
25
+ if js_lib == 'jquery'
26
+ gsub_file 'vendor/plugins/active_scaffold/lib/environment.rb', /#ActiveScaffold.js_framework = :jquery/, 'ActiveScaffold.js_framework = :jquery'
27
+ end
28
+ else
29
+ if js_lib == 'jquery'
30
+ create_file "config/initializers/active_scaffold.rb", "ActiveScaffold.js_framework = :jquery"
31
+ end
24
32
  end
25
33
  end
26
34
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_vho
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 6
10
- version: 3.0.6
9
+ - 7
10
+ version: 3.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Many, see README
@@ -139,6 +139,7 @@ files:
139
139
  - MIT-LICENSE
140
140
  - README
141
141
  - Rakefile
142
+ - active_scaffold_vho.gemspec
142
143
  - frontends/default/images/add.gif
143
144
  - frontends/default/images/arrow_down.gif
144
145
  - frontends/default/images/arrow_up.gif
@@ -311,6 +312,7 @@ files:
311
312
  - lib/active_scaffold/marked_model.rb
312
313
  - lib/active_scaffold/version.rb
313
314
  - lib/active_scaffold_assets.rb
315
+ - lib/active_scaffold_vho.rb
314
316
  - lib/dhtml_confirm.rb
315
317
  - lib/environment.rb
316
318
  - lib/extensions/action_controller_rendering.rb