ruby-vips 2.0.15 → 2.1.2
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 +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
- data/.github/workflows/test.yml +80 -0
- data/.standard.yml +17 -0
- data/.yardopts +0 -1
- data/CHANGELOG.md +39 -0
- data/Gemfile +3 -1
- data/README.md +42 -41
- data/Rakefile +13 -21
- data/TODO +14 -14
- data/VERSION +1 -1
- data/example/annotate.rb +6 -6
- data/example/connection.rb +26 -0
- data/example/daltonize8.rb +6 -6
- data/example/draw_lines.rb +30 -0
- data/example/example1.rb +4 -4
- data/example/example2.rb +6 -6
- data/example/example3.rb +5 -5
- data/example/example4.rb +2 -2
- data/example/example5.rb +4 -4
- data/example/inheritance_with_refcount.rb +35 -36
- data/example/progress.rb +30 -0
- data/example/thumb.rb +6 -6
- data/example/trim8.rb +1 -1
- data/example/watermark.rb +2 -2
- data/example/wobble.rb +1 -1
- data/lib/ruby-vips.rb +1 -1
- data/lib/vips.rb +191 -79
- data/lib/vips/blend_mode.rb +29 -25
- data/lib/vips/connection.rb +46 -0
- data/lib/vips/gobject.rb +27 -12
- data/lib/vips/gvalue.rb +62 -50
- data/lib/vips/image.rb +475 -256
- data/lib/vips/interpolate.rb +3 -2
- data/lib/vips/methods.rb +788 -121
- data/lib/vips/mutableimage.rb +173 -0
- data/lib/vips/object.rb +171 -54
- data/lib/vips/operation.rb +272 -117
- data/lib/vips/region.rb +73 -0
- data/lib/vips/source.rb +88 -0
- data/lib/vips/sourcecustom.rb +89 -0
- data/lib/vips/target.rb +86 -0
- data/lib/vips/targetcustom.rb +77 -0
- data/lib/vips/version.rb +1 -1
- data/ruby-vips.gemspec +26 -20
- metadata +39 -50
- data/.rubocop.yml +0 -22
- data/.rubocop_todo.yml +0 -515
- data/.travis.yml +0 -62
- data/install-vips.sh +0 -26
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-vips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Cupitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.12'
|
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: '1.
|
26
|
+
version: '1.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.0'
|
34
34
|
type: :development
|
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: '12.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,34 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.9.11
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: redcarpet
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.3'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.3'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: github-markup
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.4'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.4'
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: bundler
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,22 +87,24 @@ dependencies:
|
|
115
87
|
- !ruby/object:Gem::Version
|
116
88
|
version: '3'
|
117
89
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
90
|
+
name: standard
|
119
91
|
requirement: !ruby/object:Gem::Requirement
|
120
92
|
requirements:
|
121
|
-
- - "
|
93
|
+
- - ">="
|
122
94
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0
|
95
|
+
version: '0'
|
124
96
|
type: :development
|
125
97
|
prerelease: false
|
126
98
|
version_requirements: !ruby/object:Gem::Requirement
|
127
99
|
requirements:
|
128
|
-
- - "
|
100
|
+
- - ">="
|
129
101
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0
|
131
|
-
description: ruby-vips is a binding for the
|
132
|
-
fast and it can process
|
133
|
-
|
102
|
+
version: '0'
|
103
|
+
description: "ruby-vips is a binding for the libvips image processing library. It
|
104
|
+
is fast \n and it can process large images without loading the whole image in
|
105
|
+
memory."
|
106
|
+
email:
|
107
|
+
- jcupitt@gmail.com
|
134
108
|
executables: []
|
135
109
|
extensions: []
|
136
110
|
extra_rdoc_files:
|
@@ -138,10 +112,10 @@ extra_rdoc_files:
|
|
138
112
|
- README.md
|
139
113
|
- TODO
|
140
114
|
files:
|
115
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
116
|
+
- ".github/workflows/test.yml"
|
141
117
|
- ".gitignore"
|
142
|
-
- ".
|
143
|
-
- ".rubocop_todo.yml"
|
144
|
-
- ".travis.yml"
|
118
|
+
- ".standard.yml"
|
145
119
|
- ".yardopts"
|
146
120
|
- CHANGELOG.md
|
147
121
|
- Gemfile
|
@@ -151,18 +125,20 @@ files:
|
|
151
125
|
- TODO
|
152
126
|
- VERSION
|
153
127
|
- example/annotate.rb
|
128
|
+
- example/connection.rb
|
154
129
|
- example/daltonize8.rb
|
130
|
+
- example/draw_lines.rb
|
155
131
|
- example/example1.rb
|
156
132
|
- example/example2.rb
|
157
133
|
- example/example3.rb
|
158
134
|
- example/example4.rb
|
159
135
|
- example/example5.rb
|
160
136
|
- example/inheritance_with_refcount.rb
|
137
|
+
- example/progress.rb
|
161
138
|
- example/thumb.rb
|
162
139
|
- example/trim8.rb
|
163
140
|
- example/watermark.rb
|
164
141
|
- example/wobble.rb
|
165
|
-
- install-vips.sh
|
166
142
|
- lib/ruby-vips.rb
|
167
143
|
- lib/vips.rb
|
168
144
|
- lib/vips/access.rb
|
@@ -173,6 +149,7 @@ files:
|
|
173
149
|
- lib/vips/blend_mode.rb
|
174
150
|
- lib/vips/coding.rb
|
175
151
|
- lib/vips/compass_direction.rb
|
152
|
+
- lib/vips/connection.rb
|
176
153
|
- lib/vips/direction.rb
|
177
154
|
- lib/vips/extend.rb
|
178
155
|
- lib/vips/gobject.rb
|
@@ -183,6 +160,7 @@ files:
|
|
183
160
|
- lib/vips/interpretation.rb
|
184
161
|
- lib/vips/kernel.rb
|
185
162
|
- lib/vips/methods.rb
|
163
|
+
- lib/vips/mutableimage.rb
|
186
164
|
- lib/vips/object.rb
|
187
165
|
- lib/vips/operation.rb
|
188
166
|
- lib/vips/operationboolean.rb
|
@@ -193,13 +171,24 @@ files:
|
|
193
171
|
- lib/vips/operationmath2.rb
|
194
172
|
- lib/vips/operationrelational.rb
|
195
173
|
- lib/vips/operationround.rb
|
174
|
+
- lib/vips/region.rb
|
196
175
|
- lib/vips/size.rb
|
176
|
+
- lib/vips/source.rb
|
177
|
+
- lib/vips/sourcecustom.rb
|
178
|
+
- lib/vips/target.rb
|
179
|
+
- lib/vips/targetcustom.rb
|
197
180
|
- lib/vips/version.rb
|
198
181
|
- ruby-vips.gemspec
|
199
182
|
homepage: http://github.com/libvips/ruby-vips
|
200
183
|
licenses:
|
201
184
|
- MIT
|
202
|
-
metadata:
|
185
|
+
metadata:
|
186
|
+
bug_tracker_uri: https://github.com/libvips/ruby-vips/issues
|
187
|
+
changelog_uri: https://github.com/libvips/ruby-vips/blob/master/CHANGELOG.md
|
188
|
+
documentation_uri: https://www.rubydoc.info/gems/ruby-vips
|
189
|
+
homepage_uri: http://github.com/libvips/ruby-vips
|
190
|
+
source_code_uri: https://github.com/libvips/ruby-vips
|
191
|
+
msys2_mingw_dependencies: libvips
|
203
192
|
post_install_message:
|
204
193
|
rdoc_options: []
|
205
194
|
require_paths:
|
@@ -208,15 +197,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
197
|
requirements:
|
209
198
|
- - ">="
|
210
199
|
- !ruby/object:Gem::Version
|
211
|
-
version:
|
200
|
+
version: 2.0.0
|
212
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
202
|
requirements:
|
214
203
|
- - ">="
|
215
204
|
- !ruby/object:Gem::Version
|
216
205
|
version: '0'
|
217
206
|
requirements: []
|
218
|
-
rubygems_version: 3.
|
207
|
+
rubygems_version: 3.1.2
|
219
208
|
signing_key:
|
220
209
|
specification_version: 4
|
221
|
-
summary:
|
210
|
+
summary: A fast image processing library with low memory needs
|
222
211
|
test_files: []
|
data/.rubocop.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
TargetRubyVersion: 2.6
|
5
|
-
|
6
|
-
Gemspec/OrderedDependencies:
|
7
|
-
Enabled: false
|
8
|
-
|
9
|
-
# we have some long kw arg calls
|
10
|
-
Layout/AlignHash:
|
11
|
-
EnforcedLastArgumentHashStyle: ignore_implicit
|
12
|
-
|
13
|
-
# methods.rb is autogenerated and we don't expect the doc comments to align
|
14
|
-
Layout/CommentIndentation:
|
15
|
-
Exclude:
|
16
|
-
- 'lib/vips/methods.rb'
|
17
|
-
Layout/EmptyLinesAroundClassBody:
|
18
|
-
Exclude:
|
19
|
-
- 'lib/vips/methods.rb'
|
20
|
-
Layout/TrailingWhitespace:
|
21
|
-
Exclude:
|
22
|
-
- 'lib/vips/methods.rb'
|
data/.rubocop_todo.yml
DELETED
@@ -1,515 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-06-12 17:59:17 +0100 using RuboCop version 0.71.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 43
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
12
|
-
# SupportedStyles: with_first_argument, with_fixed_indentation
|
13
|
-
Layout/AlignArguments:
|
14
|
-
Exclude:
|
15
|
-
- 'example/inheritance_with_refcount.rb'
|
16
|
-
- 'lib/vips.rb'
|
17
|
-
- 'lib/vips/gvalue.rb'
|
18
|
-
- 'lib/vips/image.rb'
|
19
|
-
- 'lib/vips/object.rb'
|
20
|
-
- 'spec/vips_spec.rb'
|
21
|
-
|
22
|
-
# Offense count: 5
|
23
|
-
Lint/IneffectiveAccessModifier:
|
24
|
-
Exclude:
|
25
|
-
- 'lib/vips/image.rb'
|
26
|
-
|
27
|
-
# Offense count: 7
|
28
|
-
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
29
|
-
Lint/UselessAccessModifier:
|
30
|
-
Exclude:
|
31
|
-
- 'lib/vips/image.rb'
|
32
|
-
- 'lib/vips/object.rb'
|
33
|
-
- 'lib/vips/operation.rb'
|
34
|
-
|
35
|
-
# Offense count: 6
|
36
|
-
Lint/UselessComparison:
|
37
|
-
Exclude:
|
38
|
-
- 'spec/image_spec.rb'
|
39
|
-
|
40
|
-
# Offense count: 7
|
41
|
-
Metrics/AbcSize:
|
42
|
-
Max: 114
|
43
|
-
|
44
|
-
# Offense count: 6
|
45
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
46
|
-
# ExcludedMethods: refine
|
47
|
-
Metrics/BlockLength:
|
48
|
-
Max: 508
|
49
|
-
|
50
|
-
# Offense count: 3
|
51
|
-
# Configuration parameters: CountComments.
|
52
|
-
Metrics/ClassLength:
|
53
|
-
Max: 518
|
54
|
-
|
55
|
-
# Offense count: 6
|
56
|
-
Metrics/CyclomaticComplexity:
|
57
|
-
Max: 28
|
58
|
-
|
59
|
-
# Offense count: 12
|
60
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
61
|
-
Metrics/MethodLength:
|
62
|
-
Max: 150
|
63
|
-
|
64
|
-
# Offense count: 1
|
65
|
-
# Configuration parameters: CountComments.
|
66
|
-
Metrics/ModuleLength:
|
67
|
-
Max: 150
|
68
|
-
|
69
|
-
# Offense count: 4
|
70
|
-
Metrics/PerceivedComplexity:
|
71
|
-
Max: 32
|
72
|
-
|
73
|
-
# Offense count: 9
|
74
|
-
Naming/AccessorMethodName:
|
75
|
-
Exclude:
|
76
|
-
- 'example/inheritance_with_refcount.rb'
|
77
|
-
- 'lib/vips.rb'
|
78
|
-
- 'lib/vips/image.rb'
|
79
|
-
- 'lib/vips/operation.rb'
|
80
|
-
|
81
|
-
# Offense count: 1
|
82
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
83
|
-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
84
|
-
Naming/FileName:
|
85
|
-
Exclude:
|
86
|
-
- 'lib/ruby-vips.rb'
|
87
|
-
|
88
|
-
# Offense count: 1
|
89
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
90
|
-
# NamePrefix: is_, has_, have_
|
91
|
-
# NamePrefixBlacklist: is_, has_, have_
|
92
|
-
# NameWhitelist: is_a?
|
93
|
-
# MethodDefinitionMacros: define_method, define_singleton_method
|
94
|
-
Naming/PredicateName:
|
95
|
-
Exclude:
|
96
|
-
- 'spec/**/*'
|
97
|
-
- 'lib/vips/image.rb'
|
98
|
-
|
99
|
-
# Offense count: 6
|
100
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
101
|
-
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
102
|
-
Naming/UncommunicativeMethodParamName:
|
103
|
-
Exclude:
|
104
|
-
- 'lib/vips.rb'
|
105
|
-
- 'lib/vips/image.rb'
|
106
|
-
|
107
|
-
# Offense count: 1
|
108
|
-
# Cop supports --auto-correct.
|
109
|
-
# Configuration parameters: EnforcedStyle.
|
110
|
-
# SupportedStyles: prefer_alias, prefer_alias_method
|
111
|
-
Style/Alias:
|
112
|
-
Exclude:
|
113
|
-
- 'lib/vips/image.rb'
|
114
|
-
|
115
|
-
# Offense count: 1
|
116
|
-
# Cop supports --auto-correct.
|
117
|
-
# Configuration parameters: EnforcedStyle.
|
118
|
-
# SupportedStyles: always, conditionals
|
119
|
-
Style/AndOr:
|
120
|
-
Exclude:
|
121
|
-
- 'example/example2.rb'
|
122
|
-
|
123
|
-
# Offense count: 3
|
124
|
-
# Cop supports --auto-correct.
|
125
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
126
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
127
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
128
|
-
# FunctionalMethods: let, let!, subject, watch
|
129
|
-
# IgnoredMethods: lambda, proc, it
|
130
|
-
Style/BlockDelimiters:
|
131
|
-
Exclude:
|
132
|
-
- 'example/inheritance_with_refcount.rb'
|
133
|
-
- 'lib/vips.rb'
|
134
|
-
- 'lib/vips/operation.rb'
|
135
|
-
|
136
|
-
# Offense count: 6
|
137
|
-
# Cop supports --auto-correct.
|
138
|
-
# Configuration parameters: EnforcedStyle.
|
139
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
140
|
-
Style/BracesAroundHashParameters:
|
141
|
-
Exclude:
|
142
|
-
- 'spec/vips_spec.rb'
|
143
|
-
|
144
|
-
# Offense count: 5
|
145
|
-
Style/ClassVars:
|
146
|
-
Exclude:
|
147
|
-
- 'lib/vips/image.rb'
|
148
|
-
|
149
|
-
# Offense count: 168
|
150
|
-
# Cop supports --auto-correct.
|
151
|
-
Style/ColonMethodCall:
|
152
|
-
Exclude:
|
153
|
-
- 'example/example1.rb'
|
154
|
-
- 'example/example2.rb'
|
155
|
-
- 'example/example3.rb'
|
156
|
-
- 'example/example4.rb'
|
157
|
-
- 'example/inheritance_with_refcount.rb'
|
158
|
-
- 'lib/vips.rb'
|
159
|
-
- 'lib/vips/gobject.rb'
|
160
|
-
- 'lib/vips/gvalue.rb'
|
161
|
-
- 'lib/vips/image.rb'
|
162
|
-
- 'lib/vips/interpolate.rb'
|
163
|
-
- 'lib/vips/object.rb'
|
164
|
-
- 'lib/vips/operation.rb'
|
165
|
-
- 'spec/image_spec.rb'
|
166
|
-
- 'spec/spec_helper.rb'
|
167
|
-
- 'spec/vips_spec.rb'
|
168
|
-
|
169
|
-
# Offense count: 3
|
170
|
-
# Cop supports --auto-correct.
|
171
|
-
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
172
|
-
# SupportedStyles: assign_to_condition, assign_inside_condition
|
173
|
-
Style/ConditionalAssignment:
|
174
|
-
Exclude:
|
175
|
-
- 'lib/vips.rb'
|
176
|
-
|
177
|
-
# Offense count: 44
|
178
|
-
Style/Documentation:
|
179
|
-
Exclude:
|
180
|
-
- 'spec/**/*'
|
181
|
-
- 'test/**/*'
|
182
|
-
- 'example/inheritance_with_refcount.rb'
|
183
|
-
- 'example/wobble.rb'
|
184
|
-
- 'lib/vips.rb'
|
185
|
-
- 'lib/vips/gobject.rb'
|
186
|
-
- 'lib/vips/gvalue.rb'
|
187
|
-
- 'lib/vips/image.rb'
|
188
|
-
- 'lib/vips/interpolate.rb'
|
189
|
-
- 'lib/vips/object.rb'
|
190
|
-
- 'lib/vips/operation.rb'
|
191
|
-
|
192
|
-
# Offense count: 2
|
193
|
-
# Cop supports --auto-correct.
|
194
|
-
Style/Encoding:
|
195
|
-
Exclude:
|
196
|
-
- 'Rakefile'
|
197
|
-
- 'ruby-vips.gemspec'
|
198
|
-
|
199
|
-
# Offense count: 1
|
200
|
-
# Cop supports --auto-correct.
|
201
|
-
Style/EvenOdd:
|
202
|
-
Exclude:
|
203
|
-
- 'lib/vips/image.rb'
|
204
|
-
|
205
|
-
# Offense count: 2
|
206
|
-
# Cop supports --auto-correct.
|
207
|
-
Style/ExpandPathArguments:
|
208
|
-
Exclude:
|
209
|
-
- 'ruby-vips.gemspec'
|
210
|
-
- 'spec/spec_helper.rb'
|
211
|
-
|
212
|
-
# Offense count: 50
|
213
|
-
# Cop supports --auto-correct.
|
214
|
-
# Configuration parameters: EnforcedStyle.
|
215
|
-
# SupportedStyles: always, never
|
216
|
-
Style/FrozenStringLiteralComment:
|
217
|
-
Enabled: false
|
218
|
-
|
219
|
-
# Offense count: 5
|
220
|
-
# Configuration parameters: AllowedVariables.
|
221
|
-
Style/GlobalVars:
|
222
|
-
Exclude:
|
223
|
-
- 'example/inheritance_with_refcount.rb'
|
224
|
-
|
225
|
-
# Offense count: 5
|
226
|
-
# Configuration parameters: MinBodyLength.
|
227
|
-
Style/GuardClause:
|
228
|
-
Exclude:
|
229
|
-
- 'example/inheritance_with_refcount.rb'
|
230
|
-
- 'lib/vips.rb'
|
231
|
-
|
232
|
-
# Offense count: 53
|
233
|
-
# Cop supports --auto-correct.
|
234
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
235
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
236
|
-
Style/HashSyntax:
|
237
|
-
Exclude:
|
238
|
-
- 'Rakefile'
|
239
|
-
- 'example/annotate.rb'
|
240
|
-
- 'example/daltonize8.rb'
|
241
|
-
- 'example/example3.rb'
|
242
|
-
- 'example/example5.rb'
|
243
|
-
- 'lib/vips/image.rb'
|
244
|
-
- 'lib/vips/object.rb'
|
245
|
-
- 'lib/vips/operation.rb'
|
246
|
-
- 'spec/image_spec.rb'
|
247
|
-
- 'spec/spec_helper.rb'
|
248
|
-
- 'spec/vips_spec.rb'
|
249
|
-
|
250
|
-
# Offense count: 30
|
251
|
-
# Cop supports --auto-correct.
|
252
|
-
Style/IfUnlessModifier:
|
253
|
-
Exclude:
|
254
|
-
- 'example/daltonize8.rb'
|
255
|
-
- 'example/example2.rb'
|
256
|
-
- 'example/example5.rb'
|
257
|
-
- 'example/inheritance_with_refcount.rb'
|
258
|
-
- 'lib/vips.rb'
|
259
|
-
- 'lib/vips/gvalue.rb'
|
260
|
-
- 'lib/vips/image.rb'
|
261
|
-
- 'lib/vips/operation.rb'
|
262
|
-
- 'ruby-vips.gemspec'
|
263
|
-
|
264
|
-
# Offense count: 4
|
265
|
-
# Cop supports --auto-correct.
|
266
|
-
# Configuration parameters: EnforcedStyle.
|
267
|
-
# SupportedStyles: call, braces
|
268
|
-
Style/LambdaCall:
|
269
|
-
Exclude:
|
270
|
-
- 'lib/vips/image.rb'
|
271
|
-
|
272
|
-
# Offense count: 11
|
273
|
-
# Cop supports --auto-correct.
|
274
|
-
Style/LineEndConcatenation:
|
275
|
-
Exclude:
|
276
|
-
- 'lib/vips/gvalue.rb'
|
277
|
-
- 'lib/vips/image.rb'
|
278
|
-
- 'lib/vips/operation.rb'
|
279
|
-
|
280
|
-
# Offense count: 81
|
281
|
-
# Cop supports --auto-correct.
|
282
|
-
# Configuration parameters: EnforcedStyle.
|
283
|
-
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
284
|
-
Style/MethodDefParentheses:
|
285
|
-
Exclude:
|
286
|
-
- 'example/inheritance_with_refcount.rb'
|
287
|
-
- 'lib/vips.rb'
|
288
|
-
- 'lib/vips/gobject.rb'
|
289
|
-
- 'lib/vips/gvalue.rb'
|
290
|
-
- 'lib/vips/image.rb'
|
291
|
-
- 'lib/vips/interpolate.rb'
|
292
|
-
- 'lib/vips/object.rb'
|
293
|
-
- 'lib/vips/operation.rb'
|
294
|
-
|
295
|
-
# Offense count: 2
|
296
|
-
Style/MethodMissingSuper:
|
297
|
-
Exclude:
|
298
|
-
- 'lib/vips/image.rb'
|
299
|
-
|
300
|
-
# Offense count: 2
|
301
|
-
Style/MissingRespondToMissing:
|
302
|
-
Exclude:
|
303
|
-
- 'lib/vips/image.rb'
|
304
|
-
|
305
|
-
# Offense count: 1
|
306
|
-
# Cop supports --auto-correct.
|
307
|
-
# Configuration parameters: EnforcedStyle, Autocorrect.
|
308
|
-
# SupportedStyles: module_function, extend_self
|
309
|
-
Style/ModuleFunction:
|
310
|
-
Exclude:
|
311
|
-
- 'spec/spec_helper.rb'
|
312
|
-
|
313
|
-
# Offense count: 5
|
314
|
-
Style/MultilineTernaryOperator:
|
315
|
-
Exclude:
|
316
|
-
- 'lib/vips/image.rb'
|
317
|
-
|
318
|
-
# Offense count: 1
|
319
|
-
Style/MultipleComparison:
|
320
|
-
Exclude:
|
321
|
-
- 'lib/vips/image.rb'
|
322
|
-
|
323
|
-
# Offense count: 6
|
324
|
-
# Cop supports --auto-correct.
|
325
|
-
# Configuration parameters: EnforcedStyle.
|
326
|
-
# SupportedStyles: literals, strict
|
327
|
-
Style/MutableConstant:
|
328
|
-
Exclude:
|
329
|
-
- 'example/inheritance_with_refcount.rb'
|
330
|
-
- 'lib/vips.rb'
|
331
|
-
- 'lib/vips/object.rb'
|
332
|
-
- 'lib/vips/operation.rb'
|
333
|
-
- 'lib/vips/version.rb'
|
334
|
-
|
335
|
-
# Offense count: 6
|
336
|
-
# Cop supports --auto-correct.
|
337
|
-
# Configuration parameters: Whitelist.
|
338
|
-
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
339
|
-
Style/NestedParenthesizedCalls:
|
340
|
-
Exclude:
|
341
|
-
- 'lib/vips/image.rb'
|
342
|
-
|
343
|
-
# Offense count: 3
|
344
|
-
# Cop supports --auto-correct.
|
345
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
346
|
-
# SupportedStyles: skip_modifier_ifs, always
|
347
|
-
Style/Next:
|
348
|
-
Exclude:
|
349
|
-
- 'lib/vips/operation.rb'
|
350
|
-
|
351
|
-
# Offense count: 15
|
352
|
-
# Cop supports --auto-correct.
|
353
|
-
# Configuration parameters: EnforcedStyle.
|
354
|
-
# SupportedStyles: predicate, comparison
|
355
|
-
Style/NilComparison:
|
356
|
-
Exclude:
|
357
|
-
- 'lib/vips/gvalue.rb'
|
358
|
-
- 'lib/vips/image.rb'
|
359
|
-
- 'lib/vips/interpolate.rb'
|
360
|
-
- 'lib/vips/operation.rb'
|
361
|
-
|
362
|
-
# Offense count: 2
|
363
|
-
# Cop supports --auto-correct.
|
364
|
-
# Configuration parameters: IncludeSemanticChanges.
|
365
|
-
Style/NonNilCheck:
|
366
|
-
Exclude:
|
367
|
-
- 'lib/vips.rb'
|
368
|
-
- 'lib/vips/operation.rb'
|
369
|
-
|
370
|
-
# Offense count: 4
|
371
|
-
# Cop supports --auto-correct.
|
372
|
-
# Configuration parameters: Strict.
|
373
|
-
Style/NumericLiterals:
|
374
|
-
MinDigits: 9
|
375
|
-
|
376
|
-
# Offense count: 10
|
377
|
-
# Cop supports --auto-correct.
|
378
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
379
|
-
# SupportedStyles: predicate, comparison
|
380
|
-
Style/NumericPredicate:
|
381
|
-
Exclude:
|
382
|
-
- 'spec/**/*'
|
383
|
-
- 'lib/vips/image.rb'
|
384
|
-
- 'lib/vips/operation.rb'
|
385
|
-
|
386
|
-
# Offense count: 4
|
387
|
-
# Cop supports --auto-correct.
|
388
|
-
# Configuration parameters: EnforcedStyle.
|
389
|
-
# SupportedStyles: short, verbose
|
390
|
-
Style/PreferredHashMethods:
|
391
|
-
Exclude:
|
392
|
-
- 'lib/vips/operation.rb'
|
393
|
-
|
394
|
-
# Offense count: 2
|
395
|
-
# Cop supports --auto-correct.
|
396
|
-
Style/Proc:
|
397
|
-
Exclude:
|
398
|
-
- 'lib/vips.rb'
|
399
|
-
- 'lib/vips/operation.rb'
|
400
|
-
|
401
|
-
# Offense count: 1
|
402
|
-
# Cop supports --auto-correct.
|
403
|
-
Style/RedundantConditional:
|
404
|
-
Exclude:
|
405
|
-
- 'lib/vips/gvalue.rb'
|
406
|
-
|
407
|
-
# Offense count: 13
|
408
|
-
# Cop supports --auto-correct.
|
409
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
410
|
-
Style/RedundantReturn:
|
411
|
-
Exclude:
|
412
|
-
- 'lib/vips/gvalue.rb'
|
413
|
-
- 'lib/vips/image.rb'
|
414
|
-
- 'lib/vips/object.rb'
|
415
|
-
- 'lib/vips/operation.rb'
|
416
|
-
|
417
|
-
# Offense count: 4
|
418
|
-
# Cop supports --auto-correct.
|
419
|
-
Style/RedundantSelf:
|
420
|
-
Exclude:
|
421
|
-
- 'example/inheritance_with_refcount.rb'
|
422
|
-
- 'lib/vips/gobject.rb'
|
423
|
-
|
424
|
-
# Offense count: 1
|
425
|
-
# Cop supports --auto-correct.
|
426
|
-
# Configuration parameters: EnforcedStyle.
|
427
|
-
# SupportedStyles: implicit, explicit
|
428
|
-
Style/RescueStandardError:
|
429
|
-
Exclude:
|
430
|
-
- 'lib/vips/image.rb'
|
431
|
-
|
432
|
-
# Offense count: 1
|
433
|
-
# Cop supports --auto-correct.
|
434
|
-
Style/SelfAssignment:
|
435
|
-
Exclude:
|
436
|
-
- 'example/daltonize8.rb'
|
437
|
-
|
438
|
-
# Offense count: 2
|
439
|
-
# Cop supports --auto-correct.
|
440
|
-
# Configuration parameters: EnforcedStyle.
|
441
|
-
# SupportedStyles: use_perl_names, use_english_names
|
442
|
-
Style/SpecialGlobalVars:
|
443
|
-
Exclude:
|
444
|
-
- 'example/inheritance_with_refcount.rb'
|
445
|
-
- 'lib/vips.rb'
|
446
|
-
|
447
|
-
# Offense count: 2
|
448
|
-
# Cop supports --auto-correct.
|
449
|
-
Style/StderrPuts:
|
450
|
-
Exclude:
|
451
|
-
- 'Rakefile'
|
452
|
-
|
453
|
-
# Offense count: 192
|
454
|
-
# Cop supports --auto-correct.
|
455
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
456
|
-
# SupportedStyles: single_quotes, double_quotes
|
457
|
-
Style/StringLiterals:
|
458
|
-
Exclude:
|
459
|
-
- 'Rakefile'
|
460
|
-
- 'example/annotate.rb'
|
461
|
-
- 'example/example1.rb'
|
462
|
-
- 'example/example2.rb'
|
463
|
-
- 'example/example3.rb'
|
464
|
-
- 'example/example4.rb'
|
465
|
-
- 'example/inheritance_with_refcount.rb'
|
466
|
-
- 'lib/vips.rb'
|
467
|
-
- 'lib/vips/gvalue.rb'
|
468
|
-
- 'lib/vips/image.rb'
|
469
|
-
- 'lib/vips/object.rb'
|
470
|
-
- 'lib/vips/operation.rb'
|
471
|
-
- 'lib/vips/version.rb'
|
472
|
-
- 'ruby-vips.gemspec'
|
473
|
-
- 'spec/vips_spec.rb'
|
474
|
-
|
475
|
-
# Offense count: 15
|
476
|
-
# Cop supports --auto-correct.
|
477
|
-
# Configuration parameters: MinSize.
|
478
|
-
# SupportedStyles: percent, brackets
|
479
|
-
Style/SymbolArray:
|
480
|
-
EnforcedStyle: brackets
|
481
|
-
|
482
|
-
# Offense count: 1
|
483
|
-
# Cop supports --auto-correct.
|
484
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
485
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
486
|
-
Style/TrailingCommaInHashLiteral:
|
487
|
-
Exclude:
|
488
|
-
- 'lib/vips/image.rb'
|
489
|
-
|
490
|
-
# Offense count: 2
|
491
|
-
# Cop supports --auto-correct.
|
492
|
-
Style/UnneededInterpolation:
|
493
|
-
Exclude:
|
494
|
-
- 'lib/vips/image.rb'
|
495
|
-
|
496
|
-
# Offense count: 1
|
497
|
-
# Cop supports --auto-correct.
|
498
|
-
# Configuration parameters: MinSize, WordRegex.
|
499
|
-
# SupportedStyles: percent, brackets
|
500
|
-
Style/WordArray:
|
501
|
-
EnforcedStyle: brackets
|
502
|
-
|
503
|
-
# Offense count: 6
|
504
|
-
# Cop supports --auto-correct.
|
505
|
-
Style/ZeroLengthPredicate:
|
506
|
-
Exclude:
|
507
|
-
- 'lib/vips/image.rb'
|
508
|
-
- 'lib/vips/operation.rb'
|
509
|
-
|
510
|
-
# Offense count: 105
|
511
|
-
# Cop supports --auto-correct.
|
512
|
-
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
513
|
-
# URISchemes: http, https
|
514
|
-
Metrics/LineLength:
|
515
|
-
Max: 179
|