Ruby5 #407
Ruby5 - Episode #407 – October 1st, 2013
- Ruby 2.1 Walkthrough
- Refinements
- Decimal Literals
- Frozen String Literals
- Required Keyword Arguments
- Method Definition returns Method Name
- Removing Garbage Bytes from Strings
- StringScanner supports Named Captures
- Accessing Network Interfaces
- Faster Numbers for Serious Math
- VM changes
- RGenGC
- Updated RubyGems
- tmux
- Remote pairing and browser
- Capybara’s save_and_open_page
- Closures in Ruby
- A closure is a block of code that meets the following criteria
- It can be passed around as a value
- It can be executed on demand by anyone who has that value
- It can refer to variables from the context in which it was created
- helpful in the following scenarios
- Refactoring, Customization, Iterating across collections, Managing resources, Enforcing policy
- A closure is a block of code that meets the following criteria
- Gem Config
- class << self ;attr_accessor :configuration
- def self.configure
- self.configuration ||= Configuration.new
- yield(configuration)
- class Configuration
- attr_accessor :option
- def initialize ; @option = 'default_option'
- generators
- Rails::Generators::Base
- Executable ruby apps
- executable web applications
- Vegas gem
- Vegas helps to create executable version of Sinatra/Rack application
- Launchy.open("http://localhost:9292", :application => MyApp)
- lunchy start postgres
- launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- lunchy ls
- git branching model
- pull rebase (git config --global branch.autosetuprebase always)
- DOs and DON'Ts
- merge bubbles
- git merge --no-ff
- gitflow
- CI Sphero
- Check your build status in Travis CI by Sphero
gemとかコードの例が多い良い話が多かった
復習したい
♫ The Flaming Lips - yoshimi battles the pink robots part 1
by SoundHound