Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bensheldon/objc2rubymotion
Convert Objective-C code to RubyMotion
https://github.com/bensheldon/objc2rubymotion
rubymotion
Last synced: 22 days ago
JSON representation
Convert Objective-C code to RubyMotion
- Host: GitHub
- URL: https://github.com/bensheldon/objc2rubymotion
- Owner: bensheldon
- License: mit
- Created: 2013-05-02T02:00:15.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T16:23:50.000Z (about 2 years ago)
- Last Synced: 2024-10-03T12:45:02.545Z (about 1 month ago)
- Topics: rubymotion
- Language: CoffeeScript
- Homepage: https://bensheldon.github.io/objc2rubymotion/
- Size: 329 KB
- Stars: 29
- Watchers: 8
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
objc2rubymotion
===============**Objective-C to Rubymotion Converter**: Use it at https://bensheldon.github.io/objc2rubymotion/
Based on the [Sublime-ObjcToRubyMotion](https://github.com/thinkclay/Sublime-ObjcToRubyMotion) plugin. Inspiration to the [Atom-Objc2Rubymotion](https://github.com/ahmetabdi/atom-objc-2-rubymotion) plugin.
Implementation
--------------Coffeescript mostly; statically built with Jekyll. Currently performs the following conversions:
- removes semicolons at end of lines
- replaces NSString with ruby strings
- converts square bracketed `[method message]` calls to `method.message` calls, and reformats their arguments
- removes `autorelease` declarations
- removes removes type declarationsView the [list of tests](assets/javascripts/spec/converter_spec.coffee) for a full list of conversions that are performed.
Development
-----------Install it locally.
```bash
$ bundle install
```Run it:
```bash
$ bundle exec jekyll serve
```Visit it: http://localhost:4000/objc2rubymotion