balanced-ach 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/.gitignore +29 -0
  2. data/Gemfile +1 -1
  3. data/balanced.gemspec +1 -1
  4. data/lib/{balanced.rb → balanced_ach.rb} +7 -7
  5. data/lib/{balanced → balanced_ach}/client.rb +1 -1
  6. data/lib/{balanced → balanced_ach}/error.rb +0 -0
  7. data/lib/{balanced → balanced_ach}/pager.rb +2 -2
  8. data/lib/{balanced → balanced_ach}/resources.rb +1 -1
  9. data/lib/{balanced → balanced_ach}/resources/bank_account.rb +0 -0
  10. data/lib/{balanced → balanced_ach}/resources/credit.rb +0 -0
  11. data/lib/{balanced → balanced_ach}/resources/debit.rb +0 -0
  12. data/lib/{balanced → balanced_ach}/resources/resource.rb +0 -0
  13. data/lib/{balanced → balanced_ach}/response/balanced_exception_middleware.rb +1 -1
  14. data/lib/{balanced → balanced_ach}/utils.rb +0 -0
  15. data/lib/{balanced → balanced_ach}/version.rb +1 -1
  16. data/x.rb +2 -7
  17. metadata +15 -114
  18. data/.idea/.name +0 -1
  19. data/.idea/.rakeTasks +0 -7
  20. data/.idea/balanced-ach.iml +0 -9
  21. data/.idea/encodings.xml +0 -5
  22. data/.idea/misc.xml +0 -5
  23. data/.idea/modules.xml +0 -9
  24. data/.idea/scopes/scope_settings.xml +0 -5
  25. data/.idea/vcs.xml +0 -7
  26. data/.idea/workspace.xml +0 -561
  27. data/spec/balanced/pager_spec.rb +0 -42
  28. data/spec/balanced/resources/account_spec.rb +0 -571
  29. data/spec/balanced/resources/api_key_spec.rb +0 -55
  30. data/spec/balanced/resources/hold_spec.rb +0 -55
  31. data/spec/balanced/resources/marketplace_spec.rb +0 -97
  32. data/spec/balanced/resources/transactions_spec.rb +0 -72
  33. data/spec/balanced/response/balanced_exception_middleware_spec.rb +0 -47
  34. data/spec/balanced_spec.rb +0 -77
  35. data/spec/cassettes/Balanced/configure.yml +0 -48
  36. data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +0 -48
  37. data/spec/cassettes/Balanced_Account.yml +0 -110
  38. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +0 -240
  39. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +0 -44
  40. data/spec/cassettes/Balanced_Account/_find.yml +0 -400
  41. data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +0 -186
  42. data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +0 -186
  43. data/spec/cassettes/Balanced_Account/_find_by_email.yml +0 -400
  44. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +0 -175
  45. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +0 -186
  46. data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +0 -530
  47. data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +0 -455
  48. data/spec/cassettes/Balanced_Account/buyer/_debit.yml +0 -363
  49. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +0 -281
  50. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +0 -281
  51. data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +0 -1013
  52. data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +0 -229
  53. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +0 -536
  54. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +0 -460
  55. data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +0 -232
  56. data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +0 -232
  57. data/spec/cassettes/Balanced_Account/merchant/new.yml +0 -179
  58. data/spec/cassettes/Balanced_ApiKey/attributes.yml +0 -48
  59. data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +0 -93
  60. data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +0 -48
  61. data/spec/cassettes/Balanced_Hold.yml +0 -335
  62. data/spec/cassettes/Balanced_Hold/_void.yml +0 -62
  63. data/spec/cassettes/Balanced_Hold/_void/after.yml +0 -62
  64. data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +0 -306
  65. data/spec/cassettes/Balanced_Marketplace.yml +0 -339
  66. data/spec/cassettes/Balanced_Transaction.yml +0 -1261
  67. data/spec/cassettes/Balanced_Transaction/Transaction.yml +0 -634
  68. data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +0 -634
  69. data/spec/client_spec.rb +0 -12
  70. data/spec/spec_helper.rb +0 -31
  71. data/spec/utils_spec.rb +0 -8
  72. data/upload_docs.rb +0 -39
@@ -1,12 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "balanced client" do
4
-
5
- it "should allow setting and reading of the api_key" do
6
- client = Balanced::Client.new "miscreant"
7
- client.api_key.should eq("miscreant")
8
- client.api_key = "foo"
9
- client.api_key.should eq("foo")
10
- end
11
-
12
- end
@@ -1,31 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
- require 'balanced'
4
- require 'vcr'
5
-
6
- begin
7
- require 'ruby-debug'
8
- rescue LoadError
9
- # ignored
10
- end
11
-
12
-
13
- VCR.configure do |c|
14
- c.cassette_library_dir = 'spec/cassettes'
15
- c.hook_into :faraday
16
- end
17
-
18
- RSpec.configure do |c|
19
- c.extend VCR::RSpec::Macros
20
- end
21
-
22
-
23
- ACCOUNTS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts/
24
- MERCHANT_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*/
25
- HOLDS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/holds/
26
- BANK_ACCOUNTS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/bank_accounts/
27
- REFUNDS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/refunds/
28
- DEBITS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/debits/
29
- TRANSACTIONS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/transactions/
30
- CREDITS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/credits/
31
- CARDS_URI_REGEX = /\/v1\/marketplaces\/TEST-\w*\/accounts\/\w*\/cards/
@@ -1,8 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "the utils module" do
4
- it "should correctly translate underscored names" do
5
- result = Balanced::Utils.camelize "api_key"
6
- result.should eq("ApiKey")
7
- end
8
- end
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'aws/s3'
4
- require 'yard'
5
-
6
- # cheap
7
- args = [
8
- 'doc',
9
- '-e',
10
- 'doc/balanced_plugin.rb',
11
- '-p',
12
- 'doc/balanced_templates/',
13
- '--one-file',
14
- '--query',
15
- "object.to_s != 'Balanced::Account::MoreInformationRequiredError'",
16
- 'lib/balanced/resources/account.rb',
17
- 'lib/balanced/resources/api_key.rb',
18
- 'lib/balanced/resources/bank_account.rb',
19
- 'lib/balanced/resources/card.rb',
20
- 'lib/balanced/resources/credit.rb',
21
- 'lib/balanced/resources/debit.rb',
22
- 'lib/balanced/resources/hold.rb',
23
- 'lib/balanced/resources/marketplace.rb',
24
- 'lib/balanced/resources/merchant.rb',
25
- 'lib/balanced/resources/transaction.rb'
26
- ]
27
-
28
- YARD::CLI::CommandParser.run(*args)
29
-
30
- AWS::S3::Base.establish_connection!(
31
- :access_key_id => ENV['AWS_ACCESS_KEY_ID'],
32
- :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
33
- )
34
-
35
- puts AWS::S3::S3Object.store('docs/ruby_api_reference.html',
36
- open('doc/index.html'),
37
- 'justice.web',
38
- :access => :public_read
39
- )