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: e9f7f034474f62c9c156d57118a1cf6c36b8f704d3e3d39b9df7ca352c238d4a
4
- data.tar.gz: f1d0c02ad1a4e503a00bc55459771a6853597cc99b5e1c869b22a11fc8539f43
3
+ metadata.gz: 27bb01b27b1106e740763ee7c02e9d3deb1df2afb70a8ecccded8fa87c229496
4
+ data.tar.gz: 37cb223e2a416d8560f5727d03884f29591d8200b7bbde0fbb0147fe5038cab4
5
5
  SHA512:
6
- metadata.gz: 428f1456d4c2c96d756bc1bc9007de918233d6fb5104e4915a329a64a9e09e434db5c0e29babec790ba7facc4539d928c02d890e48dc1416fe96a8315a9baccd
7
- data.tar.gz: a4cd29b6d36228116cb2064592b8323a26aea1689fb27d6119432775b1f611474138adadfd1f27c2d147f44c69e8c4b16ba8855aa47e39cd1eac3c9306bceeae
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
- csv_lib = Object.const_defined?('CSV') ? CSV : FasterCSV
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
- #do not use module Rails... cause Rails.logger will fail
3
- # not sure if it is a must though...
4
- #module Rails
5
- class Engine < ::Rails::Engine
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
- #end
9
+
10
+ initializer 'active_scaffold_sortable.extensions' do
11
+ require "active_scaffold_export/config/core.rb"
12
+ end
13
+ end
8
14
  end
@@ -1,8 +1,8 @@
1
1
  module ActiveScaffoldExport
2
2
  module Version
3
3
  MAJOR = 3
4
- MINOR = 4
5
- PATCH = 0
4
+ MINOR = 5
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  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.0
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: 2020-12-11 00:00:00.000000000 Z
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.6.0.pre
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.6.0.pre
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: '0'
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
- rubyforge_project:
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