Commit Graph

52 Commits

Author SHA1 Message Date
Paul Daigle
cfc7cb9ccf add pair command to command line client
To support the pair command, cleaned up and extended client and
key_utils classes with more getters. Also added a param hash to the
invoice creation for extra items.

Updated Readme file
2014-10-07 15:27:33 -04:00
Paul Daigle
f64490125c remove broken cli functions, update key_utils 2014-10-07 01:06:31 -04:00
Paul Daigle
deca5e4e8b add license information 2014-10-07 00:52:27 -04:00
Paul Daigle
c8ff36fa13 Replace most ecdsa funtions with OpenSSL
This allows us to easily write a pem file to disk and recreate the key
from the pem file. We were unable to remove the ecdsa gem entirely, the
OpenSSL library does not handle EC signatures.
2014-10-06 23:38:28 -04:00
Paul Daigle
08f0a40aa2 Removing Compatibility methods
It doesn't make sense to be both cryptographically secure and insecure
in the same library.
2014-10-06 22:58:40 -04:00
Paul Daigle
2229f88db6 Use the public interface to retrieve an invoice
With this commit the following functionality is complete:
1. Using a token, pair a key
2. Create a new invoice
3. Retrieve the public invoice
2014-09-25 12:05:41 -04:00
Paul Daigle
1f0932385a Bump required ruby version for gem
Ruby 2.0 does not support required keyword arguments, but we would like
to use required keyword arguments.
2014-09-25 12:05:17 -04:00
Paul Daigle
c84c5cbbec 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-09-24 22:41:21 -04:00
Paul Daigle
27017c2a39 Rakefile to clear added api keys
Local tests are run many times a day, but the Travis.CI tests are run
against test server accounts. So the default task (for Travis.CI) does
not clean up all API keys from the local server, but there is a rake
task that can be run locally or remotely to do this for you.
2014-09-24 16:16:13 -04:00
Paul Daigle
98a71c3acf 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.
2014-09-24 16:15:54 -04:00
Paul Daigle
1276c59d9a capybara configurations 2014-09-23 17:00:09 -04:00
Paul Daigle
dd67d86b6a Refactoring key utils and tests 2014-09-19 16:18:04 -04:00
Hamish Eisler
a5fd1bcac2 reminder to validate label 2014-09-19 07:19:25 +00:00
Hamish Eisler
c653e10390 store private key to FS and update tests 2014-09-19 00:40:53 +00:00
Hamish Eisler
e91b95cf36 refactor SIN to CLIENT_ID 2014-09-12 22:31:22 +00:00
Hamish Eisler
3f4e5b4dbc more tests plus CLI enhancements 2014-09-10 23:54:07 +00:00
Hamish Eisler
89f6355394 Merge branch 'master' of github.com:heisler3030/ruby-client 2014-09-10 17:11:45 +00:00
Hamish Eisler
b5f559bf25 add more tests and cli 2014-09-10 17:08:48 +00:00
Hamish Eisler
d595427e05 remove old tests 2014-09-10 17:08:10 +00:00
Hamish Eisler
a0d3a4773d Change api docs link 2014-09-08 02:34:55 -07:00
Hamish Eisler
4f96d636c6 Merge branch 'master' of github.com:heisler3030/ruby-client 2014-09-08 09:29:58 +00:00
Hamish Eisler
473e67bce8 add tests and refactor 2014-09-08 09:28:59 +00:00
Hamish Eisler
c77cc3a26b add tests and refactor 2014-09-08 09:25:16 +00:00
Hamish Eisler
e1783b5c1c refactoring and base tests 2014-09-05 06:42:23 +00:00
Hamish Eisler
3e237970c5 working SIN derivation 2014-09-03 23:06:48 -07:00
Hamish Eisler
4e813a2b6c Merge branch 'master' of git://github.com/bitpay/ruby-client 2014-09-02 22:53:40 -07:00
Hamish Eisler
e526f84236 incomplete upgrade to API v2 2014-09-02 22:52:19 -07:00
Hamish Eisler
40e65d56fa Add documentation for testnet usage 2014-08-18 13:22:48 -07:00
Hamish Eisler
3eb56c025f begin bitauth updates 2014-08-16 00:10:52 -07:00
Ryan X. Charles
4986f882cd Merge pull request #12 from heisler3030/master
Correct certificate validation
2014-07-30 17:59:31 -07:00
Hamish Eisler
69b725072b fix certificate validation 2014-07-30 14:10:43 -07:00
Hamish Eisler
22c9d94d64 Add gem build tasks 2014-07-30 14:10:43 -07:00
Ryan X. Charles
afb7aef70d Merge pull request #11 from kyledrake/contributors
Show contributors to project instead of authors
2014-06-27 19:00:41 -07:00
Kyle Drake
e0869e043e
Show contributors to project instead of authors 2014-06-27 19:10:34 -04:00
Kyle Drake
e3d2d75502 Merge pull request #10 from nmarley/plugin-info-header
remove hard-coded version string from req header
2014-06-16 17:03:26 -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
Ryan X. Charles
667b4c836d Merge pull request #9 from unChaz/patch-3
Update README.md
2014-04-14 17:35:56 -03:00
Chaz Ferguson
82ea11b985 Update README.md
Trying again..
2014-04-14 16:31:58 -04:00
Ryan X. Charles
f41a122ede Merge pull request #7 from unChaz/master
added plugin version header
2014-04-02 10:29:22 -04:00
Chaz Ferguson
2ed1fe5bd0 added plugin version header 2014-04-02 10:27:42 -04:00
Kyle Drake
71c96210eb Update Travis for Ruby 2x, pull jruby 2014-03-19 01:40:48 -07:00
Kyle Drake
722dcf32e6 0.1.2 (+ok @ryanxcharles) 2014-01-02 17:21:11 -08:00
Ryan X. Charles
68c781a46f Merge pull request #6 from kyledrake/master
Force JSON for post body
2014-01-02 16:37:30 -08:00
Kyle Drake
481beffa8e
missing client instantiation in README 2014-01-02 15:46:01 -08:00
Kyle Drake
060fc792a7 Force JSON for post body 2014-01-02 15:34:18 -08:00
Kyle Drake
9886a42614 pull rbx from travis for now 2013-11-29 06:34:25 -05: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