html2pdf 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d51f99366f1cdaef945c9e434fdc1a14647380c0
4
- data.tar.gz: f4ebe2bc4f9d4fc410883cecce69227219e01e99
3
+ metadata.gz: b1d31309eb1f852b8a396dd153d6b6697a034679
4
+ data.tar.gz: 5a708b22e1b52d234570b14b85a126ff591f460c
5
5
  SHA512:
6
- metadata.gz: 82969eb4ccba80407ff5438d3feb237884fbfbd686a8a5d442c76763d85564e41b36ae1393b190b2a78890c334dd53a81e78e7d7cb16098c390f990007caff0a
7
- data.tar.gz: 8d7001ccc60907d7199a2959fba38e92efd970302fc23ed3fb0e253d90275717740d57e3caa66f3956cc2a41418798d4bfb23a6a8e7b65014e858362e99ec2c7
6
+ metadata.gz: 863766501f19696521a4dc8b0789183d98acef82ed4e177f6c648ad79c04d5713eadda7eac98f33182be3cf3647386eb2376bed7615142238762918f0179ea13
7
+ data.tar.gz: c01e9d70916d468be29f049996d8bba2f35b43dd846bb3ae99b4707ea4d5ec9318c4aed8f7457540f0ee503b73e49a4554703958fd807e4f0de0cfbab1002d27
data/.rubocop.yml CHANGED
@@ -27,12 +27,6 @@ CollectionMethods:
27
27
  find: 'detect'
28
28
  find_all: 'select'
29
29
 
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
30
  AccessModifierIndentation:
37
31
  Enabled: false
38
32
 
@@ -60,10 +54,6 @@ DotPosition:
60
54
  Encoding:
61
55
  Enabled: false
62
56
 
63
- # Enforce outdenting of access modifiers (i.e. public, private, protected)
64
- AccessModifierIndentation:
65
- EnforcedStyle: outdent
66
-
67
57
  EmptyLinesAroundAccessModifier:
68
58
  Enabled: true
69
59
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ### Changelogs for html2pdf
2
2
 
3
+ #### 0.2.0
4
+
5
+ - Make use of refinement instead of monkeypatching gem
6
+ - Only support for 2.0.x+
7
+ - Misc cleanup
8
+
3
9
  #### 0.1.7
4
10
 
5
11
  - Add `--disable-smart-shrinking` option in wkhtmltopdf
data/html2pdf.gemspec CHANGED
@@ -13,28 +13,28 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/agilecreativity/html2pdf"
14
14
  spec.license = "MIT"
15
15
  spec.files = Dir.glob("{bin,lib,config}/**/*") + %w[Gemfile
16
- Rakefile
17
- html2pdf.gemspec
18
- README.md
19
- CHANGELOG.md
20
- LICENSE
21
- .rubocop.yml
22
- .gitignore]
16
+ Rakefile
17
+ html2pdf.gemspec
18
+ README.md
19
+ CHANGELOG.md
20
+ LICENSE
21
+ .rubocop.yml
22
+ .gitignore]
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
26
  spec.add_runtime_dependency "thor", "~> 0.19"
27
- spec.add_runtime_dependency "agile_utils", "~> 0.1"
28
- spec.add_runtime_dependency "code_lister", "~> 0.1"
29
- spec.add_development_dependency "awesome_print", "~> 1.2"
30
- spec.add_development_dependency "bundler", "~> 1.5"
31
- spec.add_development_dependency "gem-ctags", "~> 1.0"
32
- spec.add_development_dependency "guard", "~> 2.6"
33
- spec.add_development_dependency "guard-minitest", "~> 2.2"
34
- spec.add_development_dependency "minitest", "~> 5.3"
27
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.0"
28
+ spec.add_runtime_dependency "code_lister", "~> 0.2.0"
29
+ spec.add_development_dependency "awesome_print", "~> 1.2.0"
30
+ spec.add_development_dependency "bundler", "~> 1.6.2"
31
+ spec.add_development_dependency "gem-ctags", "~> 1.0.6"
32
+ spec.add_development_dependency "guard", "~> 2.6.1"
33
+ spec.add_development_dependency "guard-minitest", "~> 2.3.1"
34
+ spec.add_development_dependency "minitest", "~> 5.4.0"
35
35
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
36
- spec.add_development_dependency "pry", "~> 0.9"
37
- spec.add_development_dependency "rake", "~> 10.1"
38
- spec.add_development_dependency "rubocop", "~> 0.23"
39
- spec.add_development_dependency "yard", "~> 0.8"
36
+ spec.add_development_dependency "pry", "~> 0.10.0"
37
+ spec.add_development_dependency "rake", "~> 10.3.2"
38
+ spec.add_development_dependency "rubocop", "~> 0.24.1"
39
+ spec.add_development_dependency "yard", "~> 0.8.7"
40
40
  end
data/lib/html2pdf/cli.rb CHANGED
@@ -4,6 +4,8 @@ require "fileutils"
4
4
  require_relative "../html2pdf"
5
5
  module Html2Pdf
6
6
  class CLI < Thor
7
+ using AgileUtils::HashExt
8
+
7
9
  # rubocop:disable AmbiguousOperator, MethodLength
8
10
  desc "export", "export multiple html files to pdfs"
9
11
  method_option *AgileUtils::Options::BASE_DIR
@@ -1,3 +1,3 @@
1
1
  module Html2Pdf
2
- VERSION = "0.1.7"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
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-06-03 00:00:00.000000000 Z
11
+ date: 2014-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -30,112 +30,112 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.1'
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: '0.1'
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: '0.1'
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: '0.1'
54
+ version: 0.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: awesome_print
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: 1.2.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: 1.2.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.5'
75
+ version: 1.6.2
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: '1.5'
82
+ version: 1.6.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: gem-ctags
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.0'
89
+ version: 1.0.6
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: '1.0'
96
+ version: 1.0.6
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.6'
103
+ version: 2.6.1
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: '2.6'
110
+ version: 2.6.1
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: '2.2'
117
+ version: 2.3.1
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: '2.2'
124
+ version: 2.3.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: minitest
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '5.3'
131
+ version: 5.4.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '5.3'
138
+ version: 5.4.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: minitest-spec-context
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -156,56 +156,56 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0.9'
159
+ version: 0.10.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0.9'
166
+ version: 0.10.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rake
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '10.1'
173
+ version: 10.3.2
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '10.1'
180
+ version: 10.3.2
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rubocop
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '0.23'
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: '0.23'
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: '0.8'
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: '0.8'
208
+ version: 0.8.7
209
209
  description: Export list of html or xhtml files to pdfs with 'wkhtmltopdf'
210
210
  email:
211
211
  - agilecreativity@gmail.com