princely 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60c51f575db0737a9fc6a0d57d14902048f6c504
4
- data.tar.gz: 375ee87716da9847bae4c95dd526347196708c9c
3
+ metadata.gz: 02972234121592908f6d7a29626f2f13e26c9d79
4
+ data.tar.gz: a4e63bf9e8705e6fa6c369d1f683b2610fac3330
5
5
  SHA512:
6
- metadata.gz: 82a6b39938457b082524721e5bc631810917bfd4b0252b35c786699054c79604380fc8f62bc40a83fb284cf5f8c86d54a9eaa1d74fa73a573507aa61d4700105
7
- data.tar.gz: 8fdd1d1d74c77590e1d23fcd4edb4acde4e720045e9cf92becf18ebff907349e552df2fcc5e72cf4bc7a2aa86f7fcdef029633e3a184775ec39e5099e4f6045c
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
@@ -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, :license_path
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]
@@ -1,5 +1,4 @@
1
1
  require 'princely/pdf_helper'
2
- require 'princely/view_helpers'
3
2
 
4
3
  if Mime::Type.lookup_by_extension(:pdf) != 'application/pdf'
5
4
  Mime::Type.register 'application/pdf', :pdf
@@ -2,7 +2,7 @@ module Princely
2
2
  class Version
3
3
  class << self
4
4
  def version
5
- '2.0.0'
5
+ '2.0.1'
6
6
  end
7
7
 
8
8
  def to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: princely
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh