active_scaffold_batch_vho 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/active_scaffold_batch_vho.gemspec +79 -0
- data/lib/active_scaffold/config/batch_destroy.rb +1 -1
- data/lib/active_scaffold/config/batch_update.rb +1 -1
- data/lib/active_scaffold_batch.rb +23 -4
- data/lib/active_scaffold_batch/version.rb +1 -1
- metadata +4 -4
- data/lib/active_scaffold/helpers/view_helpers_override.rb +0 -8
@@ -0,0 +1,79 @@
|
|
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_batch_vho}
|
8
|
+
s.version = "3.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Volker Hochstein"]
|
12
|
+
s.date = %q{2011-01-26}
|
13
|
+
s.description = %q{You want to destroy/update many records at once with activescaffold?}
|
14
|
+
s.email = %q{activescaffold@googlegroups.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"LICENSE.txt",
|
22
|
+
"README",
|
23
|
+
"Rakefile",
|
24
|
+
"active_scaffold_batch_vho.gemspec",
|
25
|
+
"frontends/default/views/_batch_update_form.html.erb",
|
26
|
+
"frontends/default/views/_batch_update_form_attribute.html.erb",
|
27
|
+
"frontends/default/views/_batch_update_form_attribute_scope.html.erb",
|
28
|
+
"frontends/default/views/_batch_update_form_body.html.erb",
|
29
|
+
"frontends/default/views/batch_update.html.erb",
|
30
|
+
"frontends/default/views/on_batch_base.js.rjs",
|
31
|
+
"frontends/default/views/on_batch_update.js.rjs",
|
32
|
+
"init.rb",
|
33
|
+
"lib/active_scaffold/actions/batch_base.rb",
|
34
|
+
"lib/active_scaffold/actions/batch_destroy.rb",
|
35
|
+
"lib/active_scaffold/actions/batch_update.rb",
|
36
|
+
"lib/active_scaffold/config/batch_base.rb",
|
37
|
+
"lib/active_scaffold/config/batch_destroy.rb",
|
38
|
+
"lib/active_scaffold/config/batch_update.rb",
|
39
|
+
"lib/active_scaffold/helpers/calendar_date_select_update_column_helpers.rb",
|
40
|
+
"lib/active_scaffold/helpers/datepicker_update_column_helpers.rb",
|
41
|
+
"lib/active_scaffold/helpers/update_column_helpers.rb",
|
42
|
+
"lib/active_scaffold_batch.rb",
|
43
|
+
"lib/active_scaffold_batch/config/core.rb",
|
44
|
+
"lib/active_scaffold_batch/version.rb",
|
45
|
+
"lib/active_scaffold_batch_vho.rb",
|
46
|
+
"uninstall.rb"
|
47
|
+
]
|
48
|
+
s.homepage = %q{http://github.com/vhochstein/active_scaffold_batch}
|
49
|
+
s.licenses = ["MIT"]
|
50
|
+
s.require_paths = ["lib"]
|
51
|
+
s.rubygems_version = %q{1.3.7}
|
52
|
+
s.summary = %q{Batch Processing for ActiveScaffold}
|
53
|
+
|
54
|
+
if s.respond_to? :specification_version then
|
55
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
|
+
s.specification_version = 3
|
57
|
+
|
58
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
59
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
61
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
62
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
63
|
+
s.add_runtime_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
66
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
67
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
68
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
69
|
+
s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
70
|
+
end
|
71
|
+
else
|
72
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
73
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
74
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
75
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
76
|
+
s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
@@ -26,7 +26,7 @@ module ActiveScaffold::Config
|
|
26
26
|
|
27
27
|
# configures where the plugin itself is located. there is no instance version of this.
|
28
28
|
cattr_accessor :plugin_directory
|
29
|
-
@@plugin_directory = File.expand_path(__FILE__).match(
|
29
|
+
@@plugin_directory = File.expand_path(__FILE__).match(%{(^.*)/lib/active_scaffold/config/batch_destroy.rb})[1]
|
30
30
|
|
31
31
|
# configures how batch updates should be processed
|
32
32
|
# :delete => standard activerecord delete including validations
|
@@ -20,7 +20,7 @@ module ActiveScaffold::Config
|
|
20
20
|
|
21
21
|
# configures where the plugin itself is located. there is no instance version of this.
|
22
22
|
cattr_accessor :plugin_directory
|
23
|
-
@@plugin_directory = File.expand_path(__FILE__).match(
|
23
|
+
@@plugin_directory = File.expand_path(__FILE__).match(%{(^.*)/lib/active_scaffold/config/batch_update.rb})[1]
|
24
24
|
|
25
25
|
# configures how batch updates should be processed
|
26
26
|
# :update => standard activerecord update including validations
|
@@ -3,9 +3,6 @@ ActiveScaffold rescue throw "should have included ActiveScaffold plug in first.
|
|
3
3
|
|
4
4
|
# Load our overrides
|
5
5
|
require "#{File.dirname(__FILE__)}/active_scaffold_batch/config/core.rb"
|
6
|
-
require "#{File.dirname(__FILE__)}/active_scaffold/config/batch_update.rb"
|
7
|
-
require "#{File.dirname(__FILE__)}/active_scaffold/actions/batch_update.rb"
|
8
|
-
require "#{File.dirname(__FILE__)}/active_scaffold/helpers/view_helpers_override.rb"
|
9
6
|
|
10
7
|
module ActiveScaffoldBatch
|
11
8
|
def self.root
|
@@ -13,12 +10,34 @@ module ActiveScaffoldBatch
|
|
13
10
|
end
|
14
11
|
end
|
15
12
|
|
13
|
+
module ActiveScaffold
|
14
|
+
module Actions
|
15
|
+
ActiveScaffold.autoload_subdir('actions', self, File.dirname(__FILE__))
|
16
|
+
end
|
17
|
+
|
18
|
+
module Config
|
19
|
+
ActiveScaffold.autoload_subdir('config', self, File.dirname(__FILE__))
|
20
|
+
end
|
21
|
+
|
22
|
+
module Helpers
|
23
|
+
ActiveScaffold.autoload_subdir('helpers', self, File.dirname(__FILE__))
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
ActionView::Base.class_eval do
|
28
|
+
include ActiveScaffold::Helpers::UpdateColumnHelpers
|
29
|
+
if ActiveScaffold.js_framework == :jquery
|
30
|
+
include ActiveScaffold::Helpers::DatepickerUpdateColumnHelpers
|
31
|
+
elsif ActiveScaffold.js_framework == :prototype
|
32
|
+
include ActiveScaffold::Helpers::CalendarDateSelectUpdateColumnHelpers
|
33
|
+
end
|
34
|
+
end
|
16
35
|
|
17
36
|
##
|
18
37
|
## Run the install assets script, too, just to make sure
|
19
38
|
## But at least rescue the action in production
|
20
39
|
##
|
21
|
-
Rails::Application.initializer("active_scaffold_batch.install_assets") do
|
40
|
+
Rails::Application.initializer("active_scaffold_batch.install_assets", :after => "active_scaffold.install_assets") do
|
22
41
|
begin
|
23
42
|
ActiveScaffoldAssets.copy_to_public(ActiveScaffoldBatch.root)
|
24
43
|
rescue
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_batch_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Volker Hochstein
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- LICENSE.txt
|
108
108
|
- README
|
109
109
|
- Rakefile
|
110
|
+
- active_scaffold_batch_vho.gemspec
|
110
111
|
- frontends/default/views/_batch_update_form.html.erb
|
111
112
|
- frontends/default/views/_batch_update_form_attribute.html.erb
|
112
113
|
- frontends/default/views/_batch_update_form_attribute_scope.html.erb
|
@@ -124,7 +125,6 @@ files:
|
|
124
125
|
- lib/active_scaffold/helpers/calendar_date_select_update_column_helpers.rb
|
125
126
|
- lib/active_scaffold/helpers/datepicker_update_column_helpers.rb
|
126
127
|
- lib/active_scaffold/helpers/update_column_helpers.rb
|
127
|
-
- lib/active_scaffold/helpers/view_helpers_override.rb
|
128
128
|
- lib/active_scaffold_batch.rb
|
129
129
|
- lib/active_scaffold_batch/config/core.rb
|
130
130
|
- lib/active_scaffold_batch/version.rb
|
@@ -1,8 +0,0 @@
|
|
1
|
-
ActionView::Base.class_eval do
|
2
|
-
include ActiveScaffold::Helpers::UpdateColumnHelpers
|
3
|
-
if ActiveScaffold.js_framework == :jquery
|
4
|
-
include ActiveScaffold::Helpers::DatepickerUpdateColumnHelpers
|
5
|
-
elsif ActiveScaffold.js_framework == :prototype
|
6
|
-
include ActiveScaffold::Helpers::CalendarDateSelectUpdateColumnHelpers
|
7
|
-
end
|
8
|
-
end
|