-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
208 lines (178 loc) · 8.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MobiRuby</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="MobiRuby website">
<meta name="author" content="MobiRuby developers">
<!-- Le styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="js/google-code-prettify/prettify.css" rel="stylesheet">
<link href="css/index.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
</head>
<body data-spy="scroll" data-target=".navbar">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">MobiRuby</a>
<div class="nav-collapse collapse">
<ul class="nav navbar">
<li><a href="#top">What's MobiRuby</a></li>
<li><a href="#code">Hello world</a></li>
<li><a href="#apps">Real apps</a></li>
<li><a href="#presentations">Presentations</a></li>
<li><a href="#developers">Developers</a></li>
</ul>
</div>
</div>
</div>
</div>
<header class="jumbotron subhead" id="overview">
<div class="container">
<h1>Ruby + iOS = Super awesome!</h1>
<p class="lead">Are you fed up with Objective-C? Now, you can build iOS apps with Ruby (mruby)!.</p>
</div>
<div class="social-buttons">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmobiruby.org&layout=button_count&show_faces=false&width=96&action=like&colorscheme=light" allowtransparency="true" style="border: medium none ; overflow: hidden; width: 96px; height:20px;" frameborder="0" scrolling="no"></iframe>
<a href="https://twitter.com/mobiruby" class="twitter-follow-button" data-show-count="false">Follow @mobiruby</a>
</div>
</header>
<div class="container">
<section id="top">
<div class="row">
<div class="span4">
<h2>mruby</h2>
<p>MobiRuby takes advantage of <a href="https://github.com/mruby/mruby/">mruby</a>, which is a minimalistic implementation of Ruby. It is a relatively new endeavour by the Ruby founder, <a href="http://en.wikipedia.org/wiki/Yukihiro_Matsumoto">matz</a>. Watch the <a href="http://www.youtube.com/watch?v=n7XRYWclYDY">keynote</a>. mruby was released on April, 20th, 2012. </p>
</div>
<div class="span4">
<h2>Mobile</h2>
<p>MobiRuby aims to replace Objective-C/C/Java on mobile platforms with Ruby, just like you can use Lua or Mono to build apps on those platforms. Now, we have mruby thanks to Matz!</a>
<p>Now, we are working on iOS and Objective-C. We will port MobiRuby to Android at next step.</p>
</div>
<div class="span4">
<h2>Open source</h2>
<p>Currently, It's released alpha version on <a href="https://github.com/mobiruby/mobiruby-ios">https://github.com/mobiruby/mobiruby-ios</a>.</p>
<p>MobiRuby is available under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>.</p>
<p><a class="btn" href="https://github.com/mobiruby/mobiruby-ios">Go to repository »</a></p>
</div>
</div>
</section>
<section id="code">
<h2 class="section">Hello world on MobiRuby</h2>
<div class="row">
<div class="span8">
<p>Currently, You need call Cocoa functions throught Ruby code for making MobiRuby app. We're focusing to build Cocoa bridge now.</p>
<p>In next step, We'll create natual Ruby library for making iOS application.</p>
<pre class="prettyprint linenums lang-rb">
# UIAlertView demo
class Cocoa::MyAlertView < Cocoa::UIAlertView
define C::Void, :didPresentAlertView, Cocoa::Object do
p "MyAlertView::didPresentAlertView"
end
define C::Void, :alertView, Cocoa::Object, :clickedButtonAtIndex, C::Int do |me, index|
if index.to_i == 1
app = Cocoa::UIApplication._sharedApplication
url = Cocoa::NSURL._URLWithString("http://mobiruby.org")
app._openURL url
end
end
end
alert = Cocoa::MyAlertView._alloc._initWithTitle "Hello",
:message, "I am MobiRuby",
:delegate, nil,
:cancelButtonTitle, "I know!",
:otherButtonTitles, "What's?", nil
alert._setDelegate alert
alert._show
</pre>
</div>
<div class="span4">
<p style="margin-top: 20px"><a href="http://www.youtube.com/watch?v=fLB8iLSwup0"><img src="screenshot1.jpg" width="250" height="451" style="margin-left: 50px;"/></a></p>
</div>
</div>
</section>
<section id="apps">
<h2 class="section">In the real world</h2>
<div class="row">
<div class="span6">
<p>AppStore already accepted MobiRuby based apps.</p>
</div>
</div>
<div class="row apps-gallery">
<div class="span2 app">
<p>
<a href="https://itunes.apple.com/us/app/mobiruby-game/id548210182?mt=8">
<img src="img/icon-mobigame.png" class="app-icon" alt="MobiRuby Game">
MobiRuby Game
</a>
</p>
</div>
</div>
</section>
<section id="presentations">
<h2 class="section">Publications</h2>
<div class="row" >
<div class="span5">
<p class="presentation_title">RubyConf 2012</p>
<iframe width="360" height="202" src="http://www.youtube.com/embed/HuPOizo6pSE" frameborder="0" style="border:0; padding:0; margin:0 0 0 4px; " allowfullscreen></iframe>
<a href="https://github.com/masuidrive/mobiruby-rubyconf2012" align="center">Slides and script</a>
</div>
<div class="span4">
<p class="presentation_title">mruby & MobiRuby intro<p>
<iframe src="http://speakerdeck.com/embed/85ad13b057710130191f12313d0539fd" width="300" height="285" style="border:0; padding:0; margin:0 0 0 32px;" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder="0" allowtransparency="true" class="speakerdeck"></iframe>
</div>
</div>
</section>
<section id="developers">
<h2 class="section">Who is bulding MobiRuby?</h2>
<div class="row" >
<div class="span12">
<ul>
<li><a href="https://github.com/masuidrive">masuidrive</a> - Yuichiro MASUI</li>
<li>and <a href="https://github.com/mobiruby/mobiruby-ios/blob/master/AUTHORS">MobiRuby developers</a>.
</ul>
</div>
</div>
</section>
<footer>
<p>© <a href="https://github.com/mobiruby/mobiruby-ios/blob/master/AUTHORS">MobiRuby developers</a> 2012</p>
</footer>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="http://platform.twitter.com/widgets.js" id="twitter-wjs"></script>
<script type="text/javascript">
// make code pretty
window.prettyPrint && prettyPrint();
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30996729-1']);
_gaq.push(['_setDomainName', 'mobiruby.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>