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
Shinosaka.rb #3
Search
murajun1978
May 13, 2014
Programming
0
42
Shinosaka.rb #3
murajun1978
May 13, 2014
Tweet
Share
More Decks by murajun1978
See All by murajun1978
Building Tebukuro with Hotwire and Rails
murajun1978
0
740
Zeitwerk integration in Rails 6.0
murajun1978
0
99
Efficient development with GraphQL
murajun1978
0
240
Effective Debugging Apps in VS Code
murajun1978
1
810
tebukuro
murajun1978
0
100
Shinosaka.rb #17 Hands on
murajun1978
0
41
New Features in Rails 4.2
murajun1978
0
870
shinosakarb #11 Rails 4 Pattenrs
murajun1978
1
100
FactoryGirl LT
murajun1978
1
56
Other Decks in Programming
See All in Programming
The Future of C++ Interoperability: Insights from Porting a Game to Swift
teamhimeh
0
290
Enhancing Applications with Accessibility API
kishikawakatsumi
3
1k
RubyVM を PHP で実装する 〜Hello World を出力するまで〜
memory1994
PRO
1
490
Parallel Socket Communication in Swift
s_shimotori
0
260
せっかくモデル図描くのなら、嬉しいことが多い方がいいよね!
kuboaki
1
1.8k
Crafting a Own PHP - ウキウキ手作りミニマリストPHP
uzulla
4
1.1k
今の SmartHR にエンジニアで入社するとどうなるの?
daisukeshinoku
3
1.9k
脱・初心者!脱・マネコン!AWS CDKを使ってみませんか!?
har1101
0
180
【KMC春合宿2024】実装視点で見るNeural Radiance Fields
runningoutrate
0
150
htmx is fun!
codehex
2
190
AppDeveloperCon 2024 EU: Building polyglot developer experiences in 2024
salaboy
0
380
CSRF対策のやり方、そろそろアップデートしませんか / Update your knowledge of CSRF protection
hiro_y
25
15k
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
13
3.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
Raft: Consensus for Rubyists
vanstee
130
6.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
19
1.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
319
20k
Building Applications with DynamoDB
mza
88
5.6k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
Design by the Numbers
sachag
274
18k
What’s in a name? Adding method to the madness
productmarketing
PRO
14
2.6k
Happy Clients
brianwarren
91
6.3k
The Language of Interfaces
destraynor
150
23k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
657
120k
Transcript
Shinosaka.rb #3
RubyGems ύοέʔδཧγεςϜ
gem install … ͍ͭͷ͜Ε
https://github.com/rails/rails
gemͬͯ࡞Δͷ͍͠ʁ
࡞ͬͯΈΑ͏ϔ(^o^)ϊ
http://bundler.io/ https://www.ruby-lang.org http://git-scm.com/
% bundle gem ΩϥΩϥωʔϜˑϛ ͻͳܗ࡞
gemspecͷฤू name: ΩϥΩϥωʔϜˑϛ authors: [“murajun1978”, “murajun”](ྻͰෳࢦఆՄ) email: [“
[email protected]
”](ྻͰෳࢦఆՄ) summary: gemύοέʔδͷઆ໌ͷཁ(gem
list -d Ͱදࣔ͞ΕΔ) description: gemύοέʔδͷৄࡉઆ໌(RubyGemsʹදࣔ͞ΕΔ) homepage: gemύοέʔδͷؔ࿈αΠτ(GitHub PagesͳͲ) license: gemύοέʔδͷϥΠηϯε required_ruby_version: gemύοέʔδʹඞཁͳRubyόʔδϣϯ post_install_message: gemΠϯετʔϧޙʹදࣔ͢Δϝοηʔδ http://guides.rubygems.org/
% bundle gem ΩϥΩϥωʔϜˑϛ -t % mkdir spec % vim
spec/spec_helper.rb $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require ΩϥΩϥωʔϜˑϛ spec_helper.rb ςετڥ( Ŗ`дŖ´)ŝžŕ or
% rake build ͼΔͲ
% gem install pkg/ΩϥΩϥωʔϜˑϛ ͍Μ͢ͱʔΔ
% rake install ͼΔͲ & ͍Μ͢ͱʔΔ
ͬͯΈΑ͏ϔ(^o^)ϊ
GemͷΓΓʔ͢४උ RubyGemsͷΞΧϯτ࡞ API KEYͷొ % curl -u [account_name] https://rubygems.org/api/v1/api_key.yaml >
\ ~/.gem/credentials % chmod 0600 ~/.gem/credentials
% rake release GemͷΓΓʔ͢
ٳܜ͠Αʔͥ(ʆɾωɾ´)
LTΖʔͥ(ʆɾωɾ´)
Ʊ"-ʓ Ʊ"-ʓƱ"-ʓ Ʊ"-ʓ