active_scaffold_vho 3.2.12 → 3.2.13

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
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YjliMmVhMmU0ZTExMGRjZjU2YWQ5NDc2MmQyMTgyMTgwZjM4MzZiYg==
5
- data.tar.gz: !binary |-
6
- NDlmYWRmYTVmN2U3Yjg0NmNiZjg3ZTNiYTRlMmVlMGZlYjM5MjM4Yw==
2
+ SHA1:
3
+ metadata.gz: b7d22a443d84c4528dbc6a4dd20edcd43ec5c836
4
+ data.tar.gz: 68768f2e8d6207f75a9b4579538aa7a7ee9dbec8
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YTFkZTQ1NTgxOWU4NGI4YmM1YTIxZjAyNDI2ZTUxZDJhYmE2NGEzNTQ4MzM5
10
- YWEwZDNmZjhkYmRjYjdlZGMxMjQyNmFkM2M5ODEwNTY2NTI5ODg1YTgwMDBi
11
- NThhNTAwODQzNTIzYjMzZjBhNmY1ODU3ZjE2ZjM2NGZmNDZmOTY=
12
- data.tar.gz: !binary |-
13
- NzUwMmVjMjU2NjM2NDk4YTAwZTNiMmRkMWMyM2VhZGYxZDU3OTg3N2Y2OWI3
14
- OTNlNzNkZWMxODE0ZjkyN2ViY2NhM2I3NTVmNjgzNzA2Mzg2Yzk5ODhkOTkz
15
- MGU0ZDc4MDY1MmZmZmU3OTE5YjkyYjE4NDJkYmExODFjNThjMTY=
6
+ metadata.gz: 2103e3d224aa1ba42878755eca157821e61e4eb961ca8224cac673db6c7767d40c0fdb500bf79d7c1f0a77428ee076b3ca4591e26d079ff484e431ec77576011
7
+ data.tar.gz: c426f36bed2c7caa9e0b717d0d3be42cbb1ad7992f6ce4253ae743112f6797fa6d89f35a7dbc22e2f51c959ea298c49b655c9bdd18e48f096d787e3815b6d1ff
data/Gemfile.lock CHANGED
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_scaffold_vho (3.2.11)
4
+ active_scaffold_vho (3.2.13)
5
5
  kaminari
