restify 2.0.2 → 3.0.0.rc2

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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/README.md +31 -5
  4. data/lib/restify/adapter/base.rb +11 -2
  5. data/lib/restify/adapter/ethon.rb +462 -0
  6. data/lib/restify/adapter/loop_lock.rb +124 -0
  7. data/lib/restify/adapter/telemetry.rb +6 -4
  8. data/lib/restify/adapter/typhoeus.rb +48 -23
  9. data/lib/restify/cache.rb +1 -1
  10. data/lib/restify/context.rb +5 -5
  11. data/lib/restify/error.rb +13 -0
  12. data/lib/restify/global.rb +9 -30
  13. data/lib/restify/logging.rb +10 -4
  14. data/lib/restify/processors/base/parsing.rb +13 -1
  15. data/lib/restify/promise.rb +20 -2
  16. data/lib/restify/registry.rb +2 -2
  17. data/lib/restify/relation.rb +9 -17
  18. data/lib/restify/request.rb +2 -2
  19. data/lib/restify/resource.rb +20 -2
  20. data/lib/restify/response.rb +41 -5
  21. data/lib/restify/timeout.rb +11 -5
  22. data/lib/restify/version.rb +3 -3
  23. data/lib/restify/webmock.rb +126 -0
  24. data/lib/restify.rb +5 -1
  25. data/spec/restify/adapter/base_spec.rb +33 -0
  26. data/spec/restify/adapter/ethon_spec.rb +263 -0
  27. data/spec/restify/adapter/loop_lock_spec.rb +144 -0
  28. data/spec/restify/adapter/telemetry_spec.rb +61 -0
  29. data/spec/restify/adapter/typhoeus_spec.rb +26 -0
  30. data/spec/restify/cache_spec.rb +1 -3
  31. data/spec/restify/context_spec.rb +57 -2
  32. data/spec/restify/features/opentelemetry_spec.rb +1 -1
  33. data/spec/restify/features/protocols_spec.rb +28 -0
  34. data/spec/restify/features/redirects_spec.rb +45 -0
  35. data/spec/restify/features/request_errors_spec.rb +1 -1
  36. data/spec/restify/features/response_bodies_spec.rb +45 -0
  37. data/spec/restify/features/response_encoding_spec.rb +82 -0
  38. data/spec/restify/features/response_errors_spec.rb +22 -1
  39. data/spec/restify/features/webmock_spec.rb +92 -1
  40. data/spec/restify/global_spec.rb +118 -1
  41. data/spec/restify/link_spec.rb +13 -3
  42. data/spec/restify/processors/json_spec.rb +36 -0
  43. data/spec/restify/processors/msgpack_spec.rb +36 -0
  44. data/spec/restify/promise_spec.rb +82 -0
  45. data/spec/restify/relation_spec.rb +22 -7
  46. data/spec/restify/request_spec.rb +26 -0
  47. data/spec/restify/resource_spec.rb +6 -0
  48. data/spec/restify/timeout_spec.rb +11 -0
  49. data/spec/restify_spec.rb +1 -1
  50. data/spec/spec_helper.rb +10 -7
  51. data/spec/support/stub_server.rb +4 -4
  52. metadata +27 -105
  53. data/vendor/bundle/ruby/3.4.0/bundler/gems/my-rubocop-3bcd2110ca87/LICENSE +0 -21
  54. data/vendor/bundle/ruby/3.4.0/bundler/gems/my-rubocop-3bcd2110ca87/README.md +0 -23
  55. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/CHANGELOG.md +0 -255
  56. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/MIT-LICENSE +0 -20
  57. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/README.rdoc +0 -40
  58. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +0 -301
  59. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +0 -202
  60. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +0 -121
  61. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt +0 -22
  62. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md +0 -48
  63. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +0 -138
  64. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE +0 -56
  65. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +0 -603
  66. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +0 -21
  67. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +0 -407
  68. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/LICENSE +0 -20
  69. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/README.md +0 -167
  70. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt +0 -22
  71. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md +0 -375
  72. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE +0 -20
  73. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md +0 -118
  74. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/CHANGELOG.md +0 -473
  75. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE +0 -24
  76. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE.SPECS +0 -22
  77. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/README.md +0 -137
  78. data/vendor/bundle/ruby/3.4.0/gems/hitimes-3.1.0/LICENSE.txt +0 -16
  79. data/vendor/bundle/ruby/3.4.0/gems/hitimes-3.1.0/README.md +0 -187
  80. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/MIT-LICENSE +0 -20
  81. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/README.md +0 -127
  82. data/vendor/bundle/ruby/3.4.0/gems/little-plugger-1.1.4/README.rdoc +0 -53
  83. data/vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/README.md +0 -104
  84. data/vendor/bundle/ruby/3.4.0/gems/logging-2.4.0/LICENSE +0 -22
  85. data/vendor/bundle/ruby/3.4.0/gems/logging-2.4.0/README.md +0 -140
  86. data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.5/README.rdoc +0 -842
  87. data/vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/ChangeLog +0 -368
  88. data/vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/LICENSE +0 -177
  89. data/vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/README.md +0 -302
  90. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +0 -275
  91. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +0 -20
  92. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +0 -121
  93. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/CHANGELOG.md +0 -193
  94. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/LICENSE +0 -201
  95. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/README.md +0 -68
  96. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/CHANGELOG.md +0 -98
  97. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/LICENSE +0 -201
  98. data/vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/README.md +0 -62
  99. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/CHANGELOG.md +0 -498
  100. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/LICENSE.txt +0 -22
  101. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/README.md +0 -222
  102. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/CHANGELOG.md +0 -1146
  103. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/MIT-LICENSE +0 -20
  104. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/README.md +0 -355
  105. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE +0 -21
  106. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc +0 -155
  107. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +0 -21
  108. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +0 -107
  109. data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +0 -72
  110. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md +0 -410
  111. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE +0 -22
  112. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md +0 -588
  113. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +0 -19
  114. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +0 -406
  115. data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/README.md +0 -55
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 3.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
@@ -9,20 +9,6 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
- - !ruby/object:Gem::Dependency
13
- name: activesupport
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: '0'
19
- type: :runtime
20
- prerelease: false
21
- version_requirements: !ruby/object:Gem::Requirement
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: '0'
26
12
  - !ruby/object:Gem::Dependency
27
13
  name: addressable
28
14
  requirement: !ruby/object:Gem::Requirement
@@ -52,47 +38,47 @@ dependencies:
52
38
  - !ruby/object:Gem::Version
53
39
  version: '1.0'
54
40
  - !ruby/object:Gem::Dependency
55
- name: hitimes
41
+ name: ethon
56
42
  requirement: !ruby/object:Gem::Requirement
57
43
  requirements:
58
- - - ">="
44
+ - - "~>"
59
45
  - !ruby/object:Gem::Version
60
- version: '0'
46
+ version: 0.18.0
61
47
  type: :runtime
62
48
  prerelease: false
63
49
  version_requirements: !ruby/object:Gem::Requirement
64
50
  requirements:
65
- - - ">="
51
+ - - "~>"
66
52
  - !ruby/object:Gem::Version
67
- version: '0'
53
+ version: 0.18.0
68
54
  - !ruby/object:Gem::Dependency
69
- name: logging
55
+ name: msgpack
70
56
  requirement: !ruby/object:Gem::Requirement
71
57
  requirements:
72
58
  - - "~>"
73
59
  - !ruby/object:Gem::Version
74
- version: '2.0'
60
+ version: '1.2'
75
61
  type: :runtime
76
62
  prerelease: false
77
63
  version_requirements: !ruby/object:Gem::Requirement
78
64
  requirements:
79
65
  - - "~>"
