remove_bg 2.1.1 → 2.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a45b191ebeff7b5c60e1b00ed2718d74115811682b4eb6124da5b6f8eed7ff4
4
- data.tar.gz: e46bddf4f90245fe3c5a783ebe2f2877acb0710b38b39090f21e6b99bb591f91
3
+ metadata.gz: cdd20c3dc19e67bef5fcfbd8d0829dc2e8a3a7a2edb092c9c7fa3b8a378b2a55
4
+ data.tar.gz: 57d4cd2dbc5f6cd2da83eb4dec66106532530aa1802b13a6246fc89786be7ab5
5
5
  SHA512:
6
- metadata.gz: 37b962ce4c889653c79748d2df5e3d02603738f65a93d76d7c58927c0cb12676c30e7d325e12ddee63ddba12638548fe90163e0dec583ff7d28ddb851d8803a7
7
- data.tar.gz: 6005c7c6dc61b5b8d9e4311ddd5f57c371da83d465c0b84502e381c54f8ff4b49e72431f3df79cddd94c4715667f114d988308afabaaeb8480076c09444b0909
6
+ metadata.gz: 1ff69bd4740298d6694a6227d8d144cfeba33501cc5e10a26ac2c6657f31b5e8ba15a38f4f532fa08a53c36ff66a95cf37a942c00262172e11a4a558afa1b5eb
7
+ data.tar.gz: f9d5216e11a580e2ab329e5625aa67dbb825344ccc08ded43b0c18073ce9e25eba0de310b351fb34a08771e8e9b4c60feb3cd3c4b03749baa56360a545d6141c
data/.circleci/config.yml CHANGED
@@ -5,9 +5,9 @@ version: 2.1
5
5
  orbs:
6
6
  ruby: circleci/ruby@2.5
7
7
  node: circleci/node@7.1
8
- sonarcloud: sonarsource/sonarcloud@2.0
8
+ sonarcloud: sonarsource/sonarcloud@3.0
9
9
  asdf: rynkowsg/asdf@0.2
10
- codecov: codecov/codecov@5.2
10
+ codecov: codecov/codecov@5.4
11
11
  github: circleci/github-cli@2.7
12
12
 
13
13
  # Pipeline parameters
@@ -18,7 +18,7 @@ parameters:
18
18
  default: main
19
19
  default-ruby:
20
20
  type: string
21
- default: "3.3.7"
21
+ default: 3.4.5
22
22
 
23
23
  # Define common YAML anchors
24
24
  x-common-auth: &common-auth
@@ -30,12 +30,12 @@ x-common-auth: &common-auth
30
30
  executors:
31
31
  docker: # Docker using the Base Convenience Image
32
32
  docker:
33
- - image: cimg/base:stable
33
+ - image: cimg/base:current
34
34
  <<: *common-auth
35
35
  macos: # macOS executor running Xcode
36
36
  macos:
37
37
  # https://circleci.com/developer/machine/image/xcode
38
- xcode: 16.2.0
38
+ xcode: 16.4.0
39
39
 
40
40
  jobs:
41
41
  # Lint Job
@@ -54,17 +54,32 @@ jobs:
54
54
  imagemagick libvips42 libffi-dev libreadline-dev \
55
55
  libyaml-dev openssl libtool
56
56
  - asdf/install
57
+ - run:
58
+ name: Set default Ruby to << pipeline.parameters.default-ruby >>
59
+ command: echo "ruby << pipeline.parameters.default-ruby >>" > ~/.tool-versions
60
+ # Restore ASDF cache
61
+ - restore_cache:
62
+ name: Restore ASDF cache
63
+ keys:
64
+ - asdf-docker-<< pipeline.parameters.default-ruby >>
57
65
  # Install requested Ruby version
58
66
  - run:
59
67
  name: Install Ruby << pipeline.parameters.default-ruby >>
60
68
  command: |
61
69
  asdf plugin add ruby
62
- asdf install ruby << pipeline.parameters.default-ruby >>
63
- echo "ruby << pipeline.parameters.default-ruby >>" > ~/.tool-versions
70
+ ASDF_RUBY_BUILD_VERSION=master asdf install ruby << pipeline.parameters.default-ruby >>
64
71
  gem install --user-install executable-hooks