6
6
  rails (>= 3.1.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionmailer (3.2.16)
12
- actionpack (= 3.2.16)
11
+ actionmailer (3.2.18)
12
+ actionpack (= 3.2.18)
13
13
  mail (~> 2.5.4)
14
- actionpack (3.2.16)
15
- activemodel (= 3.2.16)
16
- activesupport (= 3.2.16)
14
+ actionpack (3.2.18)
15
+ activemodel (= 3.2.18)
16
+ activesupport (= 3.2.18)
17
17
  builder (~> 3.0.0)
18
18
  erubis (~> 2.7.0)
19
19
  journey (~> 1.0.4)
@@ -21,64 +21,69 @@ GEM
21
21
  rack-cache (~> 1.2)
22
22
  rack-test (~> 0.6.1)
23
23
  sprockets (~> 2.2.1)
24
- activemodel (3.2.16)
25
- activesupport (= 3.2.16)
24
+ activemodel (3.2.18)
25
+ activesupport (= 3.2.18)
26
26
  builder (~> 3.0.0)
27
- activerecord (3.2.16)
28
- activemodel (= 3.2.16)
29
- activesupport (= 3.2.16)
27
+ activerecord (3.2.18)
28
+ activemodel (= 3.2.18)
29
+ activesupport (= 3.2.18)
30
30
  arel (~> 3.0.2)
31
31
  tzinfo (~> 0.3.29)
32
- activeresource (3.2.16)
33
- activemodel (= 3.2.16)
34
- activesupport (= 3.2.16)
35
- activesupport (3.2.16)
32
+ activeresource (3.2.18)
33
+ activemodel (= 3.2.18)
34
+ activesupport (= 3.2.18)
35
+ activesupport (3.2.18)
36
36
  i18n (~> 0.6, >= 0.6.4)
37
37
  multi_json (~> 1.0)
38
38
  arel (3.0.3)
39
39
  builder (3.0.4)
40
+ docile (1.1.5)
40
41
  erubis (2.7.0)
41
42
  hike (1.2.3)
42
- i18n (0.6.11)
43
+ i18n (0.7.0)
43
44
  journey (1.0.4)
44
- json (1.8.1)
45
- kaminari (0.16.1)
45
+ json (1.7.7)
46
+ kaminari (0.17.0)
46
47
  actionpack (>= 3.0.0)
47
48
  activesupport (>= 3.0.0)
48
49
  mail (2.5.4)
49
50
  mime-types (~> 1.16)
50
51
  treetop (~> 1.4.8)
51
52
  mime-types (1.25.1)
52
- multi_json (1.10.1)
53
+ multi_json (1.12.1)
53
54
  polyglot (0.3.5)
54
- rack (1.4.5)
55
- rack-cache (1.2)
55
+ rack (1.4.7)
56
+ rack-cache (1.6.1)
56
57
  rack (>= 0.4)
57
58
  rack-ssl (1.3.4)
58
59
  rack
59
- rack-test (0.6.2)
60
+ rack-test (0.6.3)
60
61
  rack (>= 1.0)
61
- rails (3.2.16)
62
- actionmailer (= 3.2.16)
63
- actionpack (= 3.2.16)
64
- activerecord (= 3.2.16)
65
- activeresource (= 3.2.16)
66
- activesupport (= 3.2.16)
62
+ rails (3.2.18)
63
+ actionmailer (= 3.2.18)
64
+ actionpack (= 3.2.18)
65
+ activerecord (= 3.2.18)
66
+ activeresource (= 3.2.18)
67
+ activesupport (= 3.2.18)
67
68
  bundler (~> 1.0)
68
- railties (= 3.2.16)
69
- railties (3.2.16)
70
- actionpack (= 3.2.16)
71
- activesupport (= 3.2.16)
69
+ railties (= 3.2.18)
70
+ railties (3.2.18)
71
+ actionpack (= 3.2.18)
72
+ activesupport (= 3.2.18)
72
73
  rack-ssl (~> 1.3.2)
73
74
  rake (>= 0.8.7)
74
75
  rdoc (~> 3.4)
75
76
  thor (>= 0.14.6, < 2.0)
76
- rake (10.3.2)
77
- rcov (0.9.9)
77
+ rake (11.2.2)
78
78
  rdoc (3.12.2)
79
79
  json (~> 1.4)
80
80
  shoulda (2.11.3)
81
- sprockets (2.2.2)
81
+ simplecov (0.9.2)
82
+ docile (~> 1.1.0)
83
+ multi_json (~> 1.0)
84
+ simplecov-html (~> 0.9.0)
85
+ simplecov-html (0.9.0)
86
+ sprockets (2.2.3)
82
87
  hike (~> 1.2)
83
88
  multi_json (~> 1.0)
84
89
  rack (~> 1.0)
@@ -88,7 +93,7 @@ GEM
88
93
  treetop (1.4.15)
89
94
  polyglot
90
95
  polyglot (>= 0.3.1)
91
- tzinfo (0.3.41)
96
+ tzinfo (0.3.51)
92
97
 
93
98
  PLATFORMS
94
99
  ruby
@@ -96,5 +101,8 @@ PLATFORMS
96
101
  DEPENDENCIES
97
102
  active_scaffold_vho!
98
103
  bundler (>= 1.0.0)
99
- rcov
100
104
  shoulda
105
+ simplecov (~> 0.9.0)
106
+
107
+ BUNDLED WITH
108
+ 1.12.5
@@ -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<rcov>, [">= 0"])
27
+ s.add_development_dependency(%q<simplecov>, ["~> 0.9.0"])
28
28
 
29
29
  s.add_runtime_dependency(%q<rails>, [">= 3.1.0"])
30
30
  s.add_runtime_dependency(%q<kaminari>)
@@ -4,7 +4,7 @@ insert_at ||= :top %>
4
4
  var action_link = ActiveScaffold.find_action_link('<%= form_selector%>');
5
5
  action_link.update_flash_messages('<%=escape_javascript(render(:partial => 'messages').strip)%>');
6
6
  <% if controller.send :successful? %>
7
- <% if render_parent? && controller.respond_to?(:render_component_into_view) %>
7
+ <% if render_parent? && controller.respond_to?(:render_component_into_view, true) %>
8
8
  <% parent_rendered = controller.send(:render_component_into_view, render_parent_options) %>
9
9
  <% if nested_singular_association? %>
10
10
  action_link.close('<%= escape_javascript(parent_rendered) %>');
