Commit Graph

33 Commits

Author SHA1 Message Date
Paul Daigle
671fe5657b Eliminate web driver steps from cucumber
remove capybara completely

undo version bump, there's nothing here but test changes
2015-09-13 17:32:28 -04:00
Paul Daigle
d2d22e33f6 return to coveralls 2015-05-16 14:54:25 -04:00
Paul Daigle
d90d2dae49 move codeclimate below webmock 2015-05-16 14:45:45 -04:00
Paul Daigle
2b248a4978 Use code climate test coverage 2015-05-16 14:33:42 -04:00
Paul Daigle
e4addd06e2 adding coveralls 2015-05-15 18:46:24 -04:00
Paul Daigle
a9c4ec571a remove key utils
update changelog, gemfile, and gemspec
2015-04-14 13:03:41 -04:00
Hamish Eisler
9809370c17 fix and test for issue 39 2015-03-13 06:59:56 +00:00
Paul Daigle
48cbc9d2a1 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.

bumped gem version to 2.4.1
2015-03-13 01:52:45 -04:00
Paul Daigle
4563a8beb2 Minor modifications to v2.4 functionality. 2015-03-05 16:01:51 -05:00
Hamish Eisler
90b8f159db add refunds and cucumber tests with documentation 2015-03-03 01:01:19 +00: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
97df36429e Merge branch 'patch-1' of https://github.com/matugm/ruby-client into matugm-patch-1
Conflicts:
	spec/spec_helper.rb
2015-02-17 09:45:15 -05:00
Hamish Eisler
c7dfbf249c changes per Paul comments 2015-02-16 09:33:20 -08:00
matugm
2f40752a8d Refactor claim code generation
This refactor makes the code much easier to understand and takes advantage of **rand(Range)** and **Array.new** with a block.
2015-02-15 15:20:54 +01:00
Hamish Eisler
e0dd445b44 migrate from rspec features to cucumbers 2015-02-04 23:34:27 -08:00
Hamish Eisler
f43ab470b8 update tests for new dashboard 2015-02-04 23:30:35 -08:00
Hamish Eisler
bf428ba0ba update tests 2015-01-30 00:27:50 +00: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
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
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
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
J. Paul Daigle
c50b9012b5 Merge pull request #23 from heisler3030/better_errors
Better errors
2014-12-02 13:26:39 -05:00
Hamish Eisler
316ce90d34 remove dead code 2014-11-26 11:54:28 -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
7cca6fa77d fix nil pem, add test, cleanup hardcoding 2014-11-18 15:04:57 -08:00
Paul Daigle
43164f9539 Modified tests to fix breaks caused by changes in prod
We are having to pause between two clicks that are running javascript,
which is a little odd.

Had to add an ssl-protocol option to the phantomjs options.
2014-10-22 15:10:08 -04:00
Paul Daigle
8545afd982 specs no longer create extra files 2014-10-13 09:51:05 -04: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