remove_bg 2.0.1 → 2.0.3

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: d98c7854629bfaf9f54f3bfdc1da555a74e824644b14ce959af79c1fdc002cb7
4
- data.tar.gz: f39fb1824c889096aea5581cc1c31eb775c94fa2ffbc2fb474720aeb07d5e2c4
3
+ metadata.gz: 465ae2d55918727ac5874bfa68403b3a2e6c7d74efc169ecee18baab06a56de7
4
+ data.tar.gz: fccccce4d4bc0db6a24bc917bac9e06eb1740963adc76799d58da9c08e5fca02
5
5
  SHA512:
6
- metadata.gz: 6e71d886ea81021acd12f9ae51bed5b31a7eb68a82873914770ccd8f3ed93a35d05353b3413983a59bf8fcafab9a27b42ecb61537b5228b95e5ddb2b95a17773
7
- data.tar.gz: 8974ee1e97ee15e53497c9bbe06537257306c279d1d4121f7307041318a11d350e243cbf4c6f33638167046927f570c33294909d6277ecbce253e74601b9d877
6
+ metadata.gz: b6f98701d41bab477be50090a6310dbcfa34595577f0f860b6dde3082a9d96add1b9748b1b59ff8ab89b2231dd3d73f87a71714cdb8c02325368615313b2e6e4
7
+ data.tar.gz: d5571c97be911f7442cc09c92734befdbf968abd423892467e77a566f5503785285bca5f216560d17e9b963c555115e8cec5c9374574dff70398f051e1c5a1dd
data/.circleci/config.yml CHANGED
@@ -4,11 +4,10 @@ version: 2.1
4
4
  # Used Orbs (https://circleci.com/docs/2.0/using-orbs/)
5
5
  orbs:
6
6
  ruby: circleci/ruby@2.1
7
- node: circleci/node@5.2
8
7
  sonarcloud: sonarsource/sonarcloud@2.0
9
8
  asdf: rynkowsg/asdf@0.1
10
9
  codecov: codecov/codecov@4.1
11
- github: circleci/github-cli@2.3
10
+ github: circleci/github-cli@2.4
12
11
 
13
12
  # Pipeline parameters
14
13
  parameters:
@@ -18,7 +17,7 @@ parameters:
18
17
  default: main
19
18
  default-ruby:
20
19
  type: string
21
- default: "3.3.4"
20
+ default: "3.3.5"
22
21
 
23
22
  # Define common YAML anchors
24
23
  x-common-auth: &common-auth
@@ -40,16 +39,28 @@ executors:
40
39
  jobs:
41
40
  # Lint Job
42
41
  lint:
43
- docker:
44
- - image: cimg/base:stable
45
- <<: *common-auth
42
+ executor: docker
46
43
  resource_class: medium
47
44
  steps:
48
45
  # Check out code
49
46
  - checkout
47
+ # Install ImageMagick, libvips and libffi
48
+ - run:
49
+ name: Install ImageMagick, libvips and libffi
50
+ command: |
51
+ sudo apt-get update
52
+ sudo apt-get -y --no-install-recommends install \
53
+ imagemagick libvips42 libffi-dev libreadline-dev \
54
+ libyaml-dev openssl libtool
55
+ - asdf/install
50
56
  # Install requested Ruby version
51
- - ruby/install:
52
- version: "<< pipeline.parameters.default-ruby >>"
57
+ - run:
58
+ name: Install Ruby << pipeline.parameters.default-ruby >>
59
+ command: |
60
+ asdf plugin-add ruby
61
+ asdf install ruby << pipeline.parameters.default-ruby >>
62
+ asdf global ruby << pipeline.parameters.default-ruby >>
63
+ gem install --user-install executable-hooks
53
64
  # Install dependencies using bundler
54
65
  - ruby/install-deps:
55
66
  pre-install-steps:
@@ -136,12 +147,8 @@ jobs:
136
147
  - when:
137
148
  condition:
138
149
  and:
139
- - equal:
140
- - "docker"
141
- - "<< parameters.os >>"
142
- - equal:
143
- - "<< pipeline.parameters.default-ruby >>"
144
- - "<< parameters.ruby-version >>"
150
+ - equal: ["docker", "<< parameters.os >>"]
151
+ - equal: ["<< pipeline.parameters.default-ruby >>", "<< parameters.ruby-version >>"]
145
152
  steps:
146
153
  - persist_to_workspace:
147
154
  root: .
@@ -159,7 +166,7 @@ jobs:
159
166
  # Sonarcloud Job
160
167
  sonarcloud:
161
168
  docker:
162
- - image: cimg/openjdk:21.0-node
169
+ - image: cimg/openjdk:21.0
163
170
  <<: *common-auth
164
171
  resource_class: small
165
172
  steps:
