pdfkit-amd64 0.9.9 → 0.9.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pdfkit-amd64 (0.9.9)
4
+ pdfkit-amd64 (0.9.9.1)
5
5
  pdfkit
6
6
 
7
7
  GEM
@@ -3,7 +3,7 @@ require 'rbconfig'
3
3
  class PDFKit
4
4
  module AMD64
5
5
  def self.find_binary
6
- if Config::CONFIG['host_os'] =~ /x86_64-linux/i
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
@@ -1,5 +1,5 @@
1
1
  class PDFKit
2
2
  module AMD64
3
- VERSION = "0.9.9"
3
+ VERSION = "0.9.9.1"
4
4
  end
5
5
  end
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: 41
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 9
10
- version: 0.9.9
10
+ - 1
11
+ version: 0.9.9.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - "Petteri R\xC3\xA4ty"