80
66
  - !ruby/object:Gem::Version
81
- version: '2.0'
67
+ version: '1.2'
82
68
  - !ruby/object:Gem::Dependency
83
- name: msgpack
69
+ name: nio4r
84
70
  requirement: !ruby/object:Gem::Requirement
85
71
  requirements:
86
72
  - - "~>"
87
73
  - !ruby/object:Gem::Version
88
- version: '1.2'
74
+ version: '2.0'
89
75
  type: :runtime
90
76
  prerelease: false
91
77
  version_requirements: !ruby/object:Gem::Requirement
92
78
  requirements:
93
79
  - - "~>"
94
80
  - !ruby/object:Gem::Version
95
- version: '1.2'
81
+ version: '2.0'
96
82
  - !ruby/object:Gem::Dependency
97
83
  name: opentelemetry-api
98
84
  requirement: !ruby/object:Gem::Requirement
@@ -135,20 +121,6 @@ dependencies:
135
121
  - - ">="
136
122
  - !ruby/object:Gem::Version
137
123
  version: '0'
138
- - !ruby/object:Gem::Dependency
139
- name: typhoeus
140
- requirement: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '1.3'
145
- type: :runtime
146
- prerelease: false
147
- version_requirements: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '1.3'
152
124
  description: An experimental hypermedia REST client that uses parallel, keep-alive
153
125
  and pipelined requests by default.
154
126
  email:
@@ -162,6 +134,8 @@ files:
162
134
  - README.md
163
135
  - lib/restify.rb
164
136
  - lib/restify/adapter/base.rb
137
+ - lib/restify/adapter/ethon.rb
138
+ - lib/restify/adapter/loop_lock.rb
165
139
  - lib/restify/adapter/telemetry.rb
166
140
  - lib/restify/adapter/typhoeus.rb
167
141
  - lib/restify/cache.rb
@@ -182,14 +156,24 @@ files:
182
156
  - lib/restify/response.rb
183
157
  - lib/restify/timeout.rb
184
158
  - lib/restify/version.rb
159
+ - lib/restify/webmock.rb
160
+ - spec/restify/adapter/base_spec.rb
161
+ - spec/restify/adapter/ethon_spec.rb
162
+ - spec/restify/adapter/loop_lock_spec.rb
163
+ - spec/restify/adapter/telemetry_spec.rb
164
+ - spec/restify/adapter/typhoeus_spec.rb
185
165
  - spec/restify/cache_spec.rb
186
166
  - spec/restify/context_spec.rb
187
167
  - spec/restify/error_spec.rb
188
168
  - spec/restify/features/head_requests_spec.rb
189
169
  - spec/restify/features/opentelemetry_spec.rb
170
+ - spec/restify/features/protocols_spec.rb
171
+ - spec/restify/features/redirects_spec.rb
190
172
  - spec/restify/features/request_bodies_spec.rb
191
173
  - spec/restify/features/request_errors_spec.rb
192
174
  - spec/restify/features/request_headers_spec.rb
175
+ - spec/restify/features/response_bodies_spec.rb
176
+ - spec/restify/features/response_encoding_spec.rb
193
177
  - spec/restify/features/response_errors_spec.rb
194
178
  - spec/restify/features/webmock_spec.rb
195
179
  - spec/restify/global_spec.rb
@@ -200,75 +184,13 @@ files:
200
184
  - spec/restify/promise_spec.rb
201
185
  - spec/restify/registry_spec.rb
202
186
  - spec/restify/relation_spec.rb
187
+ - spec/restify/request_spec.rb
203
188
  - spec/restify/resource_spec.rb
204
189
  - spec/restify/timeout_spec.rb
205
190
  - spec/restify_spec.rb
206
191
  - spec/spec_helper.rb
207
192
  - spec/support/opentelemetry.rb
208
193
  - spec/support/stub_server.rb
