pdfs2pdf 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -11
- data/CHANGELOG.md +6 -0
- data/lib/pdfs2pdf/cli.rb +2 -1
- data/lib/pdfs2pdf/version.rb +1 -1
- data/pdfs2pdf.gemspec +9 -9
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18d901cf8f9878a41ceb8c276edf08a6b1063fcb
|
4
|
+
data.tar.gz: daf2b4dc63c394dfa54a50dcadf3060ee9821b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d81bb94da6bc3819326713c3757b3096b0098186bc6c927ebe12eb150cbd157c9bde585649d127bc6b3068795badf65ddd9eb1a77fa2e0337c49c97614ab3e
|
7
|
+
data.tar.gz: e5000c38f148e839f2efc2e728501d110d1aaf00cd7c0129ada8aa46c2f6a11f3e03e3b16127988c37d9e01c1fa2d8b779bda8efd37af5cbc7f989b9f3e9753d
|
data/.rubocop.yml
CHANGED
@@ -3,9 +3,10 @@ AllCops:
|
|
3
3
|
- Gemfile
|
4
4
|
- Rakefile
|
5
5
|
- bin/*
|
6
|
-
- pdfs2pdf.gemspec
|
7
6
|
- lib/**/*.rb
|
8
7
|
- test/**/*.rb
|
8
|
+
Exclude:
|
9
|
+
- pdfs2pdf.gemspec
|
9
10
|
# Avoid long parameter lists
|
10
11
|
ParameterLists:
|
11
12
|
Max: 5
|
@@ -27,12 +28,6 @@ CollectionMethods:
|
|
27
28
|
find: 'detect'
|
28
29
|
find_all: 'select'
|
29
30
|
|
30
|
-
# Do not force public/protected/private keyword to be indented at the same
|
31
|
-
# level as the def keyword. My personal preference is to outdent these keywords
|
32
|
-
# because I think when scanning code it makes it easier to identify the
|
33
|
-
# sections of code and visually separate them. When the keyword is at the same
|
34
|
-
# level I think it sort of blends in with the def keywords and makes it harder
|
35
|
-
# to scan the code and see where the sections are.
|
36
31
|
AccessModifierIndentation:
|
37
32
|
Enabled: false
|
38
33
|
|
@@ -60,10 +55,6 @@ DotPosition:
|
|
60
55
|
Encoding:
|
61
56
|
Enabled: false
|
62
57
|
|
63
|
-
# Enforce outdenting of access modifiers (i.e. public, private, protected)
|
64
|
-
AccessModifierIndentation:
|
65
|
-
EnforcedStyle: outdent
|
66
|
-
|
67
58
|
EmptyLinesAroundAccessModifier:
|
68
59
|
Enabled: true
|
69
60
|
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
### Changelogs
|
2
2
|
|
3
|
+
#### 0.2.0
|
4
|
+
|
5
|
+
- Use refinement instead of monkeypatching core class
|
6
|
+
- Update dependency gems to the latest version
|
7
|
+
- Minor code cleanup
|
8
|
+
|
3
9
|
#### 0.1.6
|
4
10
|
|
5
11
|
- Make sure that the index file is the first item in the list for nicer output
|
data/lib/pdfs2pdf/cli.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
require "thor"
|
3
2
|
require "tmpdir"
|
4
3
|
require "fileutils"
|
@@ -8,6 +7,8 @@ module Pdfs2Pdf
|
|
8
7
|
include AgileUtils::Options
|
9
8
|
include CodeLister
|
10
9
|
class CLI < Thor
|
10
|
+
using AgileUtils::HashExt
|
11
|
+
|
11
12
|
# rubocop:disable AmbiguousOperator
|
12
13
|
desc "merge", "Combine multiple pdfs into one file with combined table of content"
|
13
14
|
method_option *AgileUtils::Options::BASE_DIR
|
data/lib/pdfs2pdf/version.rb
CHANGED
data/pdfs2pdf.gemspec
CHANGED
@@ -23,18 +23,18 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
24
24
|
spec.test_files = Dir.glob("{test}/**/*")
|
25
25
|
spec.require_paths = ["lib"]
|
26
|
-
spec.add_runtime_dependency "thor"
|
27
|
-
spec.add_runtime_dependency "agile_utils", "~> 0.
|
28
|
-
spec.add_runtime_dependency "code_lister", "~> 0.
|
26
|
+
spec.add_runtime_dependency "thor", "~> 0.19.1"
|
27
|
+
spec.add_runtime_dependency "agile_utils", "~> 0.2.0"
|
28
|
+
spec.add_runtime_dependency "code_lister", "~> 0.2.0"
|
29
29
|
spec.add_runtime_dependency "pdf-reader", "~> 1.3.3"
|
30
|
-
spec.add_development_dependency "awesome_print", "~> 1.2"
|
31
|
-
spec.add_development_dependency "bundler", "~> 1.
|
32
|
-
spec.add_development_dependency "gem-ctags", "~> 1.0"
|
33
|
-
spec.add_development_dependency "guard-minitest", "~> 2.2"
|
30
|
+
spec.add_development_dependency "awesome_print", "~> 1.2.0"
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.6.2"
|
32
|
+
spec.add_development_dependency "gem-ctags", "~> 1.0.6"
|
33
|
+
spec.add_development_dependency "guard-minitest", "~> 2.2.0"
|
34
34
|
spec.add_development_dependency "minitest", "~> 5.3"
|
35
35
|
spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
|
36
36
|
spec.add_development_dependency "pry", "~> 0.9"
|
37
37
|
spec.add_development_dependency "rake", "~> 10.1"
|
38
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
39
|
-
spec.add_development_dependency "yard", "~> 0.8"
|
38
|
+
spec.add_development_dependency "rubocop", "~> 0.24.1"
|
39
|
+
spec.add_development_dependency "yard", "~> 0.8.7"
|
40
40
|
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfs2pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.19.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.19.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: agile_utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: code_lister
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.2.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.2.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pdf-reader
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,56 +72,56 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.2.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.2.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.6.2
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.6.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: gem-ctags
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 1.0.6
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 1.0.6
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: guard-minitest
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 2.2.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 2.2.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: minitest
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,28 +184,28 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.24.1
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 0.24.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: yard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: 0.8.7
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 0.8.7
|
209
209
|
description: Combine multiple pdf files into a single file with combined table of
|
210
210
|
content for quick navigation
|
211
211
|
email:
|
@@ -262,10 +262,10 @@ specification_version: 4
|
|
262
262
|
summary: Combine multiple pdf files into a single pdf with combined table of content
|
263
263
|
for quick navigation
|
264
264
|
test_files:
|
265
|
-
- test/
|
266
|
-
- test/test_helper.rb
|
265
|
+
- test/fixtures/samples/demo1_xxx.rb.xhtml.pdf
|
267
266
|
- test/fixtures/samples/demo2_xxx.rb.xhtml.pdf
|
268
|
-
- test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf
|
269
267
|
- test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml.pdf
|
270
|
-
- test/fixtures/samples/
|
268
|
+
- test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf
|
269
|
+
- test/lib/pdfs2pdf/test_pdfs2pdf.rb
|
270
|
+
- test/test_helper.rb
|
271
271
|
has_rdoc:
|