Cosmin Nicolaescu
1d5da7f9ae
Merge pull request #150 from stripe/cos-appfee-refund
...
make ApplicationFee.refunds a list object instead of array
2014-07-29 09:51:48 -07:00
Cosmin Nicolaescu
d3dfa18990
make ApplicationFee.refunds a list object instead of array
2014-07-28 23:28:24 -07:00
Andy Brody
9cf5089dc1
Revert "Change rest-client pin to ruby < 1.9.2."
...
This reverts commit 39a196541f857ac6266b7a06f589ead21c87a8aa.
Just kidding. Activesupport itself depends on ruby >= 1.9.3.
2014-07-15 13:42:48 -07:00
Andy Brody
39a196541f
Change rest-client pin to ruby < 1.9.2.
...
The latest rest-client supports rubies >= 1.9.2
2014-07-15 13:06:04 -07:00
Russell Davis
8b604f630b
Merge pull request #143 from ngauthier/update-mime-types
...
update mime-types requirement to allow 1.x and 2.x
2014-07-14 13:33:46 -07:00
Russell Davis
1d49b4cc41
Merge pull request #145 from stripe/fix-gemfiles
...
Fix gemfiles for use with Ruby < 1.9.3
2014-07-14 10:58:16 -07:00
Russell Davis
3c76c9f150
Fix gemfiles for use with Ruby < 1.9.3
...
Any project using this gem (with Ruby < 1.9.3) will need to do the same
in its own gemfile.
2014-07-13 13:44:36 -07:00
Russell Davis
ca0d2e603d
Merge pull request #144 from stripe/better-rakefile
...
Run tests using TestTask
2014-07-11 16:19:31 -07:00
Russell Davis
2827ad15d6
Run tests using TestTask
...
- Runs all tests at once instead of one at a time, this way we don't pay
the cost of constantly reloading the environment. Takes test time from 20
seconds to 4.
- Removes the separate testing using activesupport/all, which wasn't actually
doing anything since the tests were running in a separate process.
Thanks to @JoshCheek for surfacing these issues.
2014-07-11 14:54:21 -07:00
Amber Feng
8bb6acfca9
Merge pull request #122 from mcolyer/fix-psych-deserialization
...
Check for `@values` in StripeObject#method_not_found.
This is necessary because we check for `@values` in `respond_to_missing?` now, but this isn't necessarily always set. For example, in deserializing from YAML, Psych creates the object using `allocate` and not `new`, which ends up skipping any initializing of instance variables. See #122 for more details.
2014-07-08 21:52:05 -07:00
Nick Gauthier
660befd6c3
update mime-types requirement to allow 1.x and 2.x
2014-07-08 09:41:00 -04:00
Amber Feng
52792264ef
Merge pull request #118 from vandrijevik/nested-to-hash
...
Improved StripeObject#to_hash
2014-07-07 21:23:00 -07:00
Vladimir Andrijevik
238e071232
Merge remote-tracking branch 'stripe/master' into nested-to-hash
2014-06-30 12:45:40 +02:00
Kyle Conroy
bb9388384f
Bump to version 1.14.0
v1.14.0
2014-06-17 17:35:47 -07:00
Kyle Conroy
a2efbfa094
Merge pull request #140 from stripe/kjc-add-refund
...
Add support for refund resource
2014-06-17 16:57:02 -07:00
Kyle Conroy
e59a494215
Add support for refund resource
2014-06-16 17:13:57 -07:00
Kyle Conroy
c6987ce09b
Merge pull request #139 from stripe/truly_disable_ssl
...
Don't check blacklist if SSL verification is off
2014-06-05 16:04:54 -07:00
Kyle Conroy
0695960fc7
Don't check blacklist if SSL verification is off
...
It's helpful to be able to test the bindings with instances of the
Stripe API running locally, or running on a server that doesn't support
SSL. When :verify_ssl_certs is false, don't check the SSL cert against
the blacklist, as there probably isn't a certificate to check.
2014-06-05 15:49:26 -07:00
Stephen Wan
79cdeb0545
Bump Version
v1.13.0
2014-05-28 16:11:40 -07:00
Stephen Wan
145a9df170
Merge pull request #137 from stripe/stephen-transfer-cancelation
...
Added support for transfer cancelation
2014-05-28 10:02:15 -07:00
Stephen Wan
c25d4b0cbf
Cleaned up transfer tests
2014-05-27 16:59:22 -07:00
Stephen Wan
f13a050935
Added support for transfer cancelation
2014-05-26 11:30:20 -07:00
Amber Feng
56176b2539
Bump version.
v1.12.0
2014-05-21 16:52:13 -07:00
Michelle Bu
5a0c97e561
Merge pull request #136 from stripe/recipient-cards
...
Construct the recipient card URL if the recipient property exists.
2014-05-21 16:28:34 -07:00
Michelle Bu
57309a05de
Add tests for cards
2014-05-21 16:27:49 -07:00
Amber Feng
51af58c947
This needs to be a respond_to? instead.
2014-05-21 11:43:12 -07:00
Amber Feng
bc43fff551
Construct the recipient card URL if the recipient property exists.
2014-05-21 10:49:38 -07:00
Kyle Conroy
ca07ef08fd
Add Travis CI badge to the README
2014-05-15 12:01:10 -07:00
Richo Healey
48f76057f4
Document our approach to SSL preflighting
2014-04-10 12:44:16 -07:00
Richo Healey
e6850316f7
Bump version
v1.11.0
2014-04-09 20:57:37 -07:00
Richo Healey
f340d6249c
Merge pull request #128 from stripe/richo-blacklist-certificates
...
blacklist certificates
2014-04-09 20:33:46 -07:00
Richo Healey
67f90ec108
Verify the fingerprint on api.stripe.com before making any requests
2014-04-09 19:57:45 -07:00
Andy Brody
6944e4e97f
Update CA certificates bundle to 20130906.
...
http://www.ubuntu.com/usn/usn-2154-1/
https://gist.github.com/ab/9756531
2014-03-25 00:24:05 -07:00
Andy Brody
5c166e09c2
Sort the CA bundle in preparation for updating it.
2014-03-24 23:18:41 -07:00
Vladimir Andrijevik
5502c58162
Merge remote-tracking branch 'origin/master' into nested-to-hash
2014-03-18 11:10:14 +01:00
Matt Colyer
974f5ce425
Check for @values in StripeObject#method_not_found
...
If a StripeObject is being deserialized by psych, @values.has_key? is
called before @values is initialized which prevents proper
deserialization from occurring. Checking for existence first resolves
the issue.
2014-02-24 14:16:21 -08:00
Amber Feng
637d5899f6
Make History.txt more consistent
2014-02-18 15:07:32 -08:00
Amber Feng
5a7d69cd04
Bump version to 1.10.2
2014-02-18 14:56:55 -08:00
Amber Feng
089090cbe3
Merge pull request #121 from newaperio/lleger-create-subscription
...
Add ability to create subscriptions without fetching customer record. Closes #120 .
2014-02-18 14:39:17 -08:00
Amber Feng
ff565c1b91
Merge pull request #117 from vandrijevik/fix-assert-equal-calls
...
Fix order of assert_equal calls that were backwards
2014-02-18 14:28:48 -08:00
Logan Leger
3ba9148042
Add ability to create subscriptions without fetching customer record
...
This commit adds `Customer#create_subscription`, which allows a
subscription to be created on a customer without first fetching the
customer record.
Previously:
```
customer = Stripe::Customer.retrieve('cus_abc123def') # GET request
customer.subscriptions.create(plan: 'cool-plan-1') # POST request
```
**No alteration has been made to the above method; the preceding
implementation still functions as it did previously.**
With `#create_subscription`:
```
customer = Stripe::Customer.new('cus_abc123def') # No request
customer.create_subscription(plan: 'cool-plan-1') # POST request
```
This method removes the initial `GET` request and instead issues a
`POST` directly to create the subscription.
2014-02-18 15:12:44 -06:00
Krithika Muthukumar
880e5b539c
fixing typo
2014-02-17 09:54:02 -08:00
Vladimir Andrijevik
310c69e90d
In StripeObject#to_hash, call #to_hash on values which respond to it
2014-02-12 20:19:30 +01:00
Vladimir Andrijevik
650179b2aa
Fix order of assert_equal calls that were backwards
2014-02-12 20:18:52 +01:00
Andrew Thorp
218178ea54
Bump to 1.10.1
v1.10.1
2014-02-03 21:37:07 -06:00
Andrew Thorp
5029e818aa
Merge pull request #105 from stripe/fix-marshaling
...
Fixes marshaling of Stripe Objects
2014-02-03 19:31:33 -08:00
Andrew Thorp
0fdd830975
fixed marshaling forrealz
2014-02-03 21:29:32 -06:00
Andrew Thorp
c46d285b47
fix lurky marshaling
2014-02-03 21:29:32 -06:00
Andrew Thorp
f74edde14c
remove nilcheck of @values
2014-02-03 21:29:32 -06:00
Andrew Thorp
7ec8a12dff
use _dump and self._load instead of marshal_*
2014-02-03 21:29:32 -06:00