rest-client 2.1.0.rc1-x86-mswin32 → 2.1.0-x86-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop-disables.yml +21 -22
- data/.travis.yml +29 -16
- data/README.md +7 -2
- data/history.md +23 -3
- data/lib/restclient/payload.rb +1 -1
- data/lib/restclient/request.rb +5 -0
- data/lib/restclient/version.rb +1 -1
- data/rest-client.gemspec +2 -2
- data/spec/integration/capath_digicert/3513523f.0 +22 -0
- data/spec/integration/capath_digicert/399e7759.0 +22 -0
- data/spec/integration/capath_digicert/digicert.crt +20 -17
- data/spec/integration/certs/digicert.crt +20 -17
- data/spec/integration/httpbin_spec.rb +1 -1
- data/spec/unit/request_spec.rb +2 -2
- metadata +12 -13
- data/spec/integration/capath_digicert/244b5494.0 +0 -19
- data/spec/integration/capath_digicert/81b9768f.0 +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7fb97efc6a70f375d9fc616325db9aa2be2548200a9e55047c66f3c32758fb06
|
4
|
+
data.tar.gz: f0432ab4e8799131cb84e2db8d994736cdeb76fd478181737dd7447537fda08d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361389b594755fc6d18f3380e787aa6e529f4a28b9c96c8dbea1529f566b5a70990f6593ba0795aff9241e13440560b8d5f7f1e96484f9a391a294b9dae73c50
|
7
|
+
data.tar.gz: 8b7474cb9e83354de1b06220bf709d97db32d076115e0743d929498c339821c8aad36357759582ec9e87ff2d79bcaac62ebc43ce315c97f80b3ce5a626ab28a1
|
data/.rubocop-disables.yml
CHANGED
@@ -53,8 +53,9 @@ Style/BracesAroundHashParameters:
|
|
53
53
|
Enabled: false
|
54
54
|
|
55
55
|
# Offense count: 1
|
56
|
-
|
57
|
-
|
56
|
+
Naming/ClassAndModuleCamelCase:
|
57
|
+
Exclude:
|
58
|
+
- lib/restclient/windows/root_certs.rb
|
58
59
|
|
59
60
|
# Offense count: 2
|
60
61
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
@@ -102,7 +103,7 @@ Style/ConditionalAssignment:
|
|
102
103
|
EnforcedStyle: assign_inside_condition
|
103
104
|
|
104
105
|
# Offense count: 2
|
105
|
-
|
106
|
+
Naming/ConstantName:
|
106
107
|
Enabled: false
|
107
108
|
|
108
109
|
# TODO: eh?
|
@@ -162,11 +163,9 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
162
163
|
Style/Encoding:
|
163
164
|
Enabled: false
|
164
165
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
Style/FileName:
|
169
|
-
Enabled: false
|
166
|
+
Naming/FileName:
|
167
|
+
Exclude:
|
168
|
+
- lib/rest-client.rb
|
170
169
|
|
171
170
|
# Offense count: 3
|
172
171
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
@@ -185,12 +184,9 @@ Style/HashSyntax:
|
|
185
184
|
Style/IfUnlessModifier:
|
186
185
|
Enabled: false
|
187
186
|
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
192
|
-
Layout/IndentHash:
|
193
|
-
Enabled: false
|
187
|
+
Layout/IndentFirstHashElement:
|
188
|
+
Exclude:
|
189
|
+
- 'spec/**/*.rb'
|
194
190
|
|
195
191
|
# NOTABUG
|
196
192
|
# Offense count: 19
|
@@ -262,7 +258,7 @@ Style/PercentLiteralDelimiters:
|
|
262
258
|
|
263
259
|
# Offense count: 3
|
264
260
|
# Configuration parameters: NamePrefixBlacklist.
|
265
|
-
|
261
|
+
Naming/PredicateName:
|
266
262
|
Enabled: false
|
267
263
|
|
268
264
|
# TODO: configure
|
@@ -327,11 +323,6 @@ Layout/EmptyLinesAroundBlockBody:
|
|
327
323
|
Layout/SpaceInsideBlockBraces:
|
328
324
|
Enabled: false
|
329
325
|
|
330
|
-
# Offense count: 6
|
331
|
-
# Cop supports --auto-correct.
|
332
|
-
Layout/SpaceInsideBrackets:
|
333
|
-
Enabled: false
|
334
|
-
|
335
326
|
# Offense count: 181
|
336
327
|
# Cop supports --auto-correct.
|
337
328
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
@@ -350,8 +341,10 @@ Layout/SpaceInsideParens:
|
|
350
341
|
Style/StringLiterals:
|
351
342
|
Enabled: false
|
352
343
|
|
353
|
-
Style/
|
354
|
-
EnforcedStyleForMultiline:
|
344
|
+
Style/TrailingCommaInArrayLiteral:
|
345
|
+
EnforcedStyleForMultiline: consistent_comma
|
346
|
+
Style/TrailingCommaInHashLiteral:
|
347
|
+
EnforcedStyleForMultiline: consistent_comma
|
355
348
|
Style/TrailingCommaInArguments:
|
356
349
|
Enabled: false
|
357
350
|
|
@@ -385,3 +378,9 @@ Style/WordArray:
|
|
385
378
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
386
379
|
Style/BarePercentLiterals:
|
387
380
|
Enabled: false
|
381
|
+
|
382
|
+
|
383
|
+
Style/RescueStandardError:
|
384
|
+
Exclude:
|
385
|
+
- 'bin/restclient'
|
386
|
+
- 'lib/restclient/windows/root_certs.rb'
|
data/.travis.yml
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
# Available ruby versions: http://rubies.travis-ci.org/
|
2
2
|
|
3
3
|
language: ruby
|
4
|
+
sudo: false
|
4
5
|
|
5
6
|
os:
|
6
7
|
- linux
|
7
|
-
- osx
|
8
|
+
# - osx
|
8
9
|
|
9
10
|
rvm:
|
10
|
-
- "2.0.0"
|
11
11
|
- "2.1" # latest 2.1.x
|
12
|
-
- "2.2.
|
13
|
-
- "2.3.
|
14
|
-
- "2.4.
|
12
|
+
- "2.2.10"
|
13
|
+
- "2.3.8"
|
14
|
+
- "2.4.6"
|
15
|
+
- "2.5.5"
|
16
|
+
- "2.6.3"
|
15
17
|
- "ruby-head"
|
16
|
-
- "jruby-9.
|
17
|
-
- "jruby-9.1.5.0"
|
18
|
+
- "jruby-9.1.9.0"
|
18
19
|
- "jruby-head"
|
19
20
|
|
20
21
|
cache: bundler
|
@@ -28,22 +29,34 @@ branches:
|
|
28
29
|
- "readme-edits"
|
29
30
|
|
30
31
|
before_install:
|
31
|
-
|
32
|
+
# Install rubygems < 3.0 so that we can support ruby < 2.3
|
33
|
+
# https://github.com/rubygems/rubygems/issues/2534
|
34
|
+
- gem install rubygems-update -v '<3' && update_rubygems
|
32
35
|
# bundler installation needed for jruby-head
|
33
36
|
# https://github.com/travis-ci/travis-ci/issues/5861
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
#
|
38
|
-
#
|
37
|
+
# stick to bundler 1.x in order to support ruby < 2.3
|
38
|
+
- gem install bundler -v '~> 1.17'
|
39
|
+
|
40
|
+
# Travis macOS support is pretty janky. These are some hacks to include tests
|
41
|
+
# only on versions that actually work. We test on macOS because Apple monkey
|
42
|
+
# patches OpenSSL to have different behavior, and we want to ensure that SSL
|
43
|
+
# verification at least is broken in the expected ways on macOS.
|
44
|
+
# (last tested: 2019-08)
|
39
45
|
matrix:
|
40
46
|
# exclude: {}
|
41
|
-
|
47
|
+
include:
|
48
|
+
# test only a few versions on mac
|
49
|
+
- os: osx
|
50
|
+
rvm: 2.6.3
|
51
|
+
- os: osx
|
52
|
+
rvm: ruby-head
|
53
|
+
- os: osx
|
54
|
+
rvm: jruby-9.1.9.0
|
55
|
+
- os: osx
|
56
|
+
rvm: jruby-head
|
42
57
|
|
43
58
|
allow_failures:
|
44
59
|
- rvm: 'ruby-head'
|
45
60
|
|
46
61
|
# return results as soon as mandatory versions are done
|
47
62
|
fast_finish: true
|
48
|
-
|
49
|
-
sudo: false
|
data/README.md
CHANGED
@@ -601,8 +601,13 @@ $ restclient put http://example.com/resource < input_body
|
|
601
601
|
|
602
602
|
To enable logging globally you can:
|
603
603
|
|
604
|
-
- set RestClient.log with a Ruby Logger
|
605
|
-
|
604
|
+
- set RestClient.log with a Ruby Logger
|
605
|
+
|
606
|
+
```ruby
|
607
|
+
RestClient.log = STDOUT
|
608
|
+
```
|
609
|
+
|
610
|
+
- or set an environment variable to avoid modifying the code (in this case you can use a file name, "stdout" or "stderr"):
|
606
611
|
|
607
612
|
```ruby
|
608
613
|
$ RESTCLIENT_LOG=stdout path/to/my/program
|
data/history.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# 2.1.0
|
1
|
+
# 2.1.0
|
2
2
|
|
3
3
|
- Add a dependency on http-accept for parsing Content-Type charset headers.
|
4
|
-
This works around a bad memory leak introduced in Ruby 2.4.
|
5
|
-
|
4
|
+
This works around a bad memory leak introduced in MRI Ruby 2.4.0 and fixed in
|
5
|
+
Ruby 2.4.2. (#615)
|
6
6
|
- Use mime/types/columnar from mime-types 2.6.1+, which is leaner in memory
|
7
7
|
usage than the older storage model of mime-types. (#393)
|
8
8
|
- Add `:log` option to individual requests. This allows users to set a log on a
|
@@ -11,6 +11,10 @@
|
|
11
11
|
`log_response` a method on the Response object, and ensure the `size` method
|
12
12
|
works on RawResponse objects. (#126)
|
13
13
|
- `# => 200 OK | text/html 1270 bytes, 0.08s`
|
14
|
+
- Also add a new `:stream_log_percent` parameter, which is applicable only
|
15
|
+
when `:raw_response => true` is set. This causes progress logs to be
|
16
|
+
emitted only on every N% (default 10%) of the total download size rather
|
17
|
+
than on every chunk.
|
14
18
|
- Drop custom handling of compression and use built-in Net::HTTP support for
|
15
19
|
supported Content-Encodings like gzip and deflate. Don't set any explicit
|
16
20
|
`Accept-Encoding` header, rely instead on Net::HTTP defaults. (#597)
|
@@ -212,6 +216,22 @@ release:
|
|
212
216
|
- Disable timeouts with :timeout => nil rather than :timeout => -1
|
213
217
|
- Drop all Net::HTTP monkey patches
|
214
218
|
|
219
|
+
# 1.6.14
|
220
|
+
|
221
|
+
- This release is unchanged from 1.6.9. It was published in order to supersede
|
222
|
+
the malicious 1.6.10-13 versions, even for users who are still pinning to the
|
223
|
+
legacy 1.6.x series. All users are encouraged to upgrade to rest-client 2.x.
|
224
|
+
|
225
|
+
# 1.6.10, 1.6.11, 1.6.12, 1.6.13 (CVE-2019-15224)
|
226
|
+
|
227
|
+
- These versions were pushed by a malicious actor and included a backdoor permitting
|
228
|
+
remote code execution in Rails environments. (#713)
|
229
|
+
- They were live for about five days before being yanked.
|
230
|
+
|
231
|
+
# 1.6.9
|
232
|
+
|
233
|
+
- Move rdoc to a development dependency
|
234
|
+
|
215
235
|
# 1.6.8
|
216
236
|
|
217
237
|
- The 1.6.x series will be the last to support Ruby 1.8.7
|
data/lib/restclient/payload.rb
CHANGED
data/lib/restclient/request.rb
CHANGED
@@ -28,6 +28,11 @@ module RestClient
|
|
28
28
|
# * :user and :password for basic auth, will be replaced by a user/password available in the :url
|
29
29
|
# * :block_response call the provided block with the HTTPResponse as parameter
|
30
30
|
# * :raw_response return a low-level RawResponse instead of a Response
|
31
|
+
# * :log Set the log for this request only, overriding RestClient.log, if
|
32
|
+
# any.
|
33
|
+
# * :stream_log_percent (Only relevant with :raw_response => true) Customize
|
34
|
+
# the interval at which download progress is logged. Defaults to every
|
35
|
+
# 10% complete.
|
31
36
|
# * :max_redirects maximum number of redirections (default to 10)
|
32
37
|
# * :proxy An HTTP proxy URI to use for this request. Any value here
|
33
38
|
# (including nil) will override RestClient.proxy.
|
data/lib/restclient/version.rb
CHANGED
data/rest-client.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ['REST Client Team']
|
9
9
|
s.description = 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.'
|
10
10
|
s.license = 'MIT'
|
11
|
-
s.email = 'rest
|
11
|
+
s.email = 'discuss@rest-client.groups.io'
|
12
12
|
s.executables = ['restclient']
|
13
13
|
s.extra_rdoc_files = ['README.md', 'history.md']
|
14
14
|
s.files = `git ls-files -z`.split("\0")
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency('pry', '~> 0')
|
22
22
|
s.add_development_dependency('pry-doc', '~> 0')
|
23
23
|
s.add_development_dependency('rdoc', '>= 2.4.2', '< 6.0')
|
24
|
-
s.add_development_dependency('rubocop', '~> 0')
|
24
|
+
s.add_development_dependency('rubocop', '~> 0.49')
|
25
25
|
|
26
26
|
s.add_dependency('http-accept', '>= 1.7.0', '< 2.0')
|
27
27
|
s.add_dependency('http-cookie', '>= 1.0.2', '< 2.0')
|
@@ -0,0 +1,22 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBh
|
3
|
+
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
4
|
+
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD
|
5
|
+
QTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAwMDAwMDBaMGExCzAJBgNVBAYTAlVT
|
6
|
+
MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j
|
7
|
+
b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkqhkiG
|
8
|
+
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsB
|
9
|
+
CSDMAZOnTjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97
|
10
|
+
nh6Vfe63SKMI2tavegw5BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt
|
11
|
+
43C/dxC//AH2hdmoRBBYMql1GNXRor5H4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7P
|
12
|
+
T19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4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls
|
20
|
+
YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk
|
21
|
+
CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
|
19
22
|
-----END CERTIFICATE-----
|
data/spec/unit/request_spec.rb
CHANGED
@@ -1221,10 +1221,10 @@ describe RestClient::Request, :include_helpers do
|
|
1221
1221
|
expect(@request.process_url_params('https://example.com/', params: {
|
1222
1222
|
foo: [1,2,3],
|
1223
1223
|
null: nil,
|
1224
|
-
|
1224
|
+
falsy: false,
|
1225
1225
|
math: '2+2=4',
|
1226
1226
|
nested: {'key + escaped' => 'value + escaped', other: [], arr: [1,2]},
|
1227
|
-
})).to eq 'https://example.com/?foo[]=1&foo[]=2&foo[]=3&null&
|
1227
|
+
})).to eq 'https://example.com/?foo[]=1&foo[]=2&foo[]=3&null&falsy=false&math=2%2B2%3D4' \
|
1228
1228
|
'&nested[key+%2B+escaped]=value+%2B+escaped&nested[other]' \
|
1229
1229
|
'&nested[arr][]=1&nested[arr][]=2'
|
1230
1230
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: x86-mswin32
|
6
6
|
authors:
|
7
7
|
- REST Client Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
95
|
+
version: '0.49'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
102
|
+
version: '0.49'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: http-accept
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,7 +190,7 @@ dependencies:
|
|
190
190
|
version: '1.9'
|
191
191
|
description: 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework
|
192
192
|
style of specifying actions: get, put, post, delete.'
|
193
|
-
email: rest
|
193
|
+
email: discuss@rest-client.groups.io
|
194
194
|
executables:
|
195
195
|
- restclient
|
196
196
|
extensions: []
|
@@ -233,8 +233,8 @@ files:
|
|
233
233
|
- spec/ISS.jpg
|
234
234
|
- spec/helpers.rb
|
235
235
|
- spec/integration/_lib.rb
|
236
|
-
- spec/integration/capath_digicert/
|
237
|
-
- spec/integration/capath_digicert/
|
236
|
+
- spec/integration/capath_digicert/3513523f.0
|
237
|
+
- spec/integration/capath_digicert/399e7759.0
|
238
238
|
- spec/integration/capath_digicert/README
|
239
239
|
- spec/integration/capath_digicert/digicert.crt
|
240
240
|
- spec/integration/capath_verisign/415660c1.0
|
@@ -275,12 +275,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: 2.0.0
|
276
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
277
|
requirements:
|
278
|
-
- - "
|
278
|
+
- - ">="
|
279
279
|
- !ruby/object:Gem::Version
|
280
|
-
version:
|
280
|
+
version: '0'
|
281
281
|
requirements: []
|
282
|
-
|
283
|
-
rubygems_version: 2.6.12
|
282
|
+
rubygems_version: 3.0.3
|
284
283
|
signing_key:
|
285
284
|
specification_version: 4
|
286
285
|
summary: Simple HTTP and REST client for Ruby, inspired by microframework syntax for
|
@@ -289,8 +288,8 @@ test_files:
|
|
289
288
|
- spec/ISS.jpg
|
290
289
|
- spec/helpers.rb
|
291
290
|
- spec/integration/_lib.rb
|
292
|
-
- spec/integration/capath_digicert/
|
293
|
-
- spec/integration/capath_digicert/
|
291
|
+
- spec/integration/capath_digicert/3513523f.0
|
292
|
+
- spec/integration/capath_digicert/399e7759.0
|
294
293
|
- spec/integration/capath_digicert/README
|
295
294
|
- spec/integration/capath_digicert/digicert.crt
|
296
295
|
- spec/integration/capath_verisign/415660c1.0
|
@@ -1,19 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG
|
3
|
-
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw
|
4
|
-
KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw
|
5
|
-
MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ
|
6
|
-
MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu
|
7
|
-
Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm+9S75S0t
|
8
|
-
Mqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTWPNt0OKRKzE0lgvdKpVMS
|
9
|
-
OO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEMxChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3
|
10
|
-
MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFBIk5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0a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