active_scaffold_batch 3.4.5 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bad88227a4ac0b2587bb9c0cb3655fae85875efa4b6118c46ff20ca05339df6e
4
- data.tar.gz: 710149c54582c7105cbd01b618e5bcdd74da32c8a554f2d5e5509ecb8b06aeb0
3
+ metadata.gz: e32cd2f2a255541e078e22730f232b92e185802ad7d641313fe3b272354ddf53
4
+ data.tar.gz: d42cdc9ddf6f6d5a461e3cf2b7abec64502aa839776d7302807a7a6b869ed0e3
5
5
  SHA512:
6
- metadata.gz: b7c94c565133d16d892545a4389eb1f7ebfafe390e1fbbc83c200178da4b18ca49ac5a85371cdac0e9d36a0498436c2364875cb72d4747e96076261cdb809895
7
- data.tar.gz: 856bd4207754a2db7488d5e687b49bc6d361e741285784aeba73079fe76be281ec5502b2b66b25f22803cc76c02ff17ef795584bbd192e95cb8055904a3f1af5
6
+ metadata.gz: 1ab9e72e959c13dd367896fe9f00e48f17ae227739b94746391dfa4a9e4b1738983947dd8c6c2add37c90eddad814e470591fd2d30c76f201f3e408e0f15dc95
7
+ data.tar.gz: 2d555a17a6e1bd929a2f6343cf49651db2a04672ab7e85fea85250d81b2c7acbad5dc6c673a0c7d5bc1cab7a8deea84cb0662558ea5c69eff67880e46d2bdceb
@@ -1,8 +1,19 @@
1
1
  module ActiveScaffoldBatch
2
2
  class Engine < ::Rails::Engine
3
3
  initializer("initialize_active_scaffold_batch", :after => "initialize_active_scaffold") do
4
- ActiveSupport.on_load(:action_controller) do
5
- require "active_scaffold_batch/config/core.rb"
4
+ initializer 'active_scaffold_export.routes' do
5
+ ActiveSupport.on_load :active_scaffold_routing do
6
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get
7
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post
8
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_new] = :get
9
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_create] = :post
10
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_add] = :get
11
+ #not working because routing picks show route instead
12
+ #self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get
13
+ #you may define a route for your controller before resource routes
14
+ #match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get]
15
+ self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
16
+ end
6
17
  end
7
18
 
8
19
  ActiveSupport.on_load(:action_view) do
@@ -1,8 +1,8 @@
1
1
  module ActiveScaffoldBatch
2
2
  module Version
3
3
  MAJOR = 3
4
- MINOR = 4
5
- PATCH = 5
4
+ MINOR = 5
5
+ PATCH = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.5
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -9,36 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-11 00:00:00.000000000 Z
12
+ date: 2024-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: '1.0'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: '1.0'
28
14
  - !ruby/object:Gem::Dependency
29
15
  name: active_scaffold
30
16
  requirement: !ruby/object:Gem::Requirement
31
17
  requirements:
32
18
  - - ">="
33
19
  - !ruby/object:Gem::Version
34
- version: 3.6.0.pre
20
+ version: 3.7.1
35
21
  type: :runtime
36
22
  prerelease: false
37
23
  version_requirements: !ruby/object:Gem::Requirement
38
24
  requirements:
39
25
  - - ">="
40
26
  - !ruby/object:Gem::Version
41
- version: 3.6.0.pre
27
+ version: 3.7.1
42
28
  description: You want to destroy/update many records at once with activescaffold?
43
29
  email: activescaffold@googlegroups.com
44
30
  executables: []
@@ -87,7 +73,6 @@ files:
87
73
  - lib/active_scaffold/helpers/datepicker_update_column_helpers.rb
88
74
  - lib/active_scaffold/helpers/update_column_helpers.rb
89
75
  - lib/active_scaffold_batch.rb
90
- - lib/active_scaffold_batch/config/core.rb
91
76
  - lib/active_scaffold_batch/engine.rb
92
77
  - lib/active_scaffold_batch/version.rb
93
78
  homepage: http://github.com/scambra/active_scaffold_batch
@@ -109,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
94
  - !ruby/object:Gem::Version
110
95
  version: '0'
111
96
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.7.9
97
+ rubygems_version: 3.2.3
114
98
  signing_key:
115
99
  specification_version: 4
116
100
  summary: Batch Processing for ActiveScaffold
@@ -1,13 +0,0 @@
1
- # Need to open the AS module carefully due to Rails 2.3 lazy loading
2
- ActiveScaffold::Config::Core.class_eval do
3
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get
4
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post
5
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_new] = :get
6
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_create] = :post
7
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_add] = :get
8
- #not working because routing picks show route instead
9
- #ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get
10
- #you may define a route for your controller before resource routes
11
- #match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get]
12
- ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
13
- end