Get More From
RubyMotion
with RubyMine
Dennis Ushakov
RubyMine Team Lead
What is RubyMine?
• Ruby on Rails IDE
•
What is RubyMine?
• Ruby on Rails IDE
• RubyMotion IDE
What is RubyMotion?
• Ruby implementation for iOS and OS X
• Based on MacRuby
Why RubyMotion?
• Easy & mature
• Pure native code
• App Store compliant
Magic 8-Ball
• Sample application by Pragmatic Studio
• Our N1 testing project
Let’s taste
No Objective-C?
No worries!
No worries!
Joybox
BubbleWrap
Sugarcube
ProMotion
Teacup
http://rubymotion-wrappers.com
BubbleWrap
• Collection of helpers and wrappers
• Device properties
• Application state
• JSON
• HTTP requests
• http://bu...
BubbleWrap
def connect
request = NSURLRequest.requestWithURL("https://url.com",
cachePolicy:NSURLRequestUseProtocolCachePo...
BubbleWrap
BW::HTTP.get("https://url.com") do |response|
p response.body.to_str
end
Teacup
• InterfaceBuilder DSL replacement
• Main concepts
• Layouts
• Styles
• https://github.com/rubymotion/teacup
Teacup
class MyController < UIViewController
stylesheet :main_screen
layout do
subview(UIButton, :hi_button)
end
end
Teacu...
Joybox
• Cocos2D
• Box2D
• Tasty Ruby wrappers
• http://joybox.io
Joybox
QuickTime™ and a
AVC Coding decompressor
are needed to see this picture.
Apps
Basecamp
Everclip
ISAF RRS
BaBaBear
Books
http://www.rubymotion.com/developer-center/
Thank you
denofevil
dennis.ushakov@jetbrains.com
en_Dal
Upcoming SlideShare
Loading in …5
×

RubyMotion #jbday

471 views
421 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
471
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

RubyMotion #jbday

  1. 1. Get More From RubyMotion with RubyMine Dennis Ushakov RubyMine Team Lead
  2. 2. What is RubyMine? • Ruby on Rails IDE •
  3. 3. What is RubyMine? • Ruby on Rails IDE • RubyMotion IDE
  4. 4. What is RubyMotion? • Ruby implementation for iOS and OS X • Based on MacRuby
  5. 5. Why RubyMotion? • Easy & mature • Pure native code • App Store compliant
  6. 6. Magic 8-Ball • Sample application by Pragmatic Studio • Our N1 testing project
  7. 7. Let’s taste
  8. 8. No Objective-C? No worries! No worries! Joybox BubbleWrap Sugarcube ProMotion Teacup http://rubymotion-wrappers.com
  9. 9. BubbleWrap • Collection of helpers and wrappers • Device properties • Application state • JSON • HTTP requests • http://bubblewrap.io
  10. 10. BubbleWrap def connect request = NSURLRequest.requestWithURL("https://url.com", cachePolicy:NSURLRequestUseProtocolCachePolicy, timeoutInterval:30.0) connection = NSURLConnection.connectionWithRequest(request, delegate:self) end def connection(connection, didReceiveData:received_data) @received_data ||= NSMutableData.new @received_data.appendData(received_data) end def connectionDidFinishLoading(connection) p @received_data.to_str end # NB: Batteries Error handling not included
  11. 11. BubbleWrap BW::HTTP.get("https://url.com") do |response| p response.body.to_str end
  12. 12. Teacup • InterfaceBuilder DSL replacement • Main concepts • Layouts • Styles • https://github.com/rubymotion/teacup
  13. 13. Teacup class MyController < UIViewController stylesheet :main_screen layout do subview(UIButton, :hi_button) end end Teacup::Stylesheet.new :main_screen do style :hi_button, origin: [10, 10], title: 'Hi!' end
  14. 14. Joybox • Cocos2D • Box2D • Tasty Ruby wrappers • http://joybox.io
  15. 15. Joybox QuickTime™ and a AVC Coding decompressor are needed to see this picture.
  16. 16. Apps Basecamp Everclip ISAF RRS BaBaBear
  17. 17. Books http://www.rubymotion.com/developer-center/
  18. 18. Thank you
  19. 19. denofevil dennis.ushakov@jetbrains.com en_Dal

×