From 03ce1cb772498e2a09844348c471875b1446effd Mon Sep 17 00:00:00 2001 From: Takuya Noguchi Date: Tue, 3 Jan 2023 11:40:17 +0000 Subject: [PATCH] Rewrite rubymotion guide from HAML to Markdown Signed-off-by: Takuya Noguchi --- source/guides/rubymotion.html.haml | 37 ------------------------------ source/guides/rubymotion.html.md | 34 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 37 deletions(-) delete mode 100644 source/guides/rubymotion.html.haml create mode 100644 source/guides/rubymotion.html.md diff --git a/source/guides/rubymotion.html.haml b/source/guides/rubymotion.html.haml deleted file mode 100644 index 0144bc6e3e..0000000000 --- a/source/guides/rubymotion.html.haml +++ /dev/null @@ -1,37 +0,0 @@ -.container.guide - %h2 How to use Bundler with RubyMotion - .contents - .bullet - .description - If you don't have a RubyMotion app yet, generate one. - :code - $ motion create myapp - $ cd myapp - .bullet - .description - You'll need to create a Gemfile. Here we're using bubblewrap. - :code - # lang: ruby - gem 'bubble-wrap' - - .bullet - .description - Then, set up your Rakefile to require your bundled gems at compile time. - Add this to the top of the file, right beneath the line `require 'motion/project'` - :code - # lang: ruby - require 'bundler' - - Bundler.require - - .bullet - .description - Next, install your dependencies: - :code - $ bundle install - - .bullet - .description - Now you can just compile your app as normal. - :code - $ bundle exec rake diff --git a/source/guides/rubymotion.html.md b/source/guides/rubymotion.html.md new file mode 100644 index 0000000000..57222b6569 --- /dev/null +++ b/source/guides/rubymotion.html.md @@ -0,0 +1,34 @@ +## How to use Bundler with RubyMotion + +If you don't have a RubyMotion app yet, generate one. + +~~~ +$ motion create myapp +$ cd myapp +~~~ + +You'll need to create a Gemfile. Here we're using bubblewrap. + +~~~ruby +gem 'bubble-wrap' +~~~ + +Then, set up your Rakefile to require your bundled gems at compile time. +Add this to the top of the file, right beneath the line `require 'motion/project'` + +~~~ruby +require 'bundler' +Bundler.require +~~~ + +Next, install your dependencies: + +~~~ +$ bundle install +~~~ + +Now you can just compile your app as normal. + +~~~ +$ bundle exec rake +~~~