pdf-page-count 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pdf-page-count +3 -5
- data/lib/pdf-page-count.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c221f6f2a7e195565664918789b91c508f3930b3
|
4
|
+
data.tar.gz: 742a03eb4dbdc6b1820d3302198b3a21a290eb6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709c7c5b68c2554213d14fe6e26d0e2975308ba57afc8e6430d50671d9338ca2d343973a7add0af54f717b9eab3982c3123d730fbc754f2e0e8b84604975842a
|
7
|
+
data.tar.gz: 4d1c9c0e2f3b46c3369a185e72d2a823054060d4a52a5f24a5ff917a1c019d1175d48c9027eeef9e87ceb5ba67e6dd8d205211544946dccfde628654ed98ef1e
|
data/bin/pdf-page-count
CHANGED
@@ -4,15 +4,13 @@ require 'optparse'
|
|
4
4
|
require 'rubygems'
|
5
5
|
require_relative '../lib/pdf-page-count'
|
6
6
|
|
7
|
-
spec = Gem::Specification::load('pdf-page-count.gemspec')
|
8
|
-
|
9
7
|
options = {
|
10
8
|
:threads => 10
|
11
9
|
}
|
12
10
|
|
13
11
|
opt_parser = OptionParser.new do |opt|
|
14
12
|
opt.banner = "Usage: pdf-page-count [options] [file/path] [file/path] ..."
|
15
|
-
opt.separator("Version: #{
|
13
|
+
opt.separator("Version: #{PdfPageCount::VERSION}")
|
16
14
|
opt.separator("")
|
17
15
|
opt.separator("Options")
|
18
16
|
|
@@ -31,7 +29,7 @@ opt_parser = OptionParser.new do |opt|
|
|
31
29
|
opt.on("-h", "--help", "help") do
|
32
30
|
puts opt_parser
|
33
31
|
end
|
34
|
-
|
32
|
+
|
35
33
|
opt.separator("")
|
36
34
|
end
|
37
35
|
|
@@ -53,6 +51,6 @@ else
|
|
53
51
|
end
|
54
52
|
|
55
53
|
counter.finish_counting
|
56
|
-
|
54
|
+
|
57
55
|
puts "Total Pages: #{counter.total_pages}"
|
58
56
|
end
|
data/lib/pdf-page-count.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-page-count
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leigh McCulloch
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.3.3
|
41
|
-
description: Counts the pages in single and multiple PDFs.
|
42
|
-
PDFs in directories.
|
41
|
+
description: Counts the pages in single and multiple PDFs. Capable of recursively
|
42
|
+
finding PDFs in directories.
|
43
43
|
email: leigh@mcchouse.com
|
44
44
|
executables:
|
45
45
|
- pdf-page-count
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
74
|
+
rubygems_version: 2.4.3
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Counts the pages in single and multiple PDFs.
|