You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(lazy-loading): add `Faker::Config.lazy_loading?` (#3226)
Adds configuration option to enable/disable lazy loading
so it can be explicitly enabled during beta testing.
* Introduce lazy loading as an optional config (#3228)
* Lazy load generators
To keep this change backwards compatible, we introduce
lazy loading as a config option.
We need to load main classes
first for nested generators such as 'music' and
when lazy loading is not enabled. 'internet/http'.
This will avoid the need for renaming these generators.
Co-authored-by: Thiago Araujo <thd.araujo@gmail.com>
* Clean up skipped generators from determinism test
* Rename test file following conventions
* Run lazy loading smoke test in CI
* Check for true values when setting ENV['FAKER_LAZY_LOAD']
Covers the case of users setting the env using
truthy values.
* Better code for checking for ENV values
---------
Co-authored-by: Thiago Araujo <thd.araujo@gmail.com>
---------
Co-authored-by: Thiago Araujo <707418+thdaraujo@users.noreply.github.com>
Co-authored-by: Thiago Araujo <thd.araujo@gmail.com>
# Faker::HTML.element(tag: 'div', content: "This is a div with XSS attributes.", attributes: {class: 'xss', onclick: "alert('XSS')"}) #=> "<div class=\"xss\" onclick=\"alert('XSS')\">This is a div with XSS attributes.</div>"
0 commit comments