active_scaffold_export 3.4.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27bb01b27b1106e740763ee7c02e9d3deb1df2afb70a8ecccded8fa87c229496
|
4
|
+
data.tar.gz: 37cb223e2a416d8560f5727d03884f29591d8200b7bbde0fbb0147fe5038cab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c30862703c29a5703f994b8793eadc49b4a8a6d21f05618679a31bc0f3f7e3a870c1d5fa2f38a72c3c56fd78d3be7ec42029099ad975cae935761accf56c39a0
|
7
|
+
data.tar.gz: 00f36259a4cf5876a678638560105991e139e5d289f3e4b9d5e00a65aaa0ebd50a00b41b92e3d19cc4ab8a3aa9b8d086b753aa8a7892137a9e88a9dc79a1e7a2
|
@@ -8,8 +8,7 @@
|
|
8
8
|
:headers => @export_columns.collect { |column| format_export_column_header_name(column) }
|
9
9
|
}
|
10
10
|
|
11
|
-
|
12
|
-
data = csv_lib.generate(fcsv_options) do |csv|
|
11
|
+
data = CSV.generate(**fcsv_options) do |csv|
|
13
12
|
csv << fcsv_options[:headers] unless params[:skip_header] == 'true'
|
14
13
|
@records.each do |record|
|
15
14
|
csv << @export_columns.collect { |column|
|
@@ -14,7 +14,4 @@ ActiveScaffold::Config::Core.class_eval do
|
|
14
14
|
:export_force_quotes, :export_default_full_download,
|
15
15
|
:export_default_delimiter, :export_default_skip_header,
|
16
16
|
:export_default_file_format, :export_xlsx_avaliable
|
17
|
-
|
18
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:show_export] = :get
|
19
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :post
|
20
17
|
end
|
@@ -1,8 +1,14 @@
|
|
1
1
|
module ActiveScaffoldExport
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
initializer 'active_scaffold_export.routes' do
|
4
|
+
ActiveSupport.on_load :active_scaffold_routing do
|
5
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:show_export] = :get
|
6
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :post
|
7
|
+
end
|
6
8
|
end
|
7
|
-
|
9
|
+
|
10
|
+
initializer 'active_scaffold_sortable.extensions' do
|
11
|
+
require "active_scaffold_export/config/core.rb"
|
12
|
+
end
|
13
|
+
end
|
8
14
|
end
|
@@ -4,9 +4,6 @@ ActiveScaffold rescue throw "should have included ActiveScaffold plug in first.
|
|
4
4
|
require 'active_scaffold_export/engine'
|
5
5
|
require 'active_scaffold_export/version'
|
6
6
|
|
7
|
-
# Load our overrides
|
8
|
-
require "active_scaffold_export/config/core.rb"
|
9
|
-
|
10
7
|
module ActiveScaffoldExport
|
11
8
|
def self.root
|
12
9
|
File.dirname(__FILE__) + "/.."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volker Hochstein
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_scaffold
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.7.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 3.
|
28
|
+
version: 3.7.1
|
29
29
|
description: Exporting Records with ActiveScaffold
|
30
30
|
email: activescaffold@googlegroups.com
|
31
31
|
executables: []
|
@@ -62,15 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
|
73
|
-
rubygems_version: 2.7.9
|
72
|
+
rubygems_version: 3.2.3
|
74
73
|
signing_key:
|
75
74
|
specification_version: 4
|
76
75
|
summary: Ability to export records to CSV/XLSX with ActiveScaffold
|