1691 Commits

Author SHA1 Message Date
Evan Broder
f7a69489af Add a test for invoice pay 2012-10-08 16:40:39 -07:00
Evan Broder
e776c7a3cb Default the API method params to an empty dict, not nil
Fixes #42
2012-10-08 16:24:03 -07:00
Evan Broder
f625968bfd Bump version v1.7.3 2012-09-14 20:36:16 -07:00
Evan Broder
5ed29ec7be Don't use sudo in the README installation instructions
Fixes #40
2012-09-14 20:30:52 -07:00
Evan Broder
e8adad2c34 Encoding POST bodies ourselves, instead of letting rest-client
It's a bit unfortunate we have to do this, but this avoids an even
more unfortunate interaction between rest-client and hashery that
prevents passing a hash as the payload.

Also update the tests appropriately. This is also a bit messy, but I
didn't want to pull in Rack just for a handful of tests.

Fixes #38
2012-09-14 20:30:52 -07:00
Evan Broder
ae850157d7 Test that GET parameters are URL-encoded 2012-09-14 20:30:52 -07:00
Evan Broder
6b58d14fc1 URL-encode values (as well as keys) in GET params 2012-09-14 20:30:49 -07:00
Evan Broder
cdde220990 Merge pull request #37 from gravis/master
Add dependency status badge
v1.7.2
2012-08-31 11:41:02 -07:00
Philippe Lafoucrière
8788d7b5d3 Update README.rdoc
Add dependency status badge
2012-08-31 19:45:07 +03:00
spakanati
3630b0df89 Merge pull request #36 from stripe/invoice-methods
Invoice methods
2012-08-31 09:32:09 -07:00
Sheena Pakanati
fa2cc10632 Bump version. 2012-08-31 10:05:18 +05:30
Sheena Pakanati
151c25872f Add support for updating and paying to invoices 2012-08-31 10:02:37 +05:30
Amber Feng
29cd90b644 Merge pull request #35 from stripe/account-resource
Add Account API resource.
v1.7.1
2012-08-16 21:55:10 -07:00
Amber Feng
478ff80ac4 Add Account API resource. 2012-08-16 12:25:15 -07:00
Evan Broder
cf7054c430 Merge pull request #34 from isaacsanders/master
Added rvmrc to gitignore
2012-07-23 18:41:37 -07:00
Isaac Sanders
30ff28568a Added rvmrc to gitignore 2012-07-22 00:35:06 -04:00
Greg Brockman
5caf8ece54 Update gemspec to dynamically select files 2012-06-19 23:16:02 -07:00
Greg Brockman
22907c7046 Fixup whitespace 2012-06-19 23:15:08 -07:00
Greg Brockman
6031cbf7b1 Improve method layout 2012-06-19 23:13:59 -07:00
Greg Brockman
020177faa5 Merge pull request #28 from HashNuke/refactor2
Refactors code into different files and other minor changes
2012-05-22 23:06:18 -07:00
Akash Manohar J
f21c27113d Requires stripe/version
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-23 11:30:41 +05:30
Akash Manohar J
461026c18e Adds note in readme on how to run test cases
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-23 11:30:41 +05:30
Akash Manohar J
78bf6a6260 Changes order of require
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-23 11:30:41 +05:30
Evan Broder
35e7375ad7 Release v1.7.0 v1.7.0 2012-05-17 11:48:50 -07:00
Akash Manohar J
90ef0971d9 Moves API operations to seperate files
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-15 02:56:40 +05:30
Akash Manohar J
e6fa8fa2f2 Requires all the classes in the stripe.rb file
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-15 02:48:30 +05:30
Akash Manohar J
481d8110f2 Moves classes to seperate files
Signed-off-by: Akash Manohar J <akash@akash.im>
2012-05-15 02:38:09 +05:30
Evan Broder
b905b2164c Run the test suite once with ActiveSupport loaded, once without
ActiveSupport is the source of many problems for us, so let's try to
catch them pre-emptively with testing
2012-05-07 17:24:44 -07:00
Evan Broder
f84ee25b03 Re-add StripeObject#as_json to make ActiveSupport happy
Fixes #25
2012-05-07 17:23:18 -07:00
Evan Broder
5f70ea3bbd Merge branch 'signal' 2012-05-04 22:52:14 -07:00
Evan Broder
e69407fa3c Add one more assertion to delete_discount test 2012-05-04 22:52:10 -07:00
Evan Broder
065f2316c7 Don't accept params to delete_customer because Stripe accepts none 2012-05-04 22:48:08 -07:00
Evan Broder
776807349f Add new Transfer API endpoints 2012-05-04 15:58:05 -07:00
Evan Broder
95b3e95691 Add .lock files for alternative gemfiles 2012-05-04 03:09:12 -07:00
Evan Broder
c878e89898 Enable travis-ci 2012-05-04 03:06:38 -07:00
Evan Broder
eee7ab5c44 Add a Rakefile for running tests 2012-05-04 03:06:38 -07:00
Evan Broder
b3974868ac Add alternative gemfiles for automated testing 2012-05-04 03:06:38 -07:00
Evan Broder
eba6826b05 Add a (simple) Gemfile 2012-05-03 23:38:05 -07:00
Evan Broder
69b1e4b0bd Bump the multi_json dependency
multi_json 1.0 did not support pretty encoding
2012-05-01 16:32:56 -07:00
Evan Broder
f1d7ab6123 Drop old stripe-json vendor files from gemspec.
Fixes #24
2012-04-30 16:32:15 -07:00
Evan Broder
1b2f07a9ea Merge branch 'multi_json'
Fixes #19 and #22
2012-04-30 14:46:36 -07:00
Evan Broder
56d7c98945 Switch from Basic to Bearer auth
Stripe will be supporting Basic auth for the indefinite future, but
our API keys map onto Bearer auth more cleanly, and using it lets us
get rid of the base64 encoding step.
2012-04-30 14:41:46 -07:00
Evan Broder
f8073e132a Add our own JSON abstraction to deal with MultiJson backwards compatibility
Thanks to Kevin Menard for the tip on how to approach it.
2012-04-26 13:58:20 -07:00
Evan Broder
32e619c04a Switch from deprecated MultiJson.{encode,decode} to .{dump,load}
Bump gem dependency accordingly
2012-04-23 10:18:57 -07:00
Evan Broder
2e9693eccf Merge branch 'master' into multi_json 2012-04-23 10:08:00 -07:00
Evan Broder
69a96ecc4b Parse URL query string in tests to deal with hash order differences
My rvm 1.8.7 Linux build of Ruby appears to generate query strings in
a different order than the test suite expected.
2012-04-23 10:00:29 -07:00
Brian Collins
00a4be73f9 Charge descriptions can be updated 2012-04-01 15:49:15 -07:00
Brian Collins
ba4ce6cd42 Revert "Charges should not be updatable"
This reverts commit 1415b08fb8a912f21b46b39015272ae8a42f105d.
2012-04-01 15:45:28 -07:00
Brian Collins
75fccd8275 Update readme 2012-04-01 14:00:54 -07:00
Brian Collins
a6de6e3be7 Use multi_json 2012-04-01 13:44:22 -07:00