prawn-dev 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9de83f34b297ca6c1910eeceeead1b1991b6f7aa3420b7924146c8a53ab5039a
4
+ data.tar.gz: df739d7a3c8808d407faade03ca7746bfc35012b981c002e50a9a6f8075bbf3f
5
+ SHA512:
6
+ metadata.gz: 755a6318bcd37200a69f7f952a8d7b691cdcbca74408c678fef32fda1f28ca846ec3e34988ab8d50030e645b509f9c1d3b49da270e13cd032c529ffbeba4c09e
7
+ data.tar.gz: 9aa876e3aeaad483a172b628346e7afe5376813a46a034701a5113c31c3d3fd8de10e8730570b5a713a887902884998e68018d0e9d96c620454641065bd8c74e
Binary file
@@ -0,0 +1,2 @@
1
+ @[PM|4+zG˸��8���!̰�|�2�Wy(g8�v&%]!�����ȀQ�h������I#�G�v��d,��t�:�&&z�<!�������9�
2
+ -` �1{e�~�)�Bm�����Bge��&����ĕ(`�1�܇vK�'�սr��{��JGw�����QCȯ+ԑ��Ђ<�?
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Alexander Mankuta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'prawn/dev/version'
4
+
5
+ module Prawn
6
+ module Dev
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
10
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rubygems/package_task'
4
+
5
+ unless Kernel.const_defined?('GEMSPEC')
6
+ raise StandardError, 'GEMSPEC is not defined'
7
+ end
8
+
9
+ package_task = Gem::PackageTask.new(Gem::Specification.load(GEMSPEC))
10
+ package_task.define
11
+
12
+ built_gem_path = "pkg/#{package_task.package_name}.gem"
13
+ checksum_path = "checksums/#{File.basename built_gem_path}.sha512"
14
+
15
+ file built_gem_path do
16
+ Rake::Task['package'].invoke
17
+ end
18
+
19
+ file checksum_path => built_gem_path do
20
+ require 'digest/sha2'
21
+ checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
22
+ Dir.mkdir('checksums') unless Dir.exist?('checksums')
23
+ File.write(checksum_path, checksum)
24
+ end
25
+
26
+ task checksum: checksum_path
27
+
28
+ task release: :checksum
29
+
30
+ require 'rspec/core/rake_task'
31
+
32
+ desc 'Run all rspec files'
33
+ RSpec::Core::RakeTask.new('spec') do |c|
34
+ c.rspec_opts = '-t ~unresolved'
35
+ end
36
+
37
+ require 'yard'
38
+
39
+ YARD::Rake::YardocTask.new do |t|
40
+ t.options = ['--output-dir', 'doc/html']
41
+ end
42
+ task docs: :yard
43
+
44
+ require 'rubocop/rake_task'
45
+
46
+ RuboCop::RakeTask.new
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Prawn
4
+ module Dev
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -0,0 +1,277 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.5
7
+ Exclude:
8
+ - pkg/**/*
9
+
10
+ Layout/ArgumentAlignment:
11
+ EnforcedStyle: with_fixed_indentation
12
+
13
+ Layout/ExtraSpacing:
14
+ AllowForAlignment: false
15
+
16
+ Layout/FirstArrayElementLineBreak:
17
+ Enabled: true
18
+
19
+ Layout/FirstHashElementLineBreak:
20
+ Enabled: true
21
+
22
+ Layout/FirstMethodArgumentLineBreak:
23
+ Enabled: true
24
+
25
+ Layout/FirstMethodParameterLineBreak:
26
+ Enabled: true
27
+
28
+ Layout/FirstArgumentIndentation:
29
+ EnforcedStyle: consistent
30
+
31
+ Layout/FirstArrayElementIndentation:
32
+ EnforcedStyle: consistent
33
+
34
+ Layout/FirstHashElementIndentation:
35
+ EnforcedStyle: consistent
36
+
37
+ Layout/HeredocArgumentClosingParenthesis:
38
+ Enabled: true
39
+
40
+ Layout/MultilineAssignmentLayout:
41
+ Enabled: true
42
+
43
+ Layout/MultilineHashKeyLineBreaks:
44
+ Enabled: true
45
+
46
+ Layout/MultilineMethodArgumentLineBreaks:
47
+ Enabled: true
48
+
49
+ Layout/MultilineMethodCallIndentation:
50
+ EnforcedStyle: indented
51
+
52
+ Layout/MultilineOperationIndentation:
53
+ EnforcedStyle: indented
54
+
55
+ Layout/ParameterAlignment:
56
+ EnforcedStyle: with_fixed_indentation
57
+
58
+ Layout/SpaceAroundOperators:
59
+ AllowForAlignment: false
60
+
61
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
62
+ Enabled: true
63
+
64
+
65
+ Lint/AmbiguousAssignment: # (new in 1.7)
66
+ Enabled: true
67
+
68
+ Lint/DuplicateBranch: # (new in 1.3)
69
+ Enabled: true
70
+
71
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
72
+ Enabled: true
73
+
74
+ Lint/EmptyBlock: # (new in 1.1)
75
+ Enabled: true
76
+
77
+ Lint/EmptyClass: # (new in 1.3)
78
+ Enabled: true
79
+
80
+ Lint/HeredocMethodCallPosition:
81
+ Enabled: true
82
+
83
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
84
+ Enabled: true
85
+
86
+ Lint/ToEnumArguments: # (new in 1.1)
87
+ Enabled: true
88
+
89
+ Lint/UnexpectedBlockArity: # (new in 1.5)
90
+ Enabled: true
91
+
92
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
93
+ Enabled: true
94
+
95
+
96
+ Metrics/AbcSize:
97
+ Enabled: false
98
+
99
+ Metrics/BlockLength:
100
+ IgnoredMethods:
101
+ - context
102
+ - describe
103
+ - it
104
+ - refine
105
+
106
+ Metrics/ClassLength:
107
+ Enabled: false
108
+ Metrics/CyclomaticComplexity:
109
+ Enabled: false
110
+ Metrics/MethodLength:
111
+ Enabled: false
112
+ Metrics/ModuleLength:
113
+ Enabled: false
114
+ Metrics/PerceivedComplexity:
115
+ Enabled: false
116
+
117
+ Naming/MethodParameterName:
118
+ MinNameLength: 3
119
+ AllowNamesEndingInNumbers: true
120
+ AllowedNames:
121
+ - id
122
+ - io
123
+ - to
124
+ - at
125
+ - x
126
+ - x1
127
+ - x2
128
+ - y
129
+ - y1
130
+ - y2
131
+ - r1
132
+ - r2
133
+
134
+ ForbiddenNames: []
135
+
136
+
137
+ # This one doesn't work well with YARD
138
+ Style/AccessorGrouping:
139
+ Enabled: false
140
+
141
+ Style/ArgumentsForwarding: # (new in 1.1)
142
+ Enabled: true
143
+
144
+ # We need to reference non-ascii characters when testing and explaining
145
+ # behavior related to win-1252, UTF-8 and UTF-16 encodings for example.
146
+ Style/AsciiComments:
147
+ Enabled: false
148
+
149
+ Style/AutoResourceCleanup:
150
+ Enabled: true
151
+
152
+ Style/CollectionCompact: # (new in 1.2)
153
+ Enabled: true
154
+
155
+ Style/CollectionMethods:
156
+ Enabled: true
157
+
158
+ Style/Documentation:
159
+ Enabled: false
160
+
161
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
162
+ Enabled: true
163
+
164
+ Style/GuardClause:
165
+ Enabled: false
166
+
167
+ Style/HashExcept: # (new in 1.7)
168
+ Enabled: true
169
+
170
+ # We don't always prefer modifier statements even if they do fit on a line.
171
+ Style/IfUnlessModifier:
172
+ Enabled: false
173
+ Style/WhileUntilModifier:
174
+ Enabled: false
175
+
176
+ Style/ImplicitRuntimeError:
177
+ Enabled: true
178
+
179
+ Style/NegatedIfElseCondition: # (new in 1.2)
180
+ Enabled: true
181
+
182
+ Style/NilLambda: # (new in 1.3)
183
+ Enabled: true
184
+
185
+ # This one would break our public API
186
+ Style/OptionalBooleanParameter:
187
+ Enabled: false
188
+
189
+ Style/PercentLiteralDelimiters:
190
+ PreferredDelimiters:
191
+ '%': '()'
192
+ '%i': '[]'
193
+ '%I': '[]'
194
+ '%q': '()'
195
+ '%Q': '()'
196
+ '%r': '{}'
197
+ '%s': '()'
198
+ '%w': '[]'
199
+ '%W': '[]'
200
+ '%x': '()'
201
+
202
+ Style/RedundantArgument: # (new in 1.4)
203
+ Enabled: false
204
+
205
+ Style/ReturnNil:
206
+ Enabled: true
207
+
208
+ Style/Send:
209
+ Enabled: true
210
+
211
+ Style/SwapValues: # (new in 1.1)
212
+ Enabled: true
213
+
214
+
215
+ Performance/AncestorsInclude: # (new in 1.7)
216
+ Enabled: true
217
+
218
+ Performance/BigDecimalWithNumericArgument: # (new in 1.7)
219
+ Enabled: true
220
+
221
+ Performance/BlockGivenWithExplicitBlock: # (new in 1.9)
222
+ Enabled: true
223
+
224
+ Performance/CaseWhenSplat:
225
+ Enabled: true
226
+
227
+ Performance/CollectionLiteralInLoop: # (new in 1.8)
228
+ Enabled: true
229
+
230
+ Performance/ConstantRegexp: # (new in 1.9)
231
+ Enabled: true
232
+
233
+ Performance/IoReadlines:
234
+ Enabled: true
235
+
236
+ Performance/MethodObjectAsBlock: # (new in 1.9)
237
+ Enabled: true
238
+
239
+ Performance/RedundantSortBlock: # (new in 1.7)
240
+ Enabled: true
241
+
242
+ Performance/RedundantStringChars: # (new in 1.7)
243
+ Enabled: true
244
+
245
+ Performance/ReverseFirst: # (new in 1.7)
246
+ Enabled: true
247
+
248
+ Performance/SortReverse: # (new in 1.7)
249
+ Enabled: true
250
+
251
+ Performance/Squeeze: # (new in 1.7)
252
+ Enabled: true
253
+
254
+ Performance/StringInclude: # (new in 1.7)
255
+ Enabled: true
256
+
257
+ Performance/Sum: # (new in 1.8)
258
+ Enabled: true
259
+
260
+
261
+ RSpec/DescribedClassModuleWrapping:
262
+ Enabled: true
263
+
264
+ RSpec/ExampleLength:
265
+ Enabled: false
266
+
267
+ RSpec/MessageExpectation:
268
+ Enabled: true
269
+
270
+ RSpec/MultipleExpectations:
271
+ Enabled: false
272
+
273
+ RSpec/NestedGroups:
274
+ Max: 5
275
+
276
+ RSpec/NotToNot:
277
+ EnforcedStyle: to_not
metadata ADDED
@@ -0,0 +1,170 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: prawn-dev
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Mankuta
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhhbGV4
14
+ L0RDPXBvaW50bGVzcy9EQz1vbmUwHhcNMjAwODAxMTQxMjE1WhcNMjEwODAxMTQx
15
+ MjE1WjAjMSEwHwYDVQQDDBhhbGV4L0RDPXBvaW50bGVzcy9EQz1vbmUwggEiMA0G
16
+ CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPOVLPGEK+eaP6zJfifrpWvPTg4qo3
17
+ XNJJPom80SwqX2hVCVsRDK4RYgKUQqKRQzHhlx14wZHwWLETBVbNDGX3uqyCnTWU
18
+ JUKh3ydiZShXpNHoV/NW7hhEYvNsDcBAjYTmbvXOhuYCo0Tz/0N2Oiun/0wIICtP
19
+ vytY9TY0/lklWjAbsqJjNOu3o8IYkJBAN/rU96E/6WhFwjnxLcTnV9RfFRXdjG5j
20
+ CughoB2xSwKX8gwbQ8fsnaZRmdyDGYNpz6sGF0zycfiLkTttbLA2nYATCALy98CH
21
+ nsyZNsTjb4WINCuY2yEDjwesw9f/ROkNC68EgQ5M+aMjp+D0WcYGfzojAgMBAAGj
22
+ dzB1MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRPgIwSVbeonua/
23
+ Ny/8576oxdUbrjAdBgNVHREEFjAUgRJhbGV4QHBvaW50bGVzcy5vbmUwHQYDVR0S
24
+ BBYwFIESYWxleEBwb2ludGxlc3Mub25lMA0GCSqGSIb3DQEBCwUAA4IBAQAzhGxF
25
+ M0bXJ9GWD9vdVHOyzBQBJcJAvnsz2yV3+r4eJBsQynFIscsea8lHFL/d1eHYP0mN
26
+ k0fhK+WDcPlrj0Sn/Ezhk2qogTIekwDOK6pZkGRQzD45leJqQMnYd+/TXK3ri485
27
+ Gi4oJ6NitnnUT59SQnjD5JcENfc0EcRzclmVRFE8W4O+ORgo4Dypq1rwYUzxeyUk
28
+ mP5jNBWtH+hGUph28GQb0Hph6YnQb8zEFB88Xq80PK1SzkIPHpbTBk9mwPf6ypeX
29
+ Un1TJEahAlgENVml6CyDXSwk0H8N1V3gm1mb9Fe1T2Z/kAzvjo0qTDEtMVLU7Bxh
30
+ uqMUrdETjTnRYCVq
31
+ -----END CERTIFICATE-----
32
+ date: 2020-12-27 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
35
+ name: rake
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rubocop
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.7'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.7'
76
+ - !ruby/object:Gem::Dependency
77
+ name: rubocop-performance
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.9'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.9'
90
+ - !ruby/object:Gem::Dependency
91
+ name: rubocop-rspec
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.1'
104
+ - !ruby/object:Gem::Dependency
105
+ name: simplecov
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.20.0
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.20.0
118
+ - !ruby/object:Gem::Dependency
119
+ name: yard
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.9.17
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.9.17
132
+ description:
133
+ email:
134
+ - alex@pointless.one
135
+ executables: []
136
+ extensions: []
137
+ extra_rdoc_files: []
138
+ files:
139
+ - LICENSE.txt
140
+ - lib/prawn/dev.rb
141
+ - lib/prawn/dev/tasks.rb
142
+ - lib/prawn/dev/version.rb
143
+ - rubocop.yml
144
+ homepage: https://prawnpdf.org/
145
+ licenses:
146
+ - MIT
147
+ metadata:
148
+ allowed_push_host: https://rubygems.org
149
+ homepage_uri: https://prawnpdf.org/
150
+ source_code_uri: https://github.com/prawnpdf/prawn-dev
151
+ post_install_message:
152
+ rdoc_options: []
153
+ require_paths:
154
+ - lib
155
+ required_ruby_version: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 2.5.0
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '2.0'
165
+ requirements: []
166
+ rubygems_version: 3.1.4
167
+ signing_key:
168
+ specification_version: 4
169
+ summary: Shared tools for Prawn projects development
170
+ test_files: []
Binary file