active_scaffold-sequel 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 215d2fdcd862770261b68026cc22652929cb9cba
4
+ data.tar.gz: 226549b5e7ed054a97522f447bfbd54cf4e4a700
5
+ SHA512:
6
+ metadata.gz: 78d94becc4ec7f41951fe13b99f74c3755ee4e402999c935c63c5500fd8f70d4803d0eb6cc3e7563924138a5a1a0027a6ccc4ed5b8dfe939074bbd365c7b8bec
7
+ data.tar.gz: 76a398b2f428ce810598d59de9e2a448c3afd333bcfff7a331355720be1505a21a5aff887f4bf61a0ea246ac9e78f1866776fd1246f9c7958692bed420cc5dd7
@@ -1,19 +1,25 @@
1
1
  try {
2
2
  <% form_selector = "#{element_form_id(:action => :update)}" %>
3
- var action_link = ActiveScaffold.find_action_link('<%= form_selector%>');
4
- action_link.update_flash_messages('<%=escape_javascript(render(:partial => 'messages'))%>');
5
- <% if controller.send :successful? %>
6
- <% if update_refresh_list? %>
7
- ActiveScaffold.replace_html('<%= active_scaffold_content_id%>', '<%= escape_javascript(render(:partial => 'list', :layout => false))%>');
8
- <% else %>
9
- <% updated_row = render :partial => 'list_record', :locals => {:record => @record}%>
10
- action_link.close('<%= escape_javascript(updated_row)%>');
11
- <% if active_scaffold_config.list.columns.any? {|c| c.calculation?}%>
12
- ActiveScaffold.replace('<%=active_scaffold_calculations_id%>', '<%=escape_javascript(render(:partial => 'list_calculations'))%>');
3
+ var action_link = ActiveScaffold.find_action_link('<%= form_selector %>');
4
+ action_link.update_flash_messages('<%= escape_javascript(render(:partial => 'messages')) %>');
5
+ <% if controller.send(:successful?) %>
6
+ <% if render_parent? %>
7
+ <% if nested_singular_association? || render_parent_action == :row %>
8
+ action_link.close();
9
+ <% else %>
10
+ ActiveScaffold.reload('<%= url_for(render_parent_options) %>');
11
+ <% end %>
12
+ <% elsif update_refresh_list? %>
13
+ ActiveScaffold.replace_html('<%= active_scaffold_content_id %>', '<%= escape_javascript(render(:partial => 'list', :layout => false)) %>');
14
+ <% else %>
15
+ <% updated_row = render(:partial => 'list_record', :locals => {:record => @record}) %>
16
+ action_link.close('<%= escape_javascript(updated_row) %>');
17
+ <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} %>
18
+ ActiveScaffold.replace('<%= active_scaffold_calculations_id %>', '<%= escape_javascript(render(:partial => 'list_calculations')) %>');
13
19
  <% end %>
14
20
  <% end %>
15
21
  <% else %>
16
- ActiveScaffold.replace('<%=form_selector%>','<%=escape_javascript(render(:partial => 'update_form', :locals => {:xhr => true}))%>');
17
- ActiveScaffold.scroll_to('<%=form_selector%>');
22
+ ActiveScaffold.replace('<%= form_selector %>','<%= escape_javascript(render(:partial => 'update_form', :locals => {:xhr => true})) %>');
23
+ ActiveScaffold.scroll_to('<%= form_selector %>');
18
24
  <% end %>
19
25
  } catch (e) { alert('RJS error:\n\n' + e.toString());}
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
5
- prerelease:
4
+ version: 0.7.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Many, see README
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: shoulda
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,49 +41,43 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rcov
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rails
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: 3.1.3
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: 3.1.3
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: sequel
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: The original ActiveScaffold supports Rails (http://rubyonrails.org/)
@@ -397,27 +386,26 @@ files:
397
386
  homepage: http://as-seq.rubyforge.org/
398
387
  licenses:
399
388
  - MIT
389
+ metadata: {}
400
390
  post_install_message:
401
391
  rdoc_options: []
402
392
  require_paths:
403
393
  - lib
404
394
  required_ruby_version: !ruby/object:Gem::Requirement
405
- none: false
406
395
  requirements:
407
- - - ! '>='
396
+ - - '>='
408
397
  - !ruby/object:Gem::Version
409
398
  version: '0'
410
399
  required_rubygems_version: !ruby/object:Gem::Requirement
411
- none: false
412
400
  requirements:
413
- - - ! '>='
401
+ - - '>='
414
402
  - !ruby/object:Gem::Version
415
403
  version: '0'
416
404
  requirements: []
417
405
  rubyforge_project:
418
- rubygems_version: 1.8.23.2
406
+ rubygems_version: 2.0.14
419
407
  signing_key:
420
- specification_version: 3
408
+ specification_version: 4
421
409
  summary: ActiveScaffold version supporting Sequel with Rails 3.1.
422
410
  test_files:
423
411
  - test/bridges/paperclip_test.rb