ruby-vips 2.0.14 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
  3. data/.github/workflows/test.yml +80 -0
  4. data/.standard.yml +17 -0
  5. data/.yardopts +0 -1
  6. data/CHANGELOG.md +41 -0
  7. data/Gemfile +3 -1
  8. data/README.md +42 -41
  9. data/Rakefile +13 -21
  10. data/TODO +18 -10
  11. data/VERSION +1 -1
  12. data/example/annotate.rb +6 -6
  13. data/example/connection.rb +26 -0
  14. data/example/daltonize8.rb +16 -18
  15. data/example/draw_lines.rb +30 -0
  16. data/example/example1.rb +5 -6
  17. data/example/example2.rb +6 -6
  18. data/example/example3.rb +5 -5
  19. data/example/example4.rb +4 -4
  20. data/example/example5.rb +6 -7
  21. data/example/inheritance_with_refcount.rb +36 -54
  22. data/example/progress.rb +30 -0
  23. data/example/thumb.rb +8 -10
  24. data/example/trim8.rb +5 -5
  25. data/example/watermark.rb +2 -2
  26. data/example/wobble.rb +1 -1
  27. data/lib/ruby-vips.rb +1 -1
  28. data/lib/vips.rb +199 -93
  29. data/lib/vips/align.rb +0 -1
  30. data/lib/vips/angle.rb +0 -1
  31. data/lib/vips/angle45.rb +0 -1
  32. data/lib/vips/bandformat.rb +0 -2
  33. data/lib/vips/blend_mode.rb +29 -27
  34. data/lib/vips/coding.rb +0 -1
  35. data/lib/vips/compass_direction.rb +0 -1
  36. data/lib/vips/connection.rb +46 -0
  37. data/lib/vips/direction.rb +0 -1
  38. data/lib/vips/extend.rb +0 -1
  39. data/lib/vips/gobject.rb +26 -15
  40. data/lib/vips/gvalue.rb +61 -55
  41. data/lib/vips/image.rb +455 -282
  42. data/lib/vips/interesting.rb +0 -1
  43. data/lib/vips/interpolate.rb +3 -7
  44. data/lib/vips/interpretation.rb +0 -1
  45. data/lib/vips/kernel.rb +0 -1
  46. data/lib/vips/methods.rb +791 -124
  47. data/lib/vips/mutableimage.rb +173 -0
  48. data/lib/vips/object.rb +178 -68
  49. data/lib/vips/operation.rb +277 -130
  50. data/lib/vips/operationboolean.rb +0 -1
  51. data/lib/vips/operationcomplex.rb +0 -1
  52. data/lib/vips/operationcomplex2.rb +0 -1
  53. data/lib/vips/operationcomplexget.rb +0 -1
  54. data/lib/vips/operationmath.rb +0 -1
  55. data/lib/vips/operationmath2.rb +0 -1
  56. data/lib/vips/operationrelational.rb +0 -1
  57. data/lib/vips/operationround.rb +0 -1
  58. data/lib/vips/region.rb +73 -0
  59. data/lib/vips/size.rb +0 -1
  60. data/lib/vips/source.rb +88 -0
  61. data/lib/vips/sourcecustom.rb +89 -0
  62. data/lib/vips/target.rb +86 -0
  63. data/lib/vips/targetcustom.rb +77 -0
  64. data/lib/vips/version.rb +1 -2
  65. data/ruby-vips.gemspec +26 -21
  66. metadata +39 -51
  67. data/.rubocop.yml +0 -10
  68. data/.rubocop_todo.yml +0 -730
  69. data/.travis.yml +0 -62
  70. data/install-vips.sh +0 -26
data/lib/vips/version.rb CHANGED
@@ -1,4 +1,3 @@
1
1
  module Vips
2
- VERSION = "2.0.14"
2
+ VERSION = "2.1.1"
3
3
  end
4
-
data/ruby-vips.gemspec CHANGED
@@ -1,43 +1,48 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'vips/version'
3
+ require_relative "lib/vips/version"
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = "ruby-vips"
9
7
  spec.version = Vips::VERSION
