RubyGateway: Embed Ruby in Swift
RubyGateway is a framework for integrating Ruby code in Swift applications on macOS and Linux, supporting bidirectional API calls, easy installation, and comprehensive documentation, licensed under MIT.
Read original articleRubyGateway is a framework designed to facilitate the integration of Ruby code within Swift applications on macOS and Linux. It allows developers to load Ruby Gems, execute Ruby scripts, and invoke APIs bidirectionally. The framework is compatible with Swift 5.9 or later and Ruby 2.6 or later. Key features include the ability to call Ruby methods from Swift, define Ruby classes and methods in Swift, and convert data types between Swift and Ruby seamlessly. Installation can be accomplished through various package managers, including Carthage, Swift Package Manager, and CocoaPods. Comprehensive documentation, including a user guide and API references, is available online, along with a docset for Dash. The project encourages contributions and is licensed under the MIT license, making it accessible for developers to enhance and modify as needed.
- RubyGateway enables seamless interaction between Swift and Ruby on macOS and Linux.
- It supports calling Ruby methods from Swift and vice versa.
- Installation is straightforward via Carthage, Swift Package Manager, or CocoaPods.
- Comprehensive documentation is provided for users and developers.
- The project is open for contributions and is licensed under the MIT license.
Related
NodeSwift: Bridge Node.js and Swift
NodeSwift facilitates Swift and Node.js communication, leveraging macOS APIs, SwiftPM, NPM, and Swift for enhanced performance. It emphasizes safety, simplicity, and cross-platform compatibility, simplifying memory management and offering seamless integration.
Ruby: A great language for shell scripts
Ruby is praised for shell scripting due to its features like calling external commands, handling status codes, using types, functional constructs, regex matching, threading, and file operations. It's recommended for complex scripts alongside Bash.
Rye: A Hassle-Free Python Experience
Rye is a Python project and package management tool for developers. It simplifies Python installations, project management, dependencies, and virtual environments. Installation instructions are available for Linux, macOS, and Windows systems. Users need Rust and Cargo for Rye.
Mastering Ruby Code Navigation: Ruby LSP Enhancements in the First Half of 2024
In early 2024, the Ruby Language Server Protocol improved code navigation, enhancing features like hover and go-to-definition. Rails addon updates facilitate navigation in models, views, and controllers, with ongoing experimental features.
Claude for Mac: The unofficial desktop app for Anthropic Claude
LDSwiftEventSource is a Swift library for the LaunchDarkly iOS SDK, supporting multiple Apple platforms, requiring Swift 5.1+, and installable via CocoaPods, Carthage, or Swift Package Manager.
On the other hand, there's a project on iOS, "Rubyist", that embeds mRuby and lets you actually write, parse, and execute ruby code within your app. It even has some hooks for calling into some iOS APIs (Widget APIs, most notably). It's a fun idea, but might be a dead project. https://rubyist.app
I wish there was a canonical Xcode project getting mRuby imported into an iOS/Mac app, so anyone could use it as a starting point for their ideas. I dunno, maybe one is out there and I just haven't found it?
Also, the project spelled "access" wrong here:
// Acess an attribute print("Name is \(student.get("name"))")
I don't know if it's worth making a PR for such a tiny thing.
Related
NodeSwift: Bridge Node.js and Swift
NodeSwift facilitates Swift and Node.js communication, leveraging macOS APIs, SwiftPM, NPM, and Swift for enhanced performance. It emphasizes safety, simplicity, and cross-platform compatibility, simplifying memory management and offering seamless integration.
Ruby: A great language for shell scripts
Ruby is praised for shell scripting due to its features like calling external commands, handling status codes, using types, functional constructs, regex matching, threading, and file operations. It's recommended for complex scripts alongside Bash.
Rye: A Hassle-Free Python Experience
Rye is a Python project and package management tool for developers. It simplifies Python installations, project management, dependencies, and virtual environments. Installation instructions are available for Linux, macOS, and Windows systems. Users need Rust and Cargo for Rye.
Mastering Ruby Code Navigation: Ruby LSP Enhancements in the First Half of 2024
In early 2024, the Ruby Language Server Protocol improved code navigation, enhancing features like hover and go-to-definition. Rails addon updates facilitate navigation in models, views, and controllers, with ongoing experimental features.
Claude for Mac: The unofficial desktop app for Anthropic Claude
LDSwiftEventSource is a Swift library for the LaunchDarkly iOS SDK, supporting multiple Apple platforms, requiring Swift 5.1+, and installable via CocoaPods, Carthage, or Swift Package Manager.