export_objects 0.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/export_objects.rb +18 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b46860389bb248ad77409a4df8aa0fedff77a1798b1c807b2cdecfd6f600a602
4
+ data.tar.gz: 672321ebe3d3cafce96bcef8e3a13ed44cfb2378e174b2f690fdab043d12b7a0
5
+ SHA512:
6
+ metadata.gz: 60452aea0ee87b31a82902925a589f86b8368f39f830731fb4690912b6bbba4b8529b82affb604b7fd622792a2233148954ae887a2787dd9572b32b7cb1ce965
7
+ data.tar.gz: f9b6a6505246837ae5a037c13793a98821c3924e7f442a9f6ddc20a8e3af7b3ef41f3e47b6cf1b496c5de0247e502e784ccbc0d97c7e6a848ba0098bef3cbf3b
@@ -0,0 +1,18 @@
1
+ require 'prawn'
2
+
3
+ module ExportObjects
4
+
5
+ class Trial
6
+ def self.export content
7
+ file_name = Time.now.to_s + "_file.txt"
8
+ models_path = File.join(Rails.root, 'tmp', 'pdfs')
9
+ file_path = File.join(models_path, file_name)
10
+
11
+ File.open(file_path, 'w') do |file|
12
+ file.write(content)
13
+ end
14
+
15
+ puts "File created at: #{file_path}"
16
+ end
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: export_objects
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Glen Correia
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-08-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Export your objects to a pdf file
14
+ email: 77fx@outlook.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/export_objects.rb
20
+ homepage: https://rubygems.org/gems/export_objects
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.2.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Export objects
43
+ test_files: []