balanced 0.3.11 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -15,8 +15,26 @@ VCR.configure do |c|
15
15
  c.hook_into :faraday
16
16
  end
17
17
 
18
+ # TODO: better way to do this?
19
+ host = ENV['BALANCED_HOST'] or nil
20
+ options = {}
21
+ if !host.nil? then
22
+ options[:scheme] = 'http'
23
+ options[:host] = host
24
+ options[:port] = 5000
25
+ options[:ssl_verify] = false
26
+ Balanced.configure(nil, options)
27
+ end
28
+
18
29
  RSpec.configure do |c|
19
30
  c.extend VCR::RSpec::Macros
31
+
32
+ # @return [Balanced::Marketplace]
33
+ def make_marketplace
34
+ api_key = Balanced::ApiKey.new.save
35
+ Balanced.configure api_key.secret
36
+ Balanced::Marketplace.new.save
37
+ end
20
38
  end
21
39
 
22
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-27 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -47,8 +47,7 @@ description: ! "Balanced is the payments platform for marketplaces.\n Integra
47
47
  a payments experience just like Amazon for your marketplace.\n Forget about dealing
48
48
  with banking systems, compliance, fraud, and security.\n "
49
49
  email:
50
- - !binary |-
51
- bWFobW91ZEBwb3VuZHBheS5jb20=
50
+ - mahmoud@poundpay.com
52
51
  executables: []
53
52
  extensions: []
54
53
  extra_rdoc_files: []
@@ -95,11 +94,16 @@ files:
95
94
  - lib/balanced/response/balanced_exception_middleware.rb
96
95
  - lib/balanced/utils.rb
97
96
  - lib/balanced/version.rb
97
+ - spec/balanced/error_spec.rb
98
98
  - spec/balanced/pager_spec.rb
99
99
  - spec/balanced/resources/account_spec.rb
100
100
  - spec/balanced/resources/api_key_spec.rb
101
+ - spec/balanced/resources/bank_account_spec.rb
102
+ - spec/balanced/resources/credit_spec.rb
101
103
  - spec/balanced/resources/hold_spec.rb
102
104
  - spec/balanced/resources/marketplace_spec.rb
105
+ - spec/balanced/resources/merchant_spec.rb
106
+ - spec/balanced/resources/resource_spec.rb
103
107
  - spec/balanced/resources/transactions_spec.rb
104
108
  - spec/balanced/response/balanced_exception_middleware_spec.rb
105
109
  - spec/balanced_spec.rb
@@ -127,16 +131,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
131
  version: '0'
128
132
  requirements: []
129
133
  rubyforge_project:
130
- rubygems_version: 1.8.24
134
+ rubygems_version: 1.8.23
131
135
  signing_key:
132
136
  specification_version: 3
133
137
  summary: Sign up on https://balancedpayments.com/
134
138
  test_files:
139
+ - spec/balanced/error_spec.rb
135
140
  - spec/balanced/pager_spec.rb
136
141
  - spec/balanced/resources/account_spec.rb
137
142
  - spec/balanced/resources/api_key_spec.rb
143
+ - spec/balanced/resources/bank_account_spec.rb
144
+ - spec/balanced/resources/credit_spec.rb
138
145
  - spec/balanced/resources/hold_spec.rb
139
146
  - spec/balanced/resources/marketplace_spec.rb
147
+ - spec/balanced/resources/merchant_spec.rb
148
+ - spec/balanced/resources/resource_spec.rb
140
149
  - spec/balanced/resources/transactions_spec.rb
141
150
  - spec/balanced/response/balanced_exception_middleware_spec.rb
142
151
  - spec/balanced_spec.rb