crawlberg 1.0.1 → 1.0.2
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 +4 -4
- data/ext/crawlberg_rb/native/Cargo.lock +66 -30
- data/ext/crawlberg_rb/native/Cargo.toml +5 -2
- data/ext/crawlberg_rb/src/lib.rs +7 -84
- data/lib/crawlberg/native.rb +81 -39
- data/lib/crawlberg/version.rb +2 -2
- data/lib/crawlberg.rb +10 -1
- data/lib/crawlberg_rb.so +0 -0
- data/sig/types.rbs +372 -372
- metadata +2 -2
data/lib/crawlberg.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:23d662f17ccee663375ea978facec5b4b691adf30860c73224d58efb602c12d2
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -16,3 +16,12 @@ require_relative "crawlberg/native"
|
|
|
16
16
|
module Crawlberg
|
|
17
17
|
# Re-export all types and functions from native extension
|
|
18
18
|
end
|
|
19
|
+
|
|
20
|
+
# Bring top-level Crawlberg classes into the global namespace so callers
|
|
21
|
+
# (and the generated e2e suite) can reference them unqualified. The native
|
|
22
|
+
# extension has already been required above, so every type constant is defined
|
|
23
|
+
# under Crawlberg by this point.
|
|
24
|
+
Crawlberg.constants.each do |const_name|
|
|
25
|
+
value = Crawlberg.const_get(const_name)
|
|
26
|
+
::Object.const_set(const_name, value) if value.is_a?(Module) && !::Object.const_defined?(const_name)
|
|
27
|
+
end
|
data/lib/crawlberg_rb.so
CHANGED
|
Binary file
|