princely 2.0.0 → 2.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.
- checksums.yaml +4 -4
- data/lib/princely/asset_support.rb +1 -0
- data/lib/princely/pdf.rb +2 -5
- data/lib/princely/rails.rb +0 -1
- data/lib/princely/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02972234121592908f6d7a29626f2f13e26c9d79
|
4
|
+
data.tar.gz: a4e63bf9e8705e6fa6c369d1f683b2610fac3330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d58f309e73c28a37bf9528452c134419fd552f7c5093e4860bfc5cbc7d6923b8633f60abf774ad10ec5e247c2e9e93f695544f59811a48d2adc34c8e4e27e217
|
7
|
+
data.tar.gz: 5313f5f9b434fdd9a97e2f38ba6956deb1720c39735cdacb13c1116e61da19a1804efa354654db58cf9e4a7ff10e98cec1d89ef4f796501e67edc5b7665b4e9a
|
@@ -16,6 +16,7 @@ module Princely
|
|
16
16
|
|
17
17
|
def asset_file_path(asset)
|
18
18
|
# Remove /assets/ from generated names and try and find a matching asset
|
19
|
+
Rails.application.assets ||= Sprockets::Environment.new
|
19
20
|
Rails.application.assets.find_asset(asset.gsub(%r{/assets/}, "")).try(:pathname) || asset
|
20
21
|
end
|
21
22
|
end
|
data/lib/princely/pdf.rb
CHANGED
@@ -2,7 +2,7 @@ require 'timeout'
|
|
2
2
|
|
3
3
|
module Princely
|
4
4
|
class Pdf
|
5
|
-
attr_accessor :executable, :style_sheets, :logger, :log_file, :server_flag, :media, :javascript_flag, :timeout
|
5
|
+
attr_accessor :executable, :style_sheets, :logger, :log_file, :server_flag, :media, :javascript_flag, :timeout
|
6
6
|
|
7
7
|
# Initialize method
|
8
8
|
#
|
@@ -14,14 +14,12 @@ module Princely
|
|
14
14
|
:logger => nil,
|
15
15
|
:server_flag => true,
|
16
16
|
:media => nil,
|
17
|
-
:javascript_flag => false
|
18
|
-
:license_path => nil
|
17
|
+
:javascript_flag => false
|
19
18
|
}.merge(options)
|
20
19
|
@executable = options[:path] ? Princely::Executable.new(options[:path]) : options[:executable]
|
21
20
|
@style_sheets = ''
|
22
21
|
@log_file = options[:log_file]
|
23
22
|
@logger = options[:logger]
|
24
|
-
@license_path = options[:license_path]
|
25
23
|
@server_flag = options[:server_flag]
|
26
24
|
@media = options[:media]
|
27
25
|
@javascript_flag = options[:javascript_flag]
|
@@ -104,7 +102,6 @@ module Princely
|
|
104
102
|
# as input and output
|
105
103
|
path << " --media=#{media}" if media
|
106
104
|
path << " --silent - -o #{output_file}"
|
107
|
-
path << " --license-file=#{}" if license_path
|
108
105
|
path << " >> '#{log_file}' 2>> '#{log_file}'" if options[:output_to_log_file]
|
109
106
|
|
110
107
|
log_command path if options[:log_command]
|
data/lib/princely/rails.rb
CHANGED
data/lib/princely/version.rb
CHANGED