onload 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51cfb4df59e2a2560f42b4e8e12635bba647e53c49f0246be381bf0b4202461e
4
- data.tar.gz: 48baf94964ddd076934dd84b36338cec01ff8446a023ef0aca703a84c269ed6c
3
+ metadata.gz: 28a13165064ab12f90be8cbd747bf6415db93f389372504da6a74be9990fbf7f
4
+ data.tar.gz: ad1c1d895454a361f1d395bff11df2a49d29ca9141f4b17ff84eb5cb8b60d104
5
5
  SHA512:
6
- metadata.gz: b4335856e653c8022fae229cae2ecb880dbb6a36ef3340bb8c2685fa44cd7b6874efbd6a632d4134ae6f7e1377dd6929208eb122b78eb62c7c30a46f46d0d700
7
- data.tar.gz: cafd4311f223a8f8a29eefad15743c164a39f6904e38d7564e87d978d6feb1e765ed99cfe9c178f1310302aa37585f77e7012c201b1dda144b7ca89383340fb8
6
+ metadata.gz: 45318e23c8ced6dd3cfaf49d5f700315963c0d3f8abf0dd10dc2bb97c7a06060bb34806cc6787c3989db8a393c57e32f65114ed2590bd2c7bdad32b719026fec
7
+ data.tar.gz: e21049998cfd402b47b71938156f7f93054508486bb3968ae4a7544cd7c1ff0109799259d1213cf56240501fddb0027b642fdfaa21906d0b16120115a71a7f62
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.1
2
+ * Fix bug causing compiled C extensions (i.e. .bundle and .so files) to be passed to `Kernel.load` when `require`d, which tries to evaluate them as text/Ruby code.
3
+
1
4
  ## 1.0.0
2
5
 
3
6
  * Birthday!
@@ -41,6 +41,7 @@ module Onload
41
41
  end
42
42
 
43
43
  return super(file) unless to_load
44
+ return super(file) if Onload::UNLOADABLE_EXTENSIONS.include?(::File.extname(to_load))
44
45
  return false if $LOADED_FEATURES.include?(to_load)
45
46
 
46
47
  # Must call the Kernel.load class method here because that's the one
@@ -44,7 +44,7 @@ module Kernel
44
44
  end
45
45
  end
46
46
 
47
- unless to_load
47
+ if !to_load || Onload::UNLOADABLE_EXTENSIONS.include?(::File.extname(to_load))
48
48
  # This will be either Ruby's original require or bootsnap's monkeypatched
49
49
  # require in setups that use bootsnap. Lord help us with all these layers
50
50
  # of patches.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onload
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
data/lib/onload.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onload
4
+ UNLOADABLE_EXTENSIONS = %w(.bundle .so .dll).freeze
5
+
4
6
  autoload :File, "onload/file"
5
7
 
6
8
  class << self
@@ -68079,3 +68079,216 @@ Processing by HomeController#index as HTML
68079
68079
  Rendered home/index.html.erb within layouts/application (Duration: 0.8ms | Allocations: 93)
68080
68080
  Rendered layout layouts/application.html.erb (Duration: 0.9ms | Allocations: 148)
68081
68081
  Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 553)