@@ -3,7 +3,7 @@ try {
3
3
  var action_link = ActiveScaffold.find_action_link('<%= form_selector%>');
4
4
  action_link.update_flash_messages('<%=escape_javascript(render(:partial => 'messages').strip)%>');
5
5
  <% if controller.send :successful? %>
6
- <% if render_parent? && controller.respond_to?(:render_component_into_view) %>
6
+ <% if render_parent? && controller.respond_to?(:render_component_into_view, true) %>
7
7
  <% parent_rendered = controller.send(:render_component_into_view, render_parent_options) %>
8
8
  <% if nested_singular_association? %>
9
9
  action_link.close('<%= escape_javascript(parent_rendered) %>');
@@ -1,6 +1,6 @@
1
1
  <%messages_id = active_scaffold_messages_id%>
2
2
  <%if controller.send(:successful?)%>
3
- <%if render_parent? && controller.respond_to?(:render_component_into_view)%>
3
+ <%if render_parent? && controller.respond_to?(:render_component_into_view, true)%>
4
4
  <%render_parent_options%>
5
5
  <%if render_parent_action == :row%>
6
6
  <%# TODO: That s not working with delete....%>
@@ -177,13 +177,17 @@ module ActiveScaffold::Actions
177
177
  def respond_to_action(action)
178
178
  respond_to do |type|
179
179
  action_formats.each do |format|
180
- type.send(format){ send("#{action}_respond_to_#{format}") }
180
+ type.send(format) do
181
+ if respond_to?(method_name = "#{action}_respond_to_#{format}", true)
182
+ send(method_name)
183
+ end
184
+ end
181
185
  end
182
186
  end
183
187
  end
184
188
 
185
189
  def action_formats
186
- @action_formats ||= if respond_to? "#{action_name}_formats"
190
+ @action_formats ||= if respond_to? "#{action_name}_formats", true
187
191
  send("#{action_name}_formats")
188
192
  else
189
193
  (default_formats + active_scaffold_config.formats).uniq
@@ -60,7 +60,7 @@ module ActiveScaffold::Actions
60
60
 
61
61
  def create_respond_to_js
62
62
  if successful? && active_scaffold_config.create.refresh_list && !render_parent?
63
- do_search if respond_to? :do_search
63
+ do_search if respond_to? :do_search, true
64
64
  do_list
65
65
  end
66
66
  render :action => 'on_create'
@@ -24,7 +24,7 @@ module ActiveScaffold::Actions
24
24
 
25
25
  def destroy_respond_to_js
26
26
  if successful? && active_scaffold_config.delete.refresh_list && !render_parent?
27
- do_search if respond_to? :do_search
27
+ do_search if respond_to? :do_search, true
28
28
  do_list
29
29
  end
30
30
  render(:action => 'destroy')
@@ -88,14 +88,14 @@ module ActiveScaffold::Actions
88
88
 
89
89
  def each_record_in_page
90
90
  _page = active_scaffold_config.list.user.page
91
- do_search if respond_to? :do_search
91
+ do_search if respond_to? :do_search, true
92
92
  active_scaffold_config.list.user.page = _page
93
93
  do_list
94
94
  @page.items.each {|record| yield record}
95
95
  end
96
96
 
97
97
  def each_record_in_scope
98
- do_search if respond_to? :do_search
98
+ do_search if respond_to? :do_search, true
99
99
  finder_options = { :order => "#{active_scaffold_config.model.connection.quote_table_name(active_scaffold_config.model.table_name)}.#{active_scaffold_config.model.primary_key} ASC",
100
100
  :conditions => all_conditions,
101
101
  :joins => joins_for_finder}
@@ -154,7 +154,7 @@ module ActiveScaffold::Actions
154
154
  end
155
155
 
156
156
  def action_update_respond_to_html
157
- do_search if respond_to? :do_search
157
+ do_search if respond_to? :do_search, true
158
158
  do_list
159
159
  redirect_to :action => 'index'
160
160
  end
@@ -49,7 +49,7 @@ module ActiveScaffold::Actions
49
49
  end
50
50
  def update_respond_to_js
51
51
  if successful? && update_refresh_list? && !render_parent?
52
- do_search if respond_to? :do_search
52
+ do_search if respond_to? :do_search, true
53
53
  do_list
54
54
  end
55
55
  render :action => 'on_update'
@@ -173,7 +173,7 @@ module ActiveScaffold::DataStructures
173
173
  protected
174
174
 
175
175
  def skip_action_link(controller, link, *args)
176
- (!link.ignore_method.nil? && controller.respond_to?(link.ignore_method) && controller.send(link.ignore_method, *args)) || ((link.security_method_set? or controller.respond_to? link.security_method) and !controller.send(link.security_method, *args))
176
+ (!link.ignore_method.nil? && controller.respond_to?(link.ignore_method, true) && controller.send(link.ignore_method, *args)) || ((link.security_method_set? or controller.respond_to?(link.security_method, true)) and !controller.send(link.security_method, *args))
177
177
  end
178
178
 
179
179
  # called during clone or dup. makes the clone/dup deeper.
@@ -106,7 +106,7 @@ module ActionView #:nodoc:
106
106
 
107
107
  id = "as_#{eid}-content"
108
108
 
109
- if context.controller.respond_to?(:render_component_into_view)
109
+ if context.controller.respond_to?(:render_component_into_view, true)
110
110
  context.controller.send(:render_component_into_view, url_options)
111
111
  else
112
112
  if !context.controller.respond_to?(:uses_active_scaffold?) || context.controller.send(:uses_active_scaffold?) == false
@@ -352,7 +352,7 @@ module ActiveScaffold
352
352
  end
353
353
 
354
354
  def active_scaffold_add_existing_input(options)
355
- if ActiveScaffold.js_framework == :prototype && controller.respond_to?(:record_select_config)
355
+ if ActiveScaffold.js_framework == :prototype && controller.respond_to?(:record_select_config, true)
356
356
  remote_controller = active_scaffold_controller_for(record_select_config.model).controller_path
357
357
  options.merge!(:controller => remote_controller)
358
358
  options.merge!(active_scaffold_input_text_options)
@@ -365,7 +365,7 @@ module ActiveScaffold
365
365
  end
366
366
 
367
367
  def active_scaffold_add_existing_label
368
- if controller.respond_to?(:record_select_config)
368
+ if controller.respond_to?(:record_select_config, true)
369
369
  record_select_config.model.model_name.human
370
370
  else
371
371
  active_scaffold_config.model.model_name.human
@@ -258,7 +258,7 @@ module ActiveScaffold
258
258
 
259
259
  def inplace_edit?(record, column)
260
260
  if column.inplace_edit
261
- editable = controller.send(:update_authorized?, record) if controller.respond_to?(:update_authorized?)
261
+ editable = controller.send(:update_authorized?, record) if controller.respond_to?(:update_authorized?, true)
262
262
  editable = record.authorized_for?(:crud_type => :update, :column => column.name) if editable.nil? || editable == true
263
263
  editable
264
264
  end
@@ -372,7 +372,7 @@ module ActiveScaffold
372
372
  rendered = []
373
373
  link_nested_controllers = []
374
374
  action_links.member.each do |link|
375
- if link.nested_link? && link.column && @nested_auto_open[link.column.name] && @records.length <= @nested_auto_open[link.column.name] && controller.respond_to?(:render_component_into_view)
375
+ if link.nested_link? && link.column && @nested_auto_open[link.column.name] && @records.length <= @nested_auto_open[link.column.name] && controller.respond_to?(:render_component_into_view, true)
376
376
  link_url_options = {:embedded => true, :format => :js}.merge(action_link_url_options(link, url_options, record, options = {:reuse_eid => true}))
377
377
  link_nested_controllers << link.controller.to_s if link.controller
378
378
  rendered << (controller.send(:render_component_into_view, link_url_options))
@@ -133,7 +133,7 @@ module ActiveScaffold
133
133
  end
134
134
 
135
135
  def skip_action_link(link, *args)
136
- (!link.ignore_method.nil? && controller.respond_to?(link.ignore_method) && controller.send(link.ignore_method, *args)) || ((link.security_method_set? or controller.respond_to? link.security_method) and !controller.send(link.security_method, *args))
136
+ (!link.ignore_method.nil? && controller.respond_to?(link.ignore_method, true) && controller.send(link.ignore_method, *args)) || ((link.security_method_set? or controller.respond_to?(link.security_method, true)) and !controller.send(link.security_method, *args))
137
137
  end
138
138
 
139
139
  def render_action_link(link, url_options, record = nil, html_options = {})
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- PATCH = 12
5
+ PATCH = 13
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_vho
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.12
4
+ version: 3.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Many, see README
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-08 00:00:00.000000000 Z
11
+ date: 2016-07-13 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: rcov
42
+ name: simplecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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: '0'
54
+ version: 0.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 3.1.0
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.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: kaminari
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Save time and headaches, and create a more easily maintainable set of
@@ -392,17 +392,17 @@ require_paths:
392
392
  - lib
393
393
  required_ruby_version: !ruby/object:Gem::Requirement
394
394
  requirements:
395
- - - ! '>='
395
+ - - '>='
396
396
  - !ruby/object:Gem::Version
397
397
  version: '0'
398
398
  required_rubygems_version: !ruby/object:Gem::Requirement
399
399
  requirements:
400
- - - ! '>='
400
+ - - '>='
401
401
  - !ruby/object:Gem::Version
402
402
  version: '0'
403
403
  requirements: []
404
404
  rubyforge_project:
405
- rubygems_version: 2.2.2
405
+ rubygems_version: 2.4.8
406
406
  signing_key:
407
407
  specification_version: 4
408
408
  summary: Rails 3 Version of activescaffold supporting prototype and jquery