README.md in motion-prime-0.1.1 vs README.md in motion-prime-0.1.2

- old
+ new

@@ -1,6 +1,6 @@ -# MotionPrime [![Build Status](https://travis-ci.org/droidlans/motion-prime.png)](https://travis-ci.org/clearsightstudio/ProMotion) +# MotionPrime [![Build Status](https://travis-ci.org/droidlabs/motion-prime.png)](https://travis-ci.org/droidlabs/motion-prime) ![Prime](https://s3-us-west-2.amazonaws.com/webmate/assets/prime.jpg) MotionPrime is yet another framework written on RubyMotion. @@ -19,47 +19,48 @@ ### 3. Setup application # edit Rakefile -### $. Run application +### 4. Run application $ rake ## Hello World (Sample) - - # app/app_delegate.rb - class AppDelegate < MotionPrime::BaseAppDelegate - def on_load(app, options) - open_root_screen MainScreen.new - end +```ruby + # app/app_delegate.rb + class AppDelegate < MotionPrime::BaseAppDelegate + def on_load(app, options) + open_root_screen MainScreen.new end + end - # app/screens/main_screen.rb - class MainScreen < ApplicationScreen - title 'Main screen' + # app/screens/main_screen.rb + class MainScreen < ApplicationScreen + title 'Main screen' - def render - @main_section = MyProfileSection.new(model: User.first) - @main_section.render(to: self) - end + def render + @main_section = MyProfileSection.new(model: User.first) + @main_section.render(to: self) end + end - # app/sections/my_profile.rb - class MyProfileSection < MotionPrime::BaseSection - element :title, text: "Hello World" - element :avatar, image: "images/avatar.png", type: :image - end + # app/sections/my_profile.rb + class MyProfileSection < MotionPrime::BaseSection + element :title, text: "Hello World" + element :avatar, image: "images/avatar.png", type: :image + end - # app/styles/my_profile.rb - MotionPrime::Styles.define :my_profile do - style :title, - width: 300, height: 20, color: :black, - top: 10, left: 5, background_color: :white + # app/styles/my_profile.rb + MotionPrime::Styles.define :my_profile do + style :title, + width: 300, height: 20, color: :black, + top: 10, left: 5, background_color: :white - style :avatar, - width: 90, height: 90, top: 40, left: 5 - end + style :avatar, + width: 90, height: 90, top: 40, left: 5 + end +``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)