active_scaffold_batch_vho 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ODY5M2RmMzczMzg2OTg2ODYxMWVmYjdiNGNiYzMwNGNlNThjOTUzYQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 77aba605df342efb100919d882678e5c8f353495
|
4
|
+
data.tar.gz: f8ace94d8be330f7fde2d1d6d587ae4e282ff976
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZjczYTQwZDAwNzY0MzlhODRiNWVkZWVjN2JkZTdlZDNkNzc2ZDA2ZjEzOTU2
|
11
|
-
YjcxZjZkNTBkYTY4YzI1YTNlODNiNDAzOTkxOTJlYzA3ZTlkOWI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OWNmYjM5MDI4YTRiYWE5YTFjY2Q1OTNiYzU2MjkwNDg4ZTU1M2E3YWU3MjI4
|
14
|
-
Y2NiYTNiYmYxMWZlNGYwYThkYWNlOTU3OWVlYWQ2M2ZiYTQ2Nzg0YTU5Yjlk
|
15
|
-
ZGU5YTk0OTQ3YTcwNGI5ZTA3NjQ1ODEyODEyYzk5MWZkMTI5YTI=
|
6
|
+
metadata.gz: 7865c65e0fa2c063833f42abfcbf923d6eb624ba9fd40c7d84bb4b5809ec71518521e0a8bb307cc12853c093e8b836d622267e46b6dbe4bf53224803f0593c45
|
7
|
+
data.tar.gz: 5649b0d61b3d1c0add92793a67d4987faa536ef13d7c261f742c9df8c175d440fbabe1e20df703f258a6d3d769453aaa25f2fd098809e50b21aea96818eb505e
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
26
26
|
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
27
|
-
s.add_development_dependency(%q<
|
27
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.9.0"])
|
28
28
|
|
29
29
|
s.add_runtime_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
|
30
30
|
end
|
@@ -16,7 +16,7 @@ module ActiveScaffold::Actions
|
|
16
16
|
|
17
17
|
def process_batch
|
18
18
|
do_batch
|
19
|
-
do_search if respond_to? :do_search
|
19
|
+
do_search if respond_to? :do_search, true
|
20
20
|
do_list
|
21
21
|
end
|
22
22
|
|
@@ -43,8 +43,8 @@ module ActiveScaffold::Actions
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def do_batch
|
46
|
-
send("before_do_#{action_name}") if respond_to?("before_do_#{action_name}")
|
47
|
-
send("#{action_name}_#{batch_scope.downcase}") if !batch_scope.nil? && respond_to?("#{action_name}_#{batch_scope.downcase}")
|
46
|
+
send("before_do_#{action_name}") if respond_to?("before_do_#{action_name}", true)
|
47
|
+
send("#{action_name}_#{batch_scope.downcase}") if !batch_scope.nil? && respond_to?("#{action_name}_#{batch_scope.downcase}", true)
|
48
48
|
prepare_error_record unless batch_successful?
|
49
49
|
end
|
50
50
|
|
@@ -59,7 +59,7 @@ module ActiveScaffold::Actions
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def batch_base_respond_to_html
|
62
|
-
if respond_to? "#{action_name}_respond_to_html"
|
62
|
+
if respond_to? "#{action_name}_respond_to_html", true
|
63
63
|
send("#{action_name}_respond_to_html")
|
64
64
|
else
|
65
65
|
if params[:iframe]=='true' # was this an iframe post ?
|
@@ -76,7 +76,7 @@ module ActiveScaffold::Actions
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def batch_base_respond_to_js
|
79
|
-
if respond_to? "#{action_name}_respond_to_js"
|
79
|
+
if respond_to? "#{action_name}_respond_to_js", true
|
80
80
|
send("#{action_name}_respond_to_js")
|
81
81
|
else
|
82
82
|
render :action => "on_batch_base"
|
@@ -84,7 +84,7 @@ module ActiveScaffold::Actions
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def batch_base_respond_to_xml
|
87
|
-
if respond_to? "#{action_name}_respond_to_xml"
|
87
|
+
if respond_to? "#{action_name}_respond_to_xml", true
|
88
88
|
send("#{action_name}_respond_to_xml")
|
89
89
|
else
|
90
90
|
render :xml => response_object.to_xml(:only => active_scaffold_config.send(action_name).columns.names), :content_type => Mime::XML, :status => response_status
|
@@ -92,7 +92,7 @@ module ActiveScaffold::Actions
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def batch_base_respond_to_json
|
95
|
-
if respond_to? "#{action_name}_respond_to_json"
|
95
|
+
if respond_to? "#{action_name}_respond_to_json", true
|
96
96
|
send("#{action_name}_respond_to_json")
|
97
97
|
else
|
98
98
|
render :text => response_object.to_json(:only => active_scaffold_config.send(action_name).columns.names), :content_type => Mime::JSON, :status => response_status
|
@@ -100,7 +100,7 @@ module ActiveScaffold::Actions
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def batch_base_respond_to_yaml
|
103
|
-
if respond_to? "#{action_name}_respond_to_yaml"
|
103
|
+
if respond_to? "#{action_name}_respond_to_yaml", true
|
104
104
|
send("#{action_name}_respond_to_yaml")
|
105
105
|
else
|
106
106
|
render :text => Hash.from_xml(response_object.to_xml(:only => active_scaffold_config.send(action_name).columns.names)).to_yaml, :content_type => Mime::YAML, :status => response_status
|
@@ -18,7 +18,7 @@ module ActiveScaffold::Actions
|
|
18
18
|
destroy_record(record) if authorized_for_job?(record)
|
19
19
|
end
|
20
20
|
when :delete_all then
|
21
|
-
do_search if respond_to? :do_search
|
21
|
+
do_search if respond_to? :do_search, true
|
22
22
|
# dummy condition cause we have to call delete_all on relation not on association
|
23
23
|
beginning_of_chain.where('1=1').delete_all(all_conditions)
|
24
24
|
else
|
@@ -114,7 +114,7 @@ module ActiveScaffold::Actions
|
|
114
114
|
when :update_all then
|
115
115
|
updates = updates_for_update_all
|
116
116
|
unless updates.first.empty?
|
117
|
-
do_search if respond_to? :do_search
|
117
|
+
do_search if respond_to? :do_search, true
|
118
118
|
# all_conditions might fail cause joins are not working in update_all
|
119
119
|
active_scaffold_config.model.update_all(updates, all_conditions)
|
120
120
|
end
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_batch_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volker Hochstein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: simplecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.9.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: active_scaffold_vho
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 3.1.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.1.2
|
69
69
|
description: You want to batch create/destroy/update many records at once with activescaffold?
|
@@ -122,17 +122,17 @@ require_paths:
|
|
122
122
|
- lib
|
123
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - '>='
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - '>='
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
135
|
+
rubygems_version: 2.4.8
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Batch Processing for ActiveScaffold
|