tangocard 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/tangocard/order.rb +4 -11
- data/lib/tangocard/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38b0f679e701e57609f203bcfd521b38556948cb
|
4
|
+
data.tar.gz: 35728a425bbd07a23d6970ec75d1dbdd6484f15b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2a8b94659d5b1448cef2ec4671bae7aa70505dc98fba2af582d386909c570fcc05850bdc5830c5166cd89cdcf68eac1e6e844a51ed4dd94d6ed4128eb7a435e
|
7
|
+
data.tar.gz: c1e4926acf5f4d79bbf097d9def494e1a65c52d9e0deb622b93671ef48c9feb05e6e87120c4b8f356ceda29ec323742e0f3e4dcad5bafc126afca29881018ebc
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ There are three required configuration parameters:
|
|
36
36
|
|
37
37
|
* `name` - The API account name you receive from Tango Card
|
38
38
|
* `key` - The API account key you receive from Tango Card
|
39
|
-
* `base_uri` - This defaults to the Tango Card sandbox. For production, you must specify the base URI for the
|
39
|
+
* `base_uri` - This defaults to the Tango Card sandbox. For production, you must specify the base URI for the production RaaS API. Make sure not to include `/raas/v1` or any trailing slashes.
|
40
40
|
|
41
41
|
There are also three optional configuration parameters:
|
42
42
|
|
data/lib/tangocard/order.rb
CHANGED
@@ -7,7 +7,8 @@ class Tangocard::Order
|
|
7
7
|
:reward_message,
|
8
8
|
:reward_from,
|
9
9
|
:delivered_at,
|
10
|
-
:recipient
|
10
|
+
:recipient,
|
11
|
+
:reward
|
11
12
|
|
12
13
|
private_class_method :new
|
13
14
|
|
@@ -73,19 +74,11 @@ class Tangocard::Order
|
|
73
74
|
@reward_from = params['reward_from']
|
74
75
|
@delivered_at = params['delivered_at']
|
75
76
|
@recipient = params['recipient']
|
76
|
-
@reward = params['reward']
|
77
|
+
@reward = params['reward'] || {}
|
77
78
|
end
|
78
79
|
|
79
80
|
def reward
|
80
|
-
|
81
|
-
begin
|
82
|
-
@reward = Tangocard::Order.find(self.order_id).reward
|
83
|
-
rescue Tangocard::OrderNotFoundException => e
|
84
|
-
nil
|
85
|
-
end
|
86
|
-
else
|
87
|
-
@reward
|
88
|
-
end
|
81
|
+
@reward ||= {}
|
89
82
|
end
|
90
83
|
|
91
84
|
def identifier
|
data/lib/tangocard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tangocard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raphael Crawford-Marks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -38,20 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '6.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: i18n
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.6.11
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.6.11
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rspec
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
61
|
+
version: 2.14.1
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
68
|
+
version: 2.14.1
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rr
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|