72
+ # Save ASDF cache
73
+ - save_cache:
74
+ name: Save ASDF cache
75
+ key: asdf-docker-<< pipeline.parameters.default-ruby >>
76
+ paths:
77
+ - ~/.asdf/installs
78
+ - ~/.asdf/plugins
79
+ - ~/.asdf/shims
65
80
  # Install dependencies using bundler
66
81
  - ruby/install-deps:
67
- key: gems-v{{ .Environment.CACHE_VERSION }}
82
+ key: gems-v{{ .Environment.CACHE_VERSION }}-{{ checksum "~/.tool-versions" }}
68
83
  # Run Rubocop
69
84
  - run:
70
85
  name: Run Rubocop
@@ -113,19 +128,34 @@ jobs:
113
128
  name: Install ImageMagick, libvips and libffi
114
129
  command: |
115
130
  brew install openssl@3 imagemagick vips asdf libffi
131
+ - run:
132
+ name: Install Ruby << parameters.ruby-version >>
133
+ command: echo "ruby << parameters.ruby-version >>" > ~/.tool-versions
134
+ # Restore ASDF cache
135
+ - restore_cache:
136
+ name: Restore ASDF cache
137
+ keys:
138
+ - asdf-<< parameters.os >>-<< parameters.ruby-version >>
116
139
  # Install requested Ruby version
117
140
  - run:
118
141
  name: Install Ruby << parameters.ruby-version >>
119
142
  command: |
120
143
  asdf plugin add ruby
121
- asdf install ruby << parameters.ruby-version >>
122
- echo "ruby << parameters.ruby-version >>" > ~/.tool-versions
144
+ ASDF_RUBY_BUILD_VERSION=master asdf install ruby << parameters.ruby-version >>
123
145
  gem install --user-install executable-hooks
146
+ # Save ASDF cache
147
+ - save_cache:
148
+ name: Save ASDF cache
149
+ key: asdf-<< parameters.os >>-<< parameters.ruby-version >>
150
+ paths:
151
+ - ~/.asdf/installs
152
+ - ~/.asdf/plugins
153
+ - ~/.asdf/shims
124
154
  # Check out code
125
155
  - checkout
126
156
  # Install dependencies using bundler
127
157
  - ruby/install-deps:
128
- key: gems-v{{ .Environment.CACHE_VERSION }}
158
+ key: gems-v{{ .Environment.CACHE_VERSION }}-{{ checksum "~/.tool-versions" }}
129
159
  # Run RSpec tests
130
160
  - run:
131
161
  name: Run tests
@@ -162,7 +192,7 @@ jobs:
162
192
  # Sonarcloud Job
163
193
  sonarcloud:
164
194
  docker:
165
- - image: cimg/openjdk:21.0-node
195
+ - image: cimg/base:current
166
196
  <<: *common-auth
167
197
  resource_class: small
168
198
  steps:
@@ -186,7 +216,7 @@ jobs:
186
216
  # Release Job
187
217
  release:
188
218
  docker:
189
- - image: cimg/base:stable
219
+ - image: cimg/base:current
190
220
  <<: *common-auth
191
221
  resource_class: medium+
192
222
  environment:
@@ -205,21 +235,36 @@ jobs:
205
235
  libyaml-dev openssl libtool libz-dev libjemalloc-dev \
206
236
  libgmp-dev build-essential ruby-dev libssl-dev zlib1g-dev
207
237
  - asdf/install
238
+ - run:
239
+ name: Set default Ruby to << pipeline.parameters.default-ruby >>
240
+ command: echo "ruby << pipeline.parameters.default-ruby >>" > ~/.tool-versions
241
+ # Restore ASDF cache
242
+ - restore_cache:
243
+ name: Restore ASDF cache
244
+ keys:
245
+ - asdf-docker-<< pipeline.parameters.default-ruby >>
208
246
  # Install requested Ruby version
209
247
  - run:
210
248
  name: Install Ruby << pipeline.parameters.default-ruby >>
211
249
  command: |
212
250
  asdf plugin add ruby
213
- asdf install ruby << pipeline.parameters.default-ruby >>
214
- echo "ruby << pipeline.parameters.default-ruby >>" > ~/.tool-versions
251
+ ASDF_RUBY_BUILD_VERSION=master asdf install ruby << pipeline.parameters.default-ruby >>
215
252
  gem install --user-install executable-hooks
