Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pdftk version parsing problem in 3.0.2 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
PATH
remote: .
specs:
active_pdftk (0.1.0)
active_pdftk (0.1.1)
builder (>= 2.1.2)

GEM
remote: http://rubygems.org/
specs:
builder (3.0.0)
builder (3.2.3)
diff-lcs (1.1.2)
fuubar (0.0.5)
rspec (~> 2.0)
Expand Down Expand Up @@ -35,3 +35,6 @@ DEPENDENCIES
rake (>= 0.8.7)
rspec (~> 2.6.0)
yard

BUNDLED WITH
1.17.3
2 changes: 1 addition & 1 deletion lib/active_pdftk/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def utf8_support?
# @return [String]
#
def pdftk_version
%x{#{@default_statements[:path]} --version 2>&1}.scan(/pdftk (\S*) a Handy Tool/).join
%x{#{@default_statements[:path]} --version 2>&1}.scan(/pdftk (port to java )?(\S*) a Handy Tool/).flatten.last
end

# Return the path of the pdftk library if it can be located.
Expand Down
2 changes: 1 addition & 1 deletion lib/active_pdftk/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Gem Version
module ActivePdftk
# current version number for the .gemspec
VERSION = "0.1.0"
VERSION = "0.1.1"
end