TryRubyMotionRyusuke (@tanukiti1987)
What’s RubyMotionWe can develop the iOS App and OSX Appwith ruby(MacRuby)We can write spec with bacon like a RSpecFully co...
How To Create App・Create application window・Create view controller・Add label and button to view・Add button action
Create your project
Create applicationwindowIn Obj-C, The methods name are too long,but RubyMotion is expressing with selectorin MacRuby
Create view controllerIn loadView, we have toprepare for views(includes some button).With using BubbleWrapgem, we can add ...
Run your app!$ rake
How To Write SpecAlmost of all useraction can beworked out!(ex. tap, drag,pinch in/out...)We can check the values ofview a...
Run your specs!$ rake specWhile running specs,the simulator actually worksautomatically. It’s pretty cool!
Collaborate withTravis CI【.travis.yml】language: objective-cbefore_install:- (ruby --version)script: "(bundle install) && (...
Develop together!
References...http://www.rubymotion.com/http://www.rubymotion.com/developer-center/articles/testing/https://github.com/tanu...
Upcoming SlideShare
Loading in...5
×

TryRubyMotion

688

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
688
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "TryRubyMotion"

  1. 1. TryRubyMotionRyusuke (@tanukiti1987)
  2. 2. What’s RubyMotionWe can develop the iOS App and OSX Appwith ruby(MacRuby)We can write spec with bacon like a RSpecFully compile to machine code from ruby codeThe license is $199.99(renewal $99)
  3. 3. How To Create App・Create application window・Create view controller・Add label and button to view・Add button action
  4. 4. Create your project
  5. 5. Create applicationwindowIn Obj-C, The methods name are too long,but RubyMotion is expressing with selectorin MacRuby
  6. 6. Create view controllerIn loadView, we have toprepare for views(includes some button).With using BubbleWrapgem, we can add buttonaction like a `blocks`that literal is addedObj-C 2.0.And also, we can usemethod chain!!
  7. 7. Run your app!$ rake
  8. 8. How To Write SpecAlmost of all useraction can beworked out!(ex. tap, drag,pinch in/out...)We can check the values ofview and some instance values
  9. 9. Run your specs!$ rake specWhile running specs,the simulator actually worksautomatically. It’s pretty cool!
  10. 10. Collaborate withTravis CI【.travis.yml】language: objective-cbefore_install:- (ruby --version)script: "(bundle install) && (bundle exec rake clean) && (bundleexec rake spec)"
  11. 11. Develop together!
  12. 12. References...http://www.rubymotion.com/http://www.rubymotion.com/developer-center/articles/testing/https://github.com/tanukiti1987/HelloMotionhttp://qiita.com/items/40f708c2c01e50feddb2

×