253
+ # Save ASDF cache
254
+ - save_cache:
255
+ name: Save ASDF cache
256
+ key: asdf-docker-<< pipeline.parameters.default-ruby >>
257
+ paths:
258
+ - ~/.asdf/installs
259
+ - ~/.asdf/plugins
260
+ - ~/.asdf/shims
216
261
  - checkout
217
262
  - run:
218
263
  name: Check out main branch
219
264
  command: git checkout --force "${GIT_MAIN_BRANCH}"
220
265
  # Install dependencies using bundler
221
266
  - ruby/install-deps:
222
- key: gems-v{{ .Environment.CACHE_VERSION }}
267
+ key: gems-v{{ .Environment.CACHE_VERSION }}-{{ checksum "~/.tool-versions" }}
223
268
  - run:
224
269
  name: Build and push gem
225
270
  command: |
@@ -299,7 +344,7 @@ workflows:
299
344
  matrix:
300
345
  parameters:
301
346
  os: ["docker", "macos"]
302
- ruby-version: ["3.3.7", "3.2.3", "3.1.6"]
347
+ ruby-version: ["3.4.5", "3.3.9", "3.2.9", "3.1.7"]
303
348
  filters:
304
349
  tags:
305
350
  only: /^\d+\.\d+\.\d+$/
@@ -321,7 +366,6 @@ workflows:
321
366
  - SonarCloud
322
367
  requires:
323
368
  - lint
324
- - test
325
369
  filters:
326
370
  tags:
327
371
  only: /^\d+\.\d+\.\d+$/
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.3.7 3.2.3 3.1.6
1
+ ruby 3.4.5 3.3.9 3.2.9 3.1.7
@@ -0,0 +1,6 @@
1
+ {
2
+ "sonarlint.connectedMode.project": {
3
+ "connectionId": "remove-bg",
4
+ "projectKey": "remove-bg_ruby"
5
+ }
6
+ }
data/.yamllint.yml ADDED
@@ -0,0 +1,19 @@
1
+ ---
2
+
3
+ extends: default
4
+
5
+ yaml-files:
6
+ - '*.yaml'
7
+ - '*.yml'
8
+
9
+ rules:
10
+ line-length:
11
+ max: 250
12
+ level: warning
13
+
14
+ ignore: |
15
+ rspec
16
+ resources
17
+ gemfiles
18
+ examples
19
+ .git
data/Appraisals CHANGED
@@ -50,6 +50,26 @@ appraise "faraday-2-9" do
50
50
  gem "faraday", "~> 2.9.0"
51
51
  end
52
52
 
53
+ # Faraday 2.10
54
+ appraise "faraday-2-10" do
55
+ gem "faraday", "~> 2.10.0"
56
+ end
57
+
58
+ # Faraday 2.11
59
+ appraise "faraday-2-11" do
60
+ gem "faraday", "~> 2.11.0"
61
+ end
62
+
63
+ # Faraday 2.12
64
+ appraise "faraday-2-12" do
65
+ gem "faraday", "~> 2.12.0"
66
+ end
67
+
68
+ # Faraday 2.13
69
+ appraise "faraday-2-13" do
70
+ gem "faraday", "~> 2.13.0"
71
+ end
72
+
53
73
  # Latest in Faraday 2.x series
54
74
  appraise "faraday-2-x" do
55
75
  gem "faraday", "~> 2", "< 3"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.1