68082
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:39 -0700
68083
+ Processing by HomeController#index as HTML
68084
+ Rendering home/index.html.erb within layouts/application
68085
+ Rendered home/index.html.erb within layouts/application (2.0ms)
68086
+ Completed 200 OK in 8ms (Views: 7.3ms)
68087
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:39 -0700
68088
+ Processing by HomeController#index as HTML
68089
+ Rendering home/index.html.erb within layouts/application
68090
+ Rendered home/index.html.erb within layouts/application (0.2ms)
68091
+ Completed 200 OK in 3ms (Views: 2.0ms)
68092
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:39 -0700
68093
+ Processing by HomeController#index as HTML
68094
+ Rendering home/index.html.erb within layouts/application
68095
+ Rendered home/index.html.erb within layouts/application (1.1ms)
68096
+ Completed 200 OK in 4ms (Views: 3.1ms)
68097
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:43 -0700
68098
+ Processing by HomeController#index as HTML
68099
+ Rendering home/index.html.erb within layouts/application
68100
+ Rendered home/index.html.erb within layouts/application (Duration: 2.4ms | Allocations: 1543)
68101
+ Completed 200 OK in 20ms (Views: 7.7ms | Allocations: 9249)
68102
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:43 -0700
68103
+ Processing by HomeController#index as HTML
68104
+ Rendering home/index.html.erb within layouts/application
68105
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 8)
68106
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 237)
68107
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:43 -0700
68108
+ Processing by HomeController#index as HTML
68109
+ Rendering home/index.html.erb within layouts/application
68110
+ Rendered home/index.html.erb within layouts/application (Duration: 0.8ms | Allocations: 82)
68111
+ Completed 200 OK in 1ms (Views: 1.3ms | Allocations: 463)
68112
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:48 -0700
68113
+ Processing by HomeController#index as HTML
68114
+ Rendering layout layouts/application.html.erb
68115
+ Rendering home/index.html.erb within layouts/application
68116
+ Rendered home/index.html.erb within layouts/application (Duration: 2.4ms | Allocations: 1525)
68117
+ Rendered layout layouts/application.html.erb (Duration: 2.8ms | Allocations: 1652)
68118
+ Completed 200 OK in 22ms (Views: 8.2ms | Allocations: 8641)
68119
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:48 -0700
68120
+ Processing by HomeController#index as HTML
68121
+ Rendering layout layouts/application.html.erb
68122
+ Rendering home/index.html.erb within layouts/application
68123
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 8)
68124
+ Rendered layout layouts/application.html.erb (Duration: 0.2ms | Allocations: 48)
68125
+ Completed 200 OK in 0ms (Views: 0.4ms | Allocations: 249)
68126
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:48 -0700
68127
+ Processing by HomeController#index as HTML
68128
+ Rendering layout layouts/application.html.erb
68129
+ Rendering home/index.html.erb within layouts/application
68130
+ Rendered home/index.html.erb within layouts/application (Duration: 0.7ms | Allocations: 82)
68131
+ Rendered layout layouts/application.html.erb (Duration: 0.9ms | Allocations: 122)
68132
+ Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 435)
68133
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:52 -0700
68134
+ Processing by HomeController#index as HTML
68135
+ Rendering layout layouts/application.html.erb
68136
+ Rendering home/index.html.erb within layouts/application
68137
+ Rendered home/index.html.erb within layouts/application (Duration: 2.9ms | Allocations: 1501)
68138
+ Rendered layout layouts/application.html.erb (Duration: 3.3ms | Allocations: 1631)
68139
+ Completed 200 OK in 29ms (Views: 9.4ms | Allocations: 10592)
68140
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:52 -0700
68141
+ Processing by HomeController#index as HTML
68142
+ Rendering layout layouts/application.html.erb
68143
+ Rendering home/index.html.erb within layouts/application
68144
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 8)
68145
+ Rendered layout layouts/application.html.erb (Duration: 0.2ms | Allocations: 48)
68146
+ Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 225)
68147
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:52 -0700
68148
+ Processing by HomeController#index as HTML
68149
+ Rendering layout layouts/application.html.erb
68150
+ Rendering home/index.html.erb within layouts/application
68151
+ Rendered home/index.html.erb within layouts/application (Duration: 0.8ms | Allocations: 82)
68152
+ Rendered layout layouts/application.html.erb (Duration: 0.9ms | Allocations: 122)
68153
+ Completed 200 OK in 2ms (Views: 1.5ms | Allocations: 411)
68154
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:57 -0700
68155
+ Processing by HomeController#index as HTML
68156
+ Rendering home/index.html.erb within layouts/application
68157
+ Rendered home/index.html.erb within layouts/application (Duration: 3.5ms | Allocations: 1686)
68158
+ Completed 200 OK in 29ms (Views: 16.1ms | Allocations: 10049)
68159
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:57 -0700
68160
+ Processing by HomeController#index as HTML
68161
+ Rendering home/index.html.erb within layouts/application
68162
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 12)
68163
+ Completed 200 OK in 1ms (Views: 0.6ms | Allocations: 289)
68164
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:24:57 -0700
68165
+ Processing by HomeController#index as HTML
68166
+ Rendering home/index.html.erb within layouts/application
68167
+ Rendered home/index.html.erb within layouts/application (Duration: 0.8ms | Allocations: 119)
68168
+ Completed 200 OK in 2ms (Views: 1.6ms | Allocations: 774)
68169
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:01 -0700
68170
+ Processing by HomeController#index as HTML
68171
+ Rendering layout layouts/application.html.erb
68172
+ Rendering home/index.html.erb within layouts/application
68173
+ Rendered home/index.html.erb within layouts/application (Duration: 2.6ms | Allocations: 1669)
68174
+ Rendered layout layouts/application.html.erb (Duration: 3.0ms | Allocations: 1861)
68175
+ Completed 200 OK in 19ms (Views: 8.3ms | Allocations: 9393)
68176
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:01 -0700
68177
+ Processing by HomeController#index as HTML
68178
+ Rendering layout layouts/application.html.erb
68179
+ Rendering home/index.html.erb within layouts/application
68180
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 12)
68181
+ Rendered layout layouts/application.html.erb (Duration: 0.2ms | Allocations: 59)
68182
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 306)
68183
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:01 -0700
68184
+ Processing by HomeController#index as HTML
68185
+ Rendering layout layouts/application.html.erb
68186
+ Rendering home/index.html.erb within layouts/application
68187
+ Rendered home/index.html.erb within layouts/application (Duration: 0.7ms | Allocations: 119)
68188
+ Rendered layout layouts/application.html.erb (Duration: 0.8ms | Allocations: 183)
68189
+ Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 693)
68190
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:05 -0700
68191
+ Processing by HomeController#index as HTML
68192
+ Rendering layout layouts/application.html.erb
68193
+ Rendering home/index.html.erb within layouts/application
68194
+ Rendered home/index.html.erb within layouts/application (Duration: 3.1ms | Allocations: 1646)
68195
+ Rendered layout layouts/application.html.erb (Duration: 3.5ms | Allocations: 1840)
68196
+ Completed 200 OK in 22ms (Views: 7.8ms | Allocations: 11320)
68197
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:05 -0700
68198
+ Processing by HomeController#index as HTML
68199
+ Rendering layout layouts/application.html.erb
68200
+ Rendering home/index.html.erb within layouts/application
68201
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 12)
68202
+ Rendered layout layouts/application.html.erb (Duration: 0.1ms | Allocations: 59)
68203
+ Completed 200 OK in 0ms (Views: 0.3ms | Allocations: 286)
68204
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:05 -0700
68205
+ Processing by HomeController#index as HTML
68206
+ Rendering layout layouts/application.html.erb
68207
+ Rendering home/index.html.erb within layouts/application
68208
+ Rendered home/index.html.erb within layouts/application (Duration: 0.7ms | Allocations: 118)
68209
+ Rendered layout layouts/application.html.erb (Duration: 0.8ms | Allocations: 182)
68210
+ Completed 200 OK in 2ms (Views: 1.4ms | Allocations: 674)
68211
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:11 -0700
68212
+ Processing by HomeController#index as HTML
68213
+ Rendering layout layouts/application.html.erb
68214
+ Rendering home/index.html.erb within layouts/application
68215
+ Rendered home/index.html.erb within layouts/application (Duration: 2.9ms | Allocations: 1667)
68216
+ Rendered layout layouts/application.html.erb (Duration: 3.3ms | Allocations: 1863)
68217
+ Completed 200 OK in 28ms (Views: 9.5ms | Allocations: 9197)
68218
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:12 -0700
68219
+ Processing by HomeController#index as HTML
68220
+ Rendering layout layouts/application.html.erb
68221
+ Rendering home/index.html.erb within layouts/application
68222
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 12)
68223
+ Rendered layout layouts/application.html.erb (Duration: 0.2ms | Allocations: 61)
68224
+ Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 310)
68225
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:12 -0700
68226
+ Processing by HomeController#index as HTML
68227
+ Rendering layout layouts/application.html.erb
68228
+ Rendering home/index.html.erb within layouts/application
68229
+ Rendered home/index.html.erb within layouts/application (Duration: 1.5ms | Allocations: 117)
68230
+ Rendered layout layouts/application.html.erb (Duration: 1.7ms | Allocations: 183)
68231
+ Completed 200 OK in 2ms (Views: 2.2ms | Allocations: 688)
68232
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:16 -0700
68233
+ Processing by HomeController#index as HTML
68234
+ Rendering layout layouts/application.html.erb
68235
+ Rendering home/index.html.erb within layouts/application
68236
+ Rendered home/index.html.erb within layouts/application (Duration: 3.6ms | Allocations: 1643)
68237
+ Rendered layout layouts/application.html.erb (Duration: 4.1ms | Allocations: 1840)
68238
+ Completed 200 OK in 33ms (Views: 11.7ms | Allocations: 11139)
68239
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:17 -0700
68240
+ Processing by HomeController#index as HTML
68241
+ Rendering layout layouts/application.html.erb
68242
+ Rendering home/index.html.erb within layouts/application
68243
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 12)
68244
+ Rendered layout layouts/application.html.erb (Duration: 0.1ms | Allocations: 61)
68245
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 290)
68246
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:17 -0700
68247
+ Processing by HomeController#index as HTML
68248
+ Rendering layout layouts/application.html.erb
68249
+ Rendering home/index.html.erb within layouts/application
68250
+ Rendered home/index.html.erb within layouts/application (Duration: 1.2ms | Allocations: 116)
68251
+ Rendered layout layouts/application.html.erb (Duration: 1.4ms | Allocations: 182)
68252
+ Completed 200 OK in 2ms (Views: 1.9ms | Allocations: 669)
68253
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:22 -0700
68254
+ Processing by HomeController#index as HTML
68255
+ Rendering layout layouts/application.html.erb
68256
+ Rendering home/index.html.erb within layouts/application
68257
+ Rendered home/index.html.erb within layouts/application (Duration: 2.6ms | Allocations: 1867)
68258
+ Rendered layout layouts/application.html.erb (Duration: 2.9ms | Allocations: 2036)
68259
+ Completed 200 OK in 23ms (Views: 9.4ms | Allocations: 10181)
68260
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:22 -0700
68261
+ Processing by HomeController#index as HTML
68262
+ Rendering layout layouts/application.html.erb
68263
+ Rendering home/index.html.erb within layouts/application
68264
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 8)
68265
+ Rendered layout layouts/application.html.erb (Duration: 0.3ms | Allocations: 57)
68266
+ Completed 200 OK in 1ms (Views: 0.8ms | Allocations: 262)
68267
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:22 -0700
68268
+ Processing by HomeController#index as HTML
68269
+ Rendering layout layouts/application.html.erb
68270
+ Rendering home/index.html.erb within layouts/application
68271
+ Rendered home/index.html.erb within layouts/application (Duration: 1.0ms | Allocations: 94)
68272
+ Rendered layout layouts/application.html.erb (Duration: 1.2ms | Allocations: 147)
68273
+ Completed 200 OK in 2ms (Views: 1.6ms | Allocations: 574)
68274
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:27 -0700
68275
+ Processing by HomeController#index as HTML
68276
+ Rendering layout layouts/application.html.erb
68277
+ Rendering home/index.html.erb within layouts/application
68278
+ Rendered home/index.html.erb within layouts/application (Duration: 2.4ms | Allocations: 1840)
68279
+ Rendered layout layouts/application.html.erb (Duration: 2.7ms | Allocations: 2011)
68280
+ Completed 200 OK in 27ms (Views: 8.1ms | Allocations: 12275)
68281
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:28 -0700
68282
+ Processing by HomeController#index as HTML
68283
+ Rendering layout layouts/application.html.erb
68284
+ Rendering home/index.html.erb within layouts/application
68285
+ Rendered home/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 8)
68286
+ Rendered layout layouts/application.html.erb (Duration: 0.1ms | Allocations: 58)
68287
+ Completed 200 OK in 0ms (Views: 0.3ms | Allocations: 240)
68288
+ Started GET "/" for 127.0.0.1 at 2023-07-04 13:25:28 -0700
68289
+ Processing by HomeController#index as HTML
68290
+ Rendering layout layouts/application.html.erb
68291
+ Rendering home/index.html.erb within layouts/application
68292
+ Rendered home/index.html.erb within layouts/application (Duration: 0.9ms | Allocations: 94)
68293
+ Rendered layout layouts/application.html.erb (Duration: 1.1ms | Allocations: 149)
68294
+ Completed 200 OK in 2ms (Views: 1.9ms | Allocations: 554)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onload
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-24 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A preprocessor system for Ruby.
14
14
  email: