eml_to_pdf 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3911a7809cb69bc0204d23de4f040070628b93f8
4
+ data.tar.gz: 1f699d54673e9c659a2678f01a45312baa6ba000
5
+ SHA512:
6
+ metadata.gz: 6b314e084e442475832f8249f76c6cbf9966787d259c93c5f66d05f6f9735f3f24dbddeac0ddc7dad8b56ee6181b944589e37b55817672d7266f3025b0f42837
7
+ data.tar.gz: 5cdd6459df4fd50190d9d863a6d9d6a720a52f212ef0e319c2ffa62f0ceea7b092d2dda87fab54eebbd7a5a5e9706db788ed971abc1f6b56badabf117565d95f
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in eml_to_pdf.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Yves Siegrist
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # EmlToPdf
2
+
3
+ Welcome to EmlToPdf.
4
+ A small converter to convert an eml file to a pdf.
5
+ This gem uses `wkhtmltopdf`. You can get the installer from [here](http://wkhtmltopdf.org/downloads.html)
6
+
7
+ [![Build Status](https://travis-ci.org/Elektron1c97/eml_to_pdf.svg?branch=master)](https://travis-ci.org/Elektron1c97/eml_to_pdf)
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'eml_to_pdf'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install eml_to_pdf
24
+
25
+ ## Usage
26
+
27
+ Use the `convert` method to covert an eml to a pdf
28
+
29
+ ```ruby
30
+ EmlToPdf.convert("~/Desktop/my_test_email.eml", "~/Desktop/converted_email.pdf")
31
+ ```
32
+
33
+ Or you can use the executable
34
+
35
+ $ eml_to_pdf input-path output-path
36
+
37
+ ## Development
38
+
39
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
+
41
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/eml_to_pdf. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
46
+
47
+
48
+ ## License
49
+
50
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << 'test'
6
+ end
7
+
8
+ desc "Run tests"
9
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "eml_to_pdf"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'eml_to_pdf/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "eml_to_pdf"
8
+ spec.version = EmlToPdf::VERSION
9
+ spec.authors = ["Yves Siegrist"]
10
+ spec.email = ["Elektron1c97@gmail.com"]
11
+
12
+ spec.description = %q{This gem uses wkhtmltopdf to convert an eml to a pdf. (eml -> html -> pdf)}
13
+ spec.summary = %q{This gem allows you to convert an eml (email) into a pdf.}
14
+ spec.homepage = "https://github.com/Elektron1c97/eml_to_pdf"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.10"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency 'minitest', '~> 5.9'
25
+
26
+ spec.add_runtime_dependency 'filesize', '~> 0.1.1'
27
+ spec.add_runtime_dependency 'mail', '~> 2.5', '>= 2.5.4'
28
+ spec.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.7.2'
29
+ end
data/exe/eml_to_pdf ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ # TODO: use this to convert whole folders
3
+ # Dir["test/fixtures/emails/*.eml"].each do |test_file|
4
+ # puts "> converting #{test_file}"
5
+ # begin
6
+ # EmlToPdf.convert(test_file, "#{test_file[0..-5]}_output.pdf")
7
+ # rescue NoMethodError => e
8
+ # puts e.message
9
+ # end
10
+ # end
11
+
12
+ if ARGV[0] && ARGV[1]
13
+ require "bundler/setup"
14
+ require "eml_to_pdf"
15
+ EmlToPdf.convert(ARGV[0], ARGV[1])
16
+ else
17
+ puts %{Please provide an input as well as an output path\nExample: emltopdf test-email.eml output.pdf}
18
+ end
@@ -0,0 +1,14 @@
1
+ module EmlToPdf
2
+ class Converter
3
+ def initialize(input_path, output_path)
4
+ @input_path = input_path
5
+ @output_path = output_path
6
+ end
7
+
8
+ def convert
9
+ email = Email.new(@input_path)
10
+ html = email.to_html
11
+ Wkhtmltopdf.convert(html, @output_path)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,150 @@
1
+ require 'pathname'
2
+
3
+ module EmlToPdf
4
+ class Email
5
+ MIME_TYPES = {
6
+ plain_text: "text/plain",
7
+ html: "text/html",
8
+ multipart_mixed: "multipart/mixed"
9
+ }
10
+
11
+ TEMPLATES_PATH = Pathname.new(File.expand_path(__dir__)) + "templates"
12
+
13
+ def initialize(input_path)
14
+ @input_path = input_path
15
+ @mail = Mail.read(input_path)
16
+ end
17
+
18
+ def to_html
19
+ html = text_parts(@mail).join
20
+ html = resolve_cids_from_attachments(html, @mail.attachments)
21
+ html = add_mail_metadata_to_html(@mail, html)
22
+ html
23
+ end
24
+
25
+ def text_parts(mail_or_part)
26
+ if mail_or_part.multipart?
27
+ parts = mail_or_part.parts
28
+ if mail_or_part.mime_type == MIME_TYPES[:multipart_alternative]
29
+ text_parts(extract_best_representation_from_parts(parts))
30
+ else
31
+ parts.map do |part|
32
+ text_parts(part)
33
+ end
34
+ end
35
+ else
36
+ best_part = if mail_or_part.mime_type == MIME_TYPES[:plain_text] && !mail_or_part.attachment?
37
+ wrap_text_in_pre_tag(mail_or_part.decoded)
38
+ elsif mail_or_part.mime_type == MIME_TYPES[:html] && !mail_or_part.attachment?
39
+ mail_or_part.decoded
40
+ else
41
+ ""
42
+ end
43
+ [best_part]
44
+ end.flatten
45
+ end
46
+
47
+ private
48
+ def visible_attachments(mail)
49
+ mail.attachments.select do |attachment|
50
+ !attachment.inline?
51
+ end
52
+ end
53
+
54
+ def resolve_cids_from_attachments(html, attachments)
55
+ cid_list(attachments).inject(html) do |html, key_and_value|
56
+ k, v = key_and_value
57
+ html.gsub!(k, v)
58
+ html
59
+ end
60
+ end
61
+
62
+ def cid_list(attachments)
63
+ @cid_list ||= attachments.inject({}) do |list, attachment|
64
+ if attachment.content_id && attachment.content_transfer_encoding == "base64"
65
+ mime_type = attachment.mime_type
66
+ decoded = attachment.body.raw_source.strip.gsub(/[\n\t\r]/, "")
67
+ list[attachment.url] = "data:#{mime_type};base64,#{decoded}"
68
+ end
69
+ list
70
+ end
71
+ end
72
+
73
+ def html_body(mail_or_part)
74
+ if multipart_alternative?(mail_or_part)
75
+ [extract_best_representation_from_parts(mail_or_part.parts)]
76
+ elsif multipart_mixed?(mail_or_part)
77
+ mail_or_part.parts.map do |part|
78
+ html_body(part)
79
+ end
80
+ else
81
+ [extract_best_representation_from_parts(Array(mail_or_part))]
82
+ end.flatten
83
+ end
84
+
85
+ def extract_best_representation_from_parts(parts)
86
+ if multipart_part = parts.detect(&:multipart?)
87
+ multipart_part
88
+ elsif html_part = find_body_with_type(parts, :html)
89
+ html_part
90
+ elsif text_part = find_body_with_type(parts, :plain_text)
91
+ text_part
92
+ else
93
+ "can't find useable part"
94
+ end
95
+ end
96
+
97
+ def find_body_with_type(parts, type)
98
+ parts.detect do |part|
99
+ part.mime_type == MIME_TYPES[type]
100
+ end
101
+ end
102
+
103
+ def multipart_mixed?(part)
104
+ part.mime_type == MIME_TYPES[:multipart_mixed]
105
+ end
106
+
107
+ def multipart_alternative?(part)
108
+ part.mime_type == MIME_TYPES[:multipart_alternative] || part.mime_type == MIME_TYPES[:multipart_related]
109
+ end
110
+
111
+
112
+ def wrap_text_in_html(text)
113
+ "<!DOCTYPE html><html><head></head><body><pre>#{text}</pre></body></html>"
114
+ end
115
+
116
+ def wrap_text_in_pre_tag(text)
117
+ "<pre>#{text}</pre>"
118
+ end
119
+
120
+ def add_mail_metadata_to_html(mail, html)
121
+ context = MetadataContext.new(from: save_extract_header(mail, :from),
122
+ to: save_extract_header(mail, :to),
123
+ cc: save_extract_header(mail, :cc),
124
+ date: mail.date,
125
+ subject: mail.subject,
126
+ attachments: visible_attachments(mail))
127
+ heading = render_template("heading.html.erb", context.get_binding)
128
+ style = render_template("style.html")
129
+ html = "<body></body>" if html.empty?
130
+ doc = Nokogiri::HTML(html)
131
+ doc.at_css("body").prepend_child(heading)
132
+ doc.at_css("body").prepend_child(style)
133
+ doc.to_html
134
+ end
135
+
136
+ def render_template(filename, binding = nil)
137
+ template = File.read(TEMPLATES_PATH + filename)
138
+ renderer = ERB.new(template)
139
+ renderer.result(binding)
140
+ end
141
+
142
+ def save_extract_header(mail, header)
143
+ if header = mail.header[header]
144
+ header.decoded
145
+ else
146
+ ""
147
+ end
148
+ end
149
+ end
150
+ end
@@ -0,0 +1,25 @@
1
+ module EmlToPdf
2
+ class MetadataContext
3
+ def initialize(metadata)
4
+ metadata.each do |k, v|
5
+ eval("@#{k}=v")
6
+ end
7
+ end
8
+
9
+ def format_attachment_size(attachment)
10
+ Filesize.from("#{attachment.body.decoded.size} B").pretty
11
+ end
12
+
13
+ def format_date(date)
14
+ date.strftime("%d.%m.%Y um %H:%M")
15
+ end
16
+
17
+ def html_escape(str)
18
+ CGI.escapeHTML(str)
19
+ end
20
+
21
+ def get_binding
22
+ binding
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,31 @@
1
+ <meta charset="UTF-8">
2
+ <div class="email-metadata">
3
+ <table>
4
+ <tr>
5
+ <td><strong>Von:</strong></td>
6
+ <td><%= html_escape(@from) %></td>
7
+ </tr>
8
+ <tr>
9
+ <td><strong>An:</strong></td>
10
+ <td><%= html_escape(@to) %></td>
11
+ </tr>
12
+ <tr>
13
+ <td><strong>Cc:</strong></td>
14
+ <td><%= html_escape(@cc) %></td>
15
+ </tr>
16
+ <tr>
17
+ <td><strong>Datum:</strong></td>
18
+ <td><%= format_date(@date) if @date %></td>
19
+ </tr>
20
+ </table>
21
+ <h3><%= @subject %></h3>
22
+ <hr>
23
+ <ul class="email-attachments">
24
+ <% @attachments.each do |att| %>
25
+ <li class="attachement">
26
+ <span class="filename"><%= att.filename %></span>
27
+ <span class="file-size"><%= format_attachment_size(att) %></span>
28
+ </li>
29
+ <% end %>
30
+ </ul>
31
+ </div>
@@ -0,0 +1,56 @@
1
+ <style type="text/css">
2
+ .email-metadata {
3
+ width: 100%;
4
+ background: #fff;
5
+ font-size: 12pt;
6
+ font-family: Arial;
7
+ padding-bottom: 20px;
8
+ }
9
+ .email-metadata table {
10
+ width: 100%;
11
+ }
12
+ .email-attachments {
13
+ padding: 0;
14
+ margin: 0;
15
+ }
16
+ .email-attachments:before,
17
+ .email-attachments:after {
18
+ content: "";
19
+ display: table;
20
+ }
21
+ .email-attachments:after {
22
+ clear: both;
23
+ }
24
+ .attachement {
25
+ padding: 5px 10px;
26
+ background-color: #eaeaea;
27
+ border: 1px solid #ccc;
28
+ display: table;
29
+ float: left;
30
+ margin-right: 10px;
31
+ margin-bottom: 10px;
32
+ }
33
+
34
+ .filename {
35
+ display: table-cell;
36
+ width: 75%;
37
+ }
38
+
39
+ .file-size {
40
+ display: table-cell;
41
+ width: 25%;
42
+ font-size: 80%;
43
+ color: #aaa;
44
+ padding-left: 5px;
45
+ text-align: right;
46
+ }
47
+
48
+ pre {
49
+ white-space: pre-wrap;
50
+ }
51
+
52
+ body {
53
+ margin: 0;
54
+ padding: 0;
55
+ }
56
+ </style>
@@ -0,0 +1,3 @@
1
+ module EmlToPdf
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,11 @@
1
+ module EmlToPdf
2
+ class Wkhtmltopdf
3
+ def self.convert(input, output_path)
4
+ IO.popen("wkhtmltopdf --encoding utf-8 --footer-center [page] - #{output_path} 2>&1", "r+") do |pipe|
5
+ pipe.puts(input)
6
+ pipe.close_write
7
+ pipe.readlines # TODO save output
8
+ end
9
+ end
10
+ end
11
+ end
data/lib/eml_to_pdf.rb ADDED
@@ -0,0 +1,17 @@
1
+ require "cgi"
2
+ require "mail"
3
+ require "erb"
4
+ require "nokogiri"
5
+ require "filesize"
6
+ require "eml_to_pdf/version"
7
+ require "eml_to_pdf/converter"
8
+ require "eml_to_pdf/converter"
9
+ require "eml_to_pdf/email"
10
+ require "eml_to_pdf/wkhtmltopdf"
11
+ require "eml_to_pdf/metadata_context"
12
+
13
+ module EmlToPdf
14
+ def self.convert(input, output)
15
+ Converter.new(input, output).convert
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eml_to_pdf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Yves Siegrist
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: filesize
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.1.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.1.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: mail
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.5'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 2.5.4
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '2.5'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 2.5.4
89
+ - !ruby/object:Gem::Dependency
90
+ name: nokogiri
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.6'
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 1.6.7.2
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '1.6'
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: 1.6.7.2
109
+ description: This gem uses wkhtmltopdf to convert an eml to a pdf. (eml -> html ->
110
+ pdf)
111
+ email:
112
+ - Elektron1c97@gmail.com
113
+ executables:
114
+ - eml_to_pdf
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - eml_to_pdf.gemspec
128
+ - exe/eml_to_pdf
129
+ - lib/eml_to_pdf.rb
130
+ - lib/eml_to_pdf/converter.rb
131
+ - lib/eml_to_pdf/email.rb
132
+ - lib/eml_to_pdf/metadata_context.rb
133
+ - lib/eml_to_pdf/templates/heading.html.erb
134
+ - lib/eml_to_pdf/templates/style.html
135
+ - lib/eml_to_pdf/version.rb
136
+ - lib/eml_to_pdf/wkhtmltopdf.rb
137
+ homepage: https://github.com/Elektron1c97/eml_to_pdf
138
+ licenses:
139
+ - MIT
140
+ metadata: {}
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.4.5
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: This gem allows you to convert an eml (email) into a pdf.
161
+ test_files: []