export_manager 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +21 -14
- data/lib/export_manager/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40d5fdb8ff5853f69a8ab218b81011f6e4b46ed8372f34a26b4f7ccc4a721d47
|
4
|
+
data.tar.gz: aefe59c79746d380c20d87c1a694baa2d2704cb668465747d0f23f9c6116f5b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f29cccdc68a4646cf7eb404db7ccb81993ff4f9f6e21abbcbbd51a5a9e4316f78da1fbb93f3e38a0169a86e24522198c0f7cb2b3dc84ac1924519646ab2fb9c8
|
7
|
+
data.tar.gz: 60014ead662d2e7e60ce964140600b691b288e0a52422c3c309a5bc95ff7b4d27d333b1326237db222c5dba49c92d0e9884f77558f6c935eddf88a94db2b844f
|
data/README.md
CHANGED
@@ -1,25 +1,32 @@
|
|
1
1
|
# ExportManager
|
2
|
-
ExportManager handles the dynamic export of table data to CSV, JSON,
|
2
|
+
The ExportManager handles the dynamic export of table data to CSV, JSON, Excel, and XML formats.
|
3
3
|
|
4
4
|
## Usage
|
5
|
-
The ExportManager allows users to export data from dynamic tables with dynamic columns. The system provides flexibility in
|
5
|
+
The ExportManager allows users to export data from dynamic tables with dynamic columns. The system provides flexibility in selecting the data to be exported and generates a **CSV, JSON, Excel, or XML** file accordingly.
|
6
|
+
|
7
|
+
## Demo
|
8
|
+
[Screencast from 27-12-24 04:09:24 PM IST.webm](https://github.com/user-attachments/assets/17d245c3-5234-4171-b349-6cc1a74ea847)
|
6
9
|
|
7
10
|
## Quick Start
|
8
11
|
```ruby
|
9
|
-
1)
|
12
|
+
1) Add the following gems to your Gemfile
|
13
|
+
gem "export_manager"
|
10
14
|
gem "caxlsx"
|
11
15
|
gem "caxlsx_rails"
|
12
|
-
2)
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
16
|
+
2) In config/routes.rb, add
|
17
|
+
mount ExportManager::Engine, at: '/'
|
18
|
+
|
19
|
+
3) Add the following lines to manifest.js
|
20
|
+
//= link export_manager/application.css
|
21
|
+
//= link export_manager/application.js
|
22
|
+
|
23
|
+
4) Run rails assets:precompile in the console
|
17
24
|
```
|
18
25
|
|
19
|
-
##
|
26
|
+
## Database Support
|
20
27
|
```ruby
|
21
|
-
1)
|
22
|
-
2)
|
28
|
+
1) PostgreSQL
|
29
|
+
2) MySQL
|
23
30
|
```
|
24
31
|
|
25
32
|
|
@@ -43,14 +50,14 @@ $ gem install export_manager
|
|
43
50
|
```
|
44
51
|
|
45
52
|
|
46
|
-
Remove
|
53
|
+
Remove a specific table name from the select box by creating a **global.rb** file in the **config/initializers** directory and adding the following code
|
47
54
|
```ruby
|
48
55
|
config/initializers/global.rb
|
49
56
|
|
50
57
|
REMOVE_TABLE_NAME = ['ActiveStorageBlobs'] # remove table
|
51
58
|
```
|
52
59
|
|
53
|
-
Add the custom file name in global.rb
|
60
|
+
Add the custom file name in **global.rb**
|
54
61
|
```ruby
|
55
62
|
config/initializers/global.rb
|
56
63
|
|
@@ -60,7 +67,7 @@ JSON_FILE_NAME = "JSON_EXPORT_#{Date.today}.json"
|
|
60
67
|
XML_FILE_NAME = "XML_EXPORT_#{Date.today}.xml"
|
61
68
|
```
|
62
69
|
|
63
|
-
If an authenticated user has the admin
|
70
|
+
If an authenticated user has the **admin?** method returning **true**, they can access the ExportManager engine at /.
|
64
71
|
```ruby
|
65
72
|
authenticated :user, ->(user) { user.admin? } do
|
66
73
|
mount ExportManager::Engine, at: '/'
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: export_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vishal Mahto
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rails
|
@@ -25,8 +24,8 @@ dependencies:
|
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: '7.0'
|
27
26
|
description: The ExportManager allows users to export data from dynamic tables with
|
28
|
-
dynamic columns. The system provides flexibility in
|
29
|
-
and generates a CSV file accordingly.
|
27
|
+
dynamic columns. The system provides flexibility in selecting the data to be exported
|
28
|
+
and generates a CSV, JSON, Excel, or XML file accordingly.
|
30
29
|
email:
|
31
30
|
- vishalgmahto@proton.me
|
32
31
|
executables: []
|
@@ -58,10 +57,10 @@ homepage: https://github.com/VishalMahtog/export_manager
|
|
58
57
|
licenses:
|
59
58
|
- MIT
|
60
59
|
metadata:
|
60
|
+
keywords: export, csv, excel, JSON, json, xml, XML, export data, Export, gem, ruby
|
61
61
|
homepage_uri: https://github.com/VishalMahtog/export_manager
|
62
62
|
source_code_uri: https://github.com/VishalMahtog/export_manager
|
63
63
|
changelog_uri: http://mygemserver.com
|
64
|
-
post_install_message:
|
65
64
|
rdoc_options: []
|
66
65
|
require_paths:
|
67
66
|
- lib
|
@@ -76,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
75
|
- !ruby/object:Gem::Version
|
77
76
|
version: '0'
|
78
77
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
80
|
-
signing_key:
|
78
|
+
rubygems_version: 3.6.2
|
81
79
|
specification_version: 4
|
82
|
-
summary: ExportManager handles the dynamic export of table data to CSV
|
80
|
+
summary: ExportManager handles the dynamic export of table data to CSV, JSON, Excel,
|
81
|
+
or XML format.
|
83
82
|
test_files: []
|