Skip to content
Browse files

new pony

  • Loading branch information...
1 parent 4b97565 commit b584543f5d243315ae3ca99d53d980f87e9d1c90 @chadoh committed May 7, 2010
Showing with 12 additions and 5 deletions.
  1. +9 −3 Gemfile.lock
  2. +3 −2 controls.rb
View
12 Gemfile.lock
@@ -37,16 +37,22 @@ dependencies:
- :default
version: ">= 0"
specs:
+- activesupport:
+ version: 2.3.5
- crack:
version: 0.1.7
- haml:
version: 2.2.24
- mime-types:
version: "1.16"
-- tmail:
- version: 1.2.7.1
+- polyglot:
+ version: 0.3.1
+- treetop:
+ version: 1.4.5
+- mail:
+ version: 2.2.0
- pony:
- version: 0.9.1
+ version: "1.0"
- rack:
version: 1.1.0
- rack-flash:
View
5 controls.rb
@@ -80,12 +80,13 @@ def method_missing(name)
#loads in blogger feed
get "/thoughts" do
#for testing in irb:
- #require 'open-uri'; require 'crack'; url = 'http://www.blogger.com/feeds/9096209599953091034/posts/default';xml = open(url).read;feed = Crack::XML.parse(xml).feed;posts = feed.entry;
+ #require 'open-uri'; require 'crack'; url = 'http://www.blogger.com/feeds/9096209599953091034/posts/default?max-results=10';xml = open(url).read;feed = Crack::XML.parse(xml).feed;posts = feed.entry;
url = 'http://www.blogger.com/feeds/9096209599953091034/posts/default?max-results=11'
xml = open(url).read
feed = Crack::XML.parse(xml).feed
@posts = feed.entry
+
haml :thoughts
end
@@ -105,7 +106,7 @@ def method_missing(name)
smtp_options = { :address => 'smtp.sendgrid.net',
:port => '25',
:authentication => :plain,
- :user_name => ENV['SENDGRID_USERNAME'],
+ :user => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => ENV['SENDGRID_DOMAIN']
}

0 comments on commit b584543

Please sign in to comment.
Something went wrong with that request. Please try again.