wisepdf 1.3.0 → 1.3.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/Gemfile.lock +1 -1
- data/README.md +5 -6
- data/lib/wisepdf/configuration.rb +6 -0
- data/lib/wisepdf/rails/engine.rb +1 -1
- data/lib/wisepdf/version.rb +1 -1
- data/test/configuration_test.rb +21 -0
- data/test/helper.rb +3 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bbb4da340a936ac558e02fa3c49c5b0f63ea617
|
4
|
+
data.tar.gz: ebf72951aef4d1d5c3055251b46e4f985c69e32d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3d1d4c7d73f6ba57043fb3ed1805bc6f6c1fcd667a9f8009a8244f70416114d1f01f7c21ae51c69851333cc2b09295ef806068d78fb61edf250c7a254ce1d6
|
7
|
+
data.tar.gz: 37018e359f484fca10198485d079dbb051f3fccf34526d0a161d8c9fec847db41da01b283daae6634a49a3215b73b606864902a22725286d898158ba0bc81cf1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
[](https://codeclimate.com/github/igor-alexandrov/wisepdf)
|
1
|
+
[](https://travis-ci.org/igor-alexandrov/wisepdf)
|
2
|
+
[](https://codeclimate.com/github/igor-alexandrov/wisepdf)
|
3
|
+
[](https://coveralls.io/r/igor-alexandrov/wisepdf)
|
4
|
+
[](https://gemnasium.com/igor-alexandrov/wisepdf)
|
5
|
+
[](http://badge.fury.io/rb/wisepdf)
|
7
6
|
|
8
7
|
# wisepdf
|
9
8
|
|
data/lib/wisepdf/rails/engine.rb
CHANGED
@@ -3,7 +3,7 @@ module Wisepdf
|
|
3
3
|
class Engine < ::Rails::Engine
|
4
4
|
initializer "wise_pdf.register" do
|
5
5
|
ActionController::Base.send :include, Render
|
6
|
-
if
|
6
|
+
if Wisepdf::Configuration.use_asset_pipeline?
|
7
7
|
ActionView::Base.send :include, Helper::Assets
|
8
8
|
else
|
9
9
|
ActionView::Base.send :include, Helper::Legacy
|
data/lib/wisepdf/version.rb
CHANGED
data/test/configuration_test.rb
CHANGED
@@ -51,4 +51,25 @@ class ConfigurationTest < Test::Unit::TestCase
|
|
51
51
|
assert_equal 15, Wisepdf::Configuration.options[:margin][:bottom]
|
52
52
|
end
|
53
53
|
end
|
54
|
+
|
55
|
+
context "Asset pipeline configuration" do
|
56
|
+
setup do
|
57
|
+
Wisepdf::Configuration.reset!
|
58
|
+
end
|
59
|
+
|
60
|
+
should "use the asset pipeline if assets.enabled is nil" do
|
61
|
+
::Rails.configuration.assets.enabled = nil
|
62
|
+
assert(Wisepdf::Configuration.use_asset_pipeline?)
|
63
|
+
end
|
64
|
+
|
65
|
+
should "use the asset pipeline if assets.enabled is true" do
|
66
|
+
::Rails.configuration.assets.enabled = true
|
67
|
+
assert(Wisepdf::Configuration.use_asset_pipeline?)
|
68
|
+
end
|
69
|
+
|
70
|
+
should "not use the asset pipeline if assets.enabled is false" do
|
71
|
+
::Rails.configuration.assets.enabled = false
|
72
|
+
assert(!Wisepdf::Configuration.use_asset_pipeline?)
|
73
|
+
end
|
74
|
+
end
|
54
75
|
end
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wisepdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Alexandrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
290
|
version: '0'
|
291
291
|
requirements: []
|
292
292
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.0.
|
293
|
+
rubygems_version: 2.0.3
|
294
294
|
signing_key:
|
295
295
|
specification_version: 4
|
296
296
|
summary: wkhtmltopdf for Rails done right
|
@@ -340,3 +340,4 @@ test_files:
|
|
340
340
|
- test/helper_legacy_test.rb
|
341
341
|
- test/parser_test.rb
|
342
342
|
- test/writer_test.rb
|
343
|
+
has_rdoc:
|