4
+
5
+
6
+
7
+ ---
8
+
9
+
10
+ #### 🚨 Security
11
+
12
+ - 🚨 [security] Update json 2.10.1 → 2.10.2 (patch) [#57](https://github.com/remove-bg/ruby/pull/57)
13
+
14
+ #### 🔀 Dependencies
15
+
16
+ - Update all Bundler dependencies (2025-03-12) [#56](https://github.com/remove-bg/ruby/pull/56)
17
+
18
+
3
19
  ## 2.1.0
4
20
 
5
21
  ## What's Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- remove_bg (2.1.1)
4
+ remove_bg (2.2.0)
5
5
  faraday (>= 2, <= 3)
6
6
  faraday-multipart (~> 1.0)
7
7
  faraday-retry (~> 2.2)
@@ -17,79 +17,78 @@ GEM
17
17
  bundler
18
18
  rake
19
19
  thor (>= 0.14.0)
20
- ast (2.4.2)
21
- base64 (0.2.0)
22
- benchmark (0.4.0)
23
- bigdecimal (3.1.9)
20
+ ast (2.4.3)
21
+ base64 (0.3.0)
22
+ bigdecimal (3.2.2)
24
23
  coderay (1.1.3)
25
24
  crack (1.0.0)
26
25
  bigdecimal
27
26
  rexml
28
- diff-lcs (1.6.0)
27
+ diff-lcs (1.6.2)
29
28
  docile (1.4.1)
30
- faraday (2.12.2)
29
+ faraday (2.13.3)
31
30
  faraday-net_http (>= 2.0, < 3.5)
32
31
  json
33
32
  logger
34
- faraday-multipart (1.1.0)
33
+ faraday-multipart (1.1.1)
35
34
  multipart-post (~> 2.0)
36
- faraday-net_http (3.4.0)
35
+ faraday-net_http (3.4.1)
37
36
  net-http (>= 0.5.0)
38
- faraday-retry (2.2.1)
37
+ faraday-retry (2.3.2)
39
38
  faraday (~> 2.0)
40
- ffi (1.17.1)
41
- ffi (1.17.1-arm64-darwin)
42
- ffi (1.17.1-x86_64-linux-gnu)
43
- hashdiff (1.1.2)
39
+ ffi (1.17.2)
40
+ ffi (1.17.2-arm64-darwin)
41
+ ffi (1.17.2-x86_64-linux-gnu)
42
+ hashdiff (1.2.0)
44
43
  htmlentities (4.3.4)
45
44
  image_processing (1.14.0)
46
45
  mini_magick (>= 4.9.5, < 6)
47
46
  ruby-vips (>= 2.0.17, < 3)
48
- json (2.10.2)
49
- language_server-protocol (3.17.0.4)
47
+ json (2.13.1)
48
+ language_server-protocol (3.17.0.5)
50
49
  lint_roller (1.1.0)
51
- logger (1.6.6)
50
+ logger (1.7.0)
52
51
  method_source (1.1.0)
53
- mini_magick (5.2.0)
54
- benchmark
52
+ mini_magick (5.3.0)
55
53
  logger
56
54
  multipart-post (2.4.1)
57
55
  net-http (0.6.0)
58
56
  uri
59
- parallel (1.26.3)
60
- parser (3.3.7.1)
57
+ parallel (1.27.0)
58
+ parser (3.3.8.0)
61
59
  ast (~> 2.4.1)
62
60
  racc
61
+ prism (1.4.0)
63
62
  pry (0.15.2)
64
63
  coderay (~> 1.1)
65
64
  method_source (~> 1.0)
66
- public_suffix (6.0.1)
65
+ public_suffix (6.0.2)
67
66
  racc (1.8.1)
68
67
  rainbow (3.1.1)
69
- rake (13.2.1)
68
+ rake (13.3.0)
70
69
  regexp_parser (2.10.0)
71
70
  rexml (3.4.1)
72
- rspec (3.13.0)
71
+ rspec (3.13.1)
73
72
  rspec-core (~> 3.13.0)
74
73
  rspec-expectations (~> 3.13.0)
75
74
  rspec-mocks (~> 3.13.0)
76
- rspec-core (3.13.3)
75
+ rspec-core (3.13.5)
77
76
  rspec-support (~> 3.13.0)
78
- rspec-expectations (3.13.3)
77
+ rspec-expectations (3.13.5)
79
78
  diff-lcs (>= 1.2.0, < 2.0)
80
79
  rspec-support (~> 3.13.0)
81
- rspec-mocks (3.13.2)
80
+ rspec-mocks (3.13.5)
82
81
  diff-lcs (>= 1.2.0, < 2.0)
83
82
  rspec-support (~> 3.13.0)
84
83
  rspec-sonarqube-formatter (1.6.4)
85
84
  htmlentities (~> 4.3)
86
85
  rspec (~> 3.0)
87
- rspec-support (3.13.2)
86
+ rspec-support (3.13.4)
88
87
  rspec-with_params (0.3.0)
89
88
  rspec (~> 3.0)
90
89
  rspec_junit_formatter (0.6.0)
91
90
  rspec-core (>= 2, < 4, != 2.12.0)
92
- rubocop (1.73.2)
91
+ rubocop (1.79.0)
93
92
  json (~> 2.3)
94
93
  language_server-protocol (~> 3.17.0.2)
95
94
  lint_roller (~> 1.1.0)
@@ -97,23 +96,25 @@ GEM
97
96
  parser (>= 3.3.0.2)
98
97
  rainbow (>= 2.2.2, < 4.0)
99
98
  regexp_parser (>= 2.9.3, < 3.0)
100
- rubocop-ast (>= 1.38.0, < 2.0)
99
+ rubocop-ast (>= 1.46.0, < 2.0)
101
100
  ruby-progressbar (~> 1.7)
101
+ tsort (>= 0.2.0)
102
102
  unicode-display_width (>= 2.4.0, < 4.0)
103
- rubocop-ast (1.38.1)
104
- parser (>= 3.3.1.0)
105
- rubocop-performance (1.24.0)
103
+ rubocop-ast (1.46.0)
104
+ parser (>= 3.3.7.2)
105
+ prism (~> 1.4)
106
+ rubocop-performance (1.25.0)
106
107
  lint_roller (~> 1.1)
107
- rubocop (>= 1.72.1, < 2.0)
108
+ rubocop (>= 1.75.0, < 2.0)
108
109
  rubocop-ast (>= 1.38.0, < 2.0)
109
110
  rubocop-rake (0.7.1)
110
111
  lint_roller (~> 1.1)
111
112
  rubocop (>= 1.72.1)
112
- rubocop-rspec (3.5.0)
113
+ rubocop-rspec (3.6.0)
113
114
  lint_roller (~> 1.1)
114
115
  rubocop (~> 1.72, >= 1.72.1)
115
116
  ruby-progressbar (1.13.0)
116
- ruby-vips (2.2.3)
117
+ ruby-vips (2.2.4)
117
118
  ffi (~> 1.12)
118
119
  logger
119
120
  rubyzip (2.4.1)
@@ -124,9 +125,10 @@ GEM
124
125
  simplecov-cobertura (2.1.0)
125
126
  rexml
126
127
  simplecov (~> 0.19)
127
- simplecov-html (0.13.1)
128
+ simplecov-html (0.13.2)
128
129
  simplecov_json_formatter (0.1.4)
129
- thor (1.3.2)
130
+ thor (1.4.0)
131
+ tsort (0.2.0)
130
132
  unicode-display_width (3.1.4)
131
133
  unicode-emoji (~> 4.0, >= 4.0.4)
132
134
  unicode-emoji (4.0.4)
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 2.10.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 2.11.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 2.12.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "faraday", "~> 2.13.0"
6
+
7
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RemoveBg
4
- VERSION = "2.1.1"
4
+ VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remove_bg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canva Austria GmbH
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-03-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -374,6 +373,8 @@ files:
374
373
  - ".rspec"
375
374
  - ".rubocop.yml"
376
375
  - ".tool-versions"
376
+ - ".vscode/settings.json"
377
+ - ".yamllint.yml"
377
378
  - Appraisals
378
379
  - CHANGELOG.md
379
380
  - Gemfile
@@ -386,6 +387,10 @@ files:
386
387
  - bin/setup
387
388
  - gemfiles/faraday_2_0.gemfile
388
389
  - gemfiles/faraday_2_1.gemfile
390
+ - gemfiles/faraday_2_10.gemfile
391
+ - gemfiles/faraday_2_11.gemfile
392
+ - gemfiles/faraday_2_12.gemfile
393
+ - gemfiles/faraday_2_13.gemfile
389
394
  - gemfiles/faraday_2_2.gemfile
390
395
  - gemfiles/faraday_2_3.gemfile
391
396
  - gemfiles/faraday_2_4.gemfile
@@ -426,7 +431,6 @@ metadata:
426
431
  changelog_uri: https://github.com/remove-bg/ruby/blob/main/CHANGELOG.md
427
432
  allowed_push_host: https://rubygems.org
428
433
  rubygems_mfa_required: 'true'
429
- post_install_message:
430
434
  rdoc_options: []
431
435
  require_paths:
432
436
  - lib
@@ -441,8 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
441
445
  - !ruby/object:Gem::Version
442
446
  version: '0'
443
447
  requirements: []
444
- rubygems_version: 3.5.22
445
- signing_key:
448
+ rubygems_version: 3.6.9
446
449
  specification_version: 4
447
450
  summary: Remove image background - 100% automatically
448
451
  test_files: []