rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

App Version #459

Closed tombroomfield closed 9 years ago

tombroomfield commented 9 years ago

Hi All, love using BubbleWrap.

I have read through the API and could just be missing something, I know it is possible to access the current App's version and build number through ObjC, and it feels like something that should be included in BubbleWrap under the App category. I would love to submit a pull request for the feature if possible.

What do you think?

Tom

markrickert commented 9 years ago

Hey Tom,

You can access the app's version (CFBundleVersion) with App.version.

I'd welcome a PR that added documentation to the readme as well as perhaps App.short_version to pull out the CFBundleShortVersionString (with tests, of course!)

tombroomfield commented 9 years ago

Brilliant, I'll put it together tonight and shoot it over.