pdfkit-amd64 0.9.9 → 0.9.9.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.
- data/Gemfile.lock +1 -1
- data/lib/pdfkit-amd64/find_binary.rb +1 -1
- data/lib/pdfkit-amd64/version.rb +1 -1
- data/spec/amd64_spec.rb +1 -1
- metadata +3 -2
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ require 'rbconfig'
|
|
3
3
|
class PDFKit
|
4
4
|
module AMD64
|
5
5
|
def self.find_binary
|
6
|
-
if Config::CONFIG['
|
6
|
+
if Config::CONFIG['arch'] =~ /x86_64-linux/i
|
7
7
|
binary = File.join(File.dirname(__FILE__), '../../bin/wkhtmltopdf-amd64')
|
8
8
|
else
|
9
9
|
binary = `which wkhtmltopdf 2> /dev/null`.strip
|
data/lib/pdfkit-amd64/version.rb
CHANGED
data/spec/amd64_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require 'pdfkit-amd64/find_binary'
|
|
2
2
|
|
3
3
|
describe PDFKit::AMD64 do
|
4
4
|
it "should find the binary inside the gem" do
|
5
|
-
Config::CONFIG.should_receive(:[]).and_return('x86_64-linux')
|
5
|
+
Config::CONFIG.should_receive(:[]).with('arch').and_return('x86_64-linux')
|
6
6
|
binary = PDFKit::AMD64.find_binary
|
7
7
|
File.executable?(binary).should be_true
|
8
8
|
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfkit-amd64
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 33
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 9
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.9.9.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- "Petteri R\xC3\xA4ty"
|