boomerang 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/.rvmrc +1 -1
  2. data/lib/boomerang.rb +11 -1
  3. metadata +19 -29
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm 1.9.2
1
+ rvm 1.9.3
@@ -11,7 +11,7 @@ require "boomerang/api_call"
11
11
  require "boomerang/response"
12
12
 
13
13
  class Boomerang
14
- VERSION = "0.0.2"
14
+ VERSION = "0.0.3"
15
15
  ENDPOINTS = { cbui: "https://authorize.payments.amazon.com/" +
16
16
  "cobranded-ui/actions/start",
17
17
  cbui_sandbox: "https://authorize.payments-sandbox.amazon.com/" +
@@ -52,6 +52,10 @@ class Boomerang
52
52
  %w[callerReference recipientPaysFee]
53
53
  when "Recurring"
54
54
  %w[callerReference recurringPeriod transactionAmount]
55
+ when "SingleUse"
56
+ %w[callerReference recipientToken transactionAmount]
57
+ when "MultiUse"
58
+ %w[callerReference globalAmountLimit recipientTokenList]
55
59
  end
56
60
  required_fields.each do |required_field|
57
61
  unless parameters[required_field]
@@ -59,6 +63,12 @@ class Boomerang
59
63
  end
60
64
  end
61
65
 
66
+ if pipeline == "MultiUse" and
67
+ parameters["recipientTokenList"].is_a? Array
68
+ parameters["recipientTokenList"] =
69
+ parameters["recipientTokenList"].join(",")
70
+ end
71
+
62
72
  url = ENDPOINTS[use_sandbox? ? :cbui_sandbox : :cbui]
63
73
  signature = Signature.new("GET", url, parameters)
64
74
  signature.sign(@access_key_id, @secret_access_key)
metadata CHANGED
@@ -1,29 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: boomerang
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
4
5
  prerelease:
5
- version: 0.0.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - James Edward Gray II
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-14 00:00:00 -05:00
14
- default_executable:
12
+ date: 2012-05-11 00:00:00.000000000 Z
15
13
  dependencies: []
16
-
17
- description: A library for working with Amazon.com's FPS API. The code is especially intended for "marketplace applications."
18
- email:
14
+ description: A library for working with Amazon.com's FPS API. The code is especially
15
+ intended for "marketplace applications."
16
+ email:
19
17
  - james@graysoftinc.com
20
18
  executables: []
21
-
22
19
  extensions: []
23
-
24
20
  extra_rdoc_files: []
25
-
26
- files:
21
+ files:
27
22
  - .gitignore
28
23
  - .rvmrc
29
24
  - README.markdown
@@ -36,33 +31,28 @@ files:
36
31
  - lib/boomerang/response.rb
37
32
  - lib/boomerang/signature.rb
38
33
  - lib/boomerang/utilities.rb
39
- has_rdoc: true
40
34
  homepage: https://github.com/okrb/boomerang
41
35
  licenses: []
42
-
43
36
  post_install_message:
44
37
  rdoc_options: []
45
-
46
- require_paths:
38
+ require_paths:
47
39
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
40
+ required_ruby_version: !ruby/object:Gem::Requirement
49
41
  none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
53
45
  version: 1.9.2
54
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
47
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
59
51
  version: 1.3.7
60
52
  requirements: []
61
-
62
53
  rubyforge_project:
63
- rubygems_version: 1.6.2
54
+ rubygems_version: 1.8.24
64
55
  signing_key:
65
56
  specification_version: 3
66
57
  summary: A Ruby library wrapping Amazon.com's FPS API.
67
58
  test_files: []
68
-