Commit Graph

41 Commits

Author SHA1 Message Date
Paul Daigle
a8defe21d3 Bump gem version, add Changelog 2015-03-12 23:20:41 -04:00
Paul Daigle
25d6ebbcec Fix github issue 40
Both post and get requests assumed that the response from the server
would include a "data" field, which is not the case. Moved handling of
the data element back into the invoice and pairing methods.

Also, this update will remove the refund functionality from branch 2.3,
it belongs in 2.4.
2015-03-12 18:55:29 -04:00
Paul Daigle
48d3c753ee Refactor: create rest_connector module
The rest connector module moves most of the functionality of http
connection out of the client and into a module. The goal is to simplify
method calls and DRY up the code.

Changes include replacing all calls to send_request with calls to either
'get' or 'post'. process request now returns the "data" portion of the
JSON response from the server, as every method was retrieving that
separately.

removed some untested code.
2015-03-12 18:23:49 -04:00
Hamish Eisler
72487c9591 correct BTC validation 2015-03-12 18:23:02 -04:00
Paul Daigle
0de7d26cd1 bumped gem version 2015-02-23 15:12:35 -05:00
J. Paul Daigle
90c50762dd Merge pull request #36 from philosodad/master
Removing refund functionality
2015-02-23 14:47:43 -05:00
Paul Daigle
ce31b96e3e Removing refund functionality
Features need to be accompanied by functional tests.
2015-02-23 14:24:48 -05:00
Paul Daigle
ee3ec36d3d bump the gem version 2015-02-19 11:04:46 -05:00
Hamish Eisler
c7dfbf249c changes per Paul comments 2015-02-16 09:33:20 -08:00
Hamish Eisler
f43ab470b8 update tests for new dashboard 2015-02-04 23:30:35 -08:00
Hamish Eisler
36e928209d refactor refund method signatures 2015-01-29 22:22:44 +00:00
Hamish Eisler
58cffd70b8 add refund methods and tests 2015-01-27 05:55:29 +00:00
Hamish Eisler
7abd514397 client-initiated pairing changes 2015-01-21 23:57:36 -08:00
Paul Daigle
ad3a68e009 Change namespace of Client to SDK::Client
And bumps gem version, deletes redundant files, removes redundant
requires.
2015-01-07 10:46:46 -05:00
Paul Daigle
42a6a604f5 bump gem version 2015-01-06 06:45:55 -05:00
Paul Daigle
7f26b781ff Removing all persistance/environment attributes
The core code should not have environmental expectations.

gitignore update
2015-01-05 19:47:32 -05:00
Paul Daigle
b7117c65dd Merge pull request#29 'philosodad-separated_client' 2014-12-29 17:35:39 -05:00
Paul Daigle
c95945e710 Remove bitpay client.
Bitpay client removed, bitpay bin for client removed.
Features modified to run with local token/key saved or not.
Rake task to clean up local files if created.
Rake task to run all tests, cucumbers, and clean up.

Move local file constants to the cucumber helper
2014-12-29 17:06:28 -05:00
Paul Daigle
4c06edc030 Added some error handling
Connection Refused error when pairing
Invalid pairing code if pairing code malformed
2014-12-19 16:52:54 -05:00
Paul Daigle
558a8530b6 Add cucumber testing to bitpay library
Work done simultaneously with removing the client from the library

removed 'id' as an argument, no longer valid
2014-12-13 17:30:44 -05:00
Paul Daigle
6e80e47ee0 Added some error handling
Connection Refused error when pairing
Invalid pairing code if pairing code malformed
2014-12-09 16:26:58 -05:00
Paul Daigle
95a6f5c6a2 Bumped the gem version 2014-12-02 13:38:01 -05:00
J. Paul Daigle
c50b9012b5 Merge pull request #23 from heisler3030/better_errors
Better errors
2014-12-02 13:26:39 -05:00
Hamish Eisler
387006b616 more request DRYing 2014-11-26 15:22:05 -08:00
Hamish Eisler
746fd8737b DRY up HTTP request/error handling 2014-11-26 11:54:28 -08:00
Hamish Eisler
5281aff957 better passthrough of error messages, plus test 2014-11-26 11:54:28 -08:00
Hamish Eisler
b199f32c59 bug fix 2014-11-18 14:47:09 -08:00
Paul Daigle
33025f2b8e Changes for the 2.0.0 version. Detailed changes are on the 2.0.0 branch.
The library now uses the crpytographically secure API.

more tests plus CLI enhancements

Library no longer supporting ruby 1.9.x

1.9.x will be deprecated in February of 2015, so there is little
incentive to write our new library to support it. 1.9.x users should
still be able to use V1 of the API.

This commit adds some changes, such as named arguments, that are
incompatible with 1.9.x.

Add Rake tasks to clear limiters

When many integration tests are run in a short period, the local bitpay server
will refuse to create new keys due to the rate limiting function. This
rake task clears the ratelimiters database.
2014-10-08 13:21:00 -04:00
Joshua Estes
2d4f17dd78 Update version.rb
https://github.com/bitpay/ruby-client/pull/14
2014-09-19 09:35:36 -04:00
arrtchiu
f5b01d4530 refactor request handling in bitpay client 2014-09-19 11:33:20 +08:00
Hamish Eisler
69b725072b fix certificate validation 2014-07-30 14:10:43 -07:00
Nathan Marley
95bf92a818 remove hard-coded version string from req header
Use the gem version constant instead of the string existing in
multiple places. This will prevent confusion in case the client
version is bumped but the request header gets missed. This could lead
to potential confusion if Bitpay ever needs to debug version of Ruby
client used to access the API.
2014-05-18 12:19:41 -07:00
Chaz Ferguson
2ed1fe5bd0 added plugin version header 2014-04-02 10:27:42 -04:00
Kyle Drake
722dcf32e6 0.1.2 (+ok @ryanxcharles) 2014-01-02 17:21:11 -08:00
Kyle Drake
060fc792a7 Force JSON for post body 2014-01-02 15:34:18 -08:00
Kyle Drake
3e099d0102 Remove one more reference to test key. 0.1.1 2013-11-29 06:33:16 -05:00
Kyle Drake
dc846e1458 0.1.0 2013-11-29 06:28:40 -05:00
Kyle Drake
9dd28ed55e pull unused test key #1 2013-11-29 06:26:57 -05:00
Kyle Drake
85c7a0746c minor fixes, documentation 2013-11-01 15:57:52 -07:00
Kyle Drake
9cf8ff40d8 strip whitespace 2013-11-01 11:51:38 -07:00
Kyle Drake
09f726b2d0 initial commit 2013-11-01 11:51:01 -07:00