Skip to content

v0.13.0

Choose a tag to compare

@joemasilotti joemasilotti released this 12 Aug 19:40
· 67 commits to main since this release

Added

  • ruby_native preview now takes its port from PORT when that is set, matching rails server. --port still wins, and an unusable PORT falls back to 3000. Thanks, @jnstq!
  • Taps feel native out of the box. In the app, the web view's gray tap flash is gone, long-pressing a button no longer selects its label, and double-tap zoom is off on links, buttons, and form controls. Pressed states you style with :active now apply instantly on touch instead of after a long hold. Both platforms, both modes.
  • The User-Agent now reports the app's version, build number, and OS version, like Ruby Native iOS/5.2/35 iOS/26.5.2 RubyNative/0.12.5. New helpers read them: native_app_version, native_app_build, and native_os_version. Each is nil on the web; build and OS are also nil in apps built before this release. Both platforms, both modes. Docs
  • RubyNative.toast() accepts per-platform icons, like the helper always has: RubyNative.toast({ message: "Shared.", icons: { ios: "square.and.arrow.up", android: "share" } }). Both platforms, both modes.
  • Linked domains now work on Android: links and QR codes to your site open the app, and saved website passwords fill in the app. Add the android section to config/ruby_native.yml and ship a build after this release. Docs
  • Link only part of your domain with linked_paths. List path prefixes in config/ruby_native.yml and only those URLs open the app; everything else keeps opening in the browser. Both platforms. Docs
  • New CSS variables keep fixed overlays out of the status bar. Banners, toasts, and modal headers anchored with top: can use --ruby-native-safe-area-top (and -bottom) in a max() expression to clear the notch on iOS and the status bar on Android, where raw env(safe-area-inset-*) silently returns 0. Both platforms, both modes. Docs

Fixed

  • rails generate ruby_native:install now works in apps with a customized development config. Apps that disable host checking with config.hosts = nil no longer crash on boot after installing, and apps whose development.rb uses a renamed configure block get the tunnel host added instead of silently skipped.