209
- - vendor/bundle/ruby/3.4.0/bundler/gems/my-rubocop-3bcd2110ca87/LICENSE
210
- - vendor/bundle/ruby/3.4.0/bundler/gems/my-rubocop-3bcd2110ca87/README.md
211
- - vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/CHANGELOG.md
212
- - vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/MIT-LICENSE
213
- - vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/README.rdoc
214
- - vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md
215
- - vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt
216
- - vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md
217
- - vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt
218
- - vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md
219
- - vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md
220
- - vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE
221
- - vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md
222
- - vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt
223
- - vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md
224
- - vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/LICENSE
225
- - vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/README.md
226
- - vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt
227
- - vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md
228
- - vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE
229
- - vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md
230
- - vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/CHANGELOG.md
231
- - vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE
232
- - vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/LICENSE.SPECS
233
- - vendor/bundle/ruby/3.4.0/gems/ffi-1.17.2-x86_64-linux-gnu/README.md
234
- - vendor/bundle/ruby/3.4.0/gems/hitimes-3.1.0/LICENSE.txt
235
- - vendor/bundle/ruby/3.4.0/gems/hitimes-3.1.0/README.md
236
- - vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/MIT-LICENSE
237
- - vendor/bundle/ruby/3.4.0/gems/i18n-1.14.7/README.md
238
- - vendor/bundle/ruby/3.4.0/gems/little-plugger-1.1.4/README.rdoc
239
- - vendor/bundle/ruby/3.4.0/gems/logger-1.7.0/README.md
240
- - vendor/bundle/ruby/3.4.0/gems/logging-2.4.0/LICENSE
241
- - vendor/bundle/ruby/3.4.0/gems/logging-2.4.0/README.md
242
- - vendor/bundle/ruby/3.4.0/gems/minitest-5.25.5/README.rdoc
243
- - vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/ChangeLog
244
- - vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/LICENSE
245
- - vendor/bundle/ruby/3.4.0/gems/msgpack-1.8.0/README.md
246
- - vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md
247
- - vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md
248
- - vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md
249
- - vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/CHANGELOG.md
250
- - vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/LICENSE
251
- - vendor/bundle/ruby/3.4.0/gems/opentelemetry-api-1.5.0/README.md
252
- - vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/CHANGELOG.md
253
- - vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/LICENSE
254
- - vendor/bundle/ruby/3.4.0/gems/opentelemetry-common-0.22.0/README.md
255
- - vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/CHANGELOG.md
256
- - vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/LICENSE.txt
257
- - vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.2/README.md
258
- - vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/CHANGELOG.md
259
- - vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/MIT-LICENSE
260
- - vendor/bundle/ruby/3.4.0/gems/rack-3.1.15/README.md
261
- - vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE
262
- - vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc
263
- - vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE
264
- - vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md
265
- - vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md
266
- - vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md
267
- - vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE
268
- - vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md
269
- - vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE
270
- - vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md
271
- - vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/README.md
272
194
  homepage: https://github.com/jgraichen/restify
273
195
  licenses:
274
196
  - LGPL-3.0+
@@ -281,14 +203,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
203
  requirements:
282
204
  - - ">="
283
205
  - !ruby/object:Gem::Version
284
- version: 3.1.0
206
+ version: 3.3.0
285
207
  required_rubygems_version: !ruby/object:Gem::Requirement
286
208
  requirements:
287
209
  - - ">="
288
210
  - !ruby/object:Gem::Version
289
211
  version: '0'
290
212
  requirements: []
291
- rubygems_version: 3.6.7
213
+ rubygems_version: 4.0.20
292
214
  specification_version: 4
293
215
  summary: An experimental hypermedia REST client.
