balanced 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/lib/balanced.rb +0 -2
- data/lib/balanced/client.rb +1 -1
- data/lib/balanced/resources.rb +18 -19
- data/lib/balanced/resources/resource.rb +1 -0
- data/lib/balanced/version.rb +1 -1
- data/spec/balanced/resources/resource_spec.rb +10 -0
- data/spec/balanced/resources_spec.rb +8 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 219dbbd5adfbc85b25a89851e6d81149b7c6c885
|
4
|
+
data.tar.gz: 021828832cf8d9b233f41ad9c13578dbe5f21399
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbd91388524f30395916d87f33a8c8c2377473d996feb38780a99a92f0ffb337debdb2563abe4e483d05425854bd2c1f6e6b8262d904f8e582ba050be8cd6aa7
|
7
|
+
data.tar.gz: a6a2da990d5941e291c98e8db187acaf2346f2c1c0cc3112846ab31a9a7738b67102b4d174922675402984ee38a80efb6fe5c0a62404a0aec8e5f3aaf2e46d56
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/balanced.rb
CHANGED
data/lib/balanced/client.rb
CHANGED
data/lib/balanced/resources.rb
CHANGED
@@ -1,19 +1,18 @@
|
|
1
|
-
|
2
|
-
require '
|
3
|
-
require '
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
require '
|
7
|
-
require '
|
8
|
-
require '
|
9
|
-
require '
|
10
|
-
require '
|
11
|
-
require '
|
12
|
-
require '
|
13
|
-
require '
|
14
|
-
require '
|
15
|
-
require '
|
16
|
-
require '
|
17
|
-
require '
|
18
|
-
require '
|
19
|
-
require 'transfer'
|
1
|
+
require 'balanced/resources/resource'
|
2
|
+
require 'balanced/resources/hypermedia'
|
3
|
+
require 'balanced/resources/funding_instrument'
|
4
|
+
require 'balanced/resources/api_key'
|
5
|
+
require 'balanced/resources/bank_account'
|
6
|
+
require 'balanced/resources/card'
|
7
|
+
require 'balanced/resources/credit'
|
8
|
+
require 'balanced/resources/debit'
|
9
|
+
require 'balanced/resources/card_hold'
|
10
|
+
require 'balanced/resources/marketplace'
|
11
|
+
require 'balanced/resources/refund'
|
12
|
+
require 'balanced/resources/reversal'
|
13
|
+
require 'balanced/resources/callback'
|
14
|
+
require 'balanced/resources/dispute'
|
15
|
+
require 'balanced/resources/event'
|
16
|
+
require 'balanced/resources/customer'
|
17
|
+
require 'balanced/resources/order'
|
18
|
+
require 'balanced/resources/transfer'
|
data/lib/balanced/version.rb
CHANGED
@@ -29,4 +29,14 @@ describe Balanced::Resource do
|
|
29
29
|
new_ak.should be_instance_of(Balanced::ApiKey)
|
30
30
|
end
|
31
31
|
end
|
32
|
+
|
33
|
+
describe 'fetch' do
|
34
|
+
it 'raises a Balanced::NotFound exception when called with no arguments' do
|
35
|
+
expect { @ak.fetch() }.to raise_exception(Balanced::NotFound)
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'raises a Balanced::NotFound exception when called with a nil first argument' do
|
39
|
+
expect { @ak.fetch(nil) }.to raise_exception(Balanced::NotFound)
|
40
|
+
end
|
41
|
+
end
|
32
42
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Balanced, "resources" do
|
4
|
+
it "doesn't add library-specific directories to the global $LOAD_PATH" do
|
5
|
+
basedir = File.expand_path( File.dirname(__FILE__) + '/../..' )
|
6
|
+
$LOAD_PATH.should_not include(basedir + '/lib/balanced/resources')
|
7
|
+
end
|
8
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: balanced
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Balanced
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -331,6 +331,7 @@ files:
|
|
331
331
|
- spec/balanced/resources/marketplace_spec.rb
|
332
332
|
- spec/balanced/resources/order_spec.rb
|
333
333
|
- spec/balanced/resources/resource_spec.rb
|
334
|
+
- spec/balanced/resources_spec.rb
|
334
335
|
- spec/balanced/response/balanced_exception_middleware_spec.rb
|
335
336
|
- spec/balanced_spec.rb
|
336
337
|
- spec/client_spec.rb
|
@@ -374,6 +375,7 @@ test_files:
|
|
374
375
|
- spec/balanced/resources/marketplace_spec.rb
|
375
376
|
- spec/balanced/resources/order_spec.rb
|
376
377
|
- spec/balanced/resources/resource_spec.rb
|
378
|
+
- spec/balanced/resources_spec.rb
|
377
379
|
- spec/balanced/response/balanced_exception_middleware_spec.rb
|
378
380
|
- spec/balanced_spec.rb
|
379
381
|
- spec/client_spec.rb
|