-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite rubymotion guide from HAML to Markdown (#1059)
Signed-off-by: Takuya Noguchi <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
~~~ |