dkastner-httparty 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. data/.gitignore +10 -0
  2. data/.travis.yml +8 -0
  3. data/Gemfile +15 -0
  4. data/Guardfile +16 -0
  5. data/History +293 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README.md +79 -0
  8. data/Rakefile +15 -0
  9. data/bin/httparty +114 -0
  10. data/cucumber.yml +1 -0
  11. data/examples/aaws.rb +32 -0
  12. data/examples/basic.rb +32 -0
  13. data/examples/crack.rb +19 -0
  14. data/examples/custom_parsers.rb +67 -0
  15. data/examples/delicious.rb +37 -0
  16. data/examples/google.rb +16 -0
  17. data/examples/headers_and_user_agents.rb +6 -0
  18. data/examples/nokogiri_html_parser.rb +22 -0
  19. data/examples/rubyurl.rb +14 -0
  20. data/examples/tripit_sign_in.rb +33 -0
  21. data/examples/twitter.rb +31 -0
  22. data/examples/whoismyrep.rb +10 -0
  23. data/features/basic_authentication.feature +20 -0
  24. data/features/command_line.feature +7 -0
  25. data/features/deals_with_http_error_codes.feature +26 -0
  26. data/features/digest_authentication.feature +20 -0
  27. data/features/handles_compressed_responses.feature +19 -0
  28. data/features/handles_multiple_formats.feature +34 -0
  29. data/features/steps/env.rb +22 -0
  30. data/features/steps/httparty_response_steps.rb +26 -0
  31. data/features/steps/httparty_steps.rb +27 -0
  32. data/features/steps/mongrel_helper.rb +94 -0
  33. data/features/steps/remote_service_steps.rb +69 -0
  34. data/features/supports_redirection.feature +22 -0
  35. data/features/supports_timeout_option.feature +13 -0
  36. data/httparty.gemspec +24 -0
  37. data/lib/httparty.rb +503 -0
  38. data/lib/httparty/connection_adapter.rb +116 -0
  39. data/lib/httparty/cookie_hash.rb +22 -0
  40. data/lib/httparty/core_extensions.rb +32 -0
  41. data/lib/httparty/exceptions.rb +26 -0
  42. data/lib/httparty/hash_conversions.rb +51 -0
  43. data/lib/httparty/module_inheritable_attributes.rb +44 -0
  44. data/lib/httparty/net_digest_auth.rb +84 -0
  45. data/lib/httparty/parser.rb +145 -0
  46. data/lib/httparty/request.rb +243 -0
  47. data/lib/httparty/response.rb +62 -0
  48. data/lib/httparty/response/headers.rb +31 -0
  49. data/lib/httparty/version.rb +3 -0
  50. data/spec/fixtures/delicious.xml +23 -0
  51. data/spec/fixtures/empty.xml +0 -0
  52. data/spec/fixtures/google.html +3 -0
  53. data/spec/fixtures/ssl/generate.sh +29 -0
  54. data/spec/fixtures/ssl/generated/1fe462c2.0 +16 -0
  55. data/spec/fixtures/ssl/generated/bogushost.crt +13 -0
  56. data/spec/fixtures/ssl/generated/ca.crt +16 -0
  57. data/spec/fixtures/ssl/generated/ca.key +15 -0
  58. data/spec/fixtures/ssl/generated/selfsigned.crt +14 -0
  59. data/spec/fixtures/ssl/generated/server.crt +13 -0
  60. data/spec/fixtures/ssl/generated/server.key +15 -0
  61. data/spec/fixtures/ssl/openssl-exts.cnf +9 -0
  62. data/spec/fixtures/twitter.json +1 -0
  63. data/spec/fixtures/twitter.xml +403 -0
  64. data/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
  65. data/spec/httparty/connection_adapter_spec.rb +206 -0
  66. data/spec/httparty/cookie_hash_spec.rb +70 -0
  67. data/spec/httparty/net_digest_auth_spec.rb +115 -0
  68. data/spec/httparty/parser_spec.rb +171 -0
  69. data/spec/httparty/request_spec.rb +507 -0
  70. data/spec/httparty/response_spec.rb +214 -0
  71. data/spec/httparty/ssl_spec.rb +62 -0
  72. data/spec/httparty_spec.rb +703 -0
  73. data/spec/spec.opts +2 -0
  74. data/spec/spec_helper.rb +30 -0
  75. data/spec/support/ssl_test_helper.rb +47 -0
  76. data/spec/support/ssl_test_server.rb +80 -0
  77. data/spec/support/stub_response.rb +43 -0
  78. data/website/css/common.css +47 -0
  79. data/website/index.html +73 -0
  80. metadata +190 -0
