active_scaffold_export 3.8.1 → 3.9.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:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: dc3eab7a75cf8bde5eb73a0e75b9c816979e98bcaf419211b3553e0de987a457
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 5d3a66a5a93877e0d09624a810a6c5a6673ad916893a18325af400728264ef5c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 0de3ee638257fe07636eb4ca850ab50ea30d4467ed628d32909462a22090204ff79f20ca9a33bdb30722542a6c42d269b3668f89b39619e411c9eaeb6c556719
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ea937a583476059aa3577ae4c7f91cdbbf255f9561245629fa26578d0622d27af54b9315c97f69db4a8f87acd3b56002bef1c8cbda0cb168d236ce37276c2ab9
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -7,21 +7,19 @@ Then, add this to your Gemfile: 
     | 
|
| 
       7 
7 
     | 
    
         
             
            ```
         
     | 
| 
       8 
8 
     | 
    
         
             
            gem 'active_scaffold_export'
         
     | 
| 
       9 
9 
     | 
    
         
             
            ```
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            gem 'backports'
         
     | 
| 
       13 
     | 
    
         
            -
            gem 'fastercsv'
         
     | 
| 
       14 
     | 
    
         
            -
            ```
         
     | 
| 
       15 
     | 
    
         
            -
            if you want xlsx format, add:
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            If you want xlsx format, add:
         
     | 
| 
       16 
12 
     | 
    
         
             
            ```
         
     | 
| 
       17 
13 
     | 
    
         
             
            gem 'caxlsx_rails'
         
     | 
| 
       18 
14 
     | 
    
         
             
            ```
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            If that gem is present, XLSX will be used by default. 
         
     | 
| 
       20 
17 
     | 
    
         
             
            You can change this by adding to active scaffold config:
         
     | 
| 
       21 
18 
     | 
    
         
             
            ```
         
     | 
| 
       22 
19 
     | 
    
         
             
            conf.export.default_file_format = 'csv' # or 'xlsx' 
         
     | 
| 
       23 
20 
     | 
    
         
             
            ```
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            Read important notes at the bottom about xlsx.
         
     | 
| 
       25 
23 
     | 
    
         | 
| 
       26 
24 
     | 
    
         
             
            Remember to bundle install.
         
     | 
| 
       27 
25 
     | 
    
         
             
            Add to application.css:
         
     | 
| 
         @@ -1,10 +1,9 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <% export_config = active_scaffold_config.export %>
         
     | 
| 
       2 
2 
     | 
    
         
             
            <h3><%=as_(:columns_for_export)%></h3>
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            <%# TODO: use JS asset instead of inline JS %>
         
     | 
| 
       4 
4 
     | 
    
         
             
            <%= link_to as_(:select_all), '#', onclick: 'jQuery(".columnCheckbox").prop("checked", true); return false', class: 'active-scaffold-footer' %>
         
     | 
| 
       5 
5 
     | 
    
         
             
             |
         
     | 
| 
       6 
6 
     | 
    
         
             
            <%= link_to as_(:select_none), '#', onclick: 'jQuery(".columnCheckbox").prop("checked", false); return false', class: 'active-scaffold-footer' %>
         
     | 
| 
       7 
     | 
    
         
            -
            <% end %>
         
     | 
| 
       8 
7 
     | 
    
         
             
            <div class="columns checkbox-list">
         
     | 
| 
       9 
8 
     | 
    
         
             
            <% export_config.columns.each_column do |column| -%>
         
     | 
| 
       10 
9 
     | 
    
         
             
              <div class="column checkbox-wrapper">
         
     | 
| 
         @@ -15,6 +15,9 @@ module ActiveScaffoldExport 
     | 
|
| 
       15 
15 
     | 
    
         | 
| 
       16 
16 
     | 
    
         
             
                initializer 'active_scaffold_export.extensions' do
         
     | 
| 
       17 
17 
     | 
    
         
             
                  ActiveScaffold::DataStructures::Column.send :include, ActiveScaffoldExport::Column
         
     | 
| 
      
 18 
     | 
    
         
            +
                  if defined? ActiveScaffold::DataStructures::ProxyColumn
         
     | 
| 
      
 19 
     | 
    
         
            +
                    ActiveScaffold::DataStructures::ProxyColumn.send :include, ActiveScaffoldExport::Column
         
     | 
| 
      
 20 
     | 
    
         
            +
                  end
         
     | 
| 
       18 
21 
     | 
    
         
             
                end
         
     | 
| 
       19 
22 
     | 
    
         
             
              end
         
     | 
| 
       20 
23 
     | 
    
         
             
            end
         
     | 
    
        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.9.0
         
     | 
| 
       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: 2024- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2024-12-04 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:  
     | 
| 
      
 21 
     | 
    
         
            +
                    version: 4.0.0.rc1
         
     | 
| 
       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:  
     | 
| 
      
 28 
     | 
    
         
            +
                    version: 4.0.0.rc1
         
     | 
| 
       29 
29 
     | 
    
         
             
            description: Exporting Records with ActiveScaffold
         
     | 
| 
       30 
30 
     | 
    
         
             
            email: activescaffold@googlegroups.com
         
     | 
| 
       31 
31 
     | 
    
         
             
            executables: []
         
     | 
| 
         @@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       69 
69 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       70 
70 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       71 
71 
     | 
    
         
             
            requirements: []
         
     | 
| 
       72 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 72 
     | 
    
         
            +
            rubygems_version: 3.5.11
         
     | 
| 
       73 
73 
     | 
    
         
             
            signing_key:
         
     | 
| 
       74 
74 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       75 
75 
     | 
    
         
             
            summary: Ability to export records to CSV/XLSX with ActiveScaffold
         
     |