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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d386c8c2ffa6bcb93f3efe04930a94f0f0583b5
4
- data.tar.gz: 496f30fb49363d2b38be70fd4aafc090e3ec7adf
3
+ metadata.gz: 38b0f679e701e57609f203bcfd521b38556948cb
4
+ data.tar.gz: 35728a425bbd07a23d6970ec75d1dbdd6484f15b
5
5
  SHA512:
6
- metadata.gz: dd4ee3f9ed9de17b7b2c6ba34221c88cf411085ae8b1576d5eccad3b5a87189457671a0b566ad95d96c29f08cb1942234af793cf7c6cf62fc2c5d92395837d32
7
- data.tar.gz: aeb3ba00db161856911c52a1d61c9312662f9d391ac68b7e817c43f52f63c7387bd610b3b5a51c384df67b9b1626d8d3f30d8a21b720db8eb331dd3ca16eff99
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 produciton RaaS API
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
 
@@ -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
- if @reward.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Tangocard
2
- VERSION = "3.0.0"
2
+ VERSION = "3.1.0"
3
3
  end
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.0.0
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-04-08 00:00:00.000000000 Z
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: '0'
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: '0'
68
+ version: 2.14.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rr
57
71
  requirement: !ruby/object:Gem::Requirement