10
- spec.authors = ["John Cupitt"]
11
- spec.email = "jcupitt@gmail.com"
12
-
13
- spec.summary = "Ruby extension for the vips image processing library."
14
- spec.description = "ruby-vips is a binding for the vips image processing library. It is extremely fast and it can process huge images without loading the whole image in memory."
8
+ spec.summary = "A fast image processing library with low memory needs"
9
+ spec.description = <<-DESC.strip
10
+ ruby-vips is a binding for the libvips image processing library. It is fast
11
+ and it can process large images without loading the whole image in memory.
12
+ DESC
15
13
  spec.homepage = "http://github.com/libvips/ruby-vips"
16
14
  spec.licenses = ["MIT"]
15
+ spec.authors = ["John Cupitt"]
16
+ spec.email = ["jcupitt@gmail.com"]
17
+
18
+ spec.metadata = {
19
+ "bug_tracker_uri" => "https://github.com/libvips/ruby-vips/issues",
20
+ "changelog_uri" =>
21
+ "https://github.com/libvips/ruby-vips/blob/master/CHANGELOG.md",
22
+ "documentation_uri" => "https://www.rubydoc.info/gems/ruby-vips",
23
+ "homepage_uri" => spec.homepage,
24
+ "source_code_uri" => "https://github.com/libvips/ruby-vips",
25
+
26
+ "msys2_mingw_dependencies" => "libvips"
27
+ }
17
28
 
18
29
  spec.require_paths = ["lib"]
19
- spec.extra_rdoc_files = [
20
- "LICENSE.txt",
21
- "README.md",
22
- "TODO"
23
- ]
30
+ spec.extra_rdoc_files = %w[LICENSE.txt README.md TODO]
24
31
 
25
32
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
33
  f.match(%r{^(test|spec|features)/})
27
34
  end
28
35
 
29
- spec.add_runtime_dependency "ffi", ["~> 1.9"]
36
+ spec.required_ruby_version = ">= 2.0.0"
37
+
38
+ spec.add_runtime_dependency "ffi", ["~> 1.12"]
30
39
 
31
- spec.add_development_dependency "rake", ["~> 11.0"]
40
+ spec.add_development_dependency "rake", ["~> 12.0"]
32
41
  spec.add_development_dependency "rspec", ["~> 3.3"]
33
42
  spec.add_development_dependency "yard", ["~> 0.9.11"]
34
- spec.add_development_dependency "redcarpet", ["~> 3.3"]
35
- spec.add_development_dependency "github-markup", ["~> 1.4"]
36
43
  spec.add_development_dependency "bundler", [">= 1.0", "< 3"]
37
44
 
38
- # RuboCop requires Ruby >= 2.2
39
45
  if Gem.ruby_version >= Gem::Version.new("2.2")
40
- spec.add_development_dependency "rubocop", ["~> 0.64"]
46
+ spec.add_development_dependency "standard"
41
47
  end
42
48
  end
43
-
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.0.14
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cupitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
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.9'
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.9'
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: '11.0'
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: '11.0'
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: rubocop
90
+ name: standard
119
91
  requirement: !ruby/object:Gem::Requirement
120
92
  requirements:
121
- - - "~>"
93
+ - - ">="
122
94
  - !ruby/object:Gem::Version
123
- version: '0.64'
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.64'
131
- description: ruby-vips is a binding for the vips image processing library. It is extremely
132
- fast and it can process huge images without loading the whole image in memory.
133
- email: jcupitt@gmail.com
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
- - ".rubocop.yml"
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,16 +197,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
197
  requirements:
209
198
  - - ">="
210
199
  - !ruby/object:Gem::Version
211
- version: '0'
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
- rubyforge_project:
219
- rubygems_version: 2.7.6.2
207
+ rubygems_version: 3.1.2
220
208
  signing_key:
221
209
  specification_version: 4
222
- summary: Ruby extension for the vips image processing library.
210
+ summary: A fast image processing library with low memory needs
223
211
  test_files: []
