Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ruby for iOS developer
Search
Jun Lin
March 14, 2014
Programming
0
1k
Ruby for iOS developer
A brief introduction to Ruby for iOS developer. S01 E01
Jun Lin
March 14, 2014
Tweet
Share
More Decks by Jun Lin
See All by Jun Lin
A brief introduction to GenStage
linjunpop
1
50
Microservices
linjunpop
0
53
Actor Model
linjunpop
0
24
A brief introduction to GitHub
linjunpop
1
65
Test Driven Development
linjunpop
0
43
Ruby 2.0
linjunpop
1
170
Other Decks in Programming
See All in Programming
Pulsar2 を雰囲気で使ってみよう
anoken
0
230
DevinとCursorから学ぶAIエージェントメモリーの設計とMoatの考え方
itarutomy
1
670
SRE、開発、QAが協業して挑んだリリースプロセス改革@SRE Kaigi 2025
nealle
3
4.2k
CNCF Project の作者が考えている OSS の運営
utam0k
6
710
2024年のWebフロントエンドのふりかえりと2025年
sakito
1
240
CI改善もDatadogとともに
taumu
0
110
Software Architecture
hschwentner
6
2.1k
Djangoアプリケーション 運用のリアル 〜問題発生から可視化、最適化への道〜 #pyconshizu
kashewnuts
1
240
Immutable ActiveRecord
megane42
0
140
ファインディLT_ポケモン対戦の定量的分析
fufufukakaka
0
490
Lottieアニメーションをカスタマイズしてみた
tahia910
0
120
SwiftUIで単方向アーキテクチャを導入して得られた成果
takuyaosawa
0
270
Featured
See All Featured
Navigating Team Friction
lara
183
15k
The Language of Interfaces
destraynor
156
24k
GitHub's CSS Performance
jonrohan
1030
460k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
It's Worth the Effort
3n
184
28k
Six Lessons from altMBA
skipperchong
27
3.6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
A designer walks into a library…
pauljervisheath
205
24k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Why Our Code Smells
bkeepers
PRO
336
57k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Transcript
Ruby For iOS developer S01 E01
Concept • Ruby • Version manager(s) • Ruby versions •
Gem • Bundler • CocoaPods
Ruby
A programming language
$ ruby
System Ruby /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Why not use system ruby • Gem dependencies hell •
Outdated
$ sudo gem install NEVER
Version manager(s)
• (RVM) http://rvm.io • (rbenv) https://github.com/sstephenson/rbenv • (chruby) https://github.com/postmodern/chruby
RVM Powerful. It can install, manager ruby versions $ \curl
-sSL https://get.rvm.io | bash -s stable
rbenv Lightweight, but shims is a little painful $ brew
install rbenv ruby-build
chruby Lightweight as rbenv, no shims RECOMMENDED $ brew install
chruby ruby-install
Ruby versions
CRuby, MRI
• ruby-1.8 • ruby-1.9.3-p448 • ruby-2.0.0-p247 • ruby-2.0.0-p353 • ruby-2.1.0
• ruby-2.1.1
1.8 is DEAD
1.9 ~ 2.0
A patch breaks API too • ruby-1.9.3-p327 • ruby-1.9.3-p448
Since 2.1.0
Semantic Versioning https://www.ruby-lang.org/en/news/2013/12/21/semantic-versioning-after-2-1-0/ Finally
.ruby-version
• 2.0.0 • 2.0.0-p353 • 2.1.0 • 2.1.1
Gem
Ships with Ruby, manage gems
rubygems.org
None
Bundler
None
$ gem install bundler
Gemfile source 'https://rubygems.org' gem ‘nokogiri' gem 'rails', github: 'rails/rails' group
:test do gem 'rspec', require: ‘spec' end
$ bundle install
CocoaPods
A Ruby gem $ gem install cocoapods
Podfile similar to Gemfile
Podfile platform :ios, '6.0' ! xcodeproj `MyProject` ! pod 'ObjectiveSugar',
'~> 0.5’ ! target :test do pod 'OCMock', '~> 2.0.1' end
Q&A
Thanks