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.
data/lib/crawlberg.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:06831f8166c6d860691af36ee02b72ae3246568eb2e5c67ed5d11da71d02afeb
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