Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
aeden committed Mar 12, 2011
1 parent 9cb9198 commit 8c1e796
Show file tree
Hide file tree
Showing 20 changed files with 260 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .rvmrc
@@ -0,0 +1,2 @@
rvm use ruby-1.8.7-p249
rvm gemset use presentation
2 changes: 2 additions & 0 deletions .rvmrc-19
@@ -0,0 +1,2 @@
rvm use ruby-1.9.2
rvm gemset use presentation
3 changes: 3 additions & 0 deletions address_book/bin/address-book
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby

AddressBook::Application.run
2 changes: 2 additions & 0 deletions address_book/lib/address_book.rb
@@ -0,0 +1,2 @@
require 'address_book/person'
require 'address_book/address'
8 changes: 8 additions & 0 deletions address_book/lib/address_book/address.rb
@@ -0,0 +1,8 @@
module AddressBook
class Address
attr_accessor :street
attr_accessor :city
attr_accessor :state
attr_accessor :country
end
end
7 changes: 7 additions & 0 deletions address_book/lib/address_book/application.rb
@@ -0,0 +1,7 @@
module AddressBook
class Application
def self.run
# do stuff
end
end
end
11 changes: 11 additions & 0 deletions address_book/lib/address_book/person.rb
@@ -0,0 +1,11 @@
module AddressBook
class Person
@people = {}
def initialize(name)
@name = name
end
def self.find_or_create(name)
@people[name] ||= Person.new(name)
end
end
end
9 changes: 0 additions & 9 deletions address_book/lib/person.rb

This file was deleted.

7 changes: 7 additions & 0 deletions language/5-structuring.md
@@ -0,0 +1,7 @@
!SLIDE

# Structuring Larger Programs #

!SLIDE center

![example](address_book.png)
Binary file added language/address_book.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions libraries/1-packaging.md
Expand Up @@ -6,6 +6,10 @@

# RubyGems #

!SLIDE

# More than 20k Published Gems #

!SLIDE commandline

gem install httparty
Expand Down
17 changes: 17 additions & 0 deletions libraries/2-testing.md
Expand Up @@ -62,3 +62,20 @@
!SLIDE

# Cucumber

!SLIDE

@@@
Feature: create a person
As a user
In order to add someone to my address book
I can create a person

Scenario:
Given I am an authenticated user
And I enter "Anthony Eden" for the name
And I enter "anthony@dnsimple.com" for the email
And I add the user
Then I should see "Anthony Eden"
And I should see "anthony@dnsimple.com"

32 changes: 32 additions & 0 deletions libraries/3-web-frameworks.md
@@ -0,0 +1,32 @@
!SLIDE

# Web Frameworks #

!SLIDE

# Rails #

!SLIDE

$ rails new app_name

!SLIDE

$ rails s

!SLIDE

# Sinatra #

!SLIDE

@@@ruby
require 'sinatra'
get '/hi' do
"Hello World!"
end

!SLIDE

$ ruby -rubygems hi.rb

49 changes: 49 additions & 0 deletions libraries/4-deployment-and-operations.md
@@ -0,0 +1,49 @@
!SLIDE

# Deployment & Operations #

!SLIDE

# Capistrano #

!SLIDE smaller

@@@ruby
set :domain, "example.com"
set :application, "www.example.com"
set :deploy_to, "/var/www/#{domain}/#{application}/public"
set :repository, "git@github.com:username/example.git"
set :scm, :git
set :user, "username"

server "example.com", :app, :web, :db, :primary => true

after "deploy:symlink", "deploy:copy_config"

!SLIDE

# Chef #

!SLIDE smaller

@@@ruby
package "nginx"

directory node[:nginx][:log_dir] do
mode 0755
owner node[:nginx][:user]
action :create
end

%w{nxensite nxdissite}.each do |nxscript|
template "/usr/sbin/#{nxscript}" do
source "#{nxscript}.erb"
mode 0755
owner "root"
group "root"
end
end

!SLIDE

# Fog #
3 changes: 2 additions & 1 deletion showoff.json
Expand Up @@ -4,6 +4,7 @@
"sections":[
{"section":"introduction"},
{"section":"language"},
{"section":"libraries"}
{"section":"libraries"},
{"section":"starting"}
]
}
42 changes: 42 additions & 0 deletions starting/0-installation.md
@@ -0,0 +1,42 @@
!SLIDE

# Getting Started #

!SLIDE

# Installation #

!SLIDE bullets incremental

# OS X or Linux #

* sudo gem update --system
* sudo gem install rvm
* rvm install 1.9.2
* rvm --default 1.9.2

!SLIDE bullets incremental

# Windows #

* http://railsinstaller.org/

!SLIDE

# Ruby Runtimes #

!SLIDE

# MRI #

!SLIDE

# YARV #

!SLIDE

# JRuby #

!SLIDE

# Rubinius #
15 changes: 15 additions & 0 deletions starting/1-learning.md
@@ -0,0 +1,15 @@
!SLIDE

# Learing #

!SLIDE

# rubykoans.com #

!SLIDE

# railsforzombies.org #

!SLIDE

# Books #
35 changes: 35 additions & 0 deletions starting/2-growing.md
@@ -0,0 +1,35 @@
!SLIDE

# Growing

!SLIDE

# Conferences

!SLIDE

# 10th Year of RubyConf #

!SLIDE

# 500+ Attendees Each Year #

!SLIDE

# 6th RailsConf this Year #

!SLIDE

# 1500+ Attendees #

!SLIDE

# Ruby User Groups

!SLIDE

# www.ruby-doc.org/core #

!SLIDE

# Code Retreats
15 changes: 15 additions & 0 deletions starting/3-contributing.md
@@ -0,0 +1,15 @@
!SLIDe

# Contributing #

!SLIDE

# RubyForge #

!SLIDE

# Github #

!SLIDE

# Over 300k repositories #
7 changes: 7 additions & 0 deletions starting/4-end.md
@@ -0,0 +1,7 @@
!SLIDE

# Fin #

## Anthony Eden ##
## Twitter: @aeden ##
## Web: anthonyeden.com ##

0 comments on commit 8c1e796

Please sign in to comment.