@@ -0,0 +1,10 @@
1
+ Gemfile.lock
2
+ .DS_Store
3
+ .yardoc/
4
+ doc/
5
+ tmp/
6
+ log/
7
+ pkg/
8
+ *.swp
9
+ /.bundle
10
+ .rvmrc
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - ree
5
+ - 1.9.3
6
+ notifications:
7
+ email: false
8
+ bundler_args: --without development
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source :rubygems
2
+ gemspec
3
+
4
+ gem 'rake'
5
+ gem 'cucumber', '~> 0.7'
6
+ gem 'fakeweb', '~> 1.2'
7
+ gem 'rspec', '~> 1.3'
8
+ gem 'mongrel', '1.2.0.pre2'
9
+ gem 'multi_json', '~> 1.3'
10
+
11
+ group :development do
12
+ gem 'guard'
13
+ gem 'guard-rspec'
14
+ gem 'guard-bundler'
15
+ end
@@ -0,0 +1,16 @@
1
+ rspec_options = {
2
+ :version => 1,
3
+ :all_after_pass => false,
4
+ :all_on_start => false,
5
+ }
6
+
7
+ guard 'rspec', rspec_options do
8
+ watch(%r{^spec/.+_spec\.rb$})
9
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
10
+ watch('spec/spec_helper.rb') { "spec" }
11
+ end
12
+
13
+ guard 'bundler' do
14
+ watch('Gemfile')
15
+ watch(/^.+\.gemspec/)
16
+ end
data/History ADDED
@@ -0,0 +1,293 @@
1
+ == 0.9.0 2012-09-07
2
+ * new
3
+ * [support for connection adapters](https://github.com/jnunemaker/httparty/pull/157)
4
+ * [allow ssl_version on ruby 1.9](https://github.com/jnunemaker/httparty/pull/159)
5
+
6
+ * bug fixes
7
+ * [don't treat port 4430 as ssl](https://github.com/jnunemaker/httparty/commit/a296b1c97f83d7dcc6ef85720a43664c265685ac)
8
+ * [deep clone default options](https://github.com/jnunemaker/httparty/commit/f74227d30f9389b4b23a888c9af49fb9b8248e1f)
9
+ * a few net digest auth fixes
10
+
11
+ == 0.8.3 2012-04-21
12
+ * new
13
+ * [lazy parsing of responses](https://github.com/jnunemaker/httparty/commit/9fd5259c8dab00e426082b66af44ede2c9068f45)
14
+ * [add support for PATCH requests](https://github.com/jnunemaker/httparty/commit/7ab6641e37a9e31517e46f6124f38c615395d38a)
15
+ * bug fixes
16
+ * [subclasses no longer override superclass options](https://github.com/jnunemaker/httparty/commit/682af8fbf672e7b3009e650da776c85cdfe78d39)
17
+
18
+ == 0.8.2 2012-04-12
19
+ * new
20
+ * add -r to make CLI return failure code if status >= 400
21
+ * allow blank username from CLI
22
+ * bug fixes
23
+ * return nil for null body
24
+ * automatically deflate responses with a Content-Encoding: x-gzip header
25
+ * Do not HEAD on POST request with digest authentication
26
+ * add support for proxy authentication
27
+ * fix posting data with CLI
28
+ * require rexml/document if xml format from CLI
29
+ * support for fragmented responses
30
+
31
+ == 0.8.1 2011-10-05
32
+ * bug fixes
33
+ * content-encoding header should be removed when automatically inflating the body
34
+
35
+ == 0.8.0 2011-09-13
36
+ * new
37
+ * switch to multi json/xml for parsing by default
38
+ * bug fixes
39
+ * fix redirects to relative uri's
40
+
41
+ == 0.7.8 2011-06-06
42
+ * bug fix
43
+ * Make response honor respond to
44
+ * net http timeout can also be a float
45
+
46
+ == 0.7.7 2011-04-16
47
+ * bug fix
48
+ * Fix NoMethodError when using the NON_RAILS_QUERY_STRING_NORMALIZER with a hash whose key is a symbol and value is nil
49
+
50
+ == 0.7.5 2011-04-16
51
+ * bug fix
52
+ * caused issue with latest rubygems
53
+
54
+ == 0.7.4 2011-02-13
55
+ * bug fixes
56
+ * Set VERIFY_NONE when using https. Ruby 1.9.2 no longer sets this for us. gh-67
57
+
58
+ == 0.7.3 2011-01-20
59
+ * bug fixes
60
+ * Fix digest auth for unspecified quality of protection (bjoernalbers, mtrudel, dwo)
61
+
62
+ == 0.7.2 2011-01-20
63
+ * bug fixes
64
+ * Fix gem dependencies
65
+
66
+ == 0.7.1 2011-01-19
67
+ * bug fixes
68
+ * Fix uninitialized constant HTTParty::Response::Net in 1.9.2 (cap10morgan)
69
+ * Other fixes for 1.9.2, full suite still fails (cap10morgan)
70
+
71
+ == 0.7.0 2011-01-18
72
+ * minor enhancements
73
+ * Added query methods for HTTP status codes, i.e. response.success?
74
+ response.created? (thanks citizenparker)
75
+ * Added support for ssl_ca_file and ssl_ca_path (dlitz)
76
+ * Allow custom query string normalization. gh-8
77
+ * Unlock private keys with password (freerange)
78
+ * Added high level request documentation (phildarnowsky)
79
+ * Added basic post example (pbuckley)
80
+ * Response object has access to its corresponding request object
81
+ * Added example of siginin into tripit.com
82
+ * Added option to follow redirects (rkj). gh-56
83
+ * bug fixes
84
+ * Fixed superclass mismatch exception while running tests
85
+ (thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
86
+
87
+ == 0.6.1 2010-07-07
88
+ * minor enhancements
89
+ * updated to crack 0.1.8
90
+ * bug fixes
91
+ * subclasses always merge into the parent's default_options and
92
+ default_cookies (l4rk).
93
+ * subclasses play nicely with grand parents. gh-49
94
+
95
+ == 0.6.0 2010-06-13
96
+ * major enhancements
97
+ * Digest Auth (bartiaco, sbecker, gilles, and aaronrussell)
98
+ * Maintain HTTP method across redirects (bartiaco and sbecker)
99
+ * HTTParty::Response#response returns the Net::HTTPResponse object
100
+ * HTTParty::Response#headers returns a HTTParty::Response::Headers object
101
+ which quacks like a Hash + Net::HTTPHeader. The #headers method continues
102
+ to be backwards-compatible with the old Hash return value but may become
103
+ deprecated in the future.
104
+
105
+ * minor enhancements
106
+ * Update crack requirement to version 0.1.7
107
+ You may still get a warning because Crack's version constant is out of date
108
+ * Timeout option can be set for all requests using HTTParty.default_timeout (taazza)
109
+ * Closed #38 "headers hash should downcase keys so canonical header name can be used"
110
+ * Closed #40 "Gzip response" wherein gziped and deflated responses are
111
+ automatically inflated. (carsonmcdonald)
112
+
113
+ == 0.5.2 2010-01-31
114
+ * minor enhancements
115
+ * Update crack requirement to version 0.1.6
116
+
117
+ == 0.5.1 2010-01-30
118
+ * bug fixes
119
+ * Handle 304 response correctly by returning the HTTParty::Response object instead of redirecting (seth and hellvinz)
120
+ * Only redirect 300 responses if the header contains a Location
121
+ * Don't append empty query strings to the uri. Closes #31
122
+ * When no_follow is enabled, only raise the RedirectionTooDeep exception when a response tries redirecting. Closes #28
123
+
124
+ * major enhancements
125
+ * Removed rubygems dependency. I suggest adding rubygems to RUBYOPT if this causes problems for you.
126
+ $ export RUBYOPT='rubygems'
127
+ * HTTParty#debug_output prints debugging information for the current request (iwarshak)
128
+ * HTTParty#no_follow now available as a class-level option. Sets whether or not to follow redirects.
129
+
130
+ * minor enhancements
131
+ * HTTParty::VERSION now available
132
+ * Update crack requirement to version 0.1.5
133
+
134
+ == 0.5.0 2009-12-07
135
+ * bug fixes
136
+ * inheritable attributes no longer mutable by subclasses (yyyc514)
137
+ * namespace BasicObject within HTTParty to avoid class name collisions (eric)
138
+
139
+ * major enhancements
140
+ * Custom Parsers via class or proc
141
+ * Deprecation warning on HTTParty::AllowedFormats
142
+ moved to HTTParty::Parser::SupportedFormats
143
+
144
+ * minor enhancements
145
+ * Curl inspired output when using the binary in verbose mode (alexvollmer)
146
+ * raise UnsupportedURIScheme when scheme is not HTTP or HTTPS (djspinmonkey)
147
+ * Allow SSL for ports other than 443 when scheme is HTTPS (stefankroes)
148
+ * Accept PEM certificates via HTTParty#pem (chrislo)
149
+ * Support HEAD and OPTION verbs (grempe)
150
+ * Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
151
+
152
+ == 0.4.5 2009-09-12
153
+ * bug fixes
154
+ * Fixed class-level headers overwritten by cookie management code. Closes #19
155
+ * Fixed "superclass mismatch for class BlankSlate" error. Closes #20
156
+ * Fixed reading files as post data from the command line (vesan)
157
+
158
+ * minor enhancements
159
+ * Timeout option added; will raise a Timeout::Error after the timeout has elapsed (attack). Closes #17
160
+ HTTParty.get "http://github.com", :timeout => 1
161
+ * Building gem with Jeweler
162
+
163
+ == 0.4.4 2009-07-19
164
+ * 2 minor update
165
+ * :query no longer sets form data. Use body and set content type to application/x-www-form-urlencoded if you need it. :query was wrong for that.
166
+ * Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request.
167
+ * Also, some general cleanup of tests and such.
168
+
169
+ == 0.4.3 2009-04-23
170
+ * 1 minor update
171
+ * added message to the response object
172
+
173
+ == 0.4.2 2009-03-30
174
+ * 2 minor changes
175
+ * response code now returns an integer instead of a string (jqr)
176
+ * rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack
177
+
178
+ == 0.4.1 2009-03-29
179
+ * 1 minor fix
180
+ * gem 'jnunemaker-crack' instead of gem 'crack'
181
+
182
+ == 0.4.0 2009-03-29
183
+ * 1 minor change
184
+ * Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
185
+
186
+ == 0.3.1 2009-02-10
187
+ * 1 minor fix, 1 minor enhancement
188
+ * Fixed unescaping umlauts (siebertm)
189
+ * Added yaml response parsing (Miha Filej)
190
+
191
+ == 0.3.0 2009-01-31
192
+ * 1 major enhancement, 1 bug fix
193
+ * JSON gem no longer a requirement. It was conflicting with rails json stuff so I just stole ActiveSupport's json decoding and bundled it with HTTParty.
194
+ * Fixed bug where query strings were being duplicated on redirects
195
+ * Added a bunch of specs and moved some code around.
196
+
197
+ == 0.2.10 2009-01-29
198
+ * 1 minor enhancement
199
+ * Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)
200
+
201
+ == 0.2.9 2009-01-29
202
+ * 3 minor enhancements
203
+ * Added a 'headers' accessor to the response with a hash of any HTTP headers. (Don Peterson)
204
+ * Add support for a ":cookies" option to be used at the class level, or as an option on any individual call. It should be passed a hash, which will be converted to the proper format and added to the request headers when the call is made. (Don Peterson)
205
+ * Refactored several specs and added a full suite of cucumber features (Don Peterson)
206
+
207
+ == 0.2.8 2009-01-28
208
+ * 1 major fix
209
+ * fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
210
+
211
+ == 0.2.7 2009-01-28
212
+ * 2 minor fixes, 2 minor enhancements, 2 major enhancements
213
+ * fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
214
+ * Handle nil or unexpected values better when typecasting. (Brian Landau)
215
+ * More robust handling of mime types (Alex Vollmer)
216
+ * Fixed support for specifying headers and added support for basic auth to CLI. (Alex Vollmer)
217
+ * Added first class response object that includes original body and status code (Alex Vollmer)
218
+ * Now parsing all response types as some non-200 responses provide important information, this means no more exception raising (Alex Vollmer)
219
+
220
+ == 0.2.6 2009-01-05
221
+ * 1 minor bug fix
222
+ * added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)
223
+
224
+ == 0.2.5 2009-01-05
225
+ * 1 major enhancement
226
+ * Add command line interface to HTTParty (Alex Vollmer)
227
+
228
+ == 0.2.4 2008-12-23
229
+ * 1 bug fix
230
+ * Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)
231
+ == 0.2.3 2008-12-23
232
+ * 1 bug fix
233
+ * Fixed typecasting class variable naming issue
234
+
235
+ == 0.2.2 2008-12-08
236
+ * 1 bug fix
237
+ * Added the missing core extension hash method to_xml_attributes
238
+
239
+ == 0.2.1 2008-12-08
240
+ * 1 bug fix
241
+ * Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
242
+
243
+ == 0.2.0 2008-12-07
244
+ * 1 major enhancement
245
+ * Removed ActiveSupport as a dependency. Now requires json gem for json deserialization and uses an included class to do the xml parsing.
246
+
247
+ == 0.1.8 2008-11-30
248
+ * 3 major enhancements
249
+ * Moved base_uri normalization into request class and out of httparty module, fixing
250
+ the problem where base_uri was not always being normalized.
251
+ * Stupid simple support for HTTParty.get/post/put/delete. (jqr)
252
+ * Switched gem management to Echoe from newgem.
253
+
254
+ == 0.1.7 2008-11-30
255
+ * 1 major enhancement
256
+ * fixed multiple class definitions overriding each others options
257
+
258
+ == 0.1.6 2008-11-26
259
+ * 1 major enhancement
260
+ * now passing :query to set_form_data if post request to avoid content length errors
261
+
262
+ == 0.1.5 2008-11-14
263
+ * 2 major enhancements
264
+ * Refactored send request method out into its own object.
265
+ * Added :html format if you just want to do that.
266
+
267
+ == 0.1.4 2008-11-08
268
+ * 3 major enhancements:
269
+ * Removed some cruft
270
+ * Added ability to follow redirects automatically and turn that off (Alex Vollmer)
271
+
272
+ == 0.1.3 2008-08-22
273
+
274
+ * 3 major enhancements:
275
+ * Added http_proxy key for setting proxy server and port (francxk@gmail.com)
276
+ * Now raises exception when http error occurs (francxk@gmail.com)
277
+ * Changed auto format detection from file extension to response content type (Jay Pignata)
278
+
279
+ == 0.1.2 2008-08-09
280
+
281
+ * 1 major enhancement:
282
+ * default_params were not being appended to query string if option[:query] was blank
283
+
284
+ == 0.1.1 2008-07-30
285
+
286
+ * 2 major enhancement:
287
+ * Added :basic_auth key for options when making a request
288
+ * :query and :body both now work with query string or hash
289
+
290
+ == 0.1.0 2008-07-27
291
+
292
+ * 1 major enhancement:
293
+ * Initial release
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 John Nunemaker
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,79 @@
1
+ # httparty
2
+
3
+ Makes http fun again!
4
+
5
+ ## Install
6
+
7
+ ```
8
+ gem install httparty
9
+ ```
10
+
11
+ ## Requirements
12
+
13
+ * multi_json and multi_xml
14
+ * You like to party!
15
+
16
+ ## Examples
17
+
18
+ ```ruby
19
+ # Use the class methods to get down to business quickly
20
+ response = HTTParty.get('http://twitter.com/statuses/public_timeline.json')
21
+ puts response.body, response.code, response.message, response.headers.inspect
22
+
23
+ response.each do |item|
24
+ puts item['user']['screen_name']
25
+ end
26
+
27
+ # Or wrap things up in your own class
28
+ class Twitter
29
+ include HTTParty
30
+ base_uri 'twitter.com'
31
+
32
+ def initialize(u, p)
33
+ @auth = {:username => u, :password => p}
34
+ end
35
+
36
+ # which can be :friends, :user or :public
37
+ # options[:query] can be things like since, since_id, count, etc.
38
+ def timeline(which=:friends, options={})
39
+ options.merge!({:basic_auth => @auth})
40
+ self.class.get("/statuses/#{which}_timeline.json", options)
41
+ end
42
+
43
+ def post(text)
44
+ options = { :body => {:status => text}, :basic_auth => @auth }
45
+ self.class.post('/statuses/update.json', options)
46
+ end
47
+ end
48
+
49
+ twitter = Twitter.new(config['email'], config['password'])
50
+ pp twitter.timeline
51
+ ```
52
+
53
+ See the [examples directory](http://github.com/jnunemaker/httparty/tree/master/examples) for even more goodies.
54
+
55
+ ## Command Line Interface
56
+
57
+ httparty also includes the executable `httparty` which can be
58
+ used to query web services and examine the resulting output. By default
59
+ it will output the response as a pretty-printed Ruby object (useful for
60
+ grokking the structure of output). This can also be overridden to output
61
+ formatted XML or JSON. Execute `httparty --help` for all the
62
+ options. Below is an example of how easy it is.
63
+
64
+ ```
65
+ httparty "http://twitter.com/statuses/public_timeline.json"
66
+ ```
67
+
68
+ ## Help and Docs
69
+
70
+ * https://groups.google.com/forum/#!forum/httparty-gem
71
+ * http://rdoc.info/projects/jnunemaker/httparty
72
+
73
+ ## Contributing
74
+
75
+ * Fork the project.
76
+ * Make your feature addition or bug fix.
77
+ * Add tests for it. This is important so I don't break it in a future version unintentionally.
78
+ * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
79
+ * Send me a pull request. Bonus points for topic branches.