data/.rubocop.yml DELETED
@@ -1,10 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.2
5
-
6
- Gemspec/OrderedDependencies:
7
- Enabled: false
8
-
9
- Layout/AlignHash:
10
- EnforcedLastArgumentHashStyle: ignore_implicit
data/.rubocop_todo.yml DELETED
@@ -1,730 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2019-02-14 11:30:19 +0100 using RuboCop version 0.64.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_parameter, with_fixed_indentation
13
- Layout/AlignParameters:
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: 1
23
- Layout/ConditionPosition:
24
- Exclude:
25
- - 'lib/vips/image.rb'
26
-
27
- # Offense count: 2
28
- # Cop supports --auto-correct.
29
- Layout/EmptyLineAfterGuardClause:
30
- Exclude:
31
- - 'lib/vips/image.rb'
32
-
33
- # Offense count: 10
34
- # Cop supports --auto-correct.
35
- # Configuration parameters: EnforcedStyle.
36
- # SupportedStyles: empty_lines, no_empty_lines
37
- Layout/EmptyLinesAroundBlockBody:
38
- Exclude:
39
- - 'lib/vips/image.rb'
40
- - 'lib/vips/operation.rb'
41
- - 'spec/image_spec.rb'
42
- - 'spec/spec_helper.rb'
43
- - 'spec/vips_spec.rb'
44
-
45
- # Offense count: 31
46
- # Cop supports --auto-correct.
47
- # Configuration parameters: EnforcedStyle.
48
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
49
- Layout/EmptyLinesAroundClassBody:
50
- Exclude:
51
- - 'example/inheritance_with_refcount.rb'
52
- - 'lib/vips/gobject.rb'
53
- - 'lib/vips/gvalue.rb'
54
- - 'lib/vips/image.rb'
55
- - 'lib/vips/interpolate.rb'
56
- - 'lib/vips/methods.rb'
57
- - 'lib/vips/object.rb'
58
- - 'lib/vips/operation.rb'
59
-
60
- # Offense count: 2
61
- # Cop supports --auto-correct.
62
- Layout/EmptyLinesAroundMethodBody:
63
- Exclude:
64
- - 'lib/vips.rb'
65
- - 'lib/vips/gvalue.rb'
66
-
67
- # Offense count: 38
68
- # Cop supports --auto-correct.
69
- # Configuration parameters: EnforcedStyle.
70
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
71
- Layout/EmptyLinesAroundModuleBody:
72
- Enabled: false
73
-
74
- # Offense count: 5
75
- # Cop supports --auto-correct.
76
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
77
- Layout/ExtraSpacing:
78
- Exclude:
79
- - 'example/daltonize8.rb'
80
- - 'example/watermark.rb'
81
- - 'lib/vips.rb'
82
-
83
- # Offense count: 9
84
- # Cop supports --auto-correct.
85
- # Configuration parameters: EnforcedStyle, IndentationWidth.
86
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
87
- Layout/IndentArray:
88
- Exclude:
89
- - 'example/daltonize8.rb'
90
- - 'example/example5.rb'
91
- - 'spec/image_spec.rb'
92
-
93
- # Offense count: 2
94
- # Cop supports --auto-correct.
95
- # Configuration parameters: IndentationWidth.
96
- Layout/IndentAssignment:
97
- Exclude:
98
- - 'lib/vips/image.rb'
99
-
100
- # Offense count: 5
101
- # Cop supports --auto-correct.
102
- # Configuration parameters: EnforcedStyle, IndentationWidth.
103
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
104
- Layout/IndentHash:
105
- Exclude:
106
- - 'lib/vips.rb'
107
- - 'lib/vips/image.rb'
108
- - 'lib/vips/object.rb'
109
- - 'lib/vips/operation.rb'
110
-
111
- # Offense count: 4
112
- # Cop supports --auto-correct.
113
- Layout/LeadingCommentSpace:
114
- Exclude:
115
- - 'example/daltonize8.rb'
116
- - 'example/example4.rb'
117
- - 'example/example5.rb'
118
-
119
- # Offense count: 1
120
- # Cop supports --auto-correct.
121
- # Configuration parameters: EnforcedStyle.
122
- # SupportedStyles: symmetrical, new_line, same_line
123
- Layout/MultilineArrayBraceLayout:
124
- Exclude:
125
- - 'example/example5.rb'
126
-
127
- # Offense count: 16
128
- # Cop supports --auto-correct.
129
- # Configuration parameters: EnforcedStyle, IndentationWidth.
130
- # SupportedStyles: aligned, indented
131
- Layout/MultilineOperationIndentation:
132
- Exclude:
133
- - 'lib/vips/gvalue.rb'
134
- - 'lib/vips/image.rb'
135
- - 'lib/vips/operation.rb'
136
-
137
- # Offense count: 2
138
- # Cop supports --auto-correct.
139
- Layout/RescueEnsureAlignment:
140
- Exclude:
141
- - 'lib/vips/image.rb'
142
-
143
- # Offense count: 5
144
- # Cop supports --auto-correct.
145
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
146
- # SupportedStyles: space, no_space
147
- # SupportedStylesForEmptyBraces: space, no_space
148
- Layout/SpaceBeforeBlockBraces:
149
- Exclude:
150
- - 'lib/vips/image.rb'
151
- - 'spec/vips_spec.rb'
152
-
153
- # Offense count: 44
154
- # Cop supports --auto-correct.
155
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
156
- # SupportedStyles: space, no_space
157
- # SupportedStylesForEmptyBraces: space, no_space
158
- Layout/SpaceInsideBlockBraces:
159
- Exclude:
160
- - 'lib/vips/gvalue.rb'
161
- - 'lib/vips/image.rb'
162
- - 'lib/vips/object.rb'
163
- - 'lib/vips/operation.rb'
164
- - 'spec/vips_spec.rb'
165
-
166
- # Offense count: 12
167
- # Cop supports --auto-correct.
168
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
169
- # SupportedStyles: space, no_space, compact
170
- # SupportedStylesForEmptyBraces: space, no_space
171
- Layout/SpaceInsideHashLiteralBraces:
172
- Exclude:
173
- - 'lib/vips/image.rb'
174
- - 'spec/vips_spec.rb'
175
-
176
- # Offense count: 9
177
- # Cop supports --auto-correct.
178
- # Configuration parameters: EnforcedStyle.
179
- # SupportedStyles: final_newline, final_blank_line
180
- Layout/TrailingBlankLines:
181
- Exclude:
182
- - 'example/inheritance_with_refcount.rb'
183
- - 'example/thumb.rb'
184
- - 'lib/vips.rb'
185
- - 'lib/vips/blend_mode.rb'
186
- - 'lib/vips/object.rb'
187
- - 'lib/vips/version.rb'
188
- - 'ruby-vips.gemspec'
189
- - 'spec/image_spec.rb'
190
- - 'spec/vips_spec.rb'
191
-
192
- # Offense count: 2
193
- Lint/HandleExceptions:
194
- Exclude:
195
- - 'lib/vips/image.rb'
196
-
197
- # Offense count: 5
198
- Lint/IneffectiveAccessModifier:
199
- Exclude:
200
- - 'lib/vips/image.rb'
201
-
202
- # Offense count: 1
203
- Lint/ParenthesesAsGroupedExpression:
204
- Exclude:
205
- - 'lib/vips.rb'
206
-
207
- # Offense count: 1
208
- Lint/ShadowingOuterLocalVariable:
209
- Exclude:
210
- - 'lib/vips/operation.rb'
211
-
212
- # Offense count: 10
213
- # Cop supports --auto-correct.
214
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
215
- Lint/UnusedBlockArgument:
216
- Exclude:
217
- - 'lib/vips.rb'
218
- - 'lib/vips/image.rb'
219
- - 'lib/vips/operation.rb'
220
-
221
- # Offense count: 7
222
- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
223
- Lint/UselessAccessModifier:
224
- Exclude:
225
- - 'lib/vips/image.rb'
226
- - 'lib/vips/object.rb'
227
- - 'lib/vips/operation.rb'
228
-
229
- # Offense count: 11
230
- Lint/UselessAssignment:
231
- Exclude:
232
- - 'example/example1.rb'
233
- - 'example/inheritance_with_refcount.rb'
234
- - 'example/thumb.rb'
235
- - 'example/trim8.rb'
236
- - 'lib/vips/operation.rb'
237
- - 'spec/image_spec.rb'
238
-
239
- # Offense count: 6
240
- Lint/UselessComparison:
241
- Exclude:
242
- - 'spec/image_spec.rb'
243
-
244
- # Offense count: 7
245
- Metrics/AbcSize:
246
- Max: 124
247
-
248
- # Offense count: 6
249
- # Configuration parameters: CountComments, ExcludedMethods.
250
- # ExcludedMethods: refine
251
- Metrics/BlockLength:
252
- Max: 508
253
-
254
- # Offense count: 3
255
- # Configuration parameters: CountComments.
256
- Metrics/ClassLength:
257
- Max: 517
258
-
259
- # Offense count: 6
260
- Metrics/CyclomaticComplexity:
261
- Max: 28
262
-
263
- # Offense count: 11
264
- # Configuration parameters: CountComments, ExcludedMethods.
265
- Metrics/MethodLength:
266
- Max: 126
267
-
268
- # Offense count: 1
269
- # Configuration parameters: CountComments.
270
- Metrics/ModuleLength:
271
- Max: 165
272
-
273
- # Offense count: 4
274
- Metrics/PerceivedComplexity:
275
- Max: 32
276
-
277
- # Offense count: 8
278
- Naming/AccessorMethodName:
279
- Exclude:
280
- - 'example/inheritance_with_refcount.rb'
281
- - 'lib/vips.rb'
282
- - 'lib/vips/image.rb'
283
- - 'lib/vips/operation.rb'
284
-
285
- # Offense count: 1
286
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
287
- # 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
288
- Naming/FileName:
289
- Exclude:
290
- - 'lib/ruby-vips.rb'
291
-
292
- # Offense count: 1
293
- # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
294
- # NamePrefix: is_, has_, have_
295
- # NamePrefixBlacklist: is_, has_, have_
296
- # NameWhitelist: is_a?
297
- # MethodDefinitionMacros: define_method, define_singleton_method
298
- Naming/PredicateName:
299
- Exclude:
300
- - 'spec/**/*'
301
- - 'lib/vips/image.rb'
302
-
303
- # Offense count: 6
304
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
305
- # AllowedNames: io, id, to, by, on, in, at, ip, db
306
- Naming/UncommunicativeMethodParamName:
307
- Exclude:
308
- - 'lib/vips.rb'
309
- - 'lib/vips/image.rb'
310
-
311
- # Offense count: 1
312
- # Cop supports --auto-correct.
313
- Performance/RedundantBlockCall:
314
- Exclude:
315
- - 'lib/vips/operation.rb'
316
-
317
- # Offense count: 1
318
- # Cop supports --auto-correct.
319
- # Configuration parameters: EnforcedStyle.
320
- # SupportedStyles: prefer_alias, prefer_alias_method
321
- Style/Alias:
322
- Exclude:
323
- - 'lib/vips/image.rb'
324
-
325
- # Offense count: 2
326
- # Cop supports --auto-correct.
327
- # Configuration parameters: EnforcedStyle.
328
- # SupportedStyles: always, conditionals
329
- Style/AndOr:
330
- Exclude:
331
- - 'example/example2.rb'
332
- - 'example/watermark.rb'
333
-
334
- # Offense count: 3
335
- # Cop supports --auto-correct.
336
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
337
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
338
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
339
- # FunctionalMethods: let, let!, subject, watch
340
- # IgnoredMethods: lambda, proc, it
341
- Style/BlockDelimiters:
342
- Exclude:
343
- - 'example/inheritance_with_refcount.rb'
344
- - 'lib/vips.rb'
345
- - 'lib/vips/operation.rb'
346
-
347
- # Offense count: 6
348
- # Cop supports --auto-correct.
349
- # Configuration parameters: EnforcedStyle.
350
- # SupportedStyles: braces, no_braces, context_dependent
351
- Style/BracesAroundHashParameters:
352
- Exclude:
353
- - 'spec/vips_spec.rb'
354
-
355
- # Offense count: 5
356
- Style/ClassVars:
357
- Exclude:
358
- - 'lib/vips/image.rb'
359
-
360
- # Offense count: 164
361
- # Cop supports --auto-correct.
362
- Style/ColonMethodCall:
363
- Exclude:
364
- - 'example/example1.rb'
365
- - 'example/example2.rb'
366
- - 'example/example3.rb'
367
- - 'example/example4.rb'
368
- - 'example/inheritance_with_refcount.rb'
369
- - 'lib/vips.rb'
370
- - 'lib/vips/gobject.rb'
371
- - 'lib/vips/gvalue.rb'
372
- - 'lib/vips/image.rb'
373
- - 'lib/vips/interpolate.rb'
374
- - 'lib/vips/object.rb'
375
- - 'lib/vips/operation.rb'
376
- - 'spec/image_spec.rb'
377
- - 'spec/spec_helper.rb'
378
- - 'spec/vips_spec.rb'
379
-
380
- # Offense count: 3
381
- # Cop supports --auto-correct.
382
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
383
- # SupportedStyles: assign_to_condition, assign_inside_condition
384
- Style/ConditionalAssignment:
385
- Exclude:
386
- - 'lib/vips.rb'
387
-
388
- # Offense count: 43
389
- Style/Documentation:
390
- Exclude:
391
- - 'spec/**/*'
392
- - 'test/**/*'
393
- - 'example/inheritance_with_refcount.rb'
394
- - 'example/wobble.rb'
395
- - 'lib/vips.rb'
396
- - 'lib/vips/gobject.rb'
397
- - 'lib/vips/gvalue.rb'
398
- - 'lib/vips/image.rb'
399
- - 'lib/vips/interpolate.rb'
400
- - 'lib/vips/object.rb'
401
- - 'lib/vips/operation.rb'
402
-
403
- # Offense count: 2
404
- # Cop supports --auto-correct.
405
- Style/Encoding:
406
- Exclude:
407
- - 'Rakefile'
408
- - 'ruby-vips.gemspec'
409
-
410
- # Offense count: 1
411
- # Cop supports --auto-correct.
412
- Style/EvenOdd:
413
- Exclude:
414
- - 'lib/vips/image.rb'
415
-
416
- # Offense count: 2
417
- # Cop supports --auto-correct.
418
- Style/ExpandPathArguments:
419
- Exclude:
420
- - 'ruby-vips.gemspec'
421
- - 'spec/spec_helper.rb'
422
-
423
- # Offense count: 5
424
- # Configuration parameters: AllowedVariables.
425
- Style/GlobalVars:
426
- Exclude:
427
- - 'example/inheritance_with_refcount.rb'
428
-
429
- # Offense count: 5
430
- # Configuration parameters: MinBodyLength.
431
- Style/GuardClause:
432
- Exclude:
433
- - 'example/inheritance_with_refcount.rb'
434
- - 'lib/vips.rb'
435
-
436
- # Offense count: 59
437
- # Cop supports --auto-correct.
438
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
439
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
440
- Style/HashSyntax:
441
- Exclude:
442
- - 'Rakefile'
443
- - 'example/annotate.rb'
444
- - 'example/daltonize8.rb'
445
- - 'example/example3.rb'
446
- - 'example/example5.rb'
447
- - 'example/watermark.rb'
448
- - 'lib/vips/image.rb'
449
- - 'lib/vips/object.rb'
450
- - 'lib/vips/operation.rb'
451
- - 'spec/image_spec.rb'
452
- - 'spec/spec_helper.rb'
453
- - 'spec/vips_spec.rb'
454
-
455
- # Offense count: 30
456
- # Cop supports --auto-correct.
457
- Style/IfUnlessModifier:
458
- Exclude:
459
- - 'example/daltonize8.rb'
460
- - 'example/example2.rb'
461
- - 'example/example5.rb'
462
- - 'example/inheritance_with_refcount.rb'
463
- - 'lib/vips.rb'
464
- - 'lib/vips/gvalue.rb'
465
- - 'lib/vips/image.rb'
466
- - 'lib/vips/operation.rb'
467
- - 'ruby-vips.gemspec'
468
-
469
- # Offense count: 4
470
- # Cop supports --auto-correct.
471
- # Configuration parameters: EnforcedStyle.
472
- # SupportedStyles: call, braces
473
- Style/LambdaCall:
474
- Exclude:
475
- - 'lib/vips/image.rb'
476
-
477
- # Offense count: 11
478
- # Cop supports --auto-correct.
479
- Style/LineEndConcatenation:
480
- Exclude:
481
- - 'lib/vips/gvalue.rb'
482
- - 'lib/vips/image.rb'
483
- - 'lib/vips/operation.rb'
484
-
485
- # Offense count: 81
486
- # Cop supports --auto-correct.
487
- # Configuration parameters: EnforcedStyle.
488
- # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
489
- Style/MethodDefParentheses:
490
- Exclude:
491
- - 'example/inheritance_with_refcount.rb'
492
- - 'lib/vips.rb'
493
- - 'lib/vips/gobject.rb'
494
- - 'lib/vips/gvalue.rb'
495
- - 'lib/vips/image.rb'
496
- - 'lib/vips/interpolate.rb'
497
- - 'lib/vips/object.rb'
498
- - 'lib/vips/operation.rb'
499
-
500
- # Offense count: 2
501
- Style/MethodMissingSuper:
502
- Exclude:
503
- - 'lib/vips/image.rb'
504
-
505
- # Offense count: 2
506
- Style/MissingRespondToMissing:
507
- Exclude:
508
- - 'lib/vips/image.rb'
509
-
510
- # Offense count: 1
511
- # Cop supports --auto-correct.
512
- # Configuration parameters: EnforcedStyle.
513
- # SupportedStyles: module_function, extend_self
514
- Style/ModuleFunction:
515
- Exclude:
516
- - 'spec/spec_helper.rb'
517
-
518
- # Offense count: 5
519
- Style/MultilineTernaryOperator:
520
- Exclude:
521
- - 'lib/vips/image.rb'
522
-
523
- # Offense count: 1
524
- Style/MultipleComparison:
525
- Exclude:
526
- - 'lib/vips/image.rb'
527
-
528
- # Offense count: 6
529
- # Cop supports --auto-correct.
530
- Style/MutableConstant:
531
- Exclude:
532
- - 'example/inheritance_with_refcount.rb'
533
- - 'lib/vips.rb'
534
- - 'lib/vips/object.rb'
535
- - 'lib/vips/operation.rb'
536
- - 'lib/vips/version.rb'
537
-
538
- # Offense count: 6
539
- # Cop supports --auto-correct.
540
- # Configuration parameters: Whitelist.
541
- # 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
542
- Style/NestedParenthesizedCalls:
543
- Exclude:
544
- - 'lib/vips/image.rb'
545
-
546
- # Offense count: 3
547
- # Cop supports --auto-correct.
548
- # Configuration parameters: EnforcedStyle, MinBodyLength.
549
- # SupportedStyles: skip_modifier_ifs, always
550
- Style/Next:
551
- Exclude:
552
- - 'lib/vips/operation.rb'
553
-
554
- # Offense count: 14
555
- # Cop supports --auto-correct.
556
- # Configuration parameters: EnforcedStyle.
557
- # SupportedStyles: predicate, comparison
558
- Style/NilComparison:
559
- Exclude:
560
- - 'lib/vips/gvalue.rb'
561
- - 'lib/vips/image.rb'
562
- - 'lib/vips/interpolate.rb'
563
- - 'lib/vips/operation.rb'
564
-
565
- # Offense count: 2
566
- # Cop supports --auto-correct.
567
- # Configuration parameters: IncludeSemanticChanges.
568
- Style/NonNilCheck:
569
- Exclude:
570
- - 'lib/vips.rb'
571
- - 'lib/vips/operation.rb'
572
-
573
- # Offense count: 4
574
- # Cop supports --auto-correct.
575
- # Configuration parameters: Strict.
576
- Style/NumericLiterals:
577
- MinDigits: 9
578
-
579
- # Offense count: 5
580
- # Cop supports --auto-correct.
581
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
582
- # SupportedStyles: predicate, comparison
583
- Style/NumericPredicate:
584
- Exclude:
585
- - 'spec/**/*'
586
- - 'lib/vips/image.rb'
587
- - 'lib/vips/operation.rb'
588
-
589
- # Offense count: 1
590
- # Cop supports --auto-correct.
591
- # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
592
- Style/ParenthesesAroundCondition:
593
- Exclude:
594
- - 'lib/vips/image.rb'
595
-
596
- # Offense count: 4
597
- # Cop supports --auto-correct.
598
- # Configuration parameters: EnforcedStyle.
599
- # SupportedStyles: short, verbose
600
- Style/PreferredHashMethods:
601
- Exclude:
602
- - 'lib/vips/operation.rb'
603
-
604
- # Offense count: 2
605
- # Cop supports --auto-correct.
606
- Style/Proc:
607
- Exclude:
608
- - 'lib/vips.rb'
609
- - 'lib/vips/operation.rb'
610
-
611
- # Offense count: 1
612
- # Cop supports --auto-correct.
613
- Style/RedundantConditional:
614
- Exclude:
615
- - 'lib/vips/gvalue.rb'
616
-
617
- # Offense count: 1
618
- # Cop supports --auto-correct.
619
- Style/RedundantParentheses:
620
- Exclude:
621
- - 'lib/vips/image.rb'
622
-
623
- # Offense count: 15
624
- # Cop supports --auto-correct.
625
- # Configuration parameters: AllowMultipleReturnValues.
626
- Style/RedundantReturn:
627
- Exclude:
628
- - 'lib/vips/gvalue.rb'
629
- - 'lib/vips/image.rb'
630
- - 'lib/vips/object.rb'
631
- - 'lib/vips/operation.rb'
632
-
633
- # Offense count: 4
634
- # Cop supports --auto-correct.
635
- Style/RedundantSelf:
636
- Exclude:
637
- - 'example/inheritance_with_refcount.rb'
638
- - 'lib/vips/gobject.rb'
639
-
640
- # Offense count: 1
641
- # Cop supports --auto-correct.
642
- # Configuration parameters: EnforcedStyle.
643
- # SupportedStyles: implicit, explicit
644
- Style/RescueStandardError:
645
- Exclude:
646
- - 'lib/vips/image.rb'
647
-
648
- # Offense count: 1
649
- # Cop supports --auto-correct.
650
- Style/SelfAssignment:
651
- Exclude:
652
- - 'example/daltonize8.rb'
653
-
654
- # Offense count: 2
655
- # Cop supports --auto-correct.
656
- # Configuration parameters: EnforcedStyle.
657
- # SupportedStyles: use_perl_names, use_english_names
658
- Style/SpecialGlobalVars:
659
- Exclude:
660
- - 'example/inheritance_with_refcount.rb'
661
- - 'lib/vips.rb'
662
-
663
- # Offense count: 2
664
- # Cop supports --auto-correct.
665
- Style/StderrPuts:
666
- Exclude:
667
- - 'Rakefile'
668
-
669
- # Offense count: 191
670
- # Cop supports --auto-correct.
671
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
672
- # SupportedStyles: single_quotes, double_quotes
673
- Style/StringLiterals:
674
- Exclude:
675
- - 'Rakefile'
676
- - 'example/annotate.rb'
677
- - 'example/example1.rb'
678
- - 'example/example2.rb'
679
- - 'example/example3.rb'
680
- - 'example/example4.rb'
681
- - 'example/inheritance_with_refcount.rb'
682
- - 'lib/vips.rb'
683
- - 'lib/vips/gvalue.rb'
684
- - 'lib/vips/image.rb'
685
- - 'lib/vips/object.rb'
686
- - 'lib/vips/operation.rb'
687
- - 'lib/vips/version.rb'
688
- - 'ruby-vips.gemspec'
689
- - 'spec/vips_spec.rb'
690
-
691
- # Offense count: 15
692
- # Cop supports --auto-correct.
693
- # Configuration parameters: MinSize.
694
- # SupportedStyles: percent, brackets
695
- Style/SymbolArray:
696
- EnforcedStyle: brackets
697
-
698
- # Offense count: 1
699
- # Cop supports --auto-correct.
700
- # Configuration parameters: EnforcedStyleForMultiline.
701
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
702
- Style/TrailingCommaInHashLiteral:
703
- Exclude:
704
- - 'lib/vips/image.rb'
705
-
706
- # Offense count: 2
707
- # Cop supports --auto-correct.
708
- Style/UnneededInterpolation:
709
- Exclude:
710
- - 'lib/vips/image.rb'
711
-
712
- # Offense count: 1
713
- # Cop supports --auto-correct.
714
- # Configuration parameters: MinSize, WordRegex.
715
- # SupportedStyles: percent, brackets
716
- Style/WordArray:
717
- EnforcedStyle: brackets
718
-
719
- # Offense count: 6
720
- # Cop supports --auto-correct.
721
- Style/ZeroLengthPredicate:
722
- Exclude:
723
- - 'lib/vips/image.rb'
724
- - 'lib/vips/operation.rb'
725
-
726
- # Offense count: 161
727
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
728
- # URISchemes: http, https
729
- Metrics/LineLength:
730
- Max: 179