Skip to content

Commit

Permalink
Merge pull request #1 from hoverinc/nero-fix-version-parsing-problem-…
Browse files Browse the repository at this point in the history
…in-3.0.2

Fix pdftk version parsing problem in 3.0.2
  • Loading branch information
Nero Leung authored Jul 11, 2019
2 parents a1065e8 + 67dcd58 commit 321ebab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit 321ebab

Please sign in to comment.