uphold 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uphold/entities/base_entity.rb +4 -0
- data/lib/uphold/version.rb +1 -1
- data/spec/unit/entities/base_entity_spec.rb +14 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38d0ab4a38dca7469c06bd23b468245893eb8dba
|
4
|
+
data.tar.gz: 39ba6324bcad6e8aee938db19c3d2936921e7c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b36edb512b5f71449205b0acab8d7ed3f57ab911d94af83f8ecf7cf7c28fc8c700581aac260ae81df964e596f850228e89f6f6f1b041e44e3e0b8262d86bf41
|
7
|
+
data.tar.gz: a88491bbe12cc2458a2cb5f69185c1caa5e12d47558c1986cad33c8ab61dd188cd9d82c7b8e4b2331f05af853cbcdb1293b5b127943ca7070122b4b55c9f6ae5
|
data/lib/uphold/version.rb
CHANGED
@@ -21,6 +21,20 @@ module Uphold
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
context '#error?' do
|
25
|
+
it 'is false for non-error entities' do
|
26
|
+
entity = Uphold::Entities::User.new
|
27
|
+
|
28
|
+
expect(entity.error?).to be_falsey
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'is true for error entities' do
|
32
|
+
entity = Uphold::Entities::Error.new
|
33
|
+
|
34
|
+
expect(entity.error?).to be_truthy
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
24
38
|
context '.from_collection' do
|
25
39
|
it 'instantiates each of the entities passed in' do
|
26
40
|
entity = double('Entity')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uphold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subvisual
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.
|
248
|
+
rubygems_version: 2.6.2
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: A wrapper for the Uphold API
|