pixelpress 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +10 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +93 -0
  7. data/Rakefile +6 -0
  8. data/app/controllers/pixelpress/printers_controller.rb +15 -0
  9. data/app/views/pixelpress/printers/index.html.erb +8 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/bundle +0 -0
  13. data/config/routes.rb +5 -0
  14. data/lib/generators/pixelpress/printer/USAGE +8 -0
  15. data/lib/generators/pixelpress/printer/printer_generator.rb +38 -0
  16. data/lib/generators/pixelpress/printer/templates/application_printer.rb +3 -0
  17. data/lib/generators/pixelpress/printer/templates/initializer.rb +2 -0
  18. data/lib/generators/pixelpress/printer/templates/printer.pdf.erb +1 -0
  19. data/lib/generators/pixelpress/printer/templates/printer.rb +7 -0
  20. data/lib/generators/pixelpress/printer/templates/template.pdf.erb +1 -0
  21. data/lib/generators/rspec/printer_generator.rb +25 -0
  22. data/lib/generators/rspec/templates/preview.rb +5 -0
  23. data/lib/generators/rspec/templates/printer_spec.rb +7 -0
  24. data/lib/pixelpress.rb +8 -0
  25. data/lib/pixelpress/base.rb +12 -0
  26. data/lib/pixelpress/document.rb +26 -0
  27. data/lib/pixelpress/engine.rb +5 -0
  28. data/lib/pixelpress/fake_file.rb +19 -0
  29. data/lib/pixelpress/instance_invocation.rb +15 -0
  30. data/lib/pixelpress/preview.rb +18 -0
  31. data/lib/pixelpress/renderers/test_renderer.rb +5 -0
  32. data/lib/pixelpress/renderers/weasyprint_renderer.rb +7 -0
  33. data/lib/pixelpress/rendering.rb +28 -0
  34. data/lib/pixelpress/version.rb +3 -0
  35. data/pixelpress.gemspec +26 -0
  36. metadata +120 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 638d9a7486c6de12d194da6ab7265064278f51d4