@@ -191,15 +198,14 @@ jobs:
191
198
  CHANGELOG_FILENAME: CHANGELOG.md
192
199
  steps:
193
200
  - github/install
194
- - node/install:
195
- node-version: latest
196
201
  - run:
197
202
  name: Install ImageMagick, libvips and libffi
198
203
  command: |
199
204
  sudo apt-get update
200
205
  sudo apt-get -y --no-install-recommends install \
201
206
  imagemagick libvips42 libffi-dev libreadline-dev \
202
- libyaml-dev openssl libtool
207
+ libyaml-dev openssl libtool libz-dev libjemalloc-dev \
208
+ libgmp-dev build-essential ruby-dev libssl-dev zlib1g-dev
203
209
  - asdf/install
204
210
  # Install requested Ruby version
205
211
  - run:
@@ -297,7 +303,7 @@ workflows:
297
303
  matrix:
298
304
  parameters:
299
305
  os: ["docker", "macos"]
300
- ruby-version: ["3.1.6", "3.2.3", "3.3.4"]
306
+ ruby-version: ["3.3.5", "3.2.3", "3.1.6"]
301
307
  filters:
302
308
  tags:
303
309
  only: /^\d+\.\d+\.\d+$/
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.1.6 3.2.3 3.3.4
1
+ ruby 3.3.5 3.2.3 3.1.6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.2
4
+
5
+
6
+
7
+ ---
8
+
9
+
10
+ #### 🚨 Security
11
+
12
+ - 🚨 [security] Update rexml 3.3.2 → 3.3.4 (patch) [#39](https://github.com/remove-bg/ruby/pull/39)
13
+
14
+ #### 🔀 Dependencies
15
+
16
+ - Update all Bundler dependencies (2024-08-22) [#40](https://github.com/remove-bg/ruby/pull/40)
17
+ - Update all Bundler dependencies (2024-07-31) [#38](https://github.com/remove-bg/ruby/pull/38)
18
+
19
+
20
+ ## 2.0.1
21
+
22
+ #### 🚀 Enhancements:
23
+
24
+ - Remove deprecated File [#37](https://github.com/remove-bg/ruby/pull/37)
25
+ - Update Ruby to 3.3.4 [#36](https://github.com/remove-bg/ruby/pull/36)
26
+
27
+ #### 🐞 Bugfixes:
28
+
29
+ - Fix redefined constant warning [#35](https://github.com/remove-bg/ruby/pull/35)
30
+
31
+ #### 🔀 Dependencies
32
+
33
+ - Update all Bundler dependencies (2024-07-17) [#34](https://github.com/remove-bg/ruby/pull/34)
34
+
35
+
3
36
  ## 2.0.0
4
37
 
5
38
  - Deprecate `overwrite: true` in favour of `save!` and `save_zip!`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- remove_bg (2.0.1)
4
+ remove_bg (2.0.3)
5
5
  faraday (>= 2, <= 3)
6
6
  faraday-multipart (~> 1.0)
7
7
  faraday-retry (~> 2.2)
@@ -18,59 +18,59 @@ GEM
18
18
  rake
19
19
  thor (>= 0.14.0)
20
20
  ast (2.4.2)
21
+ base64 (0.2.0)
21
22
  bigdecimal (3.1.8)
22
23
  coderay (1.1.3)
23
24
  crack (1.0.0)
24
25
  bigdecimal
25
26
  rexml
26
27
  diff-lcs (1.5.1)
27
- docile (1.4.0)
28
- faraday (2.10.0)
29
- faraday-net_http (>= 2.0, < 3.2)
28
+ docile (1.4.1)
29
+ faraday (2.11.0)
30
+ faraday-net_http (>= 2.0, < 3.4)
30
31
  logger
31
32
  faraday-multipart (1.0.4)
32
33
  multipart-post (~> 2)
33
- faraday-net_http (3.1.0)
34
+ faraday-net_http (3.3.0)
34
35
  net-http
35
36
  faraday-retry (2.2.1)
36
37
  faraday (~> 2.0)
37
38
  ffi (1.17.0)
38
39
  ffi (1.17.0-arm64-darwin)
39
40
  ffi (1.17.0-x86_64-linux-gnu)
40
- hashdiff (1.1.0)
41
+ hashdiff (1.1.1)
41
42
  htmlentities (4.3.4)
42
- image_processing (1.12.2)
43
+ image_processing (1.13.0)
43
44
  mini_magick (>= 4.9.5, < 5)
44
45
  ruby-vips (>= 2.0.17, < 3)
45
46
  json (2.7.2)
46
47
  language_server-protocol (3.17.0.3)
47
- logger (1.6.0)
48
+ logger (1.6.1)
48
49
  method_source (1.1.0)
49
50
  mini_magick (4.13.2)
50
51
  multipart-post (2.4.1)
51
52
  net-http (0.4.1)
52
53
  uri
53
- parallel (1.25.1)
54
- parser (3.3.4.0)
54
+ parallel (1.26.3)
55
+ parser (3.3.5.0)
55
56
  ast (~> 2.4.1)
56
57
  racc
57
58
  pry (0.14.2)
58
59
  coderay (~> 1.1)
59
60
  method_source (~> 1.0)
60
- public_suffix (6.0.0)
61
- racc (1.8.0)
61
+ public_suffix (6.0.1)
62
+ racc (1.8.1)
62
63
  rainbow (3.1.1)
63
64
  rake (13.2.1)
64
65
  regexp_parser (2.9.2)
65
- rexml (3.3.2)
66
- strscan
66
+ rexml (3.3.7)
67
67
  rspec (3.13.0)
68
68
  rspec-core (~> 3.13.0)
69
69
  rspec-expectations (~> 3.13.0)
70
70
  rspec-mocks (~> 3.13.0)
71
- rspec-core (3.13.0)
71
+ rspec-core (3.13.1)
72
72
  rspec-support (~> 3.13.0)
73
- rspec-expectations (3.13.1)
73
+ rspec-expectations (3.13.2)
74
74
  diff-lcs (>= 1.2.0, < 2.0)
75
75
  rspec-support (~> 3.13.0)
76
76
  rspec-mocks (3.13.1)
@@ -84,29 +84,29 @@ GEM
84
84
  rspec (~> 3.0)
85
85
  rspec_junit_formatter (0.6.0)
86
86
  rspec-core (>= 2, < 4, != 2.12.0)
87
- rubocop (1.65.0)
87
+ rubocop (1.66.1)
88
88
  json (~> 2.3)
89
89
  language_server-protocol (>= 3.17.0)
90
90
  parallel (~> 1.10)
91
91
  parser (>= 3.3.0.2)
92
92
  rainbow (>= 2.2.2, < 4.0)
93
93
  regexp_parser (>= 2.4, < 3.0)
94
- rexml (>= 3.2.5, < 4.0)
95
- rubocop-ast (>= 1.31.1, < 2.0)
94
+ rubocop-ast (>= 1.32.2, < 2.0)
96
95
  ruby-progressbar (~> 1.7)
97
96
  unicode-display_width (>= 2.4.0, < 3.0)
98
- rubocop-ast (1.31.3)
97
+ rubocop-ast (1.32.3)
99
98
  parser (>= 3.3.1.0)
100
99
  rubocop-performance (1.21.1)
101
100
  rubocop (>= 1.48.1, < 2.0)
102
101
  rubocop-ast (>= 1.31.1, < 2.0)
103
102
  rubocop-rake (0.6.0)
104
103
  rubocop (~> 1.0)
105
- rubocop-rspec (3.0.3)
104
+ rubocop-rspec (3.0.4)
106
105
  rubocop (~> 1.61)
107
106
  ruby-progressbar (1.13.0)
108
- ruby-vips (2.2.1)
107
+ ruby-vips (2.2.2)
109
108
  ffi (~> 1.12)
109
+ logger
110
110
  rubyzip (2.3.2)
111
111
  simplecov (0.22.0)
112
112
  docile (~> 1.1)
@@ -117,18 +117,18 @@ GEM
117
117
  simplecov (~> 0.19)
118
118
  simplecov-html (0.12.3)
119
119
  simplecov_json_formatter (0.1.4)
120
- strscan (3.1.0)
121
- thor (1.3.1)
120
+ thor (1.3.2)
122
121
  unicode-display_width (2.5.0)
123
- uri (0.13.0)
124
- vcr (6.2.0)
122
+ uri (0.13.1)
123
+ vcr (6.3.1)
124
+ base64
125
125
  vcr_better_binary (0.2.0)
126
126
  vcr (>= 5.0)
127
127
  webmock (3.23.1)
128
128
  addressable (>= 2.8.0)
129
129
  crack (>= 0.3.2)
130
130
  hashdiff (>= 0.4.0, < 2.0.0)
131
- yard (0.9.36)
131
+ yard (0.9.37)
132
132
 
133
133
  PLATFORMS
134
134
  arm64-darwin-22
@@ -158,4 +158,4 @@ DEPENDENCIES
158
158
  yard (~> 0.9)
159
159
 
160
160
  BUNDLED WITH
161
- 2.4.19
161
+ 2.5.18
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RemoveBg
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remove_bg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canva Austria GmbH
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -441,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
441
441
  - !ruby/object:Gem::Version
442
442
  version: '0'
443
443
  requirements: []
444
- rubygems_version: 3.5.11
444
+ rubygems_version: 3.5.16
445
445
  signing_key:
446
446
  specification_version: 4
447
447
  summary: Remove image background - 100% automatically