stamp-it 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bb7ca1f7ad84ce4879b0e41c2fdd0b6eb9069b0
4
- data.tar.gz: 5e1c50c376c3d7fc1fdccdd0bd40ed9b38c25cbd
3
+ metadata.gz: eff7d68504afde375704f781535b160d509368ea
4
+ data.tar.gz: 38e6862a8d172e905fd2ba3ee5e0de009e6d0eff
5
5
  SHA512:
6
- metadata.gz: 0e57a498d4a2dfeb0ac2b84a6034c209d171254eee0faa40a3895d7a883a331006e5e437f9f810b3bc757d308417a55b86fd4f62fdd63e92e7f42379dd671bee
7
- data.tar.gz: 25554a81518cb016ef911a9bb7f4df2af0d8e8cfab4bf5317c7ddfad50d45872c9f944f428c6fbaa158f7bee6d345b8c0b0ef640a589dc405d48de9e2283a986
6
+ metadata.gz: eb062266757eb30144dcd525ee619808c45fcbc736908fa55fab0f746de9aba745a6f445dab8a1f4d42f5d44d7c473507a9898486403c01ec62f99e4809ad181
7
+ data.tar.gz: 49b6b755b7c785065b12f74d54c7adf2dc8eef66e9fa926e806a893eeac82c32065fc8c5f4427be6b2b8649a7dd1e8b06331cf750e5b0e0d5c481fe1798590e6
data/lib/stamp_it.rb CHANGED
@@ -20,14 +20,8 @@ class StampIt
20
20
  private
21
21
 
22
22
  def find_pdftk_binary_path
23
- possible_locations = (ENV['PATH'].split(':') + %w(/usr/bin /usr/local/bin ~/bin)).uniq
23
+ possible_locations = (%w(/usr/bin /usr/local/bin ~/bin) + ENV['PATH'].split(':')).uniq
24
24
  exe_path ||= config[:exe_path] unless config.empty?
25
- exe_path ||= begin
26
- (defined?(Bundler) ? `bundle exec which pdftk` : `which pdftk`).chomp
27
- rescue
28
- nil
29
- end
30
-
31
25
  exe_path ||= possible_locations.map { |l| File.expand_path("#{l}/#{EXE_NAME}") }.find { |location| File.exist?(location) }
32
26
  exe_path || ''
33
27
  end
@@ -1,3 +1,3 @@
1
1
  class StampIt
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stamp-it
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Figarola
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails