Alex Speller
abf5400726
Update README.rdoc
2013-04-06 17:13:18 +02:00
David Czarnecki
e593b0e0df
Breakup tests into separate test files
2013-03-22 17:20:04 -04:00
Grant Olson
81ae6d7aee
Due to a server misconfiguration issue, we were low on memory.
...
Attempting to spawn a subprocess to get the uname threw an out of
memory error. Since the uname is only needed to provide diagnostic
info in the User-Agent, it shouldn't cause stripe to fail.
2013-03-20 14:48:26 -04:00
Jean Boussier
6a57264758
Allow to update a resource without retreiving it first
...
Rationale:
Sometime you don't care about the current state of a resource
you just want to update one of it's attributes.
It should only require one request.
fixes #52
```ruby
c = Stripe::Customer.new("cus_1EqKjPaFs4ZwDD")
c.description = 'Ny new Description'
c.save
```
Before:
```json
{
error: {
type: "invalid_request_error",
message: "A parameter provided in the URL (id) was repeated as a GET or POST parameter. You can only provide this information as a portion of the URL.",
param: "id",
}
}
```
After:
Successfully update the customer and return it's whole state.
2013-03-14 11:04:18 -04:00
Tim Craft
6b43da28e3
Always call to_sym instead of type checking in Stripe::StripeObject#[] method
2013-03-14 14:06:09 +00:00
Tim Craft
ae30ffff7f
Add Gemfile.lock to .gitignore
2013-03-14 13:50:24 +00:00
Tim Craft
fa24c46b90
Add ruby 2.0.0 to travis config
2013-03-14 13:49:19 +00:00
Amber Feng
ce34d9ef8b
Use Invoice.all instead of Invoice.upcoming for base query parameter tests.
2013-03-11 18:07:45 -07:00
Amber Feng
7ddf3ea42b
Fix URL building for when the base URL already has query parameters, and add test.
2013-03-11 13:19:28 -07:00
Evan Broder
a1ab276487
Merge pull request #51 from timcraft/patch-1
...
Remove rubygems require
2013-02-21 18:19:21 -08:00
Ross Boucher
56b792ccad
Update version
v1.7.11
2013-02-21 12:09:10 -08:00
Ross Boucher
b2aafa854e
Add id to the list of permanent attributes
2013-02-21 11:54:16 -08:00
Ross Boucher
1b9f776f65
Merge pull request #50 from stripe/expand
...
Add the ability to send options with retrieve requests.
v1.7.10
2013-02-04 15:54:26 -08:00
Ross Boucher
06c67e404e
Revert to old style imports
2013-02-04 15:51:48 -08:00
Tim Craft
6a08f656d0
Remove rubygems require
2013-02-04 12:40:10 +00:00
Ross Boucher
5ffde047d3
Add the ability to send options with retrieve requests.
2013-02-01 12:12:03 -08:00
Evan Broder
3e30d5ad78
Merge pull request #49 from jalessio/patch-1
...
Update URL for API spec
2013-01-28 16:18:54 -08:00
Jamie
16a83dcce5
Update URL for API spec
...
https://stripe.com/api/spec 404's
2013-01-28 15:57:54 -08:00
spakanati
fb29711a4f
Merge pull request #48 from stripe/sp-version
...
Add API version setting.
1.7.9
v1.7.9
2013-01-15 12:59:54 -08:00
Sheena Pakanati
4dca4320d8
Bump version to 1.7.9.
2013-01-15 11:31:23 -08:00
Sheena Pakanati
4df245996b
Add support for setting API version.
2013-01-15 11:31:03 -08:00
Evan Broder
0c28189194
Slightly cleaner way of getting all of activesupport
2012-12-04 16:11:34 -08:00
Alex MacCaw
f27e72cba6
remove Gemfile.lock
2012-12-04 13:59:26 -08:00
Alex MacCaw
738429a742
Add Gemfile.lock
2012-12-04 13:38:45 -08:00
Alex MacCaw
d196d8a343
Throw an error if the API key contains whitespace
2012-12-04 13:38:34 -08:00
Evan Broder
cf3c4a11b6
Bump version
v1.7.8
2012-11-21 13:59:18 -08:00
Evan Broder
150c69a91d
Delete Gemfile.locks
...
I'm pretty sure those weren't supposed to be committed in the first
place
2012-11-21 13:59:18 -08:00
Evan Broder
3354d9dddd
Relax version constraint on multi_json ( fixes #44 )
...
We still need >= 1.0.4 because that's when support for pretty-printing
was introduced.
2012-11-21 13:59:14 -08:00
Amber Feng
be31c1934f
Fix account API resource bug.
v1.7.7
2012-11-08 14:40:15 -08:00
Sheena Pakanati
a841cbe0f4
Update version to 1.7.7
2012-11-08 12:18:31 -08:00
Sheena Pakanati
f389031887
Support for updating charge disputes
2012-11-08 12:16:36 -08:00
Ross Boucher
0080cfe707
Update date
v1.7.6
2012-10-30 17:06:28 -07:00
Ross Boucher
140ef12a06
Merge remote branch 'origin/sp-invoice-create'
2012-10-30 17:04:35 -07:00
Ross Boucher
c0999ac5bb
Remove the conflicting definition of transactions for transfers.
2012-10-29 22:13:07 -07:00
Sheena Pakanati
fd42cec19d
Add support for creating invoices; bump version.
2012-10-29 11:03:51 -07:00
Ross Boucher
7f87b2bc4a
Add support for list objects. Bumps version to 1.7.5
2012-10-25 19:42:23 -07:00
Evan Broder
7571ab5a38
Bump version
v1.7.4
2012-10-08 16:54:40 -07:00
Evan Broder
79516e8552
Test on Ruby 1.9.2 in travis, since that's what Heroku uses by default
2012-10-08 16:43:39 -07:00
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