294
216
  test_files: []
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 Jan Graichen
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,23 +0,0 @@
1
- # Shared RuboCop Configuration
2
-
3
- Shared RuboCop configuration and defaults for my libraries and projects.
4
-
5
- ## Usage
6
-
7
- ```ruby
8
- # Gemfile
9
-
10
- gem 'rubocop-config', github: 'jgraichen/rubocop-config', tag: 'v13', require: false
11
- ```
12
-
13
- ```yaml
14
- # .rubocop.yml
15
-
16
- inherit_gem:
17
- rubocop-config: default.yml
18
-
19
- AllCops:
20
- TargetRubyVersion: 3.1
21
- SuggestExtensions: False
22
- NewCops: enable
23
- ```
@@ -1,255 +0,0 @@
1
- ## Rails 8.0.2 (March 12, 2025) ##
2
-
3
- * No changes.
4
-
5
-
6
- ## Rails 8.0.2 (March 12, 2025) ##
7
-
8
- * Fix setting `to_time_preserves_timezone` from `new_framework_defaults_8_0.rb`.
9
-
10
- *fatkodima*
11
-
12
- * Fix Active Support Cache `fetch_multi` when local store is active.
13
-
14
- `fetch_multi` now properly yield to the provided block for missing entries
15
- that have been recorded as such in the local store.
16
-
17
- *Jean Boussier*
18
-
19
- * Fix execution wrapping to report all exceptions, including `Exception`.
20
-
21
- If a more serious error like `SystemStackError` or `NoMemoryError` happens,
22
- the error reporter should be able to report these kinds of exceptions.
23
-
24
- *Gannon McGibbon*
25
-
26
- * Fix `RedisCacheStore` and `MemCacheStore` to also handle connection pool related errors.
27
-
28
- These errors are rescued and reported to `Rails.error`.
29
-
30
- *Jean Boussier*
31
-
32
- * Fix `ActiveSupport::Cache#read_multi` to respect version expiry when using local cache.
33
-
34
- *zzak*
35
-
36
- * Fix `ActiveSupport::MessageVerifier` and `ActiveSupport::MessageEncryptor` configuration of `on_rotation` callback.
37
-
38
- ```ruby
39
- verifier.rotate(old_secret).on_rotation { ... }
40
- ```
41
-
42
- Now both work as documented.
43
-
44
- *Jean Boussier*
45
-
46
- * Fix `ActiveSupport::MessageVerifier` to always be able to verify both URL-safe and URL-unsafe payloads.
47
-
48
- This is to allow transitioning seemlessly from either configuration without immediately invalidating
49
- all previously generated signed messages.
50
-
51
- *Jean Boussier*, *Florent Beaurain*, *Ali Sepehri*
52
-
53
- * Fix `cache.fetch` to honor the provided expiry when `:race_condition_ttl` is used.
54
-
55
- ```ruby
56
- cache.fetch("key", expires_in: 1.hour, race_condition_ttl: 5.second) do
57
- "something"
58
- end
59
- ```
60
-
61
- In the above example, the final cache entry would have a 10 seconds TTL instead
62
- of the requested 1 hour.
63
-
64
- *Dhia*
65
-
66
- * Better handle procs with splat arguments in `set_callback`.
67
-
68
- *Radamés Roriz*
69
-
70
- * Fix `String#mb_chars` to not mutate the receiver.
71
-
72
- Previously it would call `force_encoding` on the receiver,
73
- now it dups the receiver first.
74
-
75
- *Jean Boussier*
76
-
77
- * Improve `ErrorSubscriber` to also mark error causes as reported.
78
-
79
- This avoid some cases of errors being reported twice, notably in views because of how
80
- errors are wrapped in `ActionView::Template::Error`.
81
-
82
- *Jean Boussier*
83
-
84
- * Fix `Module#module_parent_name` to return the correct name after the module has been named.
85
-
86
- When called on an anonymous module, the return value wouldn't change after the module was given a name
87
- later by being assigned to a constant.
88
-
89
- ```ruby
90
- mod = Module.new
91
- mod.module_parent_name # => "Object"
92
- MyModule::Something = mod
93
- mod.module_parent_name # => "MyModule"
94
- ```
95
-
96
- *Jean Boussier*
97
-
98
-
99
- ## Rails 8.0.1 (December 13, 2024) ##
100
-
101
- * Fix a bug in `ERB::Util.tokenize` that causes incorrect tokenization when ERB tags are preceeded by multibyte characters.
102
-
103
- *Martin Emde*
104
-
105
- * Restore the ability to decorate methods generated by `class_attribute`.
106
-
107
- It always has been complicated to use Module#prepend or an alias method chain
108
- to decorate methods defined by `class_attribute`, but became even harder in 8.0.
109
-
110
- This capability is now supported for both reader and writer methods.
111
-
112
- *Jean Boussier*
113
-
114
-
115
- ## Rails 8.0.0.1 (December 10, 2024) ##
116
-
117
- * No changes.
118
-
119
-
120
- ## Rails 8.0.0 (November 07, 2024) ##
121
-
122
- * No changes.
123
-
124
-
125
- ## Rails 8.0.0.rc2 (October 30, 2024) ##
126
-
127
- * No changes.
128
-
129
-
130
- ## Rails 8.0.0.rc1 (October 19, 2024) ##
131
-
132
- * Remove deprecated support to passing an array of strings to `ActiveSupport::Deprecation#warn`.
133
-
134
- *Rafael Mendonça França*
135
-
136
- * Remove deprecated support to setting `attr_internal_naming_format` with a `@` prefix.
137
-
138
- *Rafael Mendonça França*
139
-
140
- * Remove deprecated `ActiveSupport::ProxyObject`.
141
-
142
- *Rafael Mendonça França*
143
-
144
- * Don't execute i18n watcher on boot. It shouldn't catch any file changes initially,
145
- and unnecessarily slows down boot of applications with lots of translations.
146
-
147
- *Gannon McGibbon*, *David Stosik*
148
-
149
- * Fix `ActiveSupport::HashWithIndifferentAccess#stringify_keys` to stringify all keys not just symbols.
150
-
151
- Previously:
152
-
153
- ```ruby
154
- { 1 => 2 }.with_indifferent_access.stringify_keys[1] # => 2
155
- ```
156
-
157
- After this change:
158
-
159
- ```ruby
160
- { 1 => 2 }.with_indifferent_access.stringify_keys["1"] # => 2
161
- ```
162
-
163
- This change can be seen as a bug fix, but since it behaved like this for a very long time, we're deciding
164
- to not backport the fix and to make the change in a major release.
165
-
166
- *Jean Boussier*
167
-
168
- ## Rails 8.0.0.beta1 (September 26, 2024) ##
169
-
170
- * Include options when instrumenting `ActiveSupport::Cache::Store#delete` and `ActiveSupport::Cache::Store#delete_multi`.
171
-
172
- *Adam Renberg Tamm*
173
-
174
- * Print test names when running `rails test -v` for parallel tests.
175
-
176
- *John Hawthorn*, *Abeid Ahmed*
177
-
178
- * Deprecate `Benchmark.ms` core extension.
179
-
180
- The `benchmark` gem will become bundled in Ruby 3.5
181
-
182
- *Earlopain*
183
-
184
- * `ActiveSupport::TimeWithZone#inspect` now uses ISO 8601 style time like `Time#inspect`
185
-
186
- *John Hawthorn*
187
-
188
- * `ActiveSupport::ErrorReporter#report` now assigns a backtrace to unraised exceptions.
189
-
190
- Previously reporting an un-raised exception would result in an error report without
191
- a backtrace. Now it automatically generates one.
192
-
193
- *Jean Boussier*
194
-
195
- * Add `escape_html_entities` option to `ActiveSupport::JSON.encode`.
196
-
197
- This allows for overriding the global configuration found at
198
- `ActiveSupport.escape_html_entities_in_json` for specific calls to `to_json`.
199
-
200
- This should be usable from controllers in the following manner:
201
- ```ruby
202
- class MyController < ApplicationController
203
- def index
204
- render json: { hello: "world" }, escape_html_entities: false
205
- end
206
- end
207
- ```
208
-
209
- *Nigel Baillie*
210
-
211
- * Raise when using key which can't respond to `#to_sym` in `EncryptedConfiguration`.
212
-
213
- As is the case when trying to use an Integer or Float as a key, which is unsupported.
214
-
215
- *zzak*
216
-
217
- * Deprecate addition and since between two `Time` and `ActiveSupport::TimeWithZone`.
218
-
219
- Previously adding time instances together such as `10.days.ago + 10.days.ago` or `10.days.ago.since(10.days.ago)` produced a nonsensical future date. This behavior is deprecated and will be removed in Rails 8.1.
220
-
221
- *Nick Schwaderer*
222
-
223
- * Support rfc2822 format for Time#to_fs & Date#to_fs.
224
-
225
- *Akshay Birajdar*
226
-
227
- * Optimize load time for `Railtie#initialize_i18n`. Filter `I18n.load_path`s passed to the file watcher to only those
228
- under `Rails.root`. Previously the watcher would grab all available locales, including those in gems
229
- which do not require a watcher because they won't change.
230
-
231
- *Nick Schwaderer*
232
-
233
- * Add a `filter` option to `in_order_of` to prioritize certain values in the sorting without filtering the results
234
- by these values.
235
-
236
- *Igor Depolli*
237
-
238
- * Improve error message when using `assert_difference` or `assert_changes` with a
239
- proc by printing the proc's source code (MRI only).
240
-
241
- *Richard Böhme*, *Jean Boussier*
242
-
243
- * Add a new configuration value `:zone` for `ActiveSupport.to_time_preserves_timezone` and rename the previous `true` value to `:offset`. The new default value is `:zone`.
244
-
245
- *Jason Kim*, *John Hawthorn*
246
-
247
- * Align instrumentation `payload[:key]` in ActiveSupport::Cache to follow the same pattern, with namespaced and normalized keys.
248
-
249
- *Frederik Erbs Spang Thomsen*
250
-
251
- * Fix `travel_to` to set usec 0 when `with_usec` is `false` and the given argument String or DateTime.
252
-
253
- *mopp*
254
-
255
- Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/activesupport/CHANGELOG.md) for previous changes.
@@ -1,20 +0,0 @@
1
- Copyright (c) David Heinemeier Hansson
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,40 +0,0 @@
1
- = Active Support -- Utility classes and Ruby extensions from \Rails
2
-
3
- Active Support is a collection of utility classes and standard library
4
- extensions that were found useful for the \Rails framework. These additions
5
- reside in this package so they can be loaded as needed in Ruby projects
6
- outside of \Rails.
7
-
8
- You can read more about the extensions in the {Active Support Core Extensions}[https://guides.rubyonrails.org/active_support_core_extensions.html] guide.
9
-
10
- == Download and installation
11
-
12
- The latest version of Active Support can be installed with RubyGems:
13
-
14
- $ gem install activesupport
15
-
16
- Source code can be downloaded as part of the \Rails project on GitHub:
17
-
18
- * https://github.com/rails/rails/tree/main/activesupport
19
-
20
-
21
- == License
22
-
23
- Active Support is released under the MIT license:
24
-
25
- * https://opensource.org/licenses/MIT
26
-
27
-
28
- == Support
29
-
30
- API documentation is at:
31
-
32
- * https://api.rubyonrails.org
33
-
34
- Bug reports for the Ruby on \Rails project can be filed here:
35
-
36
- * https://github.com/rails/rails/issues
37
-
38
- Feature requests should be discussed on the rails-core mailing list here:
39
-
40
- * https://discuss.rubyonrails.org/c/rubyonrails-core