4
+ data.tar.gz: a0165b1cc71118c91c6b6a7194abb9bdc11c4f42
5
+ SHA512:
6
+ metadata.gz: 9d6a844cf997062163e1c546b8e6c2b2303f8340ada3f533bc4452c48fbecb25ce31ea0caefa98fae5905590373e8565ece0eddea5479ab9e1611320d39bc1e0
7
+ data.tar.gz: eec11694a906bf87489d74fb671f89663e81f8ef8da511fc19b044ea319ae50e817ae777fa460ff7c13602ddafc84bc333913d76c827e287ea291ccbbe40f2ef
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /pixelpress-0.1.0.gem
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
14
+ /.byebug_history
15
+ /spec/lib/generators/test/generator_spec/test_destination
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pixelpress.gemspec
4
+ gemspec
5
+
6
+ gem 'activemodel'
7
+ gem 'bundler'
8
+ gem 'pry-byebug'
9
+ gem 'rake'
10
+ gem 'rspec', '~> 3.0'
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Alex
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.
@@ -0,0 +1,93 @@
1
+ # Pixelpress
2
+ [![CircleCI](https://circleci.com/gh/nerdgeschoss/pixelpress/tree/master.svg?style=svg)](https://circleci.com/gh/nerdgeschoss/pixelpress/tree/master)
3
+
4
+ Modeled after `ActionMailer` this gem allows you to render PDFs from HTML via Rails templating engine. Also you can preview your PDF templates via a supplied engine during development.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'pixelpress'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install pixelpress
21
+
22
+ ## Usage
23
+
24
+ Run the printer generator providing the name of your printer with methods to be generated:
25
+ ```bash
26
+ rails generate pixelpress:printer NAME [method_name1 method_name2 ...] [options]
27
+ ```
28
+
29
+ This creates an `ApplicationPrinter` in `app/printers` and the corresponding subclass and also mounts the engine in your `config/routes.rb` file.
30
+
31
+ **Example**
32
+ ```bash
33
+ $ rails g pixelpress:printer invoice customer_invoice delivery_document
34
+ ```
35
+ will generate `app/printers/invoice_printer.rb` file which looks like this:
36
+ ```ruby
37
+ class InvoicePrinter < ApplicationPrinter
38
+ def customer_invoice
39
+ # put your code here
40
+ end
41
+
42
+ def delivery_document
43
+ # put your code here
44
+ end
45
+ end
46
+ ```
47
+
48
+ Also this command will generate the corresponding templates as `.pdf.erb` files located in `app/views/printers/invoice/`:
49
+
50
+ - `customer_invoice.pdf.erb`
51
+ - `delivery_document.pdf.erb`
52
+
53
+ You can preview your documents by running `rails s` and go to
54
+
55
+ ```
56
+ localhost:3000/rails/printers
57
+ ```
58
+
59
+ To use your printers in code, you can instantiate them just like mailers:
60
+
61
+ ```ruby
62
+ InvoicePrinter.customer_invoice.pdf # render a temporary pdf file
63
+ InvoicePrinter.customer_invoice.html # get the rendered document in html format
64
+ ```
65
+
66
+ So you can send them to the client via a controller action:
67
+
68
+ ```ruby
69
+ class InvoicesController < ApplicationController
70
+ def show
71
+ document = InvoicePrinter.customer_invoice
72
+ respond_to do |format|
73
+ format.html { render html: document.html }
74
+ format.pdf { send_data document.pdf.read, disposition: 'inline', type: 'application/pdf' }
75
+ end
76
+ end
77
+ end
78
+ ```
79
+
80
+ ## Development
81
+
82
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
83
+
84
+ 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).
85
+
86
+ ## Contributing
87
+
88
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Alex/pixelpress.
89
+
90
+
91
+ ## License
92
+
93
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,15 @@
1
+ class Pixelpress::PrintersController < ActionController::Base
2
+ def index
3
+ @printers = Pixelpress::Preview.all
4
+ end
5
+
6
+ def show
7
+ klass = params[:printer_id]
8
+ method = params[:id]
9
+ printer = Pixelpress::Preview.all.map { |e| [e.printer_name, e] }.to_h[klass].send(method)
10
+ respond_to do |format|
11
+ format.html { render html: printer.html }
12
+ format.pdf { send_data printer.pdf.read, disposition: 'inline', type: 'application/pdf' }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ <% @printers.each do |printer| %>
2
+ <% printer.previews.each do |preview| %>
3
+ <a href="/rails/printers/<%= printer.printer_name %>/<%= preview.to_s.underscore %>">
4
+ <%= printer.class.name %>#<%= preview %>
5
+ </a>
6
+ <br>
7
+ <% end %>
8
+ <% end %>
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'pixelpress'
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(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/bundle ADDED
File without changes
@@ -0,0 +1,5 @@
1
+ Pixelpress::Engine.routes.draw do
2
+ resources :printers, only: [:index] do
3
+ get ':id', to: 'printers#show'
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Generates a custom printer with the given name.
3
+
4
+ Example:
5
+ rails generate pixelpress:printer invoice method_name1 meth_name2
6
+
7
+ This will create:
8
+ app/printers/invoice_printers.rb
@@ -0,0 +1,38 @@
1
+ module Pixelpress
2
+ module Generators
3
+ class PrinterGenerator < ::Rails::Generators::NamedBase
4
+ source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
5
+
6
+ argument :passed_methods, type: :array, default: [], required: false, banner: 'method_name1 method_name2 ...'
7
+
8
+ check_class_collision suffix: 'Printer'
9
+
10
+ hook_for :test_framework
11
+
12
+ def create_custom_printer
13
+ template 'application_printer.rb', 'app/printers/application_printer.rb' unless Rails.root.join('app/printers/application_printer.rb').exist?
14
+ route 'mount Pixelpress::Engine => "rails" if Rails.env.development?' unless engine_mounted?
15
+ template 'printer.pdf.erb', 'app/views/layouts/printer.pdf.erb' unless Rails.root.join('app/views/layouts/printer.pdf.erb').exist?
16
+ template 'printer.rb', File.join('app/printers', class_path, "#{file_name}_printer.rb")
17
+ end
18
+
19
+ def create_custom_printer_views
20
+ passed_methods.each do |method_name|
21
+ @method_name = method_name
22
+ template 'template.pdf.erb', File.join('app/views/printers', class_path, "#{file_name}/#{method_name}.pdf.erb")
23
+ end
24
+ end
25
+
26
+ private
27
+
28
+ def file_name
29
+ @_file_name ||= super.gsub(/_printer/i, '')
30
+ end
31
+
32
+ def engine_mounted?
33
+ routes = Rails.root.join('config/routes.rb')
34
+ routes.exist? && routes.read.include?('Pixelpress::Engine')
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationPrinter < Pixelpress::Base
2
+ layout 'printer'
3
+ end
@@ -0,0 +1,2 @@
1
+ Rails.application.config.autoload_paths << Rails.root.join('app', 'printers')
2
+ Rails.application.config.autoload_paths << Rails.root.join('spec', 'printer', 'previews') if Rails.env.development?
@@ -0,0 +1,7 @@
1
+ <% module_namespacing do -%>
2
+ class <%= class_name %>Printer < ApplicationPrinter<% passed_methods.each do |m| %>
3
+ def <%= m %>
4
+ #put your code here, if you want :)
5
+ end<% end %>
6
+ end
7
+ <% end -%>
@@ -0,0 +1 @@
1
+ <h1>Hello from <%= class_name.classify %>Printer#<%= @method_name %></h1>
@@ -0,0 +1,25 @@
1
+ module Rspec
2
+ module Generators
3
+ class PrinterGenerator < ::Rails::Generators::NamedBase
4
+ source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
5
+
6
+ argument :passed_methods, type: :array, default: [], required: false, banner: 'method_name1 method_name2 ...'
7
+
8
+ check_class_collision suffix: 'Printer'
9
+
10
+ def create_printer_spec
11
+ template 'printer_spec.rb', File.join('spec/printers', class_path, "#{file_name}_printer_spec.rb")
12
+ end
13
+
14
+ def create_printer_previews
15
+ template 'preview.rb', File.join('spec/printers/previews', class_path, "#{file_name}_preview.rb")
16
+ end
17
+
18
+ private
19
+
20
+ def file_name
21
+ @_file_name ||= super.gsub(/_printer/i, '')
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,5 @@
1
+ class <%= class_name %>Preview < Pixelpress::Preview<% passed_methods.each do |m| %>
2
+ def <%= m %>
3
+ <%= class_name %>Printer.<%= m %>
4
+ end<% end %>
5
+ end
@@ -0,0 +1,7 @@
1
+ require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
2
+
3
+ describe <%= class_name %>Printer, pending: true do
4
+ it "should be tested" do
5
+ raise "implement your rspec tests"
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'pixelpress/version'
2
+ require 'pixelpress/base'
3
+ require 'pixelpress/document'
4
+ require 'pixelpress/engine' if defined? Rails
5
+ require 'pixelpress/preview' if defined? Rails
6
+
7
+ module Pixelpress
8
+ end
@@ -0,0 +1,12 @@
1
+ require 'action_controller'
2
+ require_relative 'renderers/weasyprint_renderer'
3
+ require_relative 'renderers/test_renderer'
4
+ require_relative 'instance_invocation'
5
+ require_relative 'rendering'
6
+
7
+ module Pixelpress
8
+ class Base < ActionController::Base
9
+ extend InstanceInvocation
10
+ include Rendering
11
+ end
12
+ end
@@ -0,0 +1,26 @@
1
+ require_relative 'fake_file'
2
+
3
+ module Pixelpress
4
+ class Document
5
+ attr_reader :html
6
+ attr_reader :file_name
7
+
8
+ def initialize(html, renderer, options = {})
9
+ @html = html
10
+ @renderer = renderer
11
+ @file_name = options[:file_name]
12
+ end
13
+
14
+ def pdf
15
+ FakeFile.new pdf_data, original_filename: file_name
16
+ end
17
+
18
+ private
19
+
20
+ attr_accessor :renderer
21
+
22
+ def pdf_data
23
+ @pdf_data ||= renderer.render(html)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,5 @@
1
+ module Pixelpress
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Pixelpress
4
+ end
5
+ end
@@ -0,0 +1,19 @@
1
+ module Pixelpress
2
+ class FakeFile < StringIO
3
+ attr_accessor :original_filename, :content_type
4
+
5
+ def initialize(data, options = {})
6
+ @original_filename = options[:original_filename]
7
+ @content_type = options[:content_type]
8
+ super data
9
+ end
10
+
11
+ def original_filename
12
+ @original_filename || "document.pdf"
13
+ end
14
+
15
+ def content_type
16
+ @content_type || "application/pdf"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ module Pixelpress
2
+ module InstanceInvocation
3
+ def method_missing(m, *args, &block)
4
+ return super unless respond_to_missing?(m)
5
+ instance = new
6
+ instance.instance_variable_set :@template_name, m.to_s
7
+ instance.send(m, *args)
8
+ instance.document
9
+ end
10
+
11
+ def respond_to_missing?(m, include_private = false)
12
+ return true if new.methods.include?(m)
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ module Pixelpress
2
+ class Preview
3
+ def self.all
4
+ Dir[Rails.root.join('spec', 'printers', 'previews', '**', '*_preview.rb')].map do |file|
5
+ require_dependency file
6
+ file.split('printers/previews/').last.sub('.rb', '').classify.constantize.new
7
+ end
8
+ end
9
+
10
+ def previews
11
+ methods - Object.methods - [:previews, :printer_name]
12
+ end
13
+
14
+ def printer_name
15
+ self.class.name.underscore.tr('/', '_')
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,5 @@
1
+ class Pixelpress::TestRenderer
2
+ def render(html)
3
+ '%PDF-1.5'
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ require 'weasyprint'
2
+
3
+ class Pixelpress::WeasyPrintRenderer
4
+ def render(html)
5
+ WeasyPrint.new(html).to_pdf
6
+ end
7
+ end
@@ -0,0 +1,28 @@
1
+ module Pixelpress
2
+ module Rendering
3
+ module ClassMethods
4
+ attr_writer :default_renderer
5
+ def default_renderer
6
+ @default_renderer ||= WeasyPrintRenderer.new
7
+ end
8
+ end
9
+
10
+ def self.included(base)
11
+ base.extend(ClassMethods)
12
+ end
13
+
14
+ def document
15
+ @document ||= Document.new render_to_string(template), renderer, file_name: try(:file_name)
16
+ end
17
+
18
+ protected
19
+
20
+ def renderer
21
+ @renderer || self.class.default_renderer
22
+ end
23
+
24
+ def template
25
+ ['printers', controller_path.sub('_printer', ''), @template_name].join('/')
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,3 @@
1
+ module Pixelpress
2
+ VERSION = '0.1.0'.freeze
3
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pixelpress/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'pixelpress'
8
+ spec.version = Pixelpress::VERSION
9
+ spec.authors = ['Alex']
10
+ spec.email = ['aleksandra@nerdgeschoss.de']
11
+
12
+ spec.summary = 'PDF printer'
13
+ spec.homepage = 'https://github.com/nerdgeschoss/pixelpress'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency 'actionpack'
24
+ spec.add_dependency 'weasyprint'
25
+ spec.add_dependency 'generator_spec', '~> 0.9.3'
26
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pixelpress
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alex
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: weasyprint
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: generator_spec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.9.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.9.3
55
+ description:
56
+ email:
57
+ - aleksandra@nerdgeschoss.de
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - app/controllers/pixelpress/printers_controller.rb
69
+ - app/views/pixelpress/printers/index.html.erb
70
+ - bin/console
71
+ - bin/setup
72
+ - bundle
73
+ - config/routes.rb
74
+ - lib/generators/pixelpress/printer/USAGE
75
+ - lib/generators/pixelpress/printer/printer_generator.rb
76
+ - lib/generators/pixelpress/printer/templates/application_printer.rb
77
+ - lib/generators/pixelpress/printer/templates/initializer.rb
78
+ - lib/generators/pixelpress/printer/templates/printer.pdf.erb
79
+ - lib/generators/pixelpress/printer/templates/printer.rb
80
+ - lib/generators/pixelpress/printer/templates/template.pdf.erb
81
+ - lib/generators/rspec/printer_generator.rb
82
+ - lib/generators/rspec/templates/preview.rb
83
+ - lib/generators/rspec/templates/printer_spec.rb
84
+ - lib/pixelpress.rb
85
+ - lib/pixelpress/base.rb
86
+ - lib/pixelpress/document.rb
87
+ - lib/pixelpress/engine.rb
88
+ - lib/pixelpress/fake_file.rb
89
+ - lib/pixelpress/instance_invocation.rb
90
+ - lib/pixelpress/preview.rb
91
+ - lib/pixelpress/renderers/test_renderer.rb
92
+ - lib/pixelpress/renderers/weasyprint_renderer.rb
93
+ - lib/pixelpress/rendering.rb
94
+ - lib/pixelpress/version.rb
95
+ - pixelpress.gemspec
96
+ homepage: https://github.com/nerdgeschoss/pixelpress
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.6.8
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: PDF printer
120
+ test_files: []