-
-
Save phoet/5966205 to your computer and use it in GitHub Desktop.
OMG Rails4!
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
#! /usr/bin/env ruby | |
unless File.exists?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'computering', github: 'phoet/computering' | |
GEMFILE | |
system 'bundle' | |
end | |
system 'bundle exec computering rails4.rb' |
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
headline 'OMG Rails4!' | |
paragraph <<-PARA | |
* EDGE ist cool! | |
* Turbolinks sind so schnell! | |
* PATCH ist mein Lieblings-HTTP-Verb! | |
* Queue-API FTW! | |
PARA | |
link 'Rails4 Überblick', 'http://guides.rubyonrails.org/images/rails4_features.png' | |
headline 'Modularität' | |
link 'extracted gems', 'http://www.andylindeman.com/2013/03/05/gems-extracted-in-rails-4.html' | |
link 'trubo-links gem ist extra', 'https://github.com/rails/turbolinks/#installation' | |
link 'Rails4 Queue-API in 4.1', 'https://blog.engineyard.com/2013/rails-4-queue-api' | |
headline 'Asset Pipeline' | |
paragraph '* nicht mehr so viel krazy shit' | |
command "cd ~/Documents/rails/on_ruby && git co 15f0239977 && rm -rf public/assets/ && time rake assets:precompile && ls -la public/assets/ | grep logo" | |
command "cd ~/Documents/rails/on_ruby && git co master && rm -rf public/assets/ && time rake assets:precompile && ls -la public/assets/ | grep logo" | |
headline 'Multithreaded' | |
link 'Tenderlove threadsafe!', 'http://tenderlovemaking.com/2012/06/18/removing-config-threadsafe.html' | |
headline 'Session-Cookies' | |
link 'secret_token vs. secret_key_base', 'http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html' | |
headline 'Dependencies' | |
paragraph <<-PARA | |
* rails4 branch ist dein freund | |
# Gemfile | |
gem "friendly_id", github: "FriendlyId/friendly_id", branch: "rails4" | |
PARA | |
link 'Ready4Rails4?', 'http://ready4rails4.net/?query=friendly_id' | |
headline 'Upgrading' | |
paragraph <<-PARA | |
* nur noch >= Ruby 1.9.3 | |
* rake rails:update | |
* routes, kein 'match' mehr | |
* strong parameters, kein 'attr_accessible' mehr | |
* dynamic finders sind deprecated | |
* scopes -> { contains: :lambda }, nur lambda syntax | |
* mv vendor/* lib, keine plugins mehr | |
PARA | |
link 'ASCII-Casts Upgrading to Rails4', 'http://asciicasts.com/episodes/415-upgrading-to-rails-4' | |
link 'Upgrading to Rails4 Guides', 'http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-3-2-to-rails-4-0' | |
link 'Get ready for Rails4', 'http://rubysource.com/get-your-app-ready-for-rails-4/' | |
headline 'Zusammenfassung' | |
link 'Rails4 in 30\'', 'https://speakerdeck.com/spastorino/rails-4-in-30' | |
link 'What\'s new Railscast', 'http://railscasts.com/episodes/400-what-s-new-in-rails-4' | |
link 'Release-Notes', 'http://weblog.rubyonrails.org/2013/5/1/Rails-4-0-release-candidate-1/' | |
link 'Edge-Guides Release-Notes', 'http://edgeguides.rubyonrails.org/4_0_release_notes.html' | |
headline "THX!" | |
headline "Questions?" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment