jugend-httparty 0.5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/History +209 -0
- data/MIT-LICENSE +20 -0
- data/Manifest +47 -0
- data/README.rdoc +54 -0
- data/Rakefile +80 -0
- data/VERSION +1 -0
- data/bin/httparty +108 -0
- data/cucumber.yml +1 -0
- data/examples/aaws.rb +32 -0
- data/examples/basic.rb +11 -0
- data/examples/custom_parsers.rb +67 -0
- data/examples/delicious.rb +37 -0
- data/examples/google.rb +16 -0
- data/examples/rubyurl.rb +14 -0
- data/examples/twitter.rb +31 -0
- data/examples/whoismyrep.rb +10 -0
- data/features/basic_authentication.feature +20 -0
- data/features/command_line.feature +7 -0
- data/features/deals_with_http_error_codes.feature +26 -0
- data/features/handles_multiple_formats.feature +34 -0
- data/features/steps/env.rb +23 -0
- data/features/steps/httparty_response_steps.rb +26 -0
- data/features/steps/httparty_steps.rb +27 -0
- data/features/steps/mongrel_helper.rb +78 -0
- data/features/steps/remote_service_steps.rb +61 -0
- data/features/supports_redirection.feature +22 -0
- data/features/supports_timeout_option.feature +13 -0
- data/jugend-httparty.gemspec +127 -0
- data/lib/httparty/cookie_hash.rb +22 -0
- data/lib/httparty/core_extensions.rb +31 -0
- data/lib/httparty/exceptions.rb +26 -0
- data/lib/httparty/module_inheritable_attributes.rb +25 -0
- data/lib/httparty/parser.rb +141 -0
- data/lib/httparty/request.rb +206 -0
- data/lib/httparty/response.rb +62 -0
- data/lib/httparty.rb +343 -0
- data/spec/fixtures/delicious.xml +23 -0
- data/spec/fixtures/empty.xml +0 -0
- data/spec/fixtures/google.html +3 -0
- data/spec/fixtures/twitter.json +1 -0
- data/spec/fixtures/twitter.xml +403 -0
- data/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
- data/spec/httparty/cookie_hash_spec.rb +71 -0
- data/spec/httparty/parser_spec.rb +154 -0
- data/spec/httparty/request_spec.rb +415 -0
- data/spec/httparty/response_spec.rb +83 -0
- data/spec/httparty_spec.rb +514 -0
- data/spec/spec.opts +3 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/support/stub_response.rb +30 -0
- data/website/css/common.css +47 -0
- data/website/index.html +73 -0
- metadata +209 -0
data/lib/httparty.rb
ADDED
@@ -0,0 +1,343 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'net/http'
|
3
|
+
require 'net/https'
|
4
|
+
require 'crack'
|
5
|
+
|
6
|
+
dir = Pathname.new(__FILE__).dirname.expand_path
|
7
|
+
|
8
|
+
require dir + 'httparty/module_inheritable_attributes'
|
9
|
+
require dir + 'httparty/cookie_hash'
|
10
|
+
require dir + 'httparty/net_digest_auth'
|
11
|
+
|
12
|
+
module HTTParty
|
13
|
+
VERSION = "0.5.2".freeze
|
14
|
+
CRACK_DEPENDENCY = "0.1.7".freeze
|
15
|
+
|
16
|
+
module AllowedFormatsDeprecation
|
17
|
+
def const_missing(const)
|
18
|
+
if const.to_s =~ /AllowedFormats$/
|
19
|
+
Kernel.warn("Deprecated: Use HTTParty::Parser::SupportedFormats")
|
20
|
+
HTTParty::Parser::SupportedFormats
|
21
|
+
else
|
22
|
+
super
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
extend AllowedFormatsDeprecation
|
28
|
+
|
29
|
+
def self.included(base)
|
30
|
+
base.extend ClassMethods
|
31
|
+
base.send :include, HTTParty::ModuleInheritableAttributes
|
32
|
+
base.send(:mattr_inheritable, :default_options)
|
33
|
+
base.send(:mattr_inheritable, :default_cookies)
|
34
|
+
base.instance_variable_set("@default_options", {})
|
35
|
+
base.instance_variable_set("@default_cookies", CookieHash.new)
|
36
|
+
end
|
37
|
+
|
38
|
+
module ClassMethods
|
39
|
+
extend AllowedFormatsDeprecation
|
40
|
+
|
41
|
+
# Allows setting http proxy information to be used
|
42
|
+
#
|
43
|
+
# class Foo
|
44
|
+
# include HTTParty
|
45
|
+
# http_proxy 'http://foo.com', 80
|
46
|
+
# end
|
47
|
+
def http_proxy(addr=nil, port = nil)
|
48
|
+
default_options[:http_proxyaddr] = addr
|
49
|
+
default_options[:http_proxyport] = port
|
50
|
+
end
|
51
|
+
|
52
|
+
# Allows setting a base uri to be used for each request.
|
53
|
+
# Will normalize uri to include http, etc.
|
54
|
+
#
|
55
|
+
# class Foo
|
56
|
+
# include HTTParty
|
57
|
+
# base_uri 'twitter.com'
|
58
|
+
# end
|
59
|
+
def base_uri(uri=nil)
|
60
|
+
return default_options[:base_uri] unless uri
|
61
|
+
default_options[:base_uri] = HTTParty.normalize_base_uri(uri)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Allows setting basic authentication username and password.
|
65
|
+
#
|
66
|
+
# class Foo
|
67
|
+
# include HTTParty
|
68
|
+
# basic_auth 'username', 'password'
|
69
|
+
# end
|
70
|
+
def basic_auth(u, p)
|
71
|
+
default_options[:basic_auth] = {:username => u, :password => p}
|
72
|
+
end
|
73
|
+
|
74
|
+
# Allows setting digest authentication username and password.
|
75
|
+
#
|
76
|
+
# class Foo
|
77
|
+
# include HTTParty
|
78
|
+
# digest_auth 'username', 'password'
|
79
|
+
# end
|
80
|
+
def digest_auth(u, p)
|
81
|
+
default_options[:digest_auth] = {:username => u, :password => p}
|
82
|
+
end
|
83
|
+
|
84
|
+
# Allows setting default parameters to be appended to each request.
|
85
|
+
# Great for api keys and such.
|
86
|
+
#
|
87
|
+
# class Foo
|
88
|
+
# include HTTParty
|
89
|
+
# default_params :api_key => 'secret', :another => 'foo'
|
90
|
+
# end
|
91
|
+
def default_params(h={})
|
92
|
+
raise ArgumentError, 'Default params must be a hash' unless h.is_a?(Hash)
|
93
|
+
default_options[:default_params] ||= {}
|
94
|
+
default_options[:default_params].merge!(h)
|
95
|
+
end
|
96
|
+
|
97
|
+
# Allows setting a default timeout for all HTTP calls
|
98
|
+
# Timeout is specified in seconds.
|
99
|
+
#
|
100
|
+
# class Foo
|
101
|
+
# include HTTParty
|
102
|
+
# default_timeout 10
|
103
|
+
# end
|
104
|
+
def default_timeout(t)
|
105
|
+
raise ArgumentError, 'Timeout must be an integer' unless t && t.is_a?(Integer)
|
106
|
+
default_options[:timeout] = t
|
107
|
+
end
|
108
|
+
|
109
|
+
# Set an output stream for debugging, defaults to $stderr.
|
110
|
+
# The output stream is passed on to Net::HTTP#set_debug_output.
|
111
|
+
#
|
112
|
+
# class Foo
|
113
|
+
# include HTTParty
|
114
|
+
# debug_output $stderr
|
115
|
+
# end
|
116
|
+
def debug_output(stream = $stderr)
|
117
|
+
default_options[:debug_output] = stream
|
118
|
+
end
|
119
|
+
|
120
|
+
# Allows setting HTTP headers to be used for each request.
|
121
|
+
#
|
122
|
+
# class Foo
|
123
|
+
# include HTTParty
|
124
|
+
# headers 'Accept' => 'text/html'
|
125
|
+
# end
|
126
|
+
def headers(h={})
|
127
|
+
raise ArgumentError, 'Headers must be a hash' unless h.is_a?(Hash)
|
128
|
+
default_options[:headers] ||= {}
|
129
|
+
default_options[:headers].merge!(h)
|
130
|
+
end
|
131
|
+
|
132
|
+
def cookies(h={})
|
133
|
+
raise ArgumentError, 'Cookies must be a hash' unless h.is_a?(Hash)
|
134
|
+
default_cookies.add_cookies(h)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Allows setting the format with which to parse.
|
138
|
+
# Must be one of the allowed formats ie: json, xml
|
139
|
+
#
|
140
|
+
# class Foo
|
141
|
+
# include HTTParty
|
142
|
+
# format :json
|
143
|
+
# end
|
144
|
+
def format(f = nil)
|
145
|
+
if f.nil?
|
146
|
+
default_options[:format]
|
147
|
+
else
|
148
|
+
parser(Parser) if parser.nil?
|
149
|
+
default_options[:format] = f
|
150
|
+
validate_format
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# Declare whether or not to follow redirects. When true, an
|
155
|
+
# {HTTParty::RedirectionTooDeep} error will raise upon encountering a
|
156
|
+
# redirect. You can then gain access to the response object via
|
157
|
+
# HTTParty::RedirectionTooDeep#response.
|
158
|
+
#
|
159
|
+
# @see HTTParty::ResponseError#response
|
160
|
+
#
|
161
|
+
# @example
|
162
|
+
# class Foo
|
163
|
+
# include HTTParty
|
164
|
+
# base_uri 'http://google.com'
|
165
|
+
# no_follow true
|
166
|
+
# end
|
167
|
+
#
|
168
|
+
# begin
|
169
|
+
# Foo.get('/')
|
170
|
+
# rescue HTTParty::RedirectionTooDeep => e
|
171
|
+
# puts e.response.body
|
172
|
+
# end
|
173
|
+
def no_follow(value = false)
|
174
|
+
default_options[:no_follow] = value
|
175
|
+
end
|
176
|
+
|
177
|
+
# Declare that you wish to maintain the chosen HTTP method across redirects.
|
178
|
+
# The default behavior is to follow redirects via the GET method.
|
179
|
+
# If you wish to maintain the original method, you can set this option to true.
|
180
|
+
#
|
181
|
+
# @example
|
182
|
+
# class Foo
|
183
|
+
# include HTTParty
|
184
|
+
# base_uri 'http://google.com'
|
185
|
+
# maintain_method_across_redirects true
|
186
|
+
# end
|
187
|
+
|
188
|
+
def maintain_method_across_redirects(value = true)
|
189
|
+
default_options[:maintain_method_across_redirects] = value
|
190
|
+
end
|
191
|
+
|
192
|
+
# Allows setting a PEM file to be used
|
193
|
+
#
|
194
|
+
# class Foo
|
195
|
+
# include HTTParty
|
196
|
+
# pem File.read('/home/user/my.pem')
|
197
|
+
# end
|
198
|
+
def pem(pem_contents)
|
199
|
+
default_options[:pem] = pem_contents
|
200
|
+
end
|
201
|
+
|
202
|
+
# Allows setting a custom parser for the response.
|
203
|
+
#
|
204
|
+
# class Foo
|
205
|
+
# include HTTParty
|
206
|
+
# parser Proc.new {|data| ...}
|
207
|
+
# end
|
208
|
+
def parser(custom_parser = nil)
|
209
|
+
if custom_parser.nil?
|
210
|
+
default_options[:parser]
|
211
|
+
else
|
212
|
+
default_options[:parser] = custom_parser
|
213
|
+
validate_format
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# Allows making a get request to a url.
|
218
|
+
#
|
219
|
+
# class Foo
|
220
|
+
# include HTTParty
|
221
|
+
# end
|
222
|
+
#
|
223
|
+
# # Simple get with full url
|
224
|
+
# Foo.get('http://foo.com/resource.json')
|
225
|
+
#
|
226
|
+
# # Simple get with full url and query parameters
|
227
|
+
# # ie: http://foo.com/resource.json?limit=10
|
228
|
+
# Foo.get('http://foo.com/resource.json', :query => {:limit => 10})
|
229
|
+
def get(path, options={})
|
230
|
+
perform_request Net::HTTP::Get, path, options
|
231
|
+
end
|
232
|
+
|
233
|
+
# Allows making a post request to a url.
|
234
|
+
#
|
235
|
+
# class Foo
|
236
|
+
# include HTTParty
|
237
|
+
# end
|
238
|
+
#
|
239
|
+
# # Simple post with full url and setting the body
|
240
|
+
# Foo.post('http://foo.com/resources', :body => {:bar => 'baz'})
|
241
|
+
#
|
242
|
+
# # Simple post with full url using :query option,
|
243
|
+
# # which gets set as form data on the request.
|
244
|
+
# Foo.post('http://foo.com/resources', :query => {:bar => 'baz'})
|
245
|
+
def post(path, options={})
|
246
|
+
perform_request Net::HTTP::Post, path, options
|
247
|
+
end
|
248
|
+
|
249
|
+
# Perform a PUT request to a path
|
250
|
+
def put(path, options={})
|
251
|
+
perform_request Net::HTTP::Put, path, options
|
252
|
+
end
|
253
|
+
|
254
|
+
# Perform a DELETE request to a path
|
255
|
+
def delete(path, options={})
|
256
|
+
perform_request Net::HTTP::Delete, path, options
|
257
|
+
end
|
258
|
+
|
259
|
+
# Perform a HEAD request to a path
|
260
|
+
def head(path, options={})
|
261
|
+
perform_request Net::HTTP::Head, path, options
|
262
|
+
end
|
263
|
+
|
264
|
+
# Perform an OPTIONS request to a path
|
265
|
+
def options(path, options={})
|
266
|
+
perform_request Net::HTTP::Options, path, options
|
267
|
+
end
|
268
|
+
|
269
|
+
def default_options #:nodoc:
|
270
|
+
@default_options
|
271
|
+
end
|
272
|
+
|
273
|
+
private
|
274
|
+
|
275
|
+
def perform_request(http_method, path, options) #:nodoc:
|
276
|
+
options = default_options.dup.merge(options)
|
277
|
+
process_cookies(options)
|
278
|
+
Request.new(http_method, path, options).perform
|
279
|
+
end
|
280
|
+
|
281
|
+
def process_cookies(options) #:nodoc:
|
282
|
+
return unless options[:cookies] || default_cookies.any?
|
283
|
+
options[:headers] ||= headers.dup
|
284
|
+
options[:headers]["cookie"] = cookies.merge(options.delete(:cookies) || {}).to_cookie_string
|
285
|
+
end
|
286
|
+
|
287
|
+
def validate_format
|
288
|
+
if format && parser.respond_to?(:supports_format?) && !parser.supports_format?(format)
|
289
|
+
raise UnsupportedFormat, "'#{format.inspect}' Must be one of: #{parser.supported_formats.map{|f| f.to_s}.sort.join(', ')}"
|
290
|
+
end
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
def self.normalize_base_uri(url) #:nodoc:
|
295
|
+
normalized_url = url.dup
|
296
|
+
use_ssl = (normalized_url =~ /^https/) || normalized_url.include?(':443')
|
297
|
+
ends_with_slash = normalized_url =~ /\/$/
|
298
|
+
|
299
|
+
normalized_url.chop! if ends_with_slash
|
300
|
+
normalized_url.gsub!(/^https?:\/\//i, '')
|
301
|
+
|
302
|
+
"http#{'s' if use_ssl}://#{normalized_url}"
|
303
|
+
end
|
304
|
+
|
305
|
+
class Basement #:nodoc:
|
306
|
+
include HTTParty
|
307
|
+
end
|
308
|
+
|
309
|
+
def self.get(*args)
|
310
|
+
Basement.get(*args)
|
311
|
+
end
|
312
|
+
|
313
|
+
def self.post(*args)
|
314
|
+
Basement.post(*args)
|
315
|
+
end
|
316
|
+
|
317
|
+
def self.put(*args)
|
318
|
+
Basement.put(*args)
|
319
|
+
end
|
320
|
+
|
321
|
+
def self.delete(*args)
|
322
|
+
Basement.delete(*args)
|
323
|
+
end
|
324
|
+
|
325
|
+
def self.head(*args)
|
326
|
+
Basement.head(*args)
|
327
|
+
end
|
328
|
+
|
329
|
+
def self.options(*args)
|
330
|
+
Basement.options(*args)
|
331
|
+
end
|
332
|
+
|
333
|
+
end
|
334
|
+
|
335
|
+
require dir + 'httparty/core_extensions'
|
336
|
+
require dir + 'httparty/exceptions'
|
337
|
+
require dir + 'httparty/parser'
|
338
|
+
require dir + 'httparty/request'
|
339
|
+
require dir + 'httparty/response'
|
340
|
+
|
341
|
+
if Crack::VERSION != HTTParty::CRACK_DEPENDENCY
|
342
|
+
warn "warning: HTTParty depends on version #{HTTParty::CRACK_DEPENDENCY} of crack, not #{Crack::VERSION}."
|
343
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<posts user="jnunemaker" tag="ruby">
|
2
|
+
<post href="http://roxml.rubyforge.org/" hash="19bba2ab667be03a19f67fb67dc56917" description="ROXML - Ruby Object to XML Mapping Library" tag="ruby xml gems mapping" time="2008-08-09T05:24:20Z" others="56" extended="ROXML is a Ruby library designed to make it easier for Ruby developers to work with XML. Using simple annotations, it enables Ruby classes to be custom-mapped to XML. ROXML takes care of the marshalling and unmarshalling of mapped attributes so that developers can focus on building first-class Ruby classes."/>
|
3
|
+
<post href="http://code.google.com/p/sparrow/" hash="1df8a7cb9e8960992556518c0ea0d146" description="sparrow - Google Code" tag="ruby sparrow memcache queue" time="2008-08-06T15:07:24Z" others="115" extended="Sparrow is a really fast lightweight queue written in Ruby that speaks memcache. That means you can use Sparrow with any memcached client library (Ruby or otherwise)."/>
|
4
|
+
<post href="http://code.google.com/p/query-reviewer/" hash="963187e8bf350ae42e21eee13a2bef07" description="query-reviewer - Google Code" tag="rails ruby railstips plugins database optimization" time="2008-08-04T21:50:14Z" others="180" extended="This rails plugin not only runs "EXPLAIN" before each of your select queries in development, but provides a small DIV in the rendered output of each page with the summary of query warnings that it analyzed."/>
|
5
|
+
<post href="http://dev.zeraweb.com/introducing-functor" hash="2cdd545934bd37ae6f4829c51b3041c5" description="dev.zeraweb.com: Introducing Functor" tag="ruby methods gems railstips" time="2008-08-04T21:46:47Z" others="61" extended="Really cool ruby lib for overloading method definitions. I can think of a few places this would be handy."/>
|
6
|
+
<post href="http://prawn.majesticseacreature.com/" hash="92764e019de7553b4cd38017e42e4aaa" description="prawn.majesticseacreature.com" tag="pdf ruby railstips" time="2008-08-04T21:26:20Z" others="237" extended="pure ruby pdf generation library."/>
|
7
|
+
<post href="http://meme-rocket.com/2006/09/28/ruby-moduleinclude-at-odds-with-duck-typing/" hash="4ce96c7c237161819e9625737c22b462" description="Bill Burcham’s memeRocket :: Ruby Module#include at Odds with Duck Typing." tag="ruby railstips enumerable comparable" time="2008-08-03T16:09:24Z" others="3" extended="How to build your own enumerable and comparable objects in ruby. This article is old but just came across it and found it handy."/>
|
8
|
+
<post href="http://bl.ogtastic.com/archives/2008/7" hash="6bebd138c037d7d7c88a7046ca03f671" description="The right way to do something you should never do" tag="juggernaut observers rails flash ruby" time="2008-08-03T03:50:58Z" others="0" extended="Example of how to use juggernaut with an observer."/>
|
9
|
+
<post href="http://ncavig.com/blog/?page_id=8" hash="55450d103d6e2dd609b203ad133d751f" description="Nic’s Notions » Juggernaut Tutorials" tag="juggernaut rails ruby flash plugins server chat" time="2008-08-03T02:26:39Z" others="30" extended="Several juggernaut tutorials."/>
|
10
|
+
<post href="http://blog.labnotes.org/2008/05/05/distributed-twitter-client-in-20-lines-of-code/" hash="7c2a36292db109b144036a02eb3f46b7" description="Labnotes » Distributed Twitter Client in 20 lines of code" tag="xmpp ruby jabber xmpp4r" time="2008-08-01T18:16:23Z" others="18" extended="Cool little snippet of xmpp goodness to check your buddies status messages."/>
|
11
|
+
<post href="http://labs.reevoo.com/plugins/beanstalk-messaging" hash="d100c10208acbf5e954320a5577838d9" description="reevoolabs - Beanstalk Messaging" tag="railstips messaging queue rails ruby" time="2008-07-28T02:57:00Z" others="33" extended="Good write up on beanstalk"/>
|
12
|
+
<post href="http://www.slideshare.net/guest807bb2/rubyfringe?src=embed" hash="c3dc3b940dbe25e39737240b4e1ab071" description="Rockstar Memcached" tag="memcached performance caching ruby rails railstips" time="2008-07-28T02:30:50Z" others="11" extended="Killer presentation on memcached by Tobi of Shopify."/>
|
13
|
+
<post href="http://www.igvita.com/2008/07/22/unix-signals-for-live-debugging/" hash="288054a38d870b15bdf060ed5c6b2a2e" description="Unix Signals for Live Debugging - igvita.com" tag="ruby signals unix debugging signal railstips" time="2008-07-27T04:53:00Z" others="86" extended="I've known how to kill processes and such but never quite understood kill. Ilya Grigorik explains not only how to send those signals but how to use them in your scripts to change the way they behave on the fly. Very cool."/>
|
14
|
+
<post href="http://www.rubyinside.com/redcloth-4-released-962.html" hash="b3db9b84940ce550e26a560b83eb2f66" description="RedCloth 4.0 Released: 40x Faster Textile Rendering" tag="textile ruby gems railstips" time="2008-07-27T04:42:29Z" others="20" extended="Redcloth gets some serious love. It's now much faster. Sweet!"/>
|
15
|
+
<post href="http://code.google.com/p/rubycas-server/" hash="b532ea5933e4eba76c44823e17fecd31" description="rubycas-server - Google Code" tag="sso authentication cas ruby" time="2008-07-22T17:04:09Z" others="132" extended="RubyCAS-Server provides a single sign-on solution for web applications, implementing the server-end of JA-SIG's CAS protocol."/>
|
16
|
+
<post href="http://reinh.com/blog/2008/07/14/a-thinking-mans-sphinx.html" hash="033d72ac54d8c722618383e0e2aa18ff" description="ReinH — A Thinking Man's Sphinx" tag="rails railstips sphinx search ruby" time="2008-07-17T19:34:59Z" others="142" extended="A guide to the two sphynx plugins: ultrasphynx and thinksphynx and why you should choose one or the other."/>
|
17
|
+
<post href="http://www.rubyinside.com/ruby-xml-crisis-over-libxml-0-8-0-released-955.html" hash="70490d9786f09db5ba5f7904f88d304c" description="libxml-ruby 0.8.0 Released: Ruby Gets Fast, Reliable XML Processing At Last" tag="libxml xml ruby gems" time="2008-07-17T18:22:23Z" others="55" extended="lib xml gets an update and now it's really fast."/>
|
18
|
+
<post href="http://github.com/RISCfuture/autumn/tree/master" hash="9b47db4bf59da2009642f4084e3113a2" description="autumn at master — GitHub" tag="irc ruby gems" time="2008-07-17T18:20:19Z" others="18" extended="Easy, fresh, feature-rich IRC bots in Ruby"/>
|
19
|
+
<post href="http://groups.google.com/group/datamapper/browse_thread/thread/d33fbb20e41fad04" hash="4403898c92b37788f002ad6d79a66b68" description="New Finder Syntax (before 1.0) -" tag="railstips ruby datamapper" time="2008-07-05T20:42:27Z" others="1" extended="really cool idea for conditions in datamapper. even if you don't use datamapper, read this as it's sweet."/>
|
20
|
+
<post href="http://codeclimber.blogspot.com/2008/06/using-ruby-for-imap-with-gmail.html" hash="33bbf2492beac5fbf1fc167014060067" description="CodeClimber: using Ruby for IMAP with Gmail" tag="email gems gmail google imap rails railstips ruby" time="2008-07-05T20:06:47Z" others="118" extended="how to check gmail using ruby's IMAP libraries. the key is to use the login method instead of the authenticate one."/>
|
21
|
+
<post href="http://xullicious.blogspot.com/2008/07/updated-curb-multi-interface-patch.html" hash="f95dcc012bdc13bc26bace3ceed10656" description="Xul for thought: Updated curb multi interface patch" tag="curl ruby http" time="2008-07-03T21:52:45Z" others="1" extended="Really cool multi curl stuff to rapidly hit urls."/>
|
22
|
+
</posts>
|
23
|
+
<!-- fe04.api.del.ac4.yahoo.net uncompressed/chunked Sat Aug 9 00:20:11 PDT 2008 -->
|
File without changes
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><style>body,td,a,p,.h{font-family:arial,sans-serif}.h{color:#36c;font-size:20px}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}#gbar{height:22px;padding-left:2px}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}#gbi,#gbs{background:#fff;left:0;position:absolute;top:24px;visibility:hidden;z-index:1000}#gbi{border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;z-index:1001}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}@media all{.gb1,.gb3{height:22px;margin-right:.73em;vertical-align:top}#gbar{float:left}}.gb2{display:block;padding:.2em .5em}a.gb1,a.gb2,a.gb3{color:#00c !important}.gb2,.gb3{text-decoration:none}a.gb2:hover{background:#36c;color:#fff !important}</style><script>window.google={kEI:"Zuk6ScOkLKHCMrrttckF",kEXPI:"17259,19124,19314",kHL:"en"};
|
2
|
+
google.y={};google.x=function(e,g){google.y[e.id]=[e,g];return false};function sf(){document.f.q.focus()}
|
3
|
+
window.gbar={};(function(){var b=window.gbar,f,h;b.qs=function(a){var c=window.encodeURIComponent&&(document.forms[0].q||"").value;if(c)a.href=a.href.replace(/([?&])q=[^&]*|$/,function(i,g){return(g||"&")+"q="+encodeURIComponent(c)})};function j(a,c){a.visibility=h?"hidden":"visible";a.left=c+"px"}b.tg=function(a){a=a||window.event;var c=0,i,g=window.navExtra,d=document.getElementById("gbi"),e=a.target||a.srcElement;a.cancelBubble=true;if(!f){f=document.createElement(Array.every||window.createPopup?"iframe":"div");f.frameBorder="0";f.src="#";d.parentNode.appendChild(f).id="gbs";if(g)for(i in g)d.insertBefore(g[i],d.firstChild).className="gb2";document.onclick=b.close}if(e.className!="gb3")e=e.parentNode;do c+=e.offsetLeft;while(e=e.offsetParent);j(d.style,c);f.style.width=d.offsetWidth+"px";f.style.height=d.offsetHeight+"px";j(f.style,c);h=!h};b.close=function(a){h&&b.tg(a)}})();</script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images)new Image().src='/images/nav_logo3.png'" topmargin=3 marginheight=3><div id=gbar><nobr><b class=gb1>Web</b> <a href="http://images.google.com/imghp?hl=en&tab=wi" onclick=gbar.qs(this) class=gb1>Images</a> <a href="http://maps.google.com/maps?hl=en&tab=wl" onclick=gbar.qs(this) class=gb1>Maps</a> <a href="http://news.google.com/nwshp?hl=en&tab=wn" onclick=gbar.qs(this) class=gb1>News</a> <a href="http://www.google.com/prdhp?hl=en&tab=wf" onclick=gbar.qs(this) class=gb1>Shopping</a> <a href="http://mail.google.com/mail/?hl=en&tab=wm" class=gb1>Gmail</a> <a href="http://www.google.com/intl/en/options/" onclick="this.blur();gbar.tg(event);return !1" class=gb3><u>more</u> <small>▼</small></a><div id=gbi> <a href="http://video.google.com/?hl=en&tab=wv" onclick=gbar.qs(this) class=gb2>Video</a> <a href="http://groups.google.com/grphp?hl=en&tab=wg" onclick=gbar.qs(this) class=gb2>Groups</a> <a href="http://books.google.com/bkshp?hl=en&tab=wp" onclick=gbar.qs(this) class=gb2>Books</a> <a href="http://scholar.google.com/schhp?hl=en&tab=ws" onclick=gbar.qs(this) class=gb2>Scholar</a> <a href="http://finance.google.com/finance?hl=en&tab=we" onclick=gbar.qs(this) class=gb2>Finance</a> <a href="http://blogsearch.google.com/?hl=en&tab=wb" onclick=gbar.qs(this) class=gb2>Blogs</a> <div class=gb2><div class=gbd></div></div> <a href="http://www.youtube.com/?hl=en&tab=w1" onclick=gbar.qs(this) class=gb2>YouTube</a> <a href="http://www.google.com/calendar/render?hl=en&tab=wc" class=gb2>Calendar</a> <a href="http://picasaweb.google.com/home?hl=en&tab=wq" onclick=gbar.qs(this) class=gb2>Photos</a> <a href="http://docs.google.com/?hl=en&tab=wo" class=gb2>Documents</a> <a href="http://www.google.com/reader/view/?hl=en&tab=wy" class=gb2>Reader</a> <a href="http://sites.google.com/?hl=en&tab=w3" class=gb2>Sites</a> <div class=gb2><div class=gbd></div></div> <a href="http://www.google.com/intl/en/options/" class=gb2>even more »</a></div> </nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div><div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%><nobr><a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.com/ig%3Fhl%3Den%26source%3Diglk&usg=AFQjCNFA18XPfgb7dKnXfKz7x7g1GDH1tg">iGoogle</a> | <a href="https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en">Sign in</a></nobr></div><center><br clear=all id=lgpd><img alt="Google" height=110 src="/intl/en_ALL/images/logo.gif" width=276><br><br><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%> </td><td align=center nowrap><input name=hl type=hidden value=en><input type=hidden name=ie value="ISO-8859-1"><input autocomplete="off" maxlength=2048 name=q size=55 title="Google Search" value=""><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap width=25%><font size=-2> <a href=/advanced_search?hl=en>Advanced Search</a><br> <a href=/preferences?hl=en>Preferences</a><br> <a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href="/intl/en/ads/">Advertising Programs</a> - <a href="/services/">Business Solutions</a> - <a href="/intl/en/about.html">About Google</a></font><p><font size=-2>©2008 - <a href="/intl/en/privacy.html">Privacy</a></font></p></center></body><script>if(google.y)google.y.first=[];window.setTimeout(function(){var xjs=document.createElement('script');xjs.src='/extern_js/f/CgJlbhICdXMgACswCjgMLCswDjgCLCswGDgDLA/8MIofMT_4o8.js';document.getElementsByTagName('head')[0].appendChild(xjs)},0);google.y.first.push(function(){google.ac.i(document.f,document.f.q,'','')})</script></html>
|
@@ -0,0 +1 @@
|
|
1
|
+
[{"user":{"followers_count":1,"description":null,"url":null,"profile_image_url":"http:\/\/static.twitter.com\/images\/default_profile_normal.png","protected":false,"location":"Opera Plaza, California","screen_name":"Pyk","name":"Pyk","id":"7694602"},"text":"@lapilofu If you need a faster transfer, target disk mode should work too :)","truncated":false,"favorited":false,"in_reply_to_user_id":6128642,"created_at":"Sat Dec 06 21:29:14 +0000 2008","source":"twitterrific","in_reply_to_status_id":1042497164,"id":"1042500587"},{"user":{"followers_count":278,"description":"しがないプログラマ\/とりあえず宮子は俺の嫁\u2026いや、娘だ!\/Delphi&Pythonプログラマ修行中\/bot製作にハマりつつある。三つほど製作&構想中\/[eof]","url":"http:\/\/logiq.orz.hm\/","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/59588711\/l_ワ_l↑_normal.png","protected":false,"location":"ひだまり荘202号室","screen_name":"feiz","name":"azkn3","id":"14310520"},"text":"@y_benjo ちょー遅レスですがただのはだいろすぎる・・・ ( ll ワ ll )","truncated":false,"favorited":false,"in_reply_to_user_id":8428752,"created_at":"Sat Dec 06 21:29:14 +0000 2008","source":"twit","in_reply_to_status_id":1042479758,"id":"1042500586"},{"user":{"followers_count":1233,"description":""to understand one life you must swallow the world." I run refine+focus: a marketing agency working w\/ brands, media and VCs. http:\/\/tinyurl.com\/63mrn","url":"http:\/\/www.quiverandquill.com","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/53684650\/539059005_2a3b462d20_normal.jpg","protected":false,"location":"Cambridge, MA ","screen_name":"quiverandquill","name":"zach Braiker","id":"6845872"},"text":"@18percentgrey I didn't see Damon on Palin. i'll look on youtube. thx .Z","truncated":false,"favorited":false,"in_reply_to_user_id":10529932,"created_at":"Sat Dec 06 21:29:12 +0000 2008","source":"web","in_reply_to_status_id":1042499331,"id":"1042500584"},{"user":{"followers_count":780,"description":"Mein Blog ist unter http:\/\/blog.helmschrott.de zu finden. Unter http:\/\/blogalm.de kannst Du Deinen Blog eintragen!","url":"http:\/\/helmschrott.de\/blog","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60997686\/avatar-250_normal.jpg","protected":false,"location":"Münchner Straße","screen_name":"helmi","name":"Frank Helmschrott","id":"867641"},"text":"@gigold auch mist oder?ich glaub ich fangs jetzt dann einfach mal an - wird schon vernünftige update-prozesse geben.","truncated":false,"favorited":false,"in_reply_to_user_id":959931,"created_at":"Sat Dec 06 21:29:11 +0000 2008","source":"twhirl","in_reply_to_status_id":1042500095,"id":"1042500583"},{"user":{"followers_count":63,"description":"Liberation from Misconceptions","url":"http:\/\/sexorcism.blogspot.com","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/63897302\/having-sex-on-bed_normal.jpg","protected":false,"location":"USA","screen_name":"Sexorcism","name":"Sexorcism","id":"16929435"},"text":"@thursdays_child someecards might.","truncated":false,"favorited":false,"in_reply_to_user_id":14484963,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"twittergadget","in_reply_to_status_id":1042499777,"id":"1042500581"},{"user":{"followers_count":106,"description":"Researcher. Maître de Conférences - Sémiologue - Spécialiste des médias audiovisuels. Analyste des médias, de la télévision et de la presse people (gossip). ","url":"http:\/\/semioblog.over-blog.org\/","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/57988482\/Thomas_et_Vic_pour_promo_2_058_normal.JPG","protected":false,"location":"France","screen_name":"semioblog","name":"Virginie Spies","id":"10078802"},"text":"@richardvonstern on reparle de tout cela bientôt, si vous voulez vraiment m'aider","truncated":false,"favorited":false,"in_reply_to_user_id":15835317,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"twitterrific","in_reply_to_status_id":1042357537,"id":"1042500580"},{"user":{"followers_count":26,"description":"","url":"","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/63461084\/November2ndpics_125_normal.jpg","protected":false,"location":"Louisville, Ky","screen_name":"scrapaunt","name":"scrapaunt","id":"16660671"},"text":"@NKOTB4LIFE Hope your neck feels better after your nap.","truncated":false,"favorited":false,"in_reply_to_user_id":16041403,"created_at":"Sat Dec 06 21:29:10 +0000 2008","source":"web","in_reply_to_status_id":1042450159,"id":"1042500579"},{"user":{"followers_count":245,"description":"Maui HI Real Estate Salesperson specializing in off the grid lifestyle","url":"http:\/\/www.eastmaui.com","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/59558480\/face2_normal.jpg","protected":false,"location":"north shore maui hawaii","screen_name":"mauihunter","name":"Georgina M. Hunter ","id":"16161708"},"text":"@BeeRealty http:\/\/twitpic.com\/qpog - It's a good safe place to lay - no dogs up there.","truncated":false,"favorited":false,"in_reply_to_user_id":15781063,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"twitpic","in_reply_to_status_id":1042497815,"id":"1042500578"},{"user":{"followers_count":95,"description":"","url":"","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/66581657\/nose-pick_normal.jpg","protected":false,"location":"zoetermeer","screen_name":"GsKlukkluk","name":"Klukkluk","id":"14218588"},"text":"twit \/off zalige nacht!","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:14 +0000 2008","source":"web","in_reply_to_status_id":null,"id":"1042500577"},{"user":{"followers_count":33,"description":"Living in denial that I live in a podunk town, I spend my time in search of good music in LA. Pure city-dweller and puma. That's about it.","url":"","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/56024131\/Photo_145_normal.jpg","protected":false,"location":"Santa Barbara, CA","screen_name":"pumainthemvmt","name":"Valerie","id":"15266837"},"text":"I love my parents with all my heart, but sometimes they make me want to scratch my eyes out.","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:10 +0000 2008","source":"sms","in_reply_to_status_id":null,"id":"1042500576"},{"user":{"followers_count":99,"description":"大学生ですよ。Ad[es]er。趣味で辭書とか編輯してゐます。JavaScriptでゲーム書きたいけど時間ねえ。","url":"http:\/\/greengablez.net\/diary\/","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/60269370\/zonu_1_normal.gif","protected":false,"location":"Sapporo, Hokkaido, Japan","screen_name":"tadsan","name":"船越次男","id":"11637282"},"text":"リトル・プリンセスとだけ書かれたら小公女を連想するだろ、常識的に考へて。","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:11 +0000 2008","source":"tiitan","in_reply_to_status_id":null,"id":"1042500575"},{"user":{"followers_count":68,"description":"I love all things beer. What goes better with beer than Porn, nothig I tell ya nothing.","url":"","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/66479069\/Picture_9_normal.jpg","protected":false,"location":"Durant","screen_name":"Jeffporn","name":"Jeffporn","id":"14065262"},"text":"At Lefthand having milk stout on cask - Photo: http:\/\/bkite.com\/02PeH","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:10 +0000 2008","source":"brightkite","in_reply_to_status_id":null,"id":"1042500574"},{"user":{"followers_count":7,"description":"","url":"http:\/\/www.PeteKinser.com","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/65572489\/PeteKinser-close_normal.jpg","protected":false,"location":"Denver, CO","screen_name":"pkinser","name":"pkinser","id":"15570525"},"text":"Snooze is where it's at for brunch if you're ever in Denver. Yum.","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:11 +0000 2008","source":"fring","in_reply_to_status_id":null,"id":"1042500572"},{"user":{"followers_count":75,"description":"I am a gamer and this is my gaming account, check out my other Twitter account for non-gaming tweets.","url":"http:\/\/twitter.com\/Nailhead","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/56881055\/nailhead_184x184_normal.jpg","protected":false,"location":"Huntsville, AL","screen_name":"Nailhead_Gamer","name":"Eric Fullerton","id":"15487663"},"text":"Completed the epic quest line for the Death Knight. Now what? Outlands? I wish to skip Outlands please, thanks.","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"twitterfox","in_reply_to_status_id":null,"id":"1042500571"},{"user":{"followers_count":111,"description":"","url":"http:\/\/www.ns-tech.com\/blog\/geldred.nsf","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/63865052\/brak2_normal.JPG","protected":false,"location":"Cleveland OH","screen_name":"geldred","name":"geldred","id":"14093394"},"text":"I'm at Target Store - Avon OH (35830 Detroit Rd, Avon, OH 44011, USA) - http:\/\/bkite.com\/02PeI","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"brightkite","in_reply_to_status_id":null,"id":"1042500570"},{"user":{"followers_count":16,"description":"Soundtrack Composer\/Musician\/Producer","url":"http:\/\/www.reverbnation\/musicbystratos","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/63311865\/logo-stratos_normal.png","protected":false,"location":"Grove City, Ohio 43123","screen_name":"Stratos","name":"Bryan K Borgman","id":"756062"},"text":"is reminded how beautiful the world can be when it's blanketed by clean white snow.","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"web","in_reply_to_status_id":null,"id":"1042500569"},{"user":{"followers_count":7,"description":null,"url":null,"profile_image_url":"http:\/\/static.twitter.com\/images\/default_profile_normal.png","protected":false,"location":null,"screen_name":"garrettromine","name":"garrettromine","id":"16120885"},"text":"Go Julio","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:10 +0000 2008","source":"sms","in_reply_to_status_id":null,"id":"1042500568"},{"user":{"followers_count":111,"description":"WHAT IS HAPPNING IN THE WORLD??? SEE DIFFERENT NEWS STORIES FROM MANY SOURCES.","url":"http:\/\/henrynews.wetpaint.com","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/65118112\/2008-election-map-nytimes_normal.png","protected":false,"location":"","screen_name":"HenryNews","name":"HenryNews","id":"17398510"},"text":"Svindal completes double at Beaver Creek: Read full story for latest details. http:\/\/tinyurl.com\/6qugub","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"twitterfeed","in_reply_to_status_id":null,"id":"1042500567"},{"user":{"followers_count":34,"description":"I am a man of many bio's, scott bio's!","url":"http:\/\/flickr.com\/photos\/giantcandy","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/25680382\/Icon_for_Twitter_normal.jpg","protected":false,"location":"Loves Park, IL, USA","screen_name":"Pychobj2001","name":"William Boehm Jr","id":"809103"},"text":"I have a 3rd break light and the license plate lights are out...just replacing 1 plate light...abide by law just enough","truncated":false,"favorited":false,"in_reply_to_user_id":null,"created_at":"Sat Dec 06 21:29:10 +0000 2008","source":"twidroid","in_reply_to_status_id":null,"id":"1042500566"},{"user":{"followers_count":61,"description":"Wife. Designer. Green Enthusiast. New Homeowner. Pet Owner. Internet Addict.","url":"http:\/\/confessionsofadesignjunkie.blogspot.com\/","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/66044439\/n27310459_33432814_6743-1_normal.jpg","protected":false,"location":"Indiana","screen_name":"smquaseb","name":"Stacy","id":"15530992"},"text":"@Indygardener We still had a few people shoveling in our neighborhood - I didn't think it was enough to shovel, but keeps the kids busy.","truncated":false,"favorited":false,"in_reply_to_user_id":12811482,"created_at":"Sat Dec 06 21:29:13 +0000 2008","source":"web","in_reply_to_status_id":1042488558,"id":